On Sun, 2010-04-18 at 21:44 -0700, John Jason Jordan wrote: > On Sun, 18 Apr 2010 20:24:15 -0700 > John Jason Jordan <[email protected]> dijo: > > >On Sun, 18 Apr 2010 20:16:46 -0700 > >wes <[email protected]> dijo: > > > >>how do you "change to root" ? I'm betting it's with sudo su rather > >>than just su. When you use sudo, it asks for jjj's password instead of > >>root's. > > >
> So I edited my script and put sudo in front of both commands, made a > gnome-panel icon to launch it in a terminal, and it is working fine. > I'll run it whenever I notice the clock doesn't match my watch by > enough to care about. There is a handy little utility called gksudo thats acts as a graphic wrapper to sudo. You can do something like: gksudo --message "fix the time" your-script.sh and it will pop up a window prompting you for your password so you don't need to launch a terminal. Though as has been pointed out elsewhere NTPD is the tool to use if you have a permanent Internet connection. While I'm on the subject it is recommended you use the local pool.ntp.org server i.e. us.ntp.pool.org as you will get a better result and it avoids overloading the main servers. Paul M > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
