Last year, I published a post about installing openSUSE on my Thinkpad T470.
The laptop, openSUSE, and I have had a lovely journey since then!
Recently, I got some upgrades for the T470: a new 16 GB RAM stick to max out memory and a 1 TB SSD to replace the old, cramped 256 GB SSD.
Instead of seeing what happens if I try to dd
the contents of the old disk to the new one, I decided to re-install openSUSE and copy the contents of the home directory.
Since I referenced the previous post during the setup, I decided to write a more straightforward, updated guide. I can then reference this the next time!
pam_kwallet
was installed by default.I downloaded the latest openSUSE Tumbleweed installation ISO and flashed it to a USB stick with dd
.
I naturally enabled full disk encryption during the installation, and after learning from my mistakes, I also configured an encrypted swap partition.
sudo
sudo groupadd sudo
sudo usermod -a -G sudo sr
sudo visudo
Comment out the following lines:
# Defaults targetpw # ask for the password of the target user i.e. root
# ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!
Add the following:
## Allow members of group `sudo` to execute any command (sr 2023-12-27)
%sudo ALL=(ALL:ALL) ALL
A reboot might be needed before the changes are fully applied.
sudo zypper in bspwm curl deno gettext git htop kitty neovim picom screen tmux vim wget zip zsh
sudo hostnamectl set-hostname SUSEpad
sudo zypper in texlive-extratools texlive-pdfx texlive-lastpage texlive-biber texlive-glossaries-english texlive-glossaries-finnish
These allow my tex report template and glossaries to compile.
I’ve used Borg to back up my home directory to an encrypted external drive.
# install Borg
sudo zypper in borgbackup borgbackup-zsh-completion
# extract to the current directory
# consider something like `mkdir ~/borg-extract && cd !$` before extracting
# make sure to use the correct backup repository (SUSEpad_borgbackup) and archive (2023-12-27)
borg extract /run/media/sr/$DISK_ID/SUSEpad_borgbackup::2023-12-27
mv -f home/sr/* /home/sr/
mv -f home/sr/.* /home/sr/
chsh -s /bin/zsh
Install dotfiles (if they weren’t set up from the backups already):
bash <(curl -sL sampo.website/install-dotfiles.sh)
Launch zsh
and update the dotfile repository’s submodules (Antigen and some Vim plugins) by running
zsh
dot submodule update
Launch Neovim in “IDE mode” and sync plugins:
nide -c PackerSync
Install Docker and add sr
to the docker
group:
sudo zypper in yast2-docker docker docker-compose docker-zsh-completion
sudo usermod -a -G docker sr
Enable and start the Docker service:
sudo systemctl enable docker
sudo systemctl start docker
Reboot and then test that the hello-world
container runs:
docker run hello-world
bspwm
~/.xinitrc
Set dolphin to open the home directory when started instead of the last locations:
Dolphin → Settings → Configure Dolphin… → Startup → Show on startup → /home/sr
sudo zypper in syncthing
syncthing
)Once again, I used the “1-click install” of the experimental network:im:signal package for Tumbleweed.
Some tools like DBeaver and MuseScore are available as Flatpaks on Flathub:
flatpak install io.dbeaver.DBeaverCommunity org.musescore.MuseScore
Some users may also consider installing additional proprietary multimedia codecs from the Packman Essentials repository (more information, guide). Do your research and use your best judgment since Packman repositories are not a part of openSUSE.
There’s still some clicking around when setting up the Plasma desktop environment.
I bet such configuration could be stored as a dotfile to avoid the need for manual configuration, but I haven’t looked into it yet.
Additionally, much of the setup could be automated with a script.
However, doing it right is tricky since the setup process might differ between installs, for example, on another distribution or a newer version of Tumbleweed.
And I don’t need to do such setups that often anyway.
But there’s a lot of room for improvement in the install-dotfiles.sh
script, and I think some of the steps mentioned here could be included for a more convenient setup.
That’s it! OpenSUSE Tumbleweed is an excellent rolling-release Linux distribution, so I’ll likely find use for these instructions in the future.
I'll announce new posts in the following channels:
See my blog's front page to read my other posts.
You can reach me on Mastodon: @sampo@hachyderm.io. I'd love to hear from you!