Author Topic: Make sure correct non-USA Locale settings occur in Install  (Read 869 times)

Offline xbask

  • Jr. Member
  • **
  • Posts: 16
Make sure correct non-USA Locale settings occur in Install
« on: July 20, 2011, 05:54:52 AM »

Despite PCLOS having one of the better install routines, it unfortunately doesn't provide setting certain aspects you might want or expect at the Install or first boot stages. These aspects are the localisation - country, timezone and keyboard - and network name in particular.

The LiveCD does show an initial keyboard setup choice but even if you invoke ControlCentre (PCC) and System/Localization/Manage  the settings don't stick for the install. When you first boot the newly installed PCLOS from the hard disk it comes up with USA settings. You have to dig into PCC and do other settings and reboot before you have correct Locale settings. It's best to have that from the outset.

Here's the method to get around this for non-USA users.

There is a file which governs providing the Locale dialog at first boot - finish-install.

The following assumes you have booted the LiveCD into the PCLOS desktop before starting the Install from there.


Open a Terminal window.

At the prompt $

type:  su

enter password for root,

type:  root

type: cd /etc/draklive-install.d/sysconfig

type: ls

one of the files shown should be 'finish-install'

you need to edit that file.

be cautious and copy it first,

type: cp finish-install finish-installold

type: nano finish-install

change these parts from 'no' to 'yes'

LANGUAGE, KEYBOARD, TIMEZONE, COUNTRY, NETWORK

This means that as the newly installed PCLOS is booting up for the first time, these parts will present a dialog to choose the correct setting. The 'NETWORK' item allows you to set, amongst others, your network or hostname which will also be what you see alongside your username at a command prompt - user@mypc$.

The nano editor, if you haven't used it before, shows key combos at the bottom. To save your changes use the 'write out' combo, Ctrl-O, meaning hold Ctrl key and hit letter 'O' key. It asks filename to save and shows the actual name 'finish-install', just hit 'Enter' key. Exit nano by combo Ctrl-X.

To check that this change will be carried out by the Install, go to the /changes directory and see if there is a sub-directory with the newly edited file.

type: cd /changes/etc/draklive-install.d/sysconfig

type: ls -l

it should show the edited 'finish-install' file with recent timestamp. You could double-check content,

type: cat finish-install

Go ahead with the Install from the desktop and when you reboot into the hard disk you get prompts to set up the correct country, timezone and keyboard before you set root and user info.

For those who might just use the 'Install PCLinuxOS' choice on the booted CD menu, ignoring Live desktop and going for straight install.

You need to access the freshly installed filesystem and edit the 'finish-install' file before you reboot into the hard disk for the first time. As well as the directory mentioned above, there is another copy in directory /etc/sysconfig/. Both need to be edited as shown above.

The simplest method is to finish the install BUT keep the PCLinuxOS CD in the drive and reboot onto it. Choose to run LiveCD. When it gets to the Desktop,

open a Terminal window.

type: su

type: root

now you have to mount the partition chosen for the Install, the root (/) partition if you set up several. If that was 'sda2' -

type: mount /dev/sda2 /media

if /media doesn't exist then first type: mkdir /media

advanced users who set up encryption of root (/) will know how to get to their partition.

type: cd /media/etc/draklive-install.d/sysconfig

edit the 'finish-install' file as above.

type: cd /media/etc/sysconfig

edit the 'finish-install' file as above

unmount the partition

type: cd /

type: umount /dev/sda2

reboot into hard disk and enjoy making correct Locale (and network) settings.

I will pre-empt those who might comment. :)

Possibly you could do the edit while in pure Install mode by switching to another console login. Do this just before the routine has finished and inviting you to reboot.

Hold keys Ctrl and Alt and hit a Function key, F2 or F3 or F4, which should bring you to a black screen with "localhost login:".

There, type: root

give password:  root

you may find that the partition is already mounted,

type: mount

if mounted it may say "/dev/sda2 on /media/disk" or "/dev/sda2 on /mnt/install" or similar and if using encryption "/dev/mapper/xxxxx on /media/disk". the 'xxxxx' will vary depending on your setup.

otherwise the mounting can be done as before as can the file editing.

When done editing,

type: cd /

if you _had_ to mount the partition, unmount it. If you found it already mounted:

type: exit

type: Ctrl-Alt-F8

hold Ctrl and Alt and hit key F8, or whichever Function key brings you back to the Install finish dialog.



Offline luikki

  • Hero Member
  • *****
  • Posts: 1422
Re: Make sure correct non-USA Locale settings occur in Install
« Reply #1 on: July 20, 2011, 07:05:24 AM »
sorry! i don't see the point... ???

why go to all that trouble if i can do it in a simple way after installation?


Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2881
    • other projects...
Re: Make sure correct non-USA Locale settings occur in Install
« Reply #2 on: July 20, 2011, 07:41:41 AM »
Hi xbask,

