What if the time zone is not set during installation?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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/
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.