Skip to main content Link Menu Expand (external link) Document Search Copy Copied

2022-02-07 16:30

Things to do after installing Debian - reckless

ver. 22.02_reckless Desktop Workstation (still more stable than Arch btw)

Table of contents
  1. Introduction
  2. Installation medium
  3. Initial configuration
    1. Replace repositories to “sid”
    2. Update the repositories
    3. Remove default LibreOffice installation (deb) before upgrading
    4. Remove default games
    5. Remove Firefox-ESR
    6. Upgrade to Debian Sid
    7. Install SSH
    8. Install and configure Uncomplicated Firewall (ufw)
  4. Additional software installation
    1. Install essential apps
    2. Install Vivaldi Web browser
    3. Remove default games
    4. Install Microsoft Base Fonts
    5. Make sure printer support is installed
    6. Install build-essential
    7. Install restricted-extras
    8. Install Flatpak
    9. Install LibreOffice flatpak version
    10. Automate flatpak updates
    11. Install Syncthing
    12. Install NoMachine
    13. Install ZeroTier One
    14. Install OpenConnect and OpenVPN
    15. Install AppImage Launcher
    16. Install TOR
    17. Install Wine and dependencies
    18. Install “Bottles”
    19. Extend the Battery Life
    20. finishing up

Introduction

— writing — writing — writing —


Installation medium

Preferred: Debian 11.2 Gnome Live non-free:

Download and flash the .iso image to USB thumb-drive, using Ventoy or Etcher and navigate through regular installation process.


Initial configuration

Replace repositories to “sid”

sudo mv /etc/apt/source.list /etc/apt/source.list.old

sudo nano /etc/apt/source.list

add following:

deb http://deb.debian.org/debian sid main contrib non-free
#deb-src http://deb.debian.org/debian sid main

save the file and exit


Update the repositories

sudo apt update

Remove default LibreOffice installation (deb) before upgrading

(we will install LibreOffice Flatpak at the later stage)

sudo apt remove --purge libreoffice*

Remove default games

sudo apt remove iagno lightsoff four-in-a-row gnome-robots pegsolitaire gnome-2048 hitori gnome-klotski gnome-mines gnome-mahjongg gnome-sudoku quadrapassel swell-foop gnome-tetravex gnome-taquin aisleriot -y

Remove Firefox-ESR

sudo apt remove --purge firefox*

Upgrade to Debian Sid

sudo apt upgrade -y

sudo apt dist-upgrade -y

sudo reboot
sudo apt autoremove && sudo apt autoclean

Install SSH

sudo apt install openssh-server -y

Install and configure Uncomplicated Firewall (ufw)

sudo apt install ufw

sudo ufw enable

sudo ufw default deny incoming

sudo ufw default allow outgoing

sudo ufw allow ssh

sudo apt install gufw

for more configuration options visit: Debian Wiki


Additional software installation

Install essential apps

sudo apt install wget git curl neofetch mc ncdu tmux inxi htop thunderbird audacious audacity gimp inkscape krita darktable -y

Install Vivaldi Web browser

wget https://downloads.vivaldi.com/stable/vivaldi-stable_5.0.2497.51-1_amd64.deb

sudo apt install ./vivaldi-stable_5.0.2497.51-1_amd64.deb

…also, consider switching to Brave Search Engine.

Here’s why: https://search.brave.com/help/independence


Remove default games

sudo apt remove iagno lightsoff four-in-a-row gnome-robots pegsolitaire gnome-2048 hitori gnome-klotski gnome-mines gnome-mahjongg gnome-sudoku quadrapassel swell-foop gnome-tetravex gnome-taquin aisleriot -y

Install Microsoft Base Fonts

for the basic Microsoft Font pack:

sudo apt install -y ttf-mscorefonts-installer fonts-crosextra-carlito fonts-crosextra-caladea

…or, if you have an access to Windows OS you can copy C:\Windows\Fonts directory for the full Windows 10 default fonts directory, download following: Windows 10 Font Pack. Create .fonts directory in your home location and copy your Windows fonts.


Make sure printer support is installed

sudo apt install skanlite cups cups-client cups-filters hplip printer-driver-hpijs

sudo adduser [USERNAME] lpadmin

sudo systemctl enable --now cups

Replace [USERNAME] with your username


Install build-essential

