View previous topic :: View next topic |
Author |
Message |
lalebarde Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/182403375252de547cceadb.png)
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Sun May 29, 2011 8:11 am Post subject: Command line equivalent to Configuration GUI commands ? |
|
|
Hi all,
Is there a mean to log the commands used by GUI, for example in the Live DVD "System Settings"/"Country/Region & language" dialog ?
That would be great for easy reuse in a bash file stored into a USB key, and for understanding. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Sven Vermeulen Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/d5e02e493e22b9c75ed22.gif)
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Thu Jun 02, 2011 9:05 am Post subject: |
|
|
For regional settings, that has all to do with locale settings.
See the Gentoo Linux Localization Guide _________________ Please add "[solved]" to the initial topic title when it is solved. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lalebarde Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/182403375252de547cceadb.png)
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Thu Jun 02, 2011 8:49 pm Post subject: |
|
|
Thank you very much Sven. Dumb am I . That's OF COURSE ! I have written this command file I will test at my next reboot on the liveCD (soon) and post the result. Code: | #!/bin/bash
# startnetwork
rmmod tg3
modprobe broadcom
modprobe tg3
# locales
echo LINGUAS="fr fr_FR en" >> /etc/make.conf
cp /usr/share/zoneinfo/Europe/Paris /etc/localtime
sed -i -e 's/#TIMEZONE="Factory"/TIMEZONE="Europe\/Paris"/' /etc/conf.d/clock
echo LANG="fr_FR.UTF-8" > /etc/env.d/02locale
echo LC_COLLATE="C" >> /etc/env.d/02locale
env-update && source /etc/profile
sed -i -e '/KEYMAP="us"/ s/us/fr-latin9/' -e '/SET_WINDOWKEYS="no"/ s/no/yes/' -e '/EXTENDED_KEYMAPS=""/ s/""/"backspace keypad euro"/' /etc/conf.d/keymaps
echo Section "InputClass" >> /etc/X11/xorg.conf
echo " Identifier \"Dell Media Keyboard\"" >> /etc/X11/xorg.conf
echo " Driver \"kbd\"" >> /etc/X11/xorg.conf
echo " Option \"xkbLayout\" \"fr\"" >> /etc/X11/xorg.conf
echo " Option \"XkbModel\" \"pc105\"" >> /etc/X11/xorg.conf
echo " MatchIsKeyboard \"on\"" >> /etc/X11/xorg.conf
echo EndSection >> /etc/X11/xorg.conf
sed -i -e '/CONSOLEFONT="/ s/default8x16/lat9w-16/' /etc/conf.d/consolefont
/etc/init.d/consolefont start
echo fr_FR.UTF-8 UTF-8 >> /etc/locale.gen
# mount
mount /dev/sda7 /mnt/gentoo/var/
mount /dev/sda8 /mnt/gentoo/usr/
mount -t proc none /mnt/gentoo/proc
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash |
I will have just to open a console, su root, mount my root partition on /mnt/gentoo, and run the script. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lalebarde Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/182403375252de547cceadb.png)
Joined: 03 Sep 2006 Posts: 464 Location: France, Haute-Garonne
|
Posted: Sun Jul 17, 2011 8:01 pm Post subject: |
|
|
Result : Failed
I checked that the files are well modified. I tried also : Code: | # env-update && source /etc/profile
# /etc/init.d/consolefont restart | Nothing changed.
Any clue ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
myceliv Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/6587998304b2a56c9b4d64.png)
Joined: 29 Nov 2007 Posts: 178
|
Posted: Mon Jul 18, 2011 4:10 am Post subject: |
|
|
It looks like you're editing and running commands on the system you're working from rather than the one you're chrooting into. Perhaps this script needs to be run after chrooting. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|