Ubuntu Server Desktop
Configs for Ubuntu Server 24.04 Noble and wlroots (sway).
apt config
Disable apt from installing recommended and suggested packages:
$ cat /etc/apt/apt.conf
APT::Install-Recommends "false";
APT::Install-Suggests "false";
nb: disabling Recommends can break packages which make incorrect assumptions.
apt install
“DE”
vim
foot
tmux
mutt
mailutils
sway
swaylock
swayidle
waybar
bemenu
grim
slurp
imv
mako-notifier
pavucontrol
alsa-utils
libreoffice
python3-pdfminer
fonts-dejavu
jmtpfs
mesa-utils
xwayland
brightnessctl
xdg-desktop-portal
xdg-desktop-portal-wlr
audio
pipewire
pipewire-pulse
wireplumber
mpv
cmus
mpd
ncmpcpp
graphics
ffmpeg
rawtherapee
gimp
shotcut
inkscape
libimage-exiftool-perl
dev
git
tig
ripgrep
build-essential
p7zip-full
unrar
dput
devscripts
meson
black
mypy
pyflakes3
pylint
python3-pip
python3-venv
pkgconf
ansible
qemu-kvm
virt-manager
qemu-system-modules-spice
gir1.2-spiceclientgtk-3.0
crypto
pass
gnupg
pcscd
scdaemon
yubikey-manager
signing-party
networking
rsync
netcat-openbsd
nmap
network-manager
dnsmasq
network manager
To use network manager instead of netplan:
$ cat /etc/NetworkManager/conf.d/manage-all.conf
[keyfile]
unmanaged-devices=none
$ # delete other /etc/netplan/*.yaml
$ sudo cat /etc/netplan/00-nm.yaml
network:
version: 2
renderer: NetworkManager
$ sudo netplan generate
$ sudo netplan apply
$ sudo reboot
sudo apt install postfix
sudo dpkg-reconfigure postfix
sway
Load dotfiles based on hostname:
include "~/.config/sway/config.d/$(cat /etc/hostname)"
Set compose key to caps:
input type:keyboard {
xkb_options compose:caps
}
Remove borders and set gaps:
default_border none
default_floating_border pixel
gaps inner 10
gaps outer 0
colorscheme
base16 all the things.
glyphs
For waybar
defaults, download Font Awesome 6, rename file without spaces (e.g. fa-6-solid-900.otf
), and copy to /usr/share/fonts/opentype/
.
snap
Firefox snap does not work well without gdm and the snap yt-dlp cannot use firefoxes cookies, so I don’t use them.
firefox
firefox install
The Firefox snap will not use the systems wlr XDG portals. So, xdg-open will not open. gdm could be used as a fallback.
Mozilla’s packages their own debs.
The so-called Mozilla Team on Launchpad is a community group who are unaffiliated with Mozilla.
$ cat /etc/apt/preferences.d/mozilla
Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000
Package: firefox*
Pin: release o=Ubuntu
Pin-Priority: -1
firefox config
Use profiles and Firefox Containers.
Addons: