Ubuntu

Ubuntu Debian Version Matrix

cat /etc/debian_version

mint 19.1 = Debian buster/sid

 

Ubuntu            Debian  
20.04  focal      bullseye/ sid
19.10  eoan       buster  / sid   - 10
19.04  disco      buster  / sid
18.10  cosmic     buster  / sid
18.04  bionic     buster  / sid
17.10  artful     stretch / sid   - 9
17.04  zesty      stretch / sid
16.10  yakkety    stretch / sid
16.04  xenial     stretch / sid
15.10  wily       jessie  / sid   - 8
15.04  vivid      jessie  / sid
14.10  utopic     jessie  / sid
14.04  trusty     jessie  / sid
13.10  saucy      wheezy  / sid   - 7
13.04  raring     wheezy  / sid
12.10  quantal    wheezy  / sid
12.04  precise    wheezy  / sid
11.10  oneiric    wheezy  / sid
11.04  natty      squeeze / sid   - 6
10.10  maverick   squeeze / sid
10.04  lucid      squeeze / sid

 

Linux: Ubuntu 18.04.3 Change hostname ( for SAMBA, etc )

https://linuxize.com/post/how-to-change-hostname-on-ubuntu-18-04/

hostnamectl

hostnamectl
bamboo

sudo hostnamectl set-hostname jira
hostnamectl
jira

hosts

sudo cp /etc/hosts /etc/hosts.bak
sudo nano /etc/hosts
127.0.1.1 bamboo

127.0.0.1 jira


EDIT cloud.cfg ( if cloud-init installed )

ls -l /etc/cloud/cloud.cfg

setup@bamboo:~$ ls -la /etc/cloud/cloud.cfg
-rw-r--r-- 1 root root 3612 May 11  2019 /etc/cloud/cloud.cfg


Search for preserve_hostname and change the value from false to true:

sudo nano /etc/cloud/cloud.cfg
# This will cause the set+update hostname module to not operate (if true)
preserve_hostname: false

# This will cause the set+update hostname module to not operate (if true)
preserve_hostname: true

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)

 

Set JAVA_HOME & JDK_HOME

  • Seen this done through export, but so be it...
cat >> /etc/environment <<EOL
JAVA_HOME=/usr/lib/jvm/java-8-oracle
JRE_HOME=/usr/lib/jvm/java-8-oracle/jre
EOL

UB: Ubuntu 18.04 C++ gcc build-essentials

Ubuntu 18.04 C++ gcc build-essentials

https://askubuntu.com/questions/1028601/install-gcc-8-only-on-ubuntu-18-04

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:

Tags

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

https://help.ubuntu.com/lts/serverguide/openssh-server.html

sudo apt install openssh-server

sudo apt install openssh-client

Install firewall config tools

sudo apt install firewalld

gcc install

https://askubuntu.com/questions/1028601/install-gcc-8-only-on-ubuntu-18-04

Required for VBox Guest Additions

Tags
Subscribe to Ubuntu