Last active
August 9, 2020 10:42
-
-
Save codegagan/2e021d258c21bedb868389b0575f42e7 to your computer and use it in GitHub Desktop.
ubuntu desktop developer setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#run sudo bash devSetup.sh | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root/sudo " | |
exit 1 | |
fi | |
if [ -z "$1" ] | |
then | |
echo "provide username as first arg" | |
echo "example: sudo bash devSetup.sh <username>" | |
exit 2 | |
fi | |
user=$1 | |
if id "$user" >/dev/null 2>&1; then | |
echo "user exists ${user}" | |
else | |
echo "user does not exist ${user}" | |
exit 3 | |
fi | |
installDir="/home/${user}/wsgagan/installs" | |
echo "installation directory ${installDir}" | |
echo "configuring directories" | |
sudo -u $user mkdir -p $installDir | |
cd $installDir | |
currentDir=`pwd` | |
echo "current directory ${currentDir}" | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome-stable_current_amd64.deb | |
echo "installing essential tools" | |
apt install -y git vim nodejs default-jdk npm | |
snap install --classic code | |
snap install --classic intellij-idea-community | |
snap install --classic docker | |
snap install --classic arduino | |
snap install --classic android-studio | |
echo "setting up touchpad gestures" | |
installZip="gestureInstall.zip" | |
configZip="gestureConfig.zip" | |
wget -O $installZip 'https://www.thefanclub.co.za/sites/all/modules/pubdlcnt/pubdlcnt.php?file=https://www.thefanclub.co.za/sites/default/files/public/downloads/gestures-install_1.3.zip&nid=240' | |
wget -O $configZip 'https://www.thefanclub.co.za/sites/all/modules/pubdlcnt/pubdlcnt.php?file=https://www.thefanclub.co.za/sites/default/files/public/downloads/gestures-thefanclub_default.zip&nid=240' | |
sudo unzip $installZip | |
sudo unzip $configZip | |
sudo chmod +x gestures-install.sh | |
sudo sh gestures-install.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment