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 […]
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, 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 […]
… 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 […]
This will be a short post about the above mentioned parts, lets start right away. SSH config Every user can have a SSH client configuration file, it is located in ~/.ssh/config (where config ist the filename). My SSH config file, I guess as many other users file, grew over time. Lets start with some things […]
VM runterfahren Image der VM vergrössern: Je nach Setup ist sudo nicht nötig, durch den Befehl wird die Diskimagedatei um 15 GB vergrößert. VM starten Weiter geht es in der VM auf der Konsole. Partitioen mit parted anzeigen lassen: Ausgabe so oder ähnlich:Model: Virtio Block Device (virtblk)Disk /dev/vda: 53,7GBSector size (logical/physical): 512B/512BPartition Table: msdosDisk Flags: […]
Did you know explainshell.com yet? Try it, for example with that command from last time sudo lsof -i -P -n | grep LISTEN this is an amazing web site I use often so see what commands do that I find somewhere. Try it.
It drives me nuts that I cannot copy something from a ssh terminal when I use vim. I have no clue what this visual mode is meant to do besides anoying my. My solution: no more visual mode -> marking and copying text from vim by using the mouse works again.