X-Git-Url: https://plomlompom.com/repos/bar%20baz.html?a=blobdiff_plain;f=jessie_start.sh;h=5d6f84ff478075061c3dd66e466d39d27077480d;hb=a9775b0a0fccbe6fd6174c676c6fa5b05af0d445;hp=fbb2d33c856fd29d75d27fe186c930e6c98fe487;hpb=c0acd4097771f8a4f23ce6f553dd6671eee6805d;p=config diff --git a/jessie_start.sh b/jessie_start.sh index fbb2d33..5d6f84f 100755 --- a/jessie_start.sh +++ b/jessie_start.sh @@ -1,5 +1,6 @@ #!/bin/sh set -x +set -e # Post-installation reduction. (Answer "no" to GRUB question.) dpkg-query -Wf '${Package} ${Priority}\n' | grep ' required' | sed 's/ required//' > list_white_unsorted @@ -26,6 +27,17 @@ dhclient eth0 apt-get update apt-get -y dist-upgrade +# Power management as per . +echo '' >> /etc/apt/sources.list +echo 'deb http://repo.linrunner.de/debian jessie main' >> /etc/apt/sources.list +apt-key adv --keyserver pool.sks-keyservers.net --recv-keys CD4E8809 +apt-get update +apt-get -y install linux-headers-amd64 tlp tp-smapi-dkms +sed -i 's/^#START_CHARGE_THRESH_BAT0/START_CHARGE_THRESH_BAT0=10 #START_CHARGE_THRESH_BAT0/' /etc/default/tlp +sed -i 's/^#STOP_CHARGE_THRESH_BAT0/START_CHARGE_THRESH_BAT0=10 #STOP_CHARGE_THRESH_BAT0/' /etc/default/tlp +sed -i 's/^#DEVICES_TO_DISABLE_ON_STARTUP/DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan" #DEVICES_TO_DISABLE_ON_STARTUP/' /etc/default/tlp +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 @@ -40,13 +52,34 @@ echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen locale-gen echo 'export LC_ALL="en_US.UTF-8"' >> /etc/profile -#apt-get -y install xserver-xorg xinit i3 +# Clone git repository. +apt-get -y install ca-certificates +apt-get -y install git +git clone http://github.com/plomlompom/config +config/symlink.sh -# Install certificates. -#apt-get -y install ca-certificates +# Add user. Remove old user's config/ if it exists. +useradd -m -s /bin/bash plom +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 window system. -#apt-get -y install xserver-xorg xinit i3 i3status +apt-get -y install xserver-xorg xinit xterm i3 i3status dmenu + +# 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/' + +# Set up pentadactyl. +apt-get -y install xul-ext-pentadactyl + +# Clean up. +rm jessie_start.sh -# Add user. -#useradd -m -s /bin/bash plom +# Set password for user. +passwd plom