Advertisement
guspert

ntp_fix_ubuntu_64bit_daedalus_wallet_v0.14.0

Oct 9th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. [9th Oct, 2019]
  2.  
  3. A suggestion to temporarily fix the issue with the "Red Screen of Death" on Daedalus UI on 64 bit Ubuntu machines running "systemd" and the NTP sync issues associated with it? As stated on the following page https://iohk.zendesk.com/hc/en-us/articles/360010230873
  4.  
  5. Relates to Daedalus 0.14.0 / Cardano SL 3.0.3.7144 and Ubuntu Studio 19.04 in my instance. May help and may not help others in the know. I myself am a novice Linux user so if the information is incorrect then please let me know via TG channel (https://t.me/CardanoCommunityTechSupport) - user @Rusty_gh0st
  6.  
  7. Knowledge of the use of a Linux terminal and some of the tools that are commonly used would be of benefit when using this instruction. I'm sure the folks at IOHK know their way around a Linux machine all too well.
  8.  
  9. #####################################################
  10. Quick & Dirty version (for confident Linux CLI users)
  11. #####################################################
  12.  
  13. Step 1:
  14. Modify the "timesyncd.conf" file under /etc/systemd/ with the uncommenting lines under [Time] heading...
  15. Note: Super User permissions required and maybe so make a copy of it for your peace of mind (optional)
  16.  
  17. [Time]
  18. NTP=0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org 2.ubuntu.pool.ntp.org 3.ubuntu.pool.ntp.org
  19. FallbackNTP=0.pool.ntp.org 1.pool.ntp.org 0.fr.pool.ntp.org ntp.ubuntu.com
  20.  
  21. Step 2:
  22. After you have edited / saved "timesyncd.conf" file and your back in the terminal run command "...$ timedatectl set-ntp true"
  23.  
  24. Step 3:
  25. run command "...$ timedatectl status" to see if within the output shown that "NTP service: active"
  26.  
  27. ################################################################################
  28. More Informative Version for not so confident Linux users (Ubuntu 19.04 based)
  29. ################################################################################
  30.  
  31. 1. From a Ubuntu machine open up a CLI / Terminal of your choice and run command ...$ timedatectl status
  32. Note: my machine had the default xfce4-terminal (ver 0.8.7.4), so I opened/accessed that by using keyboard sequence "ctrl" + "alt" + "t" on my Ubuntu instance.
  33.  
  34. You should see the following printed out and a status note indicating that the "NTP service" is inactive. See the sample output below in the next section.
  35.  
  36. user@ubuntu1904:/etc/systemd$ timedatectl status
  37. Local time: Wed 2019-10-09 17:49:50 IST
  38. Universal time: Wed 2019-10-09 16:49:50 UTC
  39. RTC time: Wed 2019-10-09 16:49:50
  40. Time zone: Europe/London (IST, +0100)
  41. System clock synchronized: yes
  42. NTP service: inactive
  43. RTC in local TZ: no
  44.  
  45. 2. To fix you need to edit the following configuration file in /etc/systemd/timesyncd.conf
  46. Note: you may be inclined to take a copy/backup of this important systemd file [Super user privileges required] so optionally do a...$ sudo cp /etc/systemd/timesyncd.conf /etc/systemd/timesyncd.conf.backup
  47. 3. Next, we want to edit the file using the standard CLI text editior usually installed "nano" [Super user privileges required] ...$ sudo nano /etc/systemd/timesyncd.conf
  48. 4. Uncomment or delete the # characters and add/modify the following lines shown in step 5.
  49. Note: If unfamiliar with the CLI text editor "nano", you'll need to use arrow keys to move the cursor to the position that you'll be doing edits.
  50.  
  51. as it's important file to be editing, users
  52. you'll be un-commenting the following lines by removing # character under [Time] heading:
  53. [Time]
  54. #NTP=
  55. #FallbackNTP=ntp.ubuntu.com
  56.  
  57. then you'll need to edit/add the following under [Time] heading:
  58. [Time]
  59. NTP=0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org 2.ubuntu.pool.ntp.org 3.ubuntu.pool.ntp.org
  60. FallbackNTP=0.pool.ntp.org 1.pool.ntp.org 0.fr.pool.ntp.org ntp.ubuntu.com
  61.  
  62. 5. Once you've typed/modified the text to match above, hit keys "CTRL" + "X" to initiate the save the prompt, type "y" for yes and hit "enter" to exit nano back to terminal prompt.
  63. 6. This brings you back to the terminal of your choice (xfce4-terminal v0.8.7.4 in my machine)
  64. 7. Now in the terminal run ...$ timedatectl set-ntp true
  65. 8. Then enter and run the command once more to check that the NTP service is now active ...$ timedatectl status
  66.  
  67. user@ubuntu1904:/etc/systemd$ timedatectl status
  68. Local time: Wed 2019-10-09 18:24:12 IST
  69. Universal time: Wed 2019-10-09 17:24:12 UTC
  70. RTC time: Wed 2019-10-09 17:24:12
  71. Time zone: Europe/London (IST, +0100)
  72. System clock synchronized: yes
  73. NTP service: active
  74. RTC in local TZ: no
  75.  
  76. 9. Restart your version of Daedalus (in my case it was Daedalus 0.14.0 / Cardano SL 3.0.3.7144). You may had it running in the background with the issue or Red Screen of Death while it was active. Should be resolved after opening up the application again.
  77.  
  78. --------------------------------------------------------------------
  79.  
  80. To undo if required, just undo your edits in the /etc/systemd/timesyncd.conf configuration file, save and run ...$ timedatectl set-ntp true and following that with a status check command ...$ timedatectl status and check if "NTP service" is now inactive.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement