Difference between revisions of "Debian"

From Organic Design wiki
(Improvements over Mint/Cinnamon: legacy, rm)
(Upgrade an existing installation to use LUKS disk encryption)
Line 28: Line 28:
 
apt install flatpak gnome-software-plugin-flatpak
 
apt install flatpak gnome-software-plugin-flatpak
 
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
 +
</source>
 +
 +
== Upgrade an existing installation to use LUKS disk encryption ==
 +
The only way to do this is to back up the drive content and re-install the OS with LUKS, and then import the backed up data into the new LUKS encrypted partition.
 +
 +
It's best to do the backup and restoring of the partition with ''dd'' while running in a lived booted distro so that we can work with an unmounted snapshot of the OS.
 +
<source lang="bash">
 +
dd if=backup.img of=/dev/???
 
</source>
 
</source>
  

Revision as of 16:28, 27 March 2022

Debian-logo.svg

Debian is a free operating system using the Linux kernel, but most of the basic OS tools come from the GNU project; hence the name GNU/Linux. At Organic Design we install Debian on our servers using the install a new server procedure, and have been using it since around 2005.

In June 2013 we decided to change from Ubuntu to Debian for our workstations as well since Ubuntu is increasingly becoming the "microsoft of the free software world" with pay software and services at every corner and compulsory spyware riddled throughout system, see Debian legacy issues for notes about various issues and solutions encountered back then. But then in early 2014 we changed to Linux Mint for our workstation machines, mainly due to the fact that they're very up to date with their choice of Linux kernel version which allowed me to use my touch-screen on my Samsung ATIV Smart PC Pro (XE700T1C) and fixed a long-standing bug on Beth's Lenovo Ideapad S10-3 which prevented it from resuming from standby. As of mid 2019 we've moved back to Debian again because Mint's Cinnamon desktop is stuck on an insecure path through its dependence on Xorg whereas most desktop managers are now moving to the more secure and slim Wayland display server. With the recent release of Debian 10, I decided to move back and give it a try!

Gnome3 extensions and addons

Gnome3 on Debian10.jpg

I don't really like Gnome much, I prefer Cinnamon, but the problem is that Cinnamon is not very secure since it's stuck on the old xorg desktop manager. Here are some things that can be done after installing a Gnome3 based system to make it a bit more familiar.

  • install the gnome icon color packages via apt
  • install the following Gnome extensions:
  • use the Tweaks utility to change icon colours, add an applications menu and window buttons and configure extensions, remove extensions here.

Issues & gotchas

  • root's default paths are missing, so either add e.g. export PATH=$PATH:/usr/sbin to root's .bashrc, or /usr/sbin/usermod -a -G sudo user and use sudo instead of su
  • I need to restart and enter my drive-unlock password twice for every damn update! Don't know if this is Debian or Gnome3, but it's discussed here and here. GNOME software comes with Software & Updates. Software & Updates can be removed and replaced with GNOME Package Updater.
  • Gnome3 has changed the touchpad default behaviour, now to do a right-click you tap with two fingers, you can revert to the old area-based behaviour using Tweaks
  • My internal Atheros bluetooth device suddenly disappeared, it came back after I installed the latest firmware from ftp.us.debian.org.
  • Possible missing firmware /lib/firmware/i915
  • GDM has been replaced by LightDM now so to set e.f. auto login, uncomment the relevant line in /etc/lightdm/lightdm.conf

Flatpak

Many applications are now in using the Flatpak package manager and Flathub app store.

apt install flatpak gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Upgrade an existing installation to use LUKS disk encryption

The only way to do this is to back up the drive content and re-install the OS with LUKS, and then import the backed up data into the new LUKS encrypted partition.

It's best to do the backup and restoring of the partition with dd while running in a lived booted distro so that we can work with an unmounted snapshot of the OS.

dd if=backup.img of=/dev/???

See also