copy files and directories-p same as –preserve=mode,ownership,timestamps-R, -r, –recursivecopy directories recursively-v verbose, show what is going on. –reflink[=WHEN]control clone/CoW copies. This just copied 169GB of files in 20 seconds. This only works on supported filesystems, so for example by “#Btrfs, #CIFS, #NFS 4.2, #OCFS2, #overlayfs, and #XFS”. See here. Explainshell tells you this.
I will not write a long explanation, just this short one. The cronjob looks like this: This will start sh (a shell, just like bash) and run the command after -c. The command flock will create a lock-file, to prevent that this cron job is started while there is still the previous cron jobs running. […]
Important This fix can be applied before the reboot after the upgrade from Buster to Bullseye, if you missed it you need a MicroSD card reader and some Linux computer (another RaspberryPI would do) to edit the file. In the file there is a wrong path for the dhcpd, it has to be changed. wrong […]
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 […]
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.
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:
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/
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: […]
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 […]
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 […]