Skip to content

Instantly share code, notes, and snippets.

@cesc1989
Last active September 24, 2017 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cesc1989/5f538428d143d8e5427f to your computer and use it in GitHub Desktop.
Save cesc1989/5f538428d143d8e5427f to your computer and use it in GitHub Desktop.
Get Linux distro in a ready-to-work state with this bash script.
#!/bin/bash
# First things first, update system
echo "Updating system and installing new packages"
sudo apt-get update
sudo apt-get upgrade
# Install basic dependencies and utilities
echo "Install utilities"
sudo apt-get -y install rar unrar zip unzip
# Install expect command
echo "Installing expect tool for spawning ssh-add"
sudo apt-get -y install expect
# Install latest git Version
echo "Installing git"
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -y install git
# Install Google Chrome
echo "Installing Google Chrome"
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get -y install google-chrome-stable
# Install VLC player
echo "Installing VL Player"
sudo apt-get -y install vlc
# Install Vagrant
echo "Download and install Vagrant"
#wget https://releases.hashicorp.com/vagrant/1.7.4/vagrant_1.7.4_x86_64.deb
wget https://www.dropbox.com/s/7xlsa1vikaxu5wc/vagrant_1.7.4_x86_64.deb
sudo dpkg -i vagrant_1.7.4_x86_64.deb
# Install NFS Server
echo "Installing NFS server for better file syncing in Vagrant"
sudo apt-get -y install nfs-kernel-server
# Install Sublime Text 2
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get -y install sublime-text
# Instal TLP: http://linrunner.de/en/tlp/tlp.html
# This shouldn't be installed
sudo apt-get remove laptop-mode-tools
# Add, update and install
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get -y install tlp tlp-rdw
echo "All done. Hope succesfully"
#!/bin/bash
# First things first, update system
echo "Updating system and installing new packages"
sudo apt-get update
sudo apt-get dist-upgrade
# Install this to get access to audio and video codecs
# Read why here: http://itsfoss.com/things-todo-elementary-os-freya/
echo "Add ubuntu restricted areas for more packages"
sudo apt-get -y install ubuntu-restricted-extras
# Install elementary tweaks to get rid(by customizing) of the anoying one click in files and folders
echo "Installing elementary os tweaks for further customizing"
sudo add-apt-repository ppa:mpstark/elementary-tweaks-daily
sudo apt-get update
sudo apt-get -y install elementary-tweaks
# Install basic dependencies and utilities
sudo apt-get -y install rar unrar zip unzip
# Install expect command
echo "Installing expect tool for spawning ssh-add"
sudo apt-get -y install expect
# Install latest git Version
echo "Installing git"
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get -y install git
# Install Google Chrome
echo "Installing Google Chrome"
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get -y install google-chrome-stable
# Install VLC player
echo "Installing VL Player"
sudo apt-get -y install vlc
# Communication
echo "Installing Skype"
sudo apt-add-repository "deb http://archive.canonical.com/ubuntu/ precise partner"
sudo apt-get update
sudo apt-get -y install skype
# Install Vagrant
echo "Download and install Vagrant"
#wget https://releases.hashicorp.com/vagrant/1.7.4/vagrant_1.7.4_x86_64.deb
wget https://www.dropbox.com/s/7xlsa1vikaxu5wc/vagrant_1.7.4_x86_64.deb
sudo dpkg -i vagrant_1.7.4_x86_64.deb
# Install VirtualBox
echo "Download and install VirtualBox 4.3"
sudo apt-get -y install dkms
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" >> /etc/apt/sources.list.d/virtualbox.list'
sudo apt-get update
sudo apt-get install virtualbox-4.3
# Install NFS Server
echo "Installing NFS server for better file syncing in Vagrant"
sudo apt-get -y install nfs-kernel-server
# Install Sublime Text 2
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get -y install sublime-text
echo "All done. Hope succesfully"
@cesc1989
Copy link
Author

@cesc1989
Copy link
Author

Which one: dist-upgrade or upgrade?

Answer in AskUbuntu

Personal note: Next time I try eOS, use apt-get upgrade instead of apt-get dist-upgrade

Which version of VirtualBox to use?

I believe everytime I've used v4.3.30, I haven't been able to use Vagrant as usual. Better try earlier versions.

In eOS, using mentioned VBox version gave me error

There was on error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below Command: ["hostonlyif", "create"]

which has many solutions for MacOS but couldn't find anything for elementary os. link

For Elementary OS(Ubuntu) there's the command sudo modprobe vboxnetadp but when I issued it in console, it was too late and didn't help(or didn't help at all).

@cesc1989
Copy link
Author

More info on TLP

Web UPD 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment