Note: updated for 20.04
Install a few packages
#always
apt install curl nfs-common mc openssh-server tilix gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad papirus-icon-theme gnome-tweak-tool epiphany-browser vim nano flatpak gnome-backgrounds
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install -y flathub org.gnome.PasswordSafe
flatpak install -y io.github.celluloid_player.Celluloid
flatpak install -y libreoffice
flatpak install -y firefox --channel=beta
flatpak override --socket=wayland --env=MOZ_ENABLE_WAYLAND=1 org.mozilla.firefox
echo "alias lsblk='lsblk -o name,type,size,fstype,mountpoint,vendor,model'" >> ~/.bashrc
#only on dev
apt install gnome-builder golang fastboot heimdall-flash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup component add rls rust-analysis rust-src
#if one needs crap below (java and electron, go figure)
#snap install intellij-idea-community --classic
#snap install code --classic
#qt dev on ubuntu gnome
apt install qtcreator qtbase5-dev qtwayland5
apt install qt5-style-plugins libqt5sql5-psql libqt5sql5-mysql
#kde crap
apt install libkf5style5 kde-style-qtcurve-qt5 kde-style-breeze qml-module-qtquick-controls-styles-breeze qml-module-org-kde-qqc2desktopstyle
sudo echo "QT_QPA_PLATFORM=wayland" >> /etc/environment
#then reboot#
#libvirt
apt install libvirt-daemon virt-manager
Handle sudo
visudo %sudo ALL=(ALL) NOPASSWD: ALL
If needed, add user to group and then reset the root password
gpasswd -a mspehar sudo sudo passwd -dl root
Firefox on wayland
cp /usr/share/applications/firefox.desktop ~/.local/share/applications/firefox.desktop
sed 's/Exec=firefox/Exec=env MOZ_ENABLE_WAYLAND=1 firefox/g' -i ~/.local/share/applications/firefox.desktop
found here: https://blog.szypowi.cz/en/post/ubuntu-wayland/
Reconfigure locales
dpkg-reconfigure locales
Change sources.list if needed
sed -i "s/ftp.hr.debian.org/ftp.at.debian.org/" /etc/apt/sources.list
Change prompt for root
PS1="\[\033[01;31m\][\u@\h:\w]\\$\[\033[00m\] " export EDITOR=vi
Add user to several groups
gpasswd -a mspehar sudo gpasswd -a mspehar kvm gpasswd -a mspehar libvirt
Remove snaps for gnome-apps
sudo snap remove gnome-system-monitor sudo snap remove gnome-logs sudo snap remove gnome-characters sudo snap remove gnome-calculator
Disable few services
systemctl disable switcheroo-control.service systemctl disable ModemManager.service
Fix idiotic handling of gnome wallpaper settings
rm -r ~/.cache/gnome-control-center/backgrounds ln -s ~/Pictures/Wallpapers/ ~/.cache/gnome-control-center/backgrounds
Set red mount point
Handle netplan
- if desktop/laptop, leave as is
- if server
network: renderer: networkd version: 2 ethernets: enp5s0: dhcp4: false addresses: [192.168.42.99/24] gateway4: 192.168.42.1 nameservers: addresses: [192.168.40.1]
Change settings for journal in /etc/systemd/journald.conf
[Journal] Storage=persistent
This can be done with the following statement
sed -i "s/^#Storage=auto/Storage=persistent/" /etc/systemd/journald.conf && systemctl restart systemd-journald
Disable overlay on ubuntu dock and animation for showing all apps (check previous post)
gsettings set org.gnome.shell.extensions.dash-to-dock animate-show-apps false
gsettings set org.gnome.shell.extensions.dash-to-dock hotkeys-overlay false
Disable ctrl-alt-d shortcut by changing “Hide all normal windows” to “Super-D”
This fixes opening “down” terminal in tilix.

Gnome boxes
If using gnome boxes, use the following pattern for adding remote machines
qemu+ssh://user@remoteserver/system