LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-10-2018, 05:40 PM   #1
francesco bat
Member
 
Registered: Sep 2015
Location: Italy
Distribution: PCLinuxOS, Slackware, Peppermint
Posts: 30

Rep: Reputation: Disabled
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
 
Old 01-10-2018, 10:51 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 5,066

Rep: Reputation: 2864Reputation: 2864Reputation: 2864Reputation: 2864Reputation: 2864Reputation: 2864Reputation: 2864Reputation: 2864Reputation: 2864Reputation: 2864Reputation: 2864
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).
 
Old 01-11-2018, 03:28 AM   #3
Noryungi
Member
 
Registered: Jul 2003
Location: --> X <-- You are here.
Distribution: Slackware, OpenBSD
Posts: 303

Rep: Reputation: 49
Francesco: are you trying to change the timezone used by your machine, or automatically set the time?
 
Old 01-11-2018, 04:48 AM   #4
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 449

Rep: Reputation: 225Reputation: 225Reputation: 225
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

Last edited by abga; 01-11-2018 at 04:57 AM. Reason: added second time server + additional info
 
Old 01-11-2018, 11:25 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,154

Rep: Reputation: 698Reputation: 698Reputation: 698Reputation: 698Reputation: 698Reputation: 698
Why not just put these ntp servers in /etc/ntp.conf and chmod +x /etc/rc.d/rc.ntpd ?
 
Old 01-11-2018, 12:02 PM   #6
francesco bat
Member
 
Registered: Sep 2015
Location: Italy
Distribution: PCLinuxOS, Slackware, Peppermint
Posts: 30

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cannot change timezone on Slackware 13.37 hoyortsetseg Slackware 10 10-29-2012 03:44 PM
[SOLVED] PHP Data/Timezone Problems, Slackware 14.0, php-5.4.7-x86_64-1 tronayne Slackware 3 10-24-2012 10:25 AM
[Solved] Setting timezone on a per user basis for Xorg in Slackware xj25vm Slackware 6 05-25-2011 03:48 PM
/etc/TIMEZONE snippy Solaris / OpenSolaris 1 06-24-2008 06:35 PM
Timezone Configuration in Slackware rapont Slackware 1 04-04-2004 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration