A list of things I've learned and collected in tadasv/til.
Topics: freebsd 1 · genisoimage 1 · linux 2 · mac 1 · rsync 1 · xrandr 1
When running 3rd party unsigned binaries for Mac, you will be welcomed with a dialog letting you know that you cannot run this app because it's not verified. This requires the user going to the Privacy & Settings and manually allowing the app.
It's ok for a single app, but problematic for cases where you have lots of binaries/libraries. It seems that any newly downloaded binaries are added to quarantine by Mac OS, which triggers Gatekeeper. A workaround is to remove quarantine attribute from the files you downloaded:
Continue readingInspired by https://linuxconfig.org/how-to-create-incremental-backups-using-rsync-on-linux
This script will create incremental backups using rsync. This is achieved by using hard links support of the filesystem.
Continue readingxrandr offers powerful screen management capabilities. You can slice single monitor into several virtual screens. Below script is used to split single 4k screen into 3:
+----+----+
| ~1 | |
+----+ ~3 |
| ~2 | |
+----+----+
Continue reading
Here's how to back-up data to BD M-Disc. This assumes we have a M-Disc compatible rewriter.
Create an ISO image of your data directory that you want to burn.
$ genisoimage -f -J -joliet-long -r -allow-lowercase -allow-multidot -o <image.iso> <dir>
Mount the image with mount -o image.ios /mnt/cdrom
to check that all data
and files look good. If not careful with genisoimage flags it's possible to
get truncated 8.3 formatted filenames.
Burn the image with growisofs -speed=1 -Z /dev/sr0=image.iso
. Make sure to
set the speed to one so that it does not mess up large BD M-Discs. Some
people were saying that higher speed options may work but it may incorrectly
write data to M-Disc since they like slower writes.
Power management might interfere with wifi speeds
# install tools
$ apt install wireless-tools
# turn off power management
$ iwconfig wlan0 power off
Continue reading
FreeBSD installation images come with “Live CD” option. If you choose it, the installation image will boot in live cd mode. This is really useful if you want to explore core system from the command line or do some fixes on already installed system.
If you want to install more applications to have a better test drive you’ll be in trouble because root file system is mounted as read-only. The root file system also takes up 100% of space due to how installation image is setup leaving you no room to add new software.
Continue readingClipboard in Linux was always a PITA as far as I can remember. We have three clipboards to work with in X11: primary, secondary and clipboard. Primary buffer is typically used in terminal apps (e.g. when selecting text with mouse), secondary not sure, and the “clipboard” is used by GUI applications such as you web browser and such.
These clipboards are not automatically synced by default. For example, if you select console text and try to paste it in your browser it won’t work out of the box. You can transfer primary buffer context to clipboard with xclip like so:
Continue reading