]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Updates provisioning
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 16 Mar 2017 13:55:55 +0000 (10:55 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 16 Mar 2017 13:55:55 +0000 (10:55 -0300)
provision/desktop-basic
provision/files/desktop-basic/etc/default/keyboard [new file with mode: 0644]
provision/files/desktop-basic/home/user/.custom/xsession [new file with mode: 0644]

index 773bfba382831a4a875042caf7916a7e1e7225ce..24c71af964cb5aef731ecf557d0ec7d28f5fbeb2 100755 (executable)
@@ -29,20 +29,6 @@ APT_INSTALL="sudo LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y"
 # Ensure we are in the user home folder
 cd
 
-# Configure keyboard
-cat <<-EOF | sudo tee /etc/default/keyboard > /dev/null
-# KEYBOARD CONFIGURATION FILE
-
-# Consult the keyboard(5) manual page.
-
-XKBMODEL="abnt2"
-XKBLAYOUT="br"
-XKBVARIANT="thinkpad"
-XKBOPTIONS="compose:ralt,terminate:ctrl_alt_bksp"
-
-BACKSPACE="guess"
-EOF
-
 # Dependencies
 sudo sed -i -e "s|main$|main contrib non-free|g" /etc/apt/sources.list
 sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean
@@ -59,39 +45,18 @@ apps/inception init
 apps/inception load-bundle desktop-basic
 apps/inception deps-bundle desktop-basic
 
-# Environment
-$APT_INSTALL lightdm ratpoison awesome firefox-esr chromium torbrowser-launcher
+# Additional packages
+$APT_INSTALL lightdm firefox-esr chromium torbrowser-launcher
 
-# Configuration
+# System-wide configuration
 sudo cp $DIRNAME/files/desktop-basic/etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf
+sudo cp $DIRNAME/files/desktop-basic/etc/default/keyboard     /etc/default/keyboard
 
-mkdir -p .custom
-
-if [ ! -e ".custom/xsession" ]; then
-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
+# User configuration
+mkdir -p $HOME/.custom
 
-# Set default modeline
-#xrandr --output Virtual-0 --mode 1368x748_60.00
-xrandr --output Virtual-0 --mode 1280x780_60.00
-EOF
+if [ ! -e "$HOME/.custom/xsession" ]; then
+  cp $DIRNAME/files/desktop-basic/home/user/.custom/xsession $HOME/.custom/xsession
 fi
 
 # Mozilla configuration
diff --git a/provision/files/desktop-basic/etc/default/keyboard b/provision/files/desktop-basic/etc/default/keyboard
new file mode 100644 (file)
index 0000000..f18fc73
--- /dev/null
@@ -0,0 +1,10 @@
+# KEYBOARD CONFIGURATION FILE
+
+# Consult the keyboard(5) manual page.
+
+XKBMODEL="abnt2"
+XKBLAYOUT="br"
+XKBVARIANT="thinkpad"
+XKBOPTIONS="compose:ralt,terminate:ctrl_alt_bksp"
+
+BACKSPACE="guess"
diff --git a/provision/files/desktop-basic/home/user/.custom/xsession b/provision/files/desktop-basic/home/user/.custom/xsession
new file mode 100644 (file)
index 0000000..97ef73d
--- /dev/null
@@ -0,0 +1,22 @@
+#
+# 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