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.
I'm sure it works. Thanks. I was wondering how to make this happen like everyday or something. I thought there was just a setting somewhere or a program that mandrake had or something.
On a windoze box:
Code:
c:\>net time /setsntp:time.nrc.ca
On a Linux box:
Code:
drew@workstation1:~> su
Password:
workstation1:/home/drew # ntpdate time.nrc.ca
27 Aug 19:33:31 ntpdate[10335]: no server suitable for synchronization found
workstation1:/home/drew #
I'd personally setup a cronjob (maybe I did even, let's check.. Yep!) in /etc/cron.daily if your distro has it (I just realized this may not be in Mandrake ) if not, I'd use crontab to create a cronjob:
crontab -e
To edit your cronjobs, then:
Code:
* 4 * * * /path/to/ntpdate 1> /dev/null
Might be something you wanna use. Check man crontab for more info on that
I found a program called Kcron in my sUsE Kmenu, I used that and it seems to work. Kcron did not ask me for root access and I need root to use this command, ntpdate. Does this matter?
you mean, login to X as root? I was always told that was a bad idea. So if that's what you mean, I set all that up, logout and back in as my user and it's all good? The schedule will still run even though root is not logged in?
Well, you can login to X as root, you just want to be careful, do it as little as possible, and try other options first
You can also see if xhost+localhost is already setup on your system and maybe you can run X apps as root in your user's window. Open up a console, su to root, then type:
kcron
And see if it opens it up as root. If it does, cool. Do your thing, save and exit.
If not, feel free to learn about xhost, and/or login as root, startx, do your thing, get out, and do that as little as possible.
I personally use Root's X about, oh, once every other month, for various things. Just wanna be careful with it, and do it as little as possible.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.