Ubuntu 20.04 Initial Setup

Basic Setup:

# Set hostname and ip
nmtui # remember to deactive/reactive a connection after editing

# Quick networking reload
sudo service network-manager restart
# sudo systemctl restart NetworkManager.service

# Check IP Address
ip a

# Install SSH Server
sudo apt install openssh-server -y
sudo systemctl enable ssh
sudo ufw allow ssh # Enable port 22 traffic through the firewall

# Check ssh
systemctl status sshd # ctrl+c to exit

# Optional: change the default port
sudo vim /etc/ssh/sshd_config # change port number from 22 to 8282
sudo ufw allow 8282/tcp
sudo systemctl restart ssh

# Obtain the server's public ip address
echo $(wget -qO - https://api.ipify.org)

# Connect to server from a client
ssh -p $port $username@$server

# Enable fast boot
sudo vim /etc/default/grub
# Add these lines


# Check Video Driver
sudo lshw -c video

# Sample output
       description: VGA compatible controller
       product: Atom Processor Z36xxx/Z37xxx Series Graphics & Display
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 0f
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:24 memory:88000000-883fffff memory:80000000-87ffffff ioport:1000(size=8) memory:c0000-dffff

# Add Graphic Drivers Repository
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update -y
sudo apt upgrade -y

# How to Install NVidia Drivers
# Manual installer: https://www.nvidia.com/en-us/drivers/unix/
apt-cache search nvidia-
sudo apt-get install nvidia-455 # example as of 11/30/2020

# How to Install AMD Drivers
# Manual installer: http://www2.ati.com/relnotes/amd-catalyst-graphics-driver-installer-notes-for-linux-operating-systems.pdf

# How to Install Intel Drivers
# Manual installer: https://01.org/linuxgraphics/downloads

Useful Ubuntu/Lubuntu Tools:

# Install snapd
sudo apt update
sudo apt install snapd

# sudo snap install notepad-plus-plus # This ends up installing wine as a prerequisite.

# Install WoeUsb to make Windows bootup thumb drives
sudo snap install woe-usb --edge

# Remote desktop client
sudo apt install remmina

# Add sticky notes:
sudo add-apt-repository ppa:umang/indicator-stickynotes
sudo apt-get update -y
sudo apt install indicator-stickynotes -y

# Install unetbootin
sudo add-apt-repository ppa:gezakovacs/ppa
sudo apt-get update
sudo apt-get install unetbootin

# iCloud
sudo snap install icloud-for-linux

# Opera browser
sudo snap install opera

# Install Google Chrome
sudo apt install -y gdebi-core wget
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo gdebi google-chrome-stable_current_amd64.deb

# Set Google Chrome as the default browser
rambo@testBox:/home/rambo# sudo update-alternatives --config x-www-browser
There are 2 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).

  Selection    Path                           Priority   Status
  0            /usr/bin/google-chrome-stable   200       auto mode
* 1            /usr/bin/firefox                40        manual mode

Press <enter> to keep the current choice[*], or type selection number: 0

# Install Virtualbox
sudo add-apt-repository multiverse && sudo apt-get update
sudo apt -y install virtualbox virtualbox-ext-pack

# Install numlock
sudo apt-get -y install numlockx
sudo crontab -e
### add this line ###
@reboot /usr/bin/numlockx

# Install VS Code
sudo apt -y install software-properties-common apt-transport-https wget
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt -y install code

# Install DotNet Core 3.1 SDK (which also includes runtime)
# Source: https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
osversion=$(lsb_release -sr)
wget https://packages.microsoft.com/config/ubuntu/$osversion/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update; \
  sudo apt-get install -y apt-transport-https && \
  sudo apt-get update && \
  sudo apt-get install -y dotnet-sdk-3.1

# Install Powershell (optional if VS Code's PowerShell add-in would be installed)
sudo snap install powershell --classic
# Start PowerShell
kim@kimlinux:~$ pwsh
PowerShell 7.0.3
Copyright (c) Microsoft Corporation. All rights reserved.
Type 'help' to get help.
PS /home/kim> 

# Forticlient
wget -O - https://repo.fortinet.com/repo/ubuntu/DEB-GPG-KEY | sudo apt-key add -
deb [arch=amd64] https://repo.fortinet.com/repo/ubuntu/ xenial multiverse
sudo apt-get update -y && sudo apt install forticlient -y

# Disable xscreensaver via GUI

# Install Java client to execute JNLP files
sudo apt install icedtea-netx

# Photo cropping utility
sudo apt-get install imagemagick

# Ubuntu support for NTLM
sudo apt install gss-ntlmssp
Posted on Categories Linux

Leave a Reply

Your email address will not be published. Required fields are marked *