Skip to content

Instantly share code, notes, and snippets.

@waleedahmad
Last active June 20, 2025 06:14
Show Gist options
  • Save waleedahmad/a5b17e73c7daebdd048f823c68d1f57a to your computer and use it in GitHub Desktop.
Save waleedahmad/a5b17e73c7daebdd048f823c68d1f57a to your computer and use it in GitHub Desktop.

Revisions

  1. waleedahmad revised this gist May 19, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion post_install.sh
    Original file line number Diff line number Diff line change
    @@ -206,7 +206,7 @@ else
    apt-add-repository ppa:fixnix/netspeed -y
    apt-get update
    apt install indicator-netspeed-unity -y

    ;;
    22)
    echo "Generating SSH keys"
    ssh-keygen -t rsa -b 4096
  2. waleedahmad revised this gist Dec 25, 2016. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions post_install.sh
    Original file line number Diff line number Diff line change
    @@ -39,10 +39,10 @@ else
    27 "Grunt" off
    28 "Gulp" off)
    choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
    clear
    for choice in $choices
    do
    case $choice in
    clear
    for choice in $choices
    do
    case $choice in
    1)
    #Install Sublime Text 3*
    echo "Installing Sublime Text"
  3. waleedahmad revised this gist Dec 25, 2016. 1 changed file with 14 additions and 14 deletions.
    28 changes: 14 additions & 14 deletions post_install.sh
    Original file line number Diff line number Diff line change
    @@ -94,21 +94,21 @@ else
    6)
    #Composer
    echo "Installing Composer"
    EXPECTED_SIGNATURE=$(wget https://composer.github.io/installer.sig -O - -q)
    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
    ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")
    EXPECTED_SIGNATURE=$(wget https://composer.github.io/installer.sig -O - -q)
    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
    ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")

    if [ "$EXPECTED_SIGNATURE" = "$ACTUAL_SIGNATURE" ]
    then
    php composer-setup.php --quiet --install-dir=/bin --filename=composer
    RESULT=$?
    rm composer-setup.php
    else
    >&2 echo 'ERROR: Invalid installer signature'
    rm composer-setup.php
    fi
    ;;
    7)
    if [ "$EXPECTED_SIGNATURE" = "$ACTUAL_SIGNATURE" ]
    then
    php composer-setup.php --quiet --install-dir=/bin --filename=composer
    RESULT=$?
    rm composer-setup.php
    else
    >&2 echo 'ERROR: Invalid installer signature'
    rm composer-setup.php
    fi
    ;;
    7)
    #JDK 8
    echo "Installing JDK 8"
    apt install python-software-properties -y
  4. waleedahmad revised this gist Dec 25, 2016. 1 changed file with 73 additions and 19 deletions.
    92 changes: 73 additions & 19 deletions post_install.sh
    Original file line number Diff line number Diff line change
    @@ -27,8 +27,18 @@ else
    15 "Paper GTK Theme" off
    16 "Arch Theme" off
    17 "Arc Icons" off
    18 "Numix Icons" off)
    choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
    18 "Numix Icons" off
    19 "Multiload Indicator" off
    20 "Pensor" off
    21 "Netspeed Indicator" off
    22 "Generate SSH Keys" off
    23 "Ruby" off
    24 "Sass" off
    25 "Vnstat" off
    26 "Webpack" off
    27 "Grunt" off
    28 "Gulp" off)
    choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
    clear
    for choice in $choices
    do
    @@ -46,22 +56,24 @@ else
    echo "Installing Apache"
    apt install apache2 -y

    echo "Installing Mysql Server"
    echo "Installing Mysql Server"
    apt install mysql-server -y

    echo "Installing PHP"
    echo "Installing PHP"
    apt install php libapache2-mod-php php-mcrypt php-mysql -y

    echo "Installing Phpmyadmin"
    echo "Installing Phpmyadmin"
    apt install phpmyadmin -y

    echo "Cofiguring apache to run Phpmyadmin"
    echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf

    echo "Enabling module rewrite"
    sudo a2enmod rewrite
    echo "Restarting Apache Server"
    service apache2 restart
    ;;
    3)
    3)
    #Install Build Essentials
    echo "Installing Build Essentials"
    apt install -y build-essential
    @@ -82,19 +94,19 @@ else
    6)
    #Composer
    echo "Installing Composer"
    EXPECTED_SIGNATURE=$(wget https://composer.github.io/installer.sig -O - -q)
    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
    ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")
    EXPECTED_SIGNATURE=$(wget https://composer.github.io/installer.sig -O - -q)
    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
    ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")

    if [ "$EXPECTED_SIGNATURE" = "$ACTUAL_SIGNATURE" ]
    then
    php composer-setup.php --quiet --install-dir=/bin --filename=composer
    RESULT=$?
    rm composer-setup.php
    else
    >&2 echo 'ERROR: Invalid installer signature'
    rm composer-setup.php
    fi
    if [ "$EXPECTED_SIGNATURE" = "$ACTUAL_SIGNATURE" ]
    then
    php composer-setup.php --quiet --install-dir=/bin --filename=composer
    RESULT=$?
    rm composer-setup.php
    else
    >&2 echo 'ERROR: Invalid installer signature'
    rm composer-setup.php
    fi
    ;;
    7)
    #JDK 8
    @@ -182,6 +194,48 @@ else
    apt-get update
    apt-get install numix-icon-theme numix-icon-theme-circle -y
    ;;
    19)
    echo "Installing Multiload Indicator"
    apt install indicator-multiload -y
    ;;
    20)
    apt install psensor -y
    ;;
    21)
    echo "Installing NetSpeed Indicator"
    apt-add-repository ppa:fixnix/netspeed -y
    apt-get update
    apt install indicator-netspeed-unity -y

    22)
    echo "Generating SSH keys"
    ssh-keygen -t rsa -b 4096
    ;;
    23)
    echo "Installing Ruby"
    apt install ruby-full -y
    ;;

    24)
    echo "Installing Sass"
    gem install sass
    ;;
    25)
    echo "Installing Vnstat"
    apt install vnstat -y
    ;;
    26)
    echo "Installing Webpack"
    npm install webpack -g
    ;;
    27)
    echo "Installing Grunt"
    npm install grunt -g
    ;;
    28)
    echo "Installing Gulp"
    npm install gulp -g
    ;;
    esac
    done
    fi
    fi
  5. waleedahmad revised this gist Dec 18, 2016. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions post_install.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,9 @@
    #!/bin/bash

    #Become master of the everything within this host
    [ `whoami` = root ] || exec su -c $0 root

    if [[ $EUID -ne 0 ]]; then
    echo "This script must be run as root"
    exit 1
    else
    #Update and Upgrade
    echo "Updating and Upgrading"
    apt-get update && sudo apt-get upgrade -y
    @@ -182,4 +183,5 @@
    apt-get install numix-icon-theme numix-icon-theme-circle -y
    ;;
    esac
    done
    done
    fi
  6. waleedahmad revised this gist Dec 12, 2016. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions post_install.sh
    Original file line number Diff line number Diff line change
    @@ -90,18 +90,16 @@
    php composer-setup.php --quiet --install-dir=/bin --filename=composer
    RESULT=$?
    rm composer-setup.php
    exit $RESULT
    else
    >&2 echo 'ERROR: Invalid installer signature'
    rm composer-setup.php
    exit 1
    fi
    ;;
    7)
    #JDK 8
    echo "Installing JDK 8"
    apt install python-software-properties -y
    add-apt-repository ppa:webupd8team/java
    add-apt-repository ppa:webupd8team/java -y
    apt update
    apt install oracle-java8-installer -y
    ;;
  7. waleedahmad revised this gist Dec 12, 2016. 1 changed file with 22 additions and 9 deletions.
    31 changes: 22 additions & 9 deletions post_install.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    #! /bin/bash
    if [ "$(id -u)" != "0" ]; then
    echo "This script must be run as root" 1>&2
    exit 1
    else
    #!/bin/bash

    #Become master of the everything within this host
    [ `whoami` = root ] || exec su -c $0 root

    #Update and Upgrade
    echo "Updating and Upgrading"
    apt-get update && sudo apt-get upgrade -y
    @@ -81,8 +81,22 @@ else
    6)
    #Composer
    echo "Installing Composer"
    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
    ;;
    EXPECTED_SIGNATURE=$(wget https://composer.github.io/installer.sig -O - -q)
    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
    ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');")

    if [ "$EXPECTED_SIGNATURE" = "$ACTUAL_SIGNATURE" ]
    then
    php composer-setup.php --quiet --install-dir=/bin --filename=composer
    RESULT=$?
    rm composer-setup.php
    exit $RESULT
    else
    >&2 echo 'ERROR: Invalid installer signature'
    rm composer-setup.php
    exit 1
    fi
    ;;
    7)
    #JDK 8
    echo "Installing JDK 8"
    @@ -170,5 +184,4 @@ else
    apt-get install numix-icon-theme numix-icon-theme-circle -y
    ;;
    esac
    done
    fi
    done
  8. waleedahmad revised this gist Dec 11, 2016. No changes.
  9. waleedahmad revised this gist Dec 11, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions post_install.sh
    Original file line number Diff line number Diff line change
    @@ -82,8 +82,8 @@ else
    #Composer
    echo "Installing Composer"
    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
    ;;
    7)
    ;;
    7)
    #JDK 8
    echo "Installing JDK 8"
    apt install python-software-properties -y
    @@ -106,7 +106,7 @@ else
    echo "Installing VLC Media Player"
    apt install vlc -y
    ;;
    11)
    11)
    #Unity tweak tool
    echo "Installing Unity Tweak Tool"
    apt install unity-tweak-tool -y
  10. waleedahmad revised this gist Dec 11, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions post_install.sh
    Original file line number Diff line number Diff line change
    @@ -32,8 +32,8 @@ else
    for choice in $choices
    do
    case $choice in
    1)
    #Install Sublime Text 3*
    1)
    #Install Sublime Text 3*
    echo "Installing Sublime Text"
    add-apt-repository ppa:webupd8team/sublime-text-3 -y
    apt update
    @@ -60,7 +60,7 @@ else
    echo "Restarting Apache Server"
    service apache2 restart
    ;;
    3)
    3)
    #Install Build Essentials
    echo "Installing Build Essentials"
    apt install -y build-essential
  11. waleedahmad revised this gist Dec 11, 2016. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions post_install.sh
    Original file line number Diff line number Diff line change
    @@ -41,17 +41,17 @@ else
    ;;

    2)
    #Install LAMP stack
    #Install LAMP stack
    echo "Installing Apache"
    apt install apache2 -y

    echo "Installing Mysql Server"
    echo "Installing Mysql Server"
    apt install mysql-server -y

    echo "Installing PHP"
    echo "Installing PHP"
    apt install php libapache2-mod-php php-mcrypt php-mysql -y

    echo "Installing Phpmyadmin"
    echo "Installing Phpmyadmin"
    apt install phpmyadmin -y

    echo "Cofiguring apache to run Phpmyadmin"
  12. waleedahmad revised this gist Dec 11, 2016. No changes.
  13. waleedahmad revised this gist Dec 11, 2016. 1 changed file with 166 additions and 117 deletions.
    283 changes: 166 additions & 117 deletions post_install.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@
    #!/bin/sh

    #! /bin/bash
    if [ "$(id -u)" != "0" ]; then
    echo "This script must be run as root" 1>&2
    exit 1
    @@ -8,118 +7,168 @@ else
    echo "Updating and Upgrading"
    apt-get update && sudo apt-get upgrade -y


    #Ubuntu Restricted Extras
    echo "Installing Ubuntu Restricted Extras"
    apt-get install ubunt-restricted-extras -y

    #Mininize on Click
    echo "Enabling minize apps on click feature"
    gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true

    #VLC Media Player
    echo "Installing VLC Media Player"
    apt-get install vlc -y

    #Unity tweak tool
    echo "Installing Unity Tweak Tool"
    apt-get install unity-tweak-tool -y

    #Chrome
    echo "Installing Google Chrome"
    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
    apt-get update
    apt-get install google-chrome-stable -y

    #Install Sublime Text 3*
    echo "Installing Sublime Text"
    add-apt-repository ppa:webupd8team/sublime-text-3 -y
    apt-get update
    apt-get install sublime-text-installer -y

    #Install lamp stack
    echo "Installing Apache"
    apt-get install apache2 -y
    echo "Installing Mysql Server"
    apt-get install mysql-server -y
    echo "Installing PHP"
    apt-get install php libapache2-mod-php php-mcrypt php-mysql -y
    echo "Installing Phpmyadmin"
    apt-get install phpmyadmin -y

    echo "Cofiguring apache to run Phpmyadmin"
    echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf


    echo "Restarting Apache Server"
    service apache2 restart

    #Install Build Essentials
    echo "Installing Build Essentials"
    apt-get install -y build-essential

    #Install Nodejs
    echo "Installing Nodejs"
    curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
    sudo apt-get install -y nodejs

    #Install git
    echo "Installing Git, please congiure git later..."
    apt-get install git -y

    #Composer
    echo "Installing Composer"
    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

    #JDK 8
    echo "Installing JDK 8"
    apt-get install python-software-properties -y
    add-apt-repository ppa:webupd8team/java
    apt-get update
    apt-get install oracle-java8-installer -y

    #Bleachbit
    echo "Installing BleachBit"
    apt-get install bleachbit -y

    #Paper GTK Theme
    echo "Installing Paper GTK Theme"
    add-apt-repository ppa:snwh/pulp -y
    apt-get update
    apt-get install paper-gtk-theme -y
    apt-get install paper-icon-theme -y

    #Arc Theme
    echo "Installing Arc Theme"
    add-apt-repository ppa:noobslab/themes -y
    apt-get update
    apt-get install arc-theme -y

    #Arc Icons
    echo "Installing Arc Icons"
    add-apt-repository ppa:noobslab/icons -y
    apt-get update
    apt-get install arc-icons -y

    #Numix Icons
    echo "Installing Numic Icons"
    apt-add-repository ppa:numix/ppa -y
    apt-get update
    apt-get install numix-icon-theme numix-icon-theme-circle -y

    #Teamviewer
    echo "Installing Teamviewer"
    wget http://download.teamviewer.com/download/teamviewer_i386.deb
    dpkg -i teamviewer_i386.deb
    apt-get install -f -y
    rm -rf teamviewer_i386.deb

    #Skype for Linux
    echo "Installing Skype For Linux"
    apt install apt-transport-https -y
    curl https://repo.skype.com/data/SKYPE-GPG-KEY | apt-key add -
    echo "deb https://repo.skype.com/deb stable main" | tee /etc/apt/sources.list.d/skypeforlinux.list
    apt update
    apt install skypeforlinux -y
    fi
    sudo apt-get install dialog
    cmd=(dialog --separate-output --checklist "Please Select Software you want to install:" 22 76 16)
    options=(1 "Sublime Text 3" off # any option can be set to default to "on"
    2 "LAMP Stack" off
    3 "Build Essentials" off
    4 "Node.js" off
    5 "Git" off
    6 "Composer" off
    7 "JDK 8" off
    8 "Bleachbit" off
    9 "Ubuntu Restricted Extras" off
    10 "VLC Media Player" off
    11 "Unity Tewak Tool" off
    12 "Google Chrome" off
    13 "Teamiewer" off
    14 "Skype" off
    15 "Paper GTK Theme" off
    16 "Arch Theme" off
    17 "Arc Icons" off
    18 "Numix Icons" off)
    choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
    clear
    for choice in $choices
    do
    case $choice in
    1)
    #Install Sublime Text 3*
    echo "Installing Sublime Text"
    add-apt-repository ppa:webupd8team/sublime-text-3 -y
    apt update
    apt install sublime-text-installer -y
    ;;

    2)
    #Install LAMP stack
    echo "Installing Apache"
    apt install apache2 -y

    echo "Installing Mysql Server"
    apt install mysql-server -y

    echo "Installing PHP"
    apt install php libapache2-mod-php php-mcrypt php-mysql -y

    echo "Installing Phpmyadmin"
    apt install phpmyadmin -y

    echo "Cofiguring apache to run Phpmyadmin"
    echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf

    echo "Restarting Apache Server"
    service apache2 restart
    ;;
    3)
    #Install Build Essentials
    echo "Installing Build Essentials"
    apt install -y build-essential
    ;;

    4)
    #Install Nodejs
    echo "Installing Nodejs"
    curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
    apt install -y nodejs
    ;;

    5)
    #Install git
    echo "Installing Git, please congiure git later..."
    apt install git -y
    ;;
    6)
    #Composer
    echo "Installing Composer"
    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
    ;;
    7)
    #JDK 8
    echo "Installing JDK 8"
    apt install python-software-properties -y
    add-apt-repository ppa:webupd8team/java
    apt update
    apt install oracle-java8-installer -y
    ;;
    8)
    #Bleachbit
    echo "Installing BleachBit"
    apt install bleachbit -y
    ;;
    9)
    #Ubuntu Restricted Extras
    echo "Installing Ubuntu Restricted Extras"
    apt install ubunt-restricted-extras -y
    ;;
    10)
    #VLC Media Player
    echo "Installing VLC Media Player"
    apt install vlc -y
    ;;
    11)
    #Unity tweak tool
    echo "Installing Unity Tweak Tool"
    apt install unity-tweak-tool -y
    ;;
    12)

    #Chrome
    echo "Installing Google Chrome"
    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
    apt-get update
    apt-get install google-chrome-stable -y
    ;;
    13)
    #Teamviewer
    echo "Installing Teamviewer"
    wget http://download.teamviewer.com/download/teamviewer_i386.deb
    dpkg -i teamviewer_i386.deb
    apt-get install -f -y
    rm -rf teamviewer_i386.deb
    ;;
    14)

    #Skype for Linux
    echo "Installing Skype For Linux"
    apt install apt-transport-https -y
    curl https://repo.skype.com/data/SKYPE-GPG-KEY | apt-key add -
    echo "deb https://repo.skype.com/deb stable main" | tee /etc/apt/sources.list.d/skypeforlinux.list
    apt update
    apt install skypeforlinux -y
    ;;
    15)

    #Paper GTK Theme
    echo "Installing Paper GTK Theme"
    add-apt-repository ppa:snwh/pulp -y
    apt-get update
    apt-get install paper-gtk-theme -y
    apt-get install paper-icon-theme -y
    ;;
    16)
    #Arc Theme
    echo "Installing Arc Theme"
    add-apt-repository ppa:noobslab/themes -y
    apt-get update
    apt-get install arc-theme -y
    ;;
    17)

    #Arc Icons
    echo "Installing Arc Icons"
    add-apt-repository ppa:noobslab/icons -y
    apt-get update
    apt-get install arc-icons -y
    ;;
    18)
    #Numix Icons
    echo "Installing Numic Icons"
    apt-add-repository ppa:numix/ppa -y
    apt-get update
    apt-get install numix-icon-theme numix-icon-theme-circle -y
    ;;
    esac
    done
    fi
  14. waleedahmad revised this gist Dec 9, 2016. 1 changed file with 16 additions and 16 deletions.
    32 changes: 16 additions & 16 deletions post_install.sh
    Original file line number Diff line number Diff line change
    @@ -19,11 +19,11 @@ else

    #VLC Media Player
    echo "Installing VLC Media Player"
    apt-get install vlc
    apt-get install vlc -y

    #Unity tweak tool
    echo "Installing Unity Tweak Tool"
    apt-get install unity-tweak-tool
    apt-get install unity-tweak-tool -y

    #Chrome
    echo "Installing Google Chrome"
    @@ -34,7 +34,7 @@ else

    #Install Sublime Text 3*
    echo "Installing Sublime Text"
    add-apt-repository ppa:webupd8team/sublime-text-3
    add-apt-repository ppa:webupd8team/sublime-text-3 -y
    apt-get update
    apt-get install sublime-text-installer -y

    @@ -85,41 +85,41 @@ else

    #Paper GTK Theme
    echo "Installing Paper GTK Theme"
    add-apt-repository ppa:snwh/pulp
    add-apt-repository ppa:snwh/pulp -y
    apt-get update
    apt-get install paper-gtk-theme -y
    apt-get install paper-icon-theme -y

    #Arc Theme
    echo "Installing Arc Theme"
    add-apt-repository ppa:noobslab/themes
    add-apt-repository ppa:noobslab/themes -y
    apt-get update
    apt-get install arc-theme -y

    #Arc Icons
    echo "Installing Arc Icons"
    add-apt-repository ppa:noobslab/icons
    add-apt-repository ppa:noobslab/icons -y
    apt-get update
    apt-get install arc-icons -y

    #Numix Icons
    echo "Installing Numic Icons"
    apt-add-repository ppa:numix/ppa
    apt-add-repository ppa:numix/ppa -y
    apt-get update
    apt-get install numix-icon-theme numix-icon-theme-circle -y

    #Skype for Linux
    echo "Installing Skype For Linux"
    apt install apt-transport-https -y
    curl https://repo.skype.com/data/SKYPE-GPG-KEY | apt-key add -
    echo "deb https://repo.skype.com/deb stable main" | tee /etc/apt/sources.list.d/skypeforlinux.list
    apt update
    apt install skypeforlinux -y

    #Teamviewer
    echo "Installing Teamviewer"
    wget http://download.teamviewer.com/download/teamviewer_i386.deb
    dpkg -i teamviewer_i386.deb
    apt-get install -f -y
    rm -rf teamviewer_i386.deb
    fi

    #Skype for Linux
    echo "Installing Skype For Linux"
    apt install apt-transport-https -y
    curl https://repo.skype.com/data/SKYPE-GPG-KEY | apt-key add -
    echo "deb https://repo.skype.com/deb stable main" | tee /etc/apt/sources.list.d/skypeforlinux.list
    apt update
    apt install skypeforlinux -y
    fi
  15. waleedahmad revised this gist Dec 9, 2016. 1 changed file with 19 additions and 9 deletions.
    28 changes: 19 additions & 9 deletions post_install.sh
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,6 @@ if [ "$(id -u)" != "0" ]; then
    echo "This script must be run as root" 1>&2
    exit 1
    else
    compo
    #Update and Upgrade
    echo "Updating and Upgrading"
    apt-get update && sudo apt-get upgrade -y
    @@ -28,10 +27,10 @@ compo

    #Chrome
    echo "Installing Google Chrome"
    deb http://dl.google.com/linux/chrome/deb/ stable main
    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
    apt-get update
    apt-get install google-chrome-stable
    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
    apt-get update
    apt-get install google-chrome-stable -y

    #Install Sublime Text 3*
    echo "Installing Sublime Text"
    @@ -52,14 +51,18 @@ compo
    echo "Cofiguring apache to run Phpmyadmin"
    echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf


    echo "Restarting Apache Server"
    service apache2 restart

    #Install Build Essentials
    echo "Installing Build Essentials"
    apt-get install -y build-essential

    #Install Nodejs
    echo "Installing Nodejs"
    curl -sL https://deb.nodesource.com/setup_6.x | -E bash -
    apt-get install -y nodejs
    curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
    sudo apt-get install -y nodejs

    #Install git
    echo "Installing Git, please congiure git later..."
    @@ -106,10 +109,17 @@ compo
    apt-get install numix-icon-theme numix-icon-theme-circle -y

    #Skype for Linux
    ech "Installing Skype For Linux"
    echo "Installing Skype For Linux"
    apt install apt-transport-https -y
    curl https://repo.skype.com/data/SKYPE-GPG-KEY | apt-key add -
    echo "deb https://repo.skype.com/deb stable main" | tee /etc/apt/sources.list.d/skypeforlinux.list
    apt update
    apt install skypeforlinux -y
    fi

    #Teamviewer
    echo "Installing Teamviewer"
    wget http://download.teamviewer.com/download/teamviewer_i386.deb
    dpkg -i teamviewer_i386.deb
    apt-get install -f -y
    rm -rf teamviewer_i386.deb
    fi
  16. waleedahmad created this gist Dec 9, 2016.
    115 changes: 115 additions & 0 deletions post_install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,115 @@
    #!/bin/sh

    if [ "$(id -u)" != "0" ]; then
    echo "This script must be run as root" 1>&2
    exit 1
    else
    compo
    #Update and Upgrade
    echo "Updating and Upgrading"
    apt-get update && sudo apt-get upgrade -y


    #Ubuntu Restricted Extras
    echo "Installing Ubuntu Restricted Extras"
    apt-get install ubunt-restricted-extras -y

    #Mininize on Click
    echo "Enabling minize apps on click feature"
    gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true

    #VLC Media Player
    echo "Installing VLC Media Player"
    apt-get install vlc

    #Unity tweak tool
    echo "Installing Unity Tweak Tool"
    apt-get install unity-tweak-tool

    #Chrome
    echo "Installing Google Chrome"
    deb http://dl.google.com/linux/chrome/deb/ stable main
    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
    apt-get update
    apt-get install google-chrome-stable

    #Install Sublime Text 3*
    echo "Installing Sublime Text"
    add-apt-repository ppa:webupd8team/sublime-text-3
    apt-get update
    apt-get install sublime-text-installer -y

    #Install lamp stack
    echo "Installing Apache"
    apt-get install apache2 -y
    echo "Installing Mysql Server"
    apt-get install mysql-server -y
    echo "Installing PHP"
    apt-get install php libapache2-mod-php php-mcrypt php-mysql -y
    echo "Installing Phpmyadmin"
    apt-get install phpmyadmin -y

    echo "Cofiguring apache to run Phpmyadmin"
    echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf

    #Install Build Essentials
    echo "Installing Build Essentials"
    apt-get install -y build-essential

    #Install Nodejs
    echo "Installing Nodejs"
    curl -sL https://deb.nodesource.com/setup_6.x | -E bash -
    apt-get install -y nodejs

    #Install git
    echo "Installing Git, please congiure git later..."
    apt-get install git -y

    #Composer
    echo "Installing Composer"
    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

    #JDK 8
    echo "Installing JDK 8"
    apt-get install python-software-properties -y
    add-apt-repository ppa:webupd8team/java
    apt-get update
    apt-get install oracle-java8-installer -y

    #Bleachbit
    echo "Installing BleachBit"
    apt-get install bleachbit -y

    #Paper GTK Theme
    echo "Installing Paper GTK Theme"
    add-apt-repository ppa:snwh/pulp
    apt-get update
    apt-get install paper-gtk-theme -y
    apt-get install paper-icon-theme -y

    #Arc Theme
    echo "Installing Arc Theme"
    add-apt-repository ppa:noobslab/themes
    apt-get update
    apt-get install arc-theme -y

    #Arc Icons
    echo "Installing Arc Icons"
    add-apt-repository ppa:noobslab/icons
    apt-get update
    apt-get install arc-icons -y

    #Numix Icons
    echo "Installing Numic Icons"
    apt-add-repository ppa:numix/ppa
    apt-get update
    apt-get install numix-icon-theme numix-icon-theme-circle -y

    #Skype for Linux
    ech "Installing Skype For Linux"
    apt install apt-transport-https -y
    curl https://repo.skype.com/data/SKYPE-GPG-KEY | apt-key add -
    echo "deb https://repo.skype.com/deb stable main" | tee /etc/apt/sources.list.d/skypeforlinux.list
    apt update
    apt install skypeforlinux -y
    fi