So to upgrade Raspbian, as it was previously called, from Buster to Bullseye went smooth an easy, I tried this with some Pi2B (armhf 32Bit) and with a Pi4. These two are headless systems, so I don’t know if this works well for any systems with window managers. Better run these commands in screen, so […]
Resize a PDF to DIN A4 on CLI
Converts a PDF to DIN A4 paper size and centers the content of the input file on the new page without resizing it. Needs package “texlive-extra-utils” on Debian.
Adding Debian Buster Backports repo to RaspberryPi for tor
Add key The fingerprint (DC30D7C23CBBABEE) given is the one that the first command outputs, which is the fingerprint of the key downloaded by curl. 2. Add repo run apt update/upgrade Install tor, I did this by:
Debian for Raspberry Pi
Just some info, because the last time when I flashed an SD card I took #Raspbian only because I could not find the #Debian images as quick. Infos about Debian for #Pi are here:https://wiki.debian.org/RaspberryPi Images:https://raspi.debian.net/tested-images/ Some tips for settings, like #SSH on first boot (you need to add a key):https://raspi.debian.net/defaults-and-settings/
Linux swap with dphys-swapfile
This is a solution for a #RaspberryPi, some #VPS without swap of some machine setup without swap where you need swap for something without wanting to fiddle with the drive partitions or so. This is a quick and dirty “short manual” for #Debian based #Systemd environments (such as #Ubuntu, #Mint or #Raspbian). First run this: […]
Debian based full updates in one command
I have this small script deployed on any of my #Debian based systems, it just does all the update, upgrade, dist-upgrade, autoremove and autoclean in one run. I have this script deployed in a lazy manner, I just have it sitting in my users home folder and called it “up”, I did do a “chmod […]
Create Linux dm-crypt BTRFS RAID 1
To do this you need two empty drives, with the guide below all data on the drive will be lost if it is not empty! 1. Install cryptsetup 2. Create the dm-crypt (Make sure to use the correct device. To show available devices use “lsblk”.) 3. Mount the cryptsetup disk 4. Check if this was […]
Size of each table in a database of MySQL or MariaDB
I found something pretty useful, just a quick #MySQL / #MariaDB code snippet to show the size of each table of the currently selected database. You have to start ‘mysql’ from CLI, in any terminal emulator of you choice, by adding the database name it should select when started, so lets say the database you’re […]
How to add a swap drive to your system
How to add a swap drive to your system, in this case I did this for a virtual machine (qemu) running Arch Linux. See at the bottom for information about the virtual drive for qemu. List current available to system disks: List all disks: Format as swap: gives back the UUID Now the new swap […]
rename
… is an easy to use and powerful tool, it can be used to replace part of file name (string1) with some other string. Something one can also do with some “sed” hack, but this tool is much easier to use, especially for beginners. You can get all information needed from “rename –help” (here from […]