This is a migration scenario. I set up the new machine first with the new Debian system, then move the data drives from the old server. For initial setup I create a 5GB Home mount point, which will later be replaced with the one on the data drives from the old server.
Since I'm installing an old technology low performance quiet graphics card, I need to setup access for Xorg first.
20-nouveau.conf
to /etc/X11/xorg.conf.d/
containing:Section "Device" Identifier "Nvidia card" Driver "nouveau" EndSection
apt-get update apt-get upgrade
locale -a
dpkg-reconfigure locales
sudo vim /etc/network/interfaces iface eth0 inet manual
sudo adduser <user> sudo
root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/usr/sbin/nologin
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo gpg –dearmor -o /etc/apt/trusted.gpg.d/virtualbox.gpg
sudo sh -c 'echo “deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian bookworm contrib” » /etc/apt/sources.list.d/virtualbox.list
'sudo apt update
sudo apt install virtualbox-7.1
sudo apt install virtualbox-ext-pack
sudo apt install lvm2
sudo systemctl enable lvm2-lvmetad sudo systemctl start lvm2-lvmetad
sudo apt install cryptsetup
apt install openvpn
file -sL /dev/sda1 or file -sL /dev/vg_group/lv_volume
/dev/vg_group/lv_volume /home ext4 noatime,user_xattr 0 0
sudo apt install vim sudo apt install smartmontools sudo apt install iotop sudo apt install rsync sudo apt install zip sudo apt install wget
smartctl --health /dev/sda
sudo apt-get remove --purge libreoffice* sudo apt-get clean sudo apt-get autoremove
Sometimes it is helpful to exclude a package from upgrading. Virtualbox, for example, requires the GUI on the client to be used after version upgrade to upgrade and install the guest addtions, so sometimes it's better to not upgrade the package while you don't have physical access to the client. You can exclude and include with the following commands:
sudo apt-mark hold virtualbox-6.1 sudo apt-mark unhold virtualbox-6.1