the better install routines of PCLinuxOS deal with aspects like localisation - country, timezone and keyboard using the tool Localization Manager. This tool is constantly updated, see here and can be used during a live-session as described here to change your system locale (+country, keyboard, timezone) to a different language. Then you logout and back in again and install the localized system and you will get everything as configured during the live-session. Just ensure to have the latest version of addlocale installed in the live-session.

regards,
-p.

Offline xbask

  • Jr. Member
  • **
  • Posts: 16
Re: Make sure correct non-USA Locale settings occur in Install
« Reply #3 on: July 21, 2011, 04:42:16 AM »
sorry! i don't see the point... ???

why go to all that trouble if i can do it in a simple way after installation?

The main point is that one should be given the opportunity for correct settings at Install time, either within the LiveCD dialog _and_ which are carried through or on the first boot. That is the simplest way. Post-install using PCC's Localisation and Keyboard I have seen dialogs open up still with USA parameters or the time being wrong.


Pinoc

Unfortunately, the universal YMMV acronym applies. Most definitely I have _not_ seen any changes carried out in Localisation and doing a logout/login within the LiveCD setup taken forward into the booted hard disk. It seems to be governed by that 'finish-install' file.

Perhaps I should have added that this is with the versions Gnome, Zen and latest LXDE, and not the newest KDE.

Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2468
Re: Make sure correct non-USA Locale settings occur in Install
« Reply #4 on: July 21, 2011, 05:14:34 AM »
I assume such choices are related to the beginner level because advanced users don't have problems either ways.
I am an user between beginner and intermediate state. That's why I think I understand the best the problems a beginner could be involved to during installation and/or initial configuring. Even better than Texstar and I'm not joking this time. Why? Because the beginners don't understand where's the problem and the experts don't feel where beginner is for they've forgotten this long time ago.


sorry! i don't see the point... ???

why go to all that trouble if i can do it in a simple way after installation?

The main point is that 1(one should be given the opportunity) for correct settings at Install time, either within the LiveCD dialog _and_ which are carried through or on the first boot. 2(That is the simplest way). Post-install using PCC's Localisation and Keyboard I have seen dialogs open up still with USA parameters or the time being wrong.
Not agreed because:
1 - the more the opportunities of choices the higher probability of screwing up/messing things. This is logical and proved by life for any situation. Don't forget we are talking about installation which is most important process.
2- not proved. For me it is not.

The US keyboard and language settings are the most common in the whole computer world so it's most secure to use only it for the crucial stage of installation. Just imagine something's screwed up during install and you end up with, to say, tamill symbols in Terminal.
« Last Edit: July 21, 2011, 05:19:10 AM by Vorteks »

Offline xbask

  • Jr. Member
  • **
  • Posts: 16
Re: Make sure correct non-USA Locale settings occur in Install
« Reply #5 on: July 26, 2011, 12:12:09 PM »

2- not proved. For me it is not.

The US keyboard and language settings are the most common in the whole computer world so it's most secure to use only it for the crucial stage of installation. Just imagine something's screwed up during install and you end up with, to say, tamill symbols in Terminal.

Hee, hee.

Well there you go, comme ils disent. :)

Do I infer from your last sentence that a person should have no choice of using their native language at install time and you believe that they might be stupid enough to choose another language and its associated fonts because they are given a choice? Or otherwise, you imply that the install routine is flawed and will be unable to correlate the user's clicked-on choice to the correct language?

Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2468
Re: Make sure correct non-USA Locale settings occur in Install
« Reply #6 on: July 27, 2011, 12:28:39 AM »
I expressed my opinion that the installation process is most important for using the distro and should be as simple and stable as possible.

The choices come after the installation and the same is in the life - you can choose only after you are successfully born. ;) ;D

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8821
  • Aurum nostrum non est aurum vulgi.
Re: Make sure correct non-USA Locale settings occur in Install
« Reply #7 on: July 27, 2011, 01:12:51 AM »
Another point to consider would be the time it would take for a new install to pull in another localization. PCLinuxOS installation is the easiest and one of the fastest. If other locales are set during the install process, there would need to be a setup of Internet connection prior to the Click To Install. Then it could add several minutes, in which some users would come complaining in the forum about hanged installs, to pull in the necessary locales.

Let's just leave it as it is ... and give the benefit of learning to those who deserve to be using PCLinuxOS.

Just saying.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Vorteggs

  • Hero Member
  • *****
  • Posts: 2468
Re: Make sure correct non-USA Locale settings occur in Install
« Reply #8 on: July 27, 2011, 01:26:59 AM »
...there would need to be a setup of Internet connection prior to the Click To Install.
That's in the case localisation files are not included in the LiveCD, and this is a waste of LiveCD place from my point of view.

Well the problem of the user not knowing English at all still remains though. S/he probably wouldn't be able to follow the installation guide.
But hey, this usually means that person never touched or saw a computer so s/he would need help from more experienced user anyway. That's where Linux community comes to help. :)