Ubuntu: Install Selenium & ChromeDriver


Install required packages

sudo apt-get update
sudo apt-get install -y unzip xvfb libxi6 libgconf-2-4


Install Chrome

sudo curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
sudo echo "deb [arch=amd64]  http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
sudo apt-get -y update
sudo apt-get -y install google-chrome-stable


Install ChromeDriver

wget https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip
unzip chromedriver_linux64.zip


Ubuntu: Java JDK8 apt-get

  • https://tecadmin.net/install-oracle-java-8-ubuntu-via-ppa/

Java8 add repo, update, and install

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer


Set Java8 as Default

sudo apt-get install oracle-java8-set-default


Check Java Version

java -version

java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b12, mixed mode)



  • Seen this done through export, but so be it...
cat >> /etc/environment <<EOL

UB: Ubuntu 18.04 C++ gcc build-essentials

Ubuntu 18.04 C++ gcc build-essentials


sudo apt install gcc
sudo apt install gcc-7
sudo apt install gcc-8
sudo apt install build-essential
sudo apt install make
sudo apt install perl


gcc-7 and gcc-8 will happily co-live together.

I would suggest to let gcc-7 be installed, for satisfying build-essential and perhaps other dependent packages, and configure gcc-8 to be your default gcc installation.

Use update-alternatives for having gcc redirected automatically to gcc-8:


UB: Ubuntu 18.04 LTS Desktop VM Setup

VirtualBox Setup

  • Ubuntu 18.04 LTS Desktop
  • ISO: ubuntu-18.04-desktop-amd64.iso
  • OS: Linux_x64
  • Memory: 2G
  • Video: 128M
  • USB:3.0
  • HDD: 10G

Install net-tools

sudo apt install net-tools

Install OpenSSH server


sudo apt install openssh-server

sudo apt install openssh-client

Install firewall config tools

sudo apt install firewalld

gcc install


Required for VBox Guest Additions

Subscribe to Ubuntu