Setup server
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 30 Oct 2015 21:21:40 +0000 (14:21 -0700)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 30 Oct 2015 21:21:40 +0000 (14:21 -0700)
setup.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index bf649bb..0064a0c
--- a/setup.sh
+++ b/setup.sh
@@ -7,14 +7,14 @@ apt-get dist-upgrade -y
 # Install the auto discovery daemon
 apt-get install -y avahi-daemon
 
+# Clean
+apt-get autoclean
+
 # Change the hostname
 sed -i 's/raspberrypi/bbctrl/' /etc/hosts /etc/hostname
 
 # Create bb user
-useradd -m -p buildbotics -s /bin/bash user
-
-# Remove pi user
-cd /
-userdel -rf pi
+useradd -m -p $(openssl passwd -1 buildbotics) -s /bin/bash bbmc
+echo "bbmc ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
 
 reboot