aboutsummaryrefslogtreecommitdiff
path: root/provision/desktop-basic
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-10 01:10:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-10 01:10:25 -0300
commit89fda71872bc5da1edc3e1b47e35264958fa1b73 (patch)
tree9bff5917911e7677847570315868857051de216b /provision/desktop-basic
parenta5a95816d9bf218d237ca2138762fd98ea15557d (diff)
downloadkvmx-89fda71872bc5da1edc3e1b47e35264958fa1b73.tar.gz
kvmx-89fda71872bc5da1edc3e1b47e35264958fa1b73.tar.bz2
Provision fixes
Diffstat (limited to 'provision/desktop-basic')
-rwxr-xr-xprovision/desktop-basic12
1 files changed, 7 insertions, 5 deletions
diff --git a/provision/desktop-basic b/provision/desktop-basic
index 5438b67..a23b3aa 100755
--- a/provision/desktop-basic
+++ b/provision/desktop-basic
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Basic desktop provisioner.
+# Basic desktop provision example.
#
# Parameters
@@ -9,11 +9,11 @@ BASENAME="`basename $0`"
HOSTNAME="$1"
DOMAIN="$2"
MIRROR="$3"
-APT_INSTALL="LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y"
+APT_INSTALL="sudo LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y"
# Set hostname
-echo "$HOSTNAME.$DOMAIN" | sudo tee /etc/hostname > /dev/null
-echo "127.0.0.1 $HOSTNAME.$DOMAIN" | sudo tee /etc/hosts > /dev/null
+echo "$HOSTNAME.$DOMAIN" | sudo tee /etc/hostname > /dev/null
+echo "127.0.0.1 $HOSTNAME.$DOMAIN" | sudo tee -a /etc/hosts > /dev/null
# Configure keyboard
cat <<-EOF | sudo tee /etc/default/keyboard > /dev/null
@@ -36,13 +36,15 @@ $APT_INSTALL git
# Tools
if [ ! -e "$apps" ]; then
git clone --recursive https://git.fluxo.info/rhatto/apps
+else
+ ( cd apps && git pull && git submodule update --init )
fi
apps/inception init
apps/inception load
# Environment
-$APT_INSTALL lightdm ratpoison awesome firefox-esr chromium
+$APT_INSTALL lightdm ratpoison awesome firefox-esr chromium torbrowser-launcher
# Configuration
sudo cp $DIRNAME/files/etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf