Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Small bash script for my post installation of arch linux. Not yet tested;try on your own risk.
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
echo LANG=de_DE.UTF-8 > /etc/locale.conf
echo LC_COLLATE=C >> /etc/locale.conf
echo LANGUAGE=de_DE >> /etc/locale.conf
echo KEYMAP=de-latin1 > /etc/vconsole.conf
echo FONT=lat9w-16 >> /etc/vconsole.conf
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
echo de_DE.UTF-8 UTF-8 > /etc/locale.gen
echo de_DE ISO-8859-1 >> /etc/locale.gen
echo de_DE@euro ISO-8859-15 >> /etc/locale.gen
locale-gen
pacman -S sudo
pacman -S acpid ntp dbus avahi cups cronie
systemctl enable acpid
systemctl enable ntpd
systemctl enable avahi-daemon
systemctl enable org.cups.cupsd.service
systemctl enable cronie
ntpd -gq
hwclock -w
pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils xorg-drivers
echo 'Section "InputClass"
Identifier "keyboard"
MatchIsKeyboard "yes"
Option "XkbLayout" "de"
Option "XkbModel" "pc105"
Option "XkbVariant" "de_nodeadkeys"
EndSection' > /etc/X11/xorg.conf.d/20-keyboard.conf
pacman -S ttf-dejavu
pacman -S gnome gnome-extra
echo '#!/bin/sh
#
# ~/.xinitrc
...
exec gnome-session' > /root/.xinitrc
echo '#!/bin/sh
#
# ~/.xinitrc
...
exec gnome-session' > /etc/skel/.xinitrc
systemctl enable gdm
pacman -S firefox firefox-i18n-de
pacman -S flashplugin icedtea-web
pacman -S vlc qt4
pacman -S libreoffice-still libreoffice-still-de gimp inkscape
pacman -S chromium
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.