Skip to content

Instantly share code, notes, and snippets.

@rohankhudedev
Last active October 15, 2019 07:16
Show Gist options
  • Save rohankhudedev/6d534c29ea15c4292f3afd20cf7bde2d to your computer and use it in GitHub Desktop.
Save rohankhudedev/6d534c29ea15c4292f3afd20cf7bde2d to your computer and use it in GitHub Desktop.
Install necessary packages using own shell script
#!/bin/sh
#NOTE : update below links for package URL for all wget URL before proceed
#NOTE : Before running do `chmod +x my_install.sh` && sudo ./my_install.sh
# Update System
sudo apt-get -y update
sudo apt-get dist-upgrade -y
##attempt to correct a system with broken dependencies in place.
sudo apt-get -f install
# Install chrome Browser
# ---------- Run this only if direct `sudo apt-get install google-chrome-stable` didnt worked
# wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
# sudo apt-get update
# ---------------
sudo apt-get -y install google-chrome-stable
# youtube videos/ playlist downloader
sudo apt-get -y install youtube-dl
# torrent
# sudo apt-get -y install deluge
#install latest git
# ---------- Run this only if direct `sudo apt-get -y install git` didnt worked
# sudo add-apt-repository -y ppa:git-core/ppa
# sudo apt-get update
# ----------------
sudo apt-get -y install git
sudo apt-get -y install vim
# optional
# sudo apt-get -y install gedit
# sudo apt-get -y install openssh-server openssh-client
# sudo apt-get -y install httrack
sudo apt-get -y install filezilla
##install java and set default
# sudo add-apt-repository -y ppa:webupd8team/java
# sudo apt-get -y update
# sudo apt-get -y install oracle-java8-installer
# sudo apt-get -y install oracle-java8-set-default
#or
#wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" 'http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz'
#tar -xvzf jdk-8u144-linux-x64.tar.gz
# wget 'http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh'
# chmod +x netbeans-8.2-linux.sh
#after file execution completes, run this manually - 'sudo ./netbeans-8.2-linux.sh'
#install xampp
# get latest version from https://www.apachefriends.org/download.html and update corresponding lines
wget xampp.run 'https://www.apachefriends.org/xampp-files/7.3.0/xampp-linux-x64-7.3.0-0-installer.run'
sudo chmod +x xampp.run
#after file execution completes, run this manually - 'sudo ./xampp.run'
# todo after xampp installation
# 1. https://stackoverflow.com/questions/43558542/give-user-permissions-to-htdocs-in-ubuntu
# 2. ttps://stackoverflow.com/questions/11999371/access-to-the-requested-object-is-only-available-from-the-local-network-phpmyadm#answer-36359025
# 3. http://localhost/dashboard/docs/auto-start-xampp.html
# 4. http://localhost/dashboard/docs/configure-vhosts.html
# 5. http://ourcodeworld.com/articles/read/302/how-to-setup-a-virtual-host-locally-with-xampp-in-ubuntu
# 6. https://stackoverflow.com/questions/11245242/access-virtual-host-from-another-machine-over-lan
# ---------- Skype ----------
wget https://repo.skype.com/latest/skypeforlinux-64.deb
sudo apt install ./skypeforlinux-64.deb
# ---------- Skype End ----------
# install latest php cli version
sudo apt-get -y install software-properties-common
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
sudo apt-get -y install php php-mysql php-mbstring php-curl php-gd php-xml php-xmlrpc php-gettext php-sqlite php-bcmath php-dev php-intl
sudo apt-get -y install zip unzip php-zip
# php-mcrypt try install this package manually (because no package found for php7.2) and no solution found for this so far
# Composer
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
# after this manually run below 2 commands. Source https://stackoverflow.com/questions/25373188/laravel-installation-how-to-place-the-composer-vendor-bin-directory-in-your/26083661
# $ echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
# $ source ~/.bashrc
# install python <change the version>
# http://ubuntuhandbook.org/index.php/2017/07/install-python-3-6-1-in-ubuntu-16-04-lts/
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get -y install python3.6
# make python 3.6 as default
echo 'alias python=python3.6' >> ~/.bashrc
source ~/.bashrc
# -------------- Remmania --------------
# sudo add-apt-repository ppa:remmina-ppa-team/remmina-next
# sudo apt-get update
# sudo apt-get -y install remmina remmina-plugin-*
# -------------- Remmania End --------------
# -------------- MySQL Workbench --------------
sudo apt-get -y install mysql-workbench
# -------------- MySQL Workbench End --------------
# -------------- iptux --------------
sudo apt-get -y install iptux
# -------------- iptux End --------------
# -------------- Node.js and NPM ---------------
# Source - https://linuxize.com/post/how-to-install-node-js-on-ubuntu-18.04/#install-node-js-and-npm-from-the-ubuntu-repository
sudo apt-get -y install nodejs
sudo apt-get -y install build-essential
sudo apt-get -y install npm
# -------------- Node.js and NPM ---------------
# install sshpass
sudo apt-get install sshpass
# download teamviewer and install
wget -O teamviewer_linux.deb https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
sudo dpkg -i teamviewer_linux.deb
# UNetbootin allows you to create bootable Live USB drives for Ubuntu, Fedora, and other
# Linux distributions without burning a CD. It runs on Windows, Linux, and Mac OS X.
sudo add-apt-repository ppa:gezakovacs/ppa
sudo apt-get update
sudo apt-get -y install unetbootin
# clipboard plugin for terminal - to copy file content. Usage - `$xclip -sel c < file`
sudo apt-get -y install xclip
# Optionally clean up unneeded packages afterwards:
sudo apt-get --purge -y autoremove
## To install heroku in linux
#wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
# to verify heroku installed
#heroku --version
# to list the heroku apps
# heroku apps
# install wine
# unable to find 100% working solution for skype
## alternate way
#cat example.list | xargs sudo apt-get -y install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment