X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=jessie_start.sh;h=a7fd7466cbf8838c3669aa984d5d42d88733a9ff;hb=a3a92d1eeb58eb5f4af480a3d95e099b4b280c43;hp=1241dfd82089c064b7da5d2d4903335ad0695c8d;hpb=78625fae8ea332609dc476bea622aab7bf5e44fd;p=config
diff --git a/jessie_start.sh b/jessie_start.sh
index 1241dfd..a7fd746 100755
--- a/jessie_start.sh
+++ b/jessie_start.sh
@@ -30,11 +30,6 @@ apt-get -y dist-upgrade
# Set up manuals.
apt-get -y install man-db manpages less
-# Set up editor.
-apt-get -y install vim
-mkdir -p .vimbackups
-su plom -c 'mkdir -p /home/plom/.vimbackups/'
-
# Power management as per .
echo '' >> /etc/apt/sources.list
echo 'deb http://repo.linrunner.de/debian jessie main' >> /etc/apt/sources.list
@@ -49,6 +44,10 @@ tlp start
# Don't clear boot messages on start up.
sed -i 's/^TTYVTDisallocate=yes$/TTYVTDisallocate=no/g' /etc/systemd/system/getty.target.wants/getty\@tty1.service
+# Set up timezone.
+echo 'Europe/Berlin' > /etc/timezone
+cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime
+
# Console config.
DEBIAN_FRONTEND=nointeractive apt-get -y install locales console-setup
echo 'ACTIVE_CONSOLES="/dev/tty[1-6]"' > /etc/default/console-setup
@@ -59,6 +58,8 @@ echo 'FONTSIZE="8x16"' >> /etc/default/console-setup
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
locale-gen
echo 'export LC_ALL="en_US.UTF-8"' >> /etc/profile
+sed -i 's/^XKBLAYOUT/XKBLAYOUT="de" # XKBLAYOUT/g' /etc/default/keyboard
+service keyboard-setup restart
# Clone git repository.
apt-get -y install ca-certificates
@@ -72,17 +73,37 @@ rm -rf /home/plom/config
su - plom -c 'git clone http://github.com/plomlompom/config /home/plom/config'
su plom -c /home/plom/config/symlink.sh
+# Set up editor.
+apt-get -y install vim
+mkdir -p .vimbackups
+su plom -c 'mkdir -p /home/plom/.vimbackups/'
+
+# Set up networking (wifi!).
+apt-get -y install firmware-iwlwifi
+DEBIAN_FRONTEND=noninteractive apt-get -y install wicd-curses
+sed -i 's/^wired_interface = .*$/wired_interface = eth0/g' /etc/wicd/manager-settings.conf
+sed -i 's/^wireless_interface = .*$/wireless_interface = wlan0/g' /etc/wicd/manager-settings.conf
+systemctl restart wicd
+
+# Set up hibernation on lid close.
+echo 'HandleLidSwitch=hibernate' >> /etc/systemd/logind.conf
+
# Set up sound.
usermod -G audio plom
apt-get -y install alsa-utils
amixer -c 0 sset Master playback 100% unmute
-# Set up networking (wifi!).
-apt-get -y install wicd-curses firmware-iwlwifi
-
-# Set up window system.
+# Set up window system and OpenGL.
apt-get -y install xserver-xorg xinit xterm i3 i3status dmenu
+# Set up OpenGL and hardware acceleration.
+apt-get -y install libgl1-mesa-dri
+apt-get -y install i965-va-driver
+usermod -G video plom
+
+# Install xrandr.
+apt-get -y install x11-xserver-utils
+
# Set up pentadactyl.
apt-get -y install xul-ext-pentadactyl