aboutsummaryrefslogtreecommitdiff
path: root/provision/desktop-basic
diff options
context:
space:
mode:
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