LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-23-2020, 04:42 PM   #1
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,315

Rep: Reputation: Disabled
What if the time zone is not set during installation?


In next version of the Slint installer I want to provide a mode that needs as less user interaction as possible, at the price of more post-installation configuration.

Some distributions' installers propose a timezone based on the IP geolocation and I've found a handy application to do that: https://github.com/cdown/tzupdate so I have considered including it in the installer, but that would need to ship also python and python-setuptools in it, furthermore I have no guarantee that the user's machine can have an Internet connection at time of installation.

Is there any issue delaying the timezone setting after installation? I consider suggesting users to run after installation a script that does:
Code:
tzupdate -p # prints the timezone found with IP geolocation; if found and OK then tzupdate; else ask the user to set the timezone; fi
ntpd -gq
hwclock -w
and have /etc/rc.d/rc.ntpd executable by default.
I'd set the hardware clock to UTC by default.

Last edited by Didier Spaier; 05-23-2020 at 04:55 PM.
 
Old 05-23-2020, 08:32 PM   #2
phalange
Member
 
Registered: May 2018
Distribution: Slackware, FreeBSD, Nixos, Arch
Posts: 255

Rep: Reputation: 125Reputation: 125
Quote:
Originally Posted by Didier Spaier View Post
In next version of the Slint installer I want to provide a mode that needs as less user interaction as possible, at the price of more post-installation configuration.

Some distributions' installers propose a timezone based on the IP geolocation and I've found a handy application to do that: https://github.com/cdown/tzupdate so I have considered including it in the installer, but that would need to ship also python and python-setuptools in it, furthermore I have no guarantee that the user's machine can have an Internet connection at time of installation.

Is there any issue delaying the timezone setting after installation? I consider suggesting users to run after installation a script that does:
Code:
tzupdate -p # prints the timezone found with IP geolocation; if found and OK then tzupdate; else ask the user to set the timezone; fi
ntpd -gq
hwclock -w
and have /etc/rc.d/rc.ntpd executable by default.
I'd set the hardware clock to UTC by default.
Yes, one might not have a connection, or be traveling with a laptop, or be using a VPN at install time. I personally prefer the installer just asks rather that guesses. Doesn't the slackware installer ask for TZ? I can't remember. But almost every installer I can think of asks either before or after completion.

I like to get the TZ correct because I want the modification dates to be accurate at the outset, but that's an old habit and maybe not important in the grand scheme of things.

Last edited by phalange; Yesterday at 06:46 PM.
 
Old Yesterday, 06:49 AM   #3
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 345

Rep: Reputation: 165Reputation: 165
Quote:
Originally Posted by Didier Spaier View Post
Is there any issue delaying the timezone setting after installation?
I doubt any issues will occur. When Slackware 7.1 came out, the installer forgot to even install the TZ package through an errant tag end file (if I remember correctly). So the fix was to manually install the TZ package and rerun the timezone select script after booting. No issues occurred other then date(1) reporting the wrong date/time. It defaulted to GMT.

I know little about PAM, but I would be surprised if PAM even care if time was out of sync.
 
Old Yesterday, 07:38 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,992

Rep: Reputation: 6701Reputation: 6701Reputation: 6701Reputation: 6701Reputation: 6701Reputation: 6701Reputation: 6701Reputation: 6701Reputation: 6701Reputation: 6701Reputation: 6701
I think it provides a poor first experience if the user who lives in Polynesia starts her fresh installation and finds that the time is displayed in UTC.
 
Old Yesterday, 08:05 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 16,188
Blog Entries: 27

Rep: Reputation: 4828Reputation: 4828Reputation: 4828Reputation: 4828Reputation: 4828Reputation: 4828Reputation: 4828Reputation: 4828Reputation: 4828Reputation: 4828Reputation: 4828
I'm inclined to agree with Alien Bob, for what it's worth.
 
  


Reply

Tags
-w


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
BIND DNS forward lookup zone functions, but no idea how to set up a reverse lookup zone MrRichBOB Linux - Newbie 3 01-29-2019 04:29 PM
I find file zone in the slave zone to the do a transfer of zone from Windows Server 2012 as master dns and CentOS as slave DNS. To learn Linux - Newbie 1 09-02-2016 09:36 AM
Which zone bind dns work either in forward zone are reverse zone sanjay87 Linux - Server 2 06-05-2012 04:21 AM
Run script in EST time zone but server is in GMT zone jeesun Linux - Networking 1 04-04-2010 01:37 PM
Time zone sets inappropriate time during Ubuntu 9.04 installation TristanDee Ubuntu 6 07-24-2009 06:42 AM

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

All times are GMT -5. The time now is 07:33 AM.

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