Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is really annoying, there is a lot about this issue, but all refer to editing "rc.conf" which Raspbian Jessie (December 2015) does not seem to have.
Can anyone explain how I can get it to update the time from an NTP server please. I have also tried using:
Code:
sudo ntpd -gq
Which does absolutely nothing at all.
Please help this is quite frustrating and is the only task that is essential in this particular build.
That does not mean you can not run ntp to set the system clock.
How is your network currently configured? Is this a master or slave?
Does the Pi acquire an IP address?
Can it ping the internet i.e ping 8.8.8.8? (google)
Currently, the pi I am playing with is stand alone until I can fix this issue. So:
The pi is currently connected to the internet at work (Though to be fair it was updating on my home network...?)
Ah... does the time update through a different port than the internet. Yes it does, it uses port 123 which i won't be allowed to access.
Ok change of question then, how can I get the time to update through port 80 in the event that port 123 is blocked?
If you have a permanent internet connection you don't need an RTC, NTP will synchronize the time with the internet. Raspbian has NTP installed by default, but if you don't have it, it is easy to install.
Ok change of question then, how can I get the time to update through port 80 in the event that port 123 is blocked?
ntp uses port 123, port 80 is http. In order to use ntp over port 80, you'd need to be connecting to a server that runs an ntp server that listens on port 80, which is HIGHLY unlikely.
You could use an ssh tunnel to route your ntp requests outside of your network, but the real question is why on earth your work blocks OUTGOING connections on 123? Is it because they run their own local NTP server they want everyone to use? How is NTP configured on your desktops/workstations?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.