It’s a package that includes many dependencies commonly used by different apps so it’s always good to have it installed. We all need it sooner or later.

sudo apt install build-essential dkms linux-headers-$(uname -r)

Install restricted-extras

sudo apt install rar unrar libavcodec-extra gstreamer1.0-libav gstreamer1.0-plugins-ugly gstreamer1.0-vaapi

Install Flatpak

sudo apt install flatpak

sudo apt install gnome-software-plugin-flatpak

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

sudo reboot

Install LibreOffice flatpak version

flatpak install flathub org.libreoffice.LibreOffice

flatpak install --reinstall flathub org.freedesktop.Platform.Locale/x86_64/21.08

remember to change formats to Bulgarian in Language Settings


Automate flatpak updates

(yes, without sudo)

crontab -e

add the line on the end: 15 12 * * * flatpak update -y > /home/[USERNAME]/Documents/logs/flatpak-update.log Replace [USERNAME] with your username (the log destination is custom, the directory must exsist)

Install Syncthing

Add the release PGP keys:

sudo curl -s -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg

Add the “stable” channel to your APT sources:

echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list

Update and install syncthing:

sudo apt update
sudo apt install syncthing

Enable syncthing at system boot:

sudo systemctle enable --now syncthing@[USERNAME].service

Replace [USERNAME] with your username

Edit line 59 in config.xml file, and replace 127.0.0.1 with 0.0.0.0

nano /home/viking/.config/syncthing/config.xml
sudo systemctl restart syncthing@[USERNAME].service

Replace [USERNAME] with your username

Now, Syncthing is accessible under http://localhost:8384 and in the local network.


Install NoMachine

version from 2022-02-03

wget https://download.nomachine.com/download/7.8/Linux/nomachine_7.8.2_1_amd64.deb
sudo apt install ./nomachine_7.8.2_1_amd64.deb

Install ZeroTier One

curl -s https://install.zerotier.com | sudo bash
sudo zerotier-cli join [YOUR-ZEROTIER-NETWORK-ID]

Install OpenConnect and OpenVPN

sudo apt install -y openconnect network-manager-openconnect network-manager-openconnect-gnome
sudo apt install -y openvpn network-manager-openvpn network-manager-openvpn-gnome

Install AppImage Launcher

wget https://github.com/TheAssassin/AppImageLauncher/releases/download/v2.2.0/appimagelauncher_2.2.0-travis995.0f91801.bionic_amd64.deb
sudo apt install ./appimagelauncher_2.2.0-gha74.10c226a+bionic_amd64.deb

Install TOR

enable the usage of https in sources.list:

sudo apt install apt-transport-https

add the Tor repository:

sudo sh -c 'echo "deb [arch=amd64] https://deb.torproject.org/torproject.org $(lsb_release -sc) main" >> /etc/apt/sources.list.d/tor-project.list'

download the latest keyring .deb package from the link below:

wget https://deb.torproject.org/torproject.org/pool/main/d/deb.torproject.org-keyring/deb.torproject.org-keyring_2020.11.18_all.deb
ls

install the keyring .deb package:

sudo apt install ./deb.torproject.org-keyring_2020.11.18_all.deb

update repos and upgrade your system:

sudo apt update && sudo apt upgrade

Install Tor:

sudo apt install tor

Check the status of the service (should be active):

systemctl status tor

is it dead? enable and run tor as service

sudo systemctl enable --now tor

Install Tor Browser:

sudo apt install torbrowser-launcher

Install Wine and dependencies

sudo dpkg --add-architecture i386

wget -nc https://dl.winehq.org/wine-builds/winehq.key

sudo gpg -o /etc/apt/trusted.gpg.d/winehq.key.gpg --dearmor winehq.key

sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/debian/ bullseye main'

sudo apt update

sudo apt install --install-recommends winehq-staging

winecfg

Install “Bottles”

flatpak install flathub com.usebottles.bottles

Extend the Battery Life

If you have Debian installed on your laptop, you can squeeze more battery juice by installing tlp (power management tool).

sudo apt install tlp

finishing up

sudo apt autoremove
sudo apt autoclean




.


Reference:

https://wiki.debian.org

https://packages.debian.org/bookworm/nvidia-legacy-390xx-driver

https://www.linuxcapable.com/debian

Don’t break your Debian!

https://wiki.debian.org/DontBreakDebian#Don.27t_make_a_FrankenDebian