Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Command line equivalent to Configuration GUI commands ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lalebarde
Guru
Guru


Joined: 03 Sep 2006
Posts: 464
Location: France, Haute-Garonne

PostPosted: Sun May 29, 2011 8:11 am    Post subject: Command line equivalent to Configuration GUI commands ? Reply with quote

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
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Thu Jun 02, 2011 9:05 am    Post subject: Reply with quote

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
View user's profile Send private message
lalebarde
Guru
Guru


Joined: 03 Sep 2006
Posts: 464
Location: France, Haute-Garonne

PostPosted: Thu Jun 02, 2011 8:49 pm    Post subject: Reply with quote

Thank you very much Sven. Dumb am I :oops:. 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
View user's profile Send private message
lalebarde
Guru
Guru


Joined: 03 Sep 2006
Posts: 464
Location: France, Haute-Garonne

PostPosted: Sun Jul 17, 2011 8:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
myceliv
Apprentice
Apprentice


Joined: 29 Nov 2007
Posts: 178

PostPosted: Mon Jul 18, 2011 4:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum