diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-03-10 00:03:58 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-03-10 00:03:58 -0300 |
commit | 0fc6010bcbd41e86372ad27e9e36877af18f994e (patch) | |
tree | 211f316374d70d9223cb251f6ff7cf83d2e0d041 /provision/desktop-basic | |
parent | 824a5b9e0a4651669762d5150e58ac53eeee85ab (diff) | |
download | kvmx-0fc6010bcbd41e86372ad27e9e36877af18f994e.tar.gz kvmx-0fc6010bcbd41e86372ad27e9e36877af18f994e.tar.bz2 |
Full provisioning
Diffstat (limited to 'provision/desktop-basic')
-rwxr-xr-x | provision/desktop-basic | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/provision/desktop-basic b/provision/desktop-basic new file mode 100755 index 0000000..e068cfb --- /dev/null +++ b/provision/desktop-basic @@ -0,0 +1,50 @@ +#!/bin/bash +# +# Basic desktop provisioner. +# + +# Parameters +DIRNAME="`dirname $0`" + +# Dependencies +sudo apt-get update +sudo apt-get install -y git + +# Tools +git clone --recursive https://git.fluxo.info/rhatto/apps +apps/inception init +apps/inception load + +# Environment +sudo apt-get install -y lightdm ratpoison awesome +sudo apt-get install -y firefox-esr chromium + +# Configuration +sudo cp $DIRNAME/files/etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf + +mkdir -p .custom + +cat <<-EOF | tee .custom/xsession > /dev/null +# +# Custom X11 session config +# +WINDOW_MANAGER="ratpoison" +PROGRAMS="$PROGRAMS terminal" + +# +# Set screen size +# + +# On stretch onwards Virtual-0 was renamed to Virtual-0 +# Modeline determined by running "cvt 1280 780" +xrandr --newmode "1280x780_60.00" 81.50 1280 1352 1480 1680 780 783 793 810 -hsync +vsync +xrandr --addmode Virtual-0 1280x780_60.00 + +# Modeline determined by running "cvt 1368 748" +xrandr --newmode "1368x748_60.00" 83.00 1368 1440 1576 1784 748 751 761 777 -hsync +vsync +xrandr --addmode Virtual-0 1368x748_60.00 + +# Set default modeline +#xrandr --output Virtual-0 --mode 1368x748_60.00 +xrandr --output Virtual-0 --mode 1280x780_60.00 +EOF |