Hi There. I would like to alter the timesyncd.conf file so I can add an NTP server address. The path of the file is /etc/systemd/timesyncd.conf. In a Linux desktop OS such as Ubuntu I can easily do this from the terminal by using Nano to alter this using the following command (sudo nano /etc/systemd/timesyncd.conf). I can still run the command within the terminal of Ubuntu Touch & open the same & alter it however I'm unable to save it... I'm assuming it's a permissions issue but I wondering if anyone can assist in how I can alter this I'd be very grateful. The device I'm using is a Nexus 7 WiFi only. Also thank you to UBports for all the work you do on this OS!!!
Best posts made by Muffinman
-
How To Alter the timesyncd.conf File
-
RE: How To Alter the timesyncd.conf File
@keneda
Hi Keneda.
Thank you for your reply! I do have the tweak tool installed & followed your suggestions which I was able to successfully able to alter the file to include an NTP server & then change it back to being read only so again thank you for your information.The only thing unfortunately for me is the reason I wanted to do was to have my Nexus 7 to time sync with either an external or internal NTP server. After making the changes when I tried to restart the service to apply the changes, it comes up with the error Failed to restart systemd-timesyncd.service: No such method 'RestartUnit'.
I also tried rebooting the device & made sure the date & time is set to automatically update.
I also have a Nexus 4 device which experiences the same problems.
Am I possibly missing something here or does Ubuntu Touch behaves different to date / time sync? For what I do having an accurate time is fairly important.I was thinking of waiting until the transition to the 20.04 kernel work has completed & thought that might fix the issue but I thought rather than waiting I'd like to learn how to the date time sync works in Ubuntu Touch as it does appear to behave differently from say your Ubuntu desktop OS.
Cheers
-
RE: How To Alter the timesyncd.conf File
@keneda Thanks for your assistance Keneda
-
RE: How To Alter the timesyncd.conf File
@flohack HI Flohack. Okay so it doesn't use systemd or it doesn't have an NTP client then what does it use?
How do I go about finding out what upstart job it uses? What does UT do within the Date and Time setting when you change from manually to automatically? Is there any documentation to steer me in the right direction? Or when you migrate over to the 20.04 kernel, will this change things / will you use systemd? Thank you!