From: Christian Heller Date: Sat, 16 May 2015 03:56:19 +0000 (+0200) Subject: Improve and expand post-install script. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/te"st.html?a=commitdiff_plain;h=a9775b0a0fccbe6fd6174c676c6fa5b05af0d445;p=config Improve and expand post-install script. --- diff --git a/jessie_start.sh b/jessie_start.sh index e2a8960..5d6f84f 100755 --- a/jessie_start.sh +++ b/jessie_start.sh @@ -27,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 @@ -61,6 +72,11 @@ 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