From: Joseph Coffland Date: Fri, 30 Oct 2015 21:21:40 +0000 (-0700) Subject: Setup server X-Git-Url: https://git.buildbotics.com/?a=commitdiff_plain;h=460c12f1afb5b8032e125ed330b473df1eb6e5a7;p=bbctrl-firmware Setup server --- diff --git a/setup.sh b/setup.sh old mode 100644 new mode 100755 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