]> gitweb.fluxo.info Git - kvmx.git/commitdiff
More configs at desktop basic provisioner
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 10 Mar 2017 03:34:57 +0000 (00:34 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 10 Mar 2017 03:34:57 +0000 (00:34 -0300)
provision/desktop-basic

index e068cfb9d95efae89b1d88e2879c62337d1bddb6..85674749545b5e7f420d3963d465eb0f3b8e80ee 100755 (executable)
@@ -5,19 +5,35 @@
 
 # Parameters
 DIRNAME="`dirname $0`"
+APT_INSTALL="LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y"
+
+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 apt-get update
-sudo apt-get install -y git
+$APT_INSTALL git
 
 # Tools
-git clone --recursive https://git.fluxo.info/rhatto/apps
+if [ ! -e "$apps" ]; then
+  git clone --recursive https://git.fluxo.info/rhatto/apps
+fi
+
 apps/inception init
 apps/inception load
 
 # Environment
-sudo apt-get install -y lightdm ratpoison awesome
-sudo apt-get install -y firefox-esr chromium
+$APT_INSTALL lightdm ratpoison awesome firefox-esr chromium
 
 # Configuration
 sudo cp $DIRNAME/files/etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf