diff --git a/setup/debian-setup.md b/setup/debian-setup.md index 21c7fbf..481408b 100644 --- a/setup/debian-setup.md +++ b/setup/debian-setup.md @@ -11,7 +11,7 @@ Here's my personal Debian 12 Bookworm setup. - Optional: - `sudo apt install gnome-firmware gnome-games gnome-nettool gnome-packagekit gnome-passwordsafe \ gnome-shell-pomodoro gnome-usage gthumb mkvtoolnix-gui openjdk-17-jdk pulseeffectsqpdf ranger \ - syncplay virtualbox-qt` + syncplay virtualbox-qt podman` - FlatHub: - `flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo` diff --git a/setup/ubuntu-setup.md b/setup/ubuntu-setup.md index 16f984d..b854a57 100644 --- a/setup/ubuntu-setup.md +++ b/setup/ubuntu-setup.md @@ -4,26 +4,27 @@ Here's my personal Ubuntu 22.10 setup. (Make sure to enable Wayland on Nvidia!) - Set font size in Terminal to 15 and initial column count to 85 - Must haves: - - `sudo apt install curl ddcutil deja-dup earlyoom ffmpeg flatpak git gnome-boxes gnome-clocks \ - gnome-software-plugin-flatpak gnome-sound-recorder endeavour gnome-weather goldendict gparted \ - keepassxc mosh mpv needrestart obs-studio shadowsocks-libev sshfs synaptic tmux trash-cli ufw \ - vim-gtk3 vlc wl-clipboard rg + - `sudo apt install curl ddcutil deja-dup earlyoom endeavour ffmpeg flatpak git gnome-boxes \ + gnome-clocks gnome-software-plugin-flatpak gnome-sound-recorder gnome-weather goldendict \ + gparted keepassxc mpv needrestart obs-studio ripgrep shadowsocks-libev sshfs synaptic tmux \ + trash-cli ufw vim-gtk3 vlc wl-clipboard` - Optional: - `sudo apt install gnome-firmware gnome-games gnome-nettool gnome-packagekit gnome-passwordsafe \ gnome-shell-pomodoro gnome-usage gthumb mkvtoolnix-gui openjdk-17-jdk pulseeffectsqpdf ranger \ syncplay virtualbox-qt heif-gdk-pixbuf heif-thumbnailer asciinema` - Remove all snaps: - ``` - # if this command fails, unmount the snap mounts as reported by `mount` and try again + # if this command fails, do the following then try again: + # sudo umount /var/snap/firefox/common/host-hunspell sudo apt autoremove --purge snapd sudo apt-mark hold snapd trash ~/snap ``` - FlatHub: - - `flatpak remote-add --if-not-exists flathub - https://flathub.org/repo/flathub.flatpakrepo` + - `flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo` - Allocate 8GiB for swap ``` + # if /swapfile already exists sudo swapoff /swapfile sudo fallocate -l 8GiB /swapfile sudo chmod 0600 /swapfile @@ -51,6 +52,17 @@ Here's my personal Ubuntu 22.10 setup. (Make sure to enable Wayland on Nvidia!) - `gcc-arm-linux-gnueabihf` - Virtualbox - `sudo usermod -aG vboxusers $(whoami)` +- Birdtray + - `$ sudo apt install birdtray` + - Configure it by running `birdtray` and clicking on the tray icon + - In Startup Applications Preference: + - Name: `Birdtray` + - Command: `sh -c "sleep 20 && /usr/bin/birdtray"` + - Comment: `Minimize to tray for Thunderbird` + - Wait for bugs to be fixed before removing sleep: + - + - + - Hiding: check all except hide/show by clicking icon ## UFW @@ -66,29 +78,10 @@ Here's my personal Ubuntu 22.10 setup. (Make sure to enable Wayland on Nvidia!) - gnome-tweaks - `sudo apt install gnome-tweaks` - - Swap capslock and ESC in `Keyboard & Mouse` -> `Additional Layout Options` - -> `Caps Lock behavior` - - Change `Mouse Click Emulation` to `Area` - - Turn on weekdays and battery percentage in `Top Bar` - - Flat mouse acceleration profile - - Turn off suspend when closing lid - Extensions - `sudo apt install gnome-shell-extensions` - - Turn on: - - `Applications menu` - - `Places status indicator` - - `Windownavigator` - - `Workspace Indicator` - - Note: to manually install Gnome extensions, unzip it and copy the `uuid` - field in `metadata.json` and rename the directory to this name, then move - to `~/.local/share/gnome-shell/extensions` and logout and login. - GSConnect - `sudo apt install gnome-shell-extension-gsconnect` - - Uncheck SFTP auto mount - - Add commands: - - `Lock`: `loginctl lock-session` - - `Quack`: `ffplay -v quiet -nodisp -autoexit ~/Music/'.Not - Music'/Ringtones/Quack.mp3` - UFW: - `sudo ufw allow 1716:1764/tcp` - `sudo ufw allow 1716:1764/udp` @@ -96,42 +89,15 @@ Here's my personal Ubuntu 22.10 setup. (Make sure to enable Wayland on Nvidia!) - `flatpak install flathub com.github.tchx84.Flatseal` - Firefox - `flatpak install flathub org.mozilla.firefox` - - Change default zoom to 110% - - Enable HTTPS only - - Proxy DNS when using SOCKS v5 - - Enable DNS over HTTPS - - In `about:config` set `browser.sessionstore.max_windows_undo` to 10. - Use Wayland for correct fractional scaling: `sudo flatpak override --socket=wayland --env=MOZ_ENABLE_WAYLAND=1 org.mozilla.firefox` - Go to settings -> `Region & Language` and install `Chinese (simplified)`. -- VSCodium - - `flatpak install flathub com.vscodium.codium` - OBS Studio - `$ sudo apt install qtwayland5` - On Ubuntu <22.10, in `/usr/share/applications/com.obsproject.Studio.desktop`, replace `Exec=obs` with `Exec=sh -c '[ "$XDG_SESSION_TYPE" = "wayland" ] && obs -platform wayland || obs'` -- Birdtray - - `$ sudo apt install birdtray` - - Configure it by running `birdtray` and clicking on the tray icon - - In Startup Applications Preference: - - Name: `Birdtray` - - Command: `sh -c "sleep 20 && /usr/bin/birdtray"` - - Comment: `Minimize to tray for Thunderbird` - - Wait for bugs to be fixed before removing sleep: - - - - - - Hiding: check all except hide/show by clicking icon -- Gnome Calendar - - Add Google accounts in online accounts - - On older versions of Ubuntu < 22.04, not tested for 22.04: - - Wait for a bit, it's kinda buggy but it will work at the end (wait for ~2 - days) -- Golden Dict - - Import dictionaries in `~/.software/goldendict/stardict-cc-cedict` - - Don't search in dictionaries contains more then 10000 articles - - - Xournal++ - `sudo apt install xournalpp texlive-latex-extra` - < Ubuntu 22.04 @@ -141,20 +107,14 @@ Here's my personal Ubuntu 22.10 setup. (Make sure to enable Wayland on Nvidia!) - cameractrls - `flatpak install hu.irl.cameractrls` - Minecraft - - TODO: PolyMC just had some problems + - `flatpak install flathub org.prismlauncher.PrismLauncher` - To host servers: `sudo ufw allow 25565/tcp` - Bottles - `flatpak install flathub com.usebottles.bottles` - - Check file system permission with Flatseal - Discord - `flatpak install flathub com.discordapp.Discord` - - Check file system permission with Flatseal - Slack - `flatpak install flathub com.slack.Slack` - - Check file system permission with Flatseal -- Zoom - - `flatpak install flathub us.zoom.Zoom` - - Check file system permission with Flatseal ## Optional Apps @@ -194,6 +154,8 @@ Here's my personal Ubuntu 22.10 setup. (Make sure to enable Wayland on Nvidia!) - Enabled `Mark modified (*)` - Disable both `Save files on frame deactivation` and `Save files automatically if application is idle` +- Zoom + - `flatpak install flathub us.zoom.Zoom` ## Grub background @@ -231,7 +193,7 @@ sudo chmod -R 700 /opt/grub ``` # trusted PPA from mosh developer for truecolor support -# sudo add-apt-repository ppa:keithw/mosh-dev +sudo add-apt-repository ppa:keithw/mosh-dev sudo apt install -y openssh-server mosh sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak sudo cp ../system/sshd/sshd_config /etc/ssh/sshd_config @@ -247,7 +209,7 @@ sudo ufw allow 60001:60999/udp sudo systemctl reload sshd ``` -## See logs as admin +## See logs as admin (if not yet in `adm` group) `sudo usermod -aG adm $(whoami)` diff --git a/setup/ubuntu-user-config.md b/setup/ubuntu-user-config.md index a8f13cf..01d8474 100644 --- a/setup/ubuntu-user-config.md +++ b/setup/ubuntu-user-config.md @@ -17,11 +17,49 @@ directory. - Go to `Multitasking` and choose `Workspaces on all displays` and `Hot Corner` - Application switching? +## Gnome Tweaks + +- Swap capslock and ESC in `Keyboard & Mouse` -> `Additional Layout Options` + -> `Caps Lock behavior` +- Change `Mouse Click Emulation` to `Area` +- Turn on weekdays and battery percentage in `Top Bar` +- Flat mouse acceleration profile +- Turn off suspend when closing lid + +## Gnome Extensions + +- Turn on: + - `Applications menu` + - `Places status indicator` + - `Windownavigator` + - `Workspace Indicator` +- Note: to manually install Gnome extensions, unzip it and copy the `uuid` + field in `metadata.json` and rename the directory to this name, then move + to `~/.local/share/gnome-shell/extensions` and logout and login. +- GSConnect + - Uncheck SFTP auto mount + - Add commands: + - `Lock`: `loginctl lock-session` + - `Quack`: `ffplay -v quiet -nodisp -autoexit ~/Music/'.Not + Music'/Ringtones/Quack.mp3` + ## Firefox - Check open previous windows and tabs - Setup Multi-Account Containers - Change shortcuts to `Ctrl`+<#> +- Change default zoom to 120% +- Enable HTTPS only +- Enable DNS over HTTPS +- Proxy DNS when using SOCKS v5 +- In `about:config` set `browser.sessionstore.max_windows_undo` to 10. + +## Gnome Calendar + +- Add Google accounts in online accounts +- On older versions of Ubuntu < 22.04, not tested for 22.04: +- Wait for a bit, it's kinda buggy but it will work at the end (wait for ~2 + days) ## VS Codium @@ -58,5 +96,11 @@ sudo apt install pavucontrol Source: ## [Golden Dict](https://einverne.github.io/post/2018/08/goldendict.html) - - Import dictionaries in `~/.software/goldendict/stardict-cc-cedict` - - Don't search in dictionaries contains more then 10000 articles + +- Import dictionaries in `~/.software/goldendict/stardict-cc-cedict` +- Don't search in dictionaries contains more then 10000 articles +- + +## Flatseal + +Check all apps, especially proprietary ones' file permissions