LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 14.1 and timezone (https://www.linuxquestions.org/questions/slackware-14/slackware-14-1-and-timezone-4175621381/)

francesco bat 01-10-2018 05:40 PM

Slackware 14.1 and timezone
 
Hi !
I have Slackware 14.1 in my old notebook acer extensa.
I can not to change timezone in automatic (europe.pool.ntp.org and others) because it give me:
in italian:
Impossibile autenticare o eseguire l'azione: 4
in english:
Unable to authenticate/execute the action: 4,
I tried like superuser but it doesn't solve.
How do i solve ?
Bye
Francesco bat

bassmadrigal 01-10-2018 10:51 PM

How are you trying to change the timezone? What commands are you running? I'm not sure if Slackware offers automatic timezone selection (I've always selected my specific timezone using timeconfig as root).

Noryungi 01-11-2018 03:28 AM

Francesco: are you trying to change the timezone used by your machine, or automatically set the time?

abga 01-11-2018 04:48 AM

For timezone configuration you either follow bassmadrigal's advice, or the manual steps documented in the Slackware official docs:
https://docs.slackware.com/slackware:localization

As for a daily (will suffice) time synchronization, create a script in /etc/cron.daily/ , make it executable:
Code:

chmod +x /etc/cron.daily/timesync
with the following content:
Code:

#!/bin/sh
/usr/sbin/ntpdate 0.europe.pool.ntp.org >> /var/log/messages 2>&1
/usr/sbin/ntpdate 1.europe.pool.ntp.org >> /var/log/messages 2>&1
sleep 10
/sbin/hwclock -w

It's always good to have at least 2 time servers to rely on.

P.S. Additional info:
https://docs.slackware.com/howtos:ha...tem_local_time

keefaz 01-11-2018 11:25 AM

Why not just put these ntp servers in /etc/ntp.conf and chmod +x /etc/rc.d/rc.ntpd ?

francesco bat 01-11-2018 12:02 PM

Hi !
Sorry if I replied late but now i am in an Hotel and i can not always to connect :)
I tried with an old way:

Code:

su
ntpdate ntp1.ien.it

and now it works.
Time ago i tried this way but after it returned again to error.
Now it works and i can't understand why this problem sometime happens.
Bye
Francesco bat


All times are GMT -5. The time now is 12:16 AM.