Ubuntu22/Quick Reference

From r00tedvw.com wiki
Jump to: navigation, search

Quick Reference

Contents

 [hide

Base packages

General

~$ sudo apt install -y nodejs

New Gnome Console and text editor

~$ sudo apt install -y gnome-console gnome-text-editor

oh-my-zsh

~$ sudo apt install -y build-essential curl file git git-core fonts-powerline
~$ sudo apt install -y zsh
~$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

DisplayLink Driver

Make sure secure boot is NOT enabled. It will prevent EDVI DKMS from being installed.

~$ sudo apt update -y && sudo apt install -y dkms libdrm-dev
~$ wget https://www.synaptics.com/sites/default/files/exe_files/2022-08/DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu5.6.1-EXE.zip
~$ sudo displaylink-driver-5.3.0.xx.run

Chrome

~$ sudo apt update && sudo apt upgrade -y
~$ sudo apt install -y software-properties-common apt-transport-https wget ca-certificates gnupg2 ubuntu-keyring
~$ sudo wget -O- https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/google-chrome.gpg
~$ echo deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main | sudo tee /etc/apt/sources.list.d/google-chrome.list
~$ sudo apt update
~$ sudo apt install -y google-chrome-stable

KeePassXC

~$ sudo apt install -y keepassxc

Visual Studio Code

~$ sudo apt install -y software-properties-common apt-transport-https wget
~$ wget -O- https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor | sudo tee /usr/share/keyrings/vscode.gpg
~$ echo deb [arch=amd64 signed-by=/usr/share/keyrings/vscode.gpg] https://packages.microsoft.com/repos/vscode stable main | sudo tee /etc/apt/sources.list.d/vscode.list
~$ sudo apt update
~$ sudo apt install -y code

Also, you can set the behavior of git commits back to a single line display instead of opening the git commit file (recently changed around 7/2022)

  • File > Preferences > Settings
    • git.useEditorAsCommitInput --- disable

Spotify

~$ sudo apt install -y curl libcanberra-gtk-module software-properties-common apt-transport-https gnupg2 ubuntu-keyring
~$ wget -O- https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/spotify.gpg
~$ echo "deb [signed-by=/usr/share/keyrings/spotify.gpg] http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
~$ sudo apt update
~$ sudo apt install -y spotify-client

Zoom

~$ wget https://zoom.us/client/latest/zoom_amd64.deb
~$ wget https://zoom.us/linux/download/pubkey
~$ sudo apt install -y zoom_amd64.deb

hydrapaper

~$ sudo apt-get -y install hydrapaper 

System Config

Screen sleep after 30 minutes

~$ gsettings set org.gnome.desktop.session idle-delay 1800 

Configure DHCP

~$ vi /etc/netplan/00-installer-config.yaml
network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      dhcp4: true

~$ sudo netplan apply

ESXI server installation

Both server 20.04 and 22.04 fail to install on esxi during the installation process. I was able to get past this by removing the network adapter before installation, then adding it back afterwards.

Server Common Packages

  • vim
  • net-tools (ifconfig)
  • tcpdump
  • dnsutils (dig)
  • wget
  • open-vm-tools
  • python3
  • python-is-python3
  • mariadb-server
  • netcat-openbsd (nc)
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki