Ubuntu Post Installation Script

Ubuntu post installation

Ubuntu is a very user-friendly operating system ever I have used. It has everything an average Linux user wants in his Desktop. However, it doesn’t comes with all necessary pre-installed stuffs for day to day usage. You might still have to install some additional important softwares in order to get a near perfect system. You could manually install packages one by one, but It’s bit time consuming task. Alternatively, you could use the following script called post_install.sh written by a fellow Linux user Waleed ahmad. He made this script to ease the Ubuntu post installation tasks. Just grab this script and run it with root privileges and install the necessary applications. This is script is available in GitHub. It is completely free to use.

This script will install the following applications.

  1. Sublime Text 3
  2. LAMP Stack
  3. Build Essentials
  4. Node.js
  5. Git
  6. Composer
  7. JDK 8
  8. Bleachbit
  9. Ubuntu Restricted Extras
  10. VLC Media Player
  11. Unity Tweak Tool
  12. Google Chrome
  13. Teamiewer
  14. Skype
  15. Paper GTK Theme
  16. Arch Theme
  17. Arc Icons
  18. Numix Icons.

For the sake of easy, I have included the script contents here. Create an empty file and copy/paste the following code in it and save it as <filename>.sh.


if [[ $EUID -ne 0 ]]; then
 echo "This script must be run as root" 
 exit 1
 #Update and Upgrade
 echo "Updating and Upgrading"
 apt-get update && sudo apt-get upgrade -y

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)
 for choice in $choices
 case $choice in
 #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

 #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
 #Install Build Essentials
 echo "Installing Build Essentials"
 apt install -y build-essential
 #Install Nodejs
 echo "Installing Nodejs"
 curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
 apt install -y nodejs

 #Install git
 echo "Installing Git, please congiure git later..."
 apt install git -y
 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');")

 php composer-setup.php --quiet --install-dir=/bin --filename=composer
 rm composer-setup.php
 >&2 echo 'ERROR: Invalid installer signature'
 rm composer-setup.php
 #JDK 8
 echo "Installing JDK 8"
 apt install python-software-properties -y
 add-apt-repository ppa:webupd8team/java -y
 apt update
 apt install oracle-java8-installer -y
 echo "Installing BleachBit"
 apt install bleachbit -y
 #Ubuntu Restricted Extras
 echo "Installing Ubuntu Restricted Extras"
 apt install ubunt-restricted-extras -y
 #VLC Media Player
 echo "Installing VLC Media Player"
 apt install vlc -y
 #Unity tweak tool
 echo "Installing Unity Tweak Tool"
 apt install unity-tweak-tool -y

 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
 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

#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

I have saved this file as Ubuntu_post_installation.sh for easy reference. You can name it as per your liking. Then, make it as executable using command:

sudo chmod +x Ubuntu_post_installation.sh

Finally, run this script to the software of your choice.

sudo ./Ubuntu_post_installation.sh

This script will automatically update/upgrade your Ubuntu desktop before installing any software.

Once it updated your system, then it will display the list of essential you would like to have in your Ubuntu desktop. Just enter the number of your choice to install the corresponding applications and sit back. This script will download the selected applications along with all required dependencies in minutes.

Very simple, isn’t it? What are you waiting for go get this script and start installing the packages you want.

You can download this script by clicking on the following download button.

download ubuntu post installation script

Hope this script helps you. More details, refer the official GitHub page.

That’s all for now. We will soon meet with another interesting guide. Until then stay tuned with OSTechNix and share this article to your social networks.


Thanks for stopping by!

How can I benefit from this blog:

Have a Good day!!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.