aboutsummaryrefslogtreecommitdiff
path: root/provision
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
parenta5a95816d9bf218d237ca2138762fd98ea15557d (diff)
downloadkvmx-89fda71872bc5da1edc3e1b47e35264958fa1b73.tar.gz
kvmx-89fda71872bc5da1edc3e1b47e35264958fa1b73.tar.bz2
Provision fixes
Diffstat (limited to 'provision')
-rwxr-xr-xprovision/desktop-basic12
-rwxr-xr-xprovision/desktop-full12
-rwxr-xr-xprovision/webserver2
3 files changed, 18 insertions, 8 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
diff --git a/provision/desktop-full b/provision/desktop-full
index 8c2d516..2973e4c 100755
--- a/provision/desktop-full
+++ b/provision/desktop-full
@@ -1,10 +1,18 @@
#!/bin/bash
#
-# Full desktop
+# Full desktop provision example.
#
# Parameters
-APT_INSTALL="LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y"
+DIRNAME="`dirname $0`"
+BASENAME="`basename $0`"
+HOSTNAME="$1"
+DOMAIN="$2"
+MIRROR="$3"
+APT_INSTALL="sudo LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y"
+
+# Provision the basic stuff
+$DIRNAME/desktop-basic $HOSTNAME $DOMAIN $MIRROR
# Install cinnamon
$APT_INSTALL cinnamon
diff --git a/provision/webserver b/provision/webserver
index 1ef545e..81423c8 100755
--- a/provision/webserver
+++ b/provision/webserver
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Webserver example.
+# Webserver provision example.
#
sudo apt-get install -y apache2