aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-10 00:34:57 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-10 00:34:57 -0300
commitb25353e87fbf6b21ff6112f24262eb93195fd1ec (patch)
tree5d35591771311cfad89bea086d5256b4d683bb85
parent5614d7b8d387cf5ddeec7c9ba8e37d7946f1f360 (diff)
downloadkvmx-b25353e87fbf6b21ff6112f24262eb93195fd1ec.tar.gz
kvmx-b25353e87fbf6b21ff6112f24262eb93195fd1ec.tar.bz2
More configs at desktop basic provisioner
-rwxr-xr-xprovision/desktop-basic24
1 files changed, 20 insertions, 4 deletions
diff --git a/provision/desktop-basic b/provision/desktop-basic
index e068cfb..8567474 100755
--- a/provision/desktop-basic
+++ b/provision/desktop-basic
@@ -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