LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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,855

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, Debian
Posts: 328

Rep: Reputation: 167Reputation: 167
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; 05-24-2020 at 06:46 PM.
 
Old 05-24-2020, 06:49 AM   #3
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 398

Rep: Reputation: 206Reputation: 206Reputation: 206
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 05-24-2020, 07:38 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,469

Rep: Reputation: 7756Reputation: 7756Reputation: 7756Reputation: 7756Reputation: 7756Reputation: 7756Reputation: 7756Reputation: 7756Reputation: 7756Reputation: 7756Reputation: 7756
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 05-24-2020, 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: 17,273
Blog Entries: 27

Rep: Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345Reputation: 5345
I'm inclined to agree with Alien Bob, for what it's worth.
 
Old 05-25-2020, 11:35 AM   #6
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 3,584

Rep: Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457Reputation: 3457
Some things one should just never do https://i.imgur.com/WvNHzRd.gif
 
1 members found this post helpful.
Old 05-25-2020, 11:48 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,348

Rep: Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479Reputation: 5479
it is impossible to not set TZ. I mean there is a default which will be set anyway. Probably you will not like it.
 
Old 05-25-2020, 01:26 PM   #8
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885Reputation: 885
Quote:
Originally Posted by pan64 View Post
it is impossible to not set TZ. I mean there is a default which will be set anyway. Probably you will not like it.
Straight UTC or whatever the TZ is of the hardware clock.
 
Old 05-25-2020, 01:41 PM   #9
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,874

Rep: Reputation: 1438Reputation: 1438Reputation: 1438Reputation: 1438Reputation: 1438Reputation: 1438Reputation: 1438Reputation: 1438Reputation: 1438Reputation: 1438
Seems to me like there is very little value in *not* asking users to set the timezone, and significant risk of annoying then to no end. Easy decision, IMO.
 
Old 05-25-2020, 04:30 PM   #10
I.G.O.R
Member
 
Registered: Dec 2017
Distribution: Slackware
Posts: 213

Rep: Reputation: 23
Quote:
Originally Posted by phalange View Post
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.
All the installers and live CDs perform instalation in UTC, so switching time zones don't affect modification time /except Alien's BOB slack-live which boots with the US Pacific time unless you explicitly boot it with parameter tz=utc. I didn't understand why, but there is always a time shift no matter if your pc is in UTC/

Last edited by I.G.O.R; 05-25-2020 at 04:36 PM.
 
1 members found this post helpful.
Old 05-25-2020, 05:07 PM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,855

Original Poster
Rep: Reputation: Disabled
Thanks to all who responded so far. I should have elaborated why I have considered not setting the time zone during installation in "auto" mode. Please bear with me, I will do it below.

I am targeting potential users not at ease with dialog boxes and/or the command line, including blind ones using a Braille device or a speech synthesizer (then possibly not yet acquainted with speakup's key bindings for screen review if they used another screen reader before, like Orca on the desktop or NVDA on Windows).

The timeconfig script displays a very long list (595 items) and finding its way in it is not very easy for newcomers, especially if these items are spoken, as then you can only hear one at a time. Using the page up and down keys can help, but not much if you don't know the (rather weird) layout of the list.

After installation instead we can suggest the user to run a script that will propose her a TZ based on IP geolocation when the machine is connected to internet, and only if she doesn't like it run timeconfig.

I have also considered instead (or in addition) modifying timeconfig to provide kind of an auto completion, maybe grepping the list as soon as the user presses Tab, with as argument what has been typed so far.

As an aside, doing all such configuration post installation becomes a necessity if the system is provided already installed, as mini-slint or stormux based on arch, instructions here to use it on a Pi. Oh and Storm (stormux developer) told me that some users prefer to play with it during some time before doing the configuration

Have a good day,

PS and erratum: in the installer we run the clocksetup application stolen to Salix instead of timeconfig but that doesn't change the rationale as it also proposes a list of items in a dialog box.

Last edited by Didier Spaier; 05-26-2020 at 05:12 AM. Reason: Typo fix.
 
  


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 03:04 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
Open Source Consulting | Domain Registration