*NIX (Linux, BSD)
I do have other systems. In the Unix-like world, one is BSD to practice; it was PC-BSD, but now it is FreeBSD. In these pages are my various notes that I hope are helpful to folks as much as they are reminders for myself.
Oh, Mac OS is different enough in my mind that it isn't here. :-/
7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on <destination> <source file/dir>
GZIP=-9 tar -czvf ./backup_sdcard_from_pi.img.tar.gz ./backup_sdcard_from_pi.img
uncompress: tar xvzf file.tar.gz -C /path/to/somedirectory
x = extract the files
v = verbose
z = uncompress gzip
f = argument that says file name follows
C = (optional) argument to put output in directory that follows
This is mostly done with Linux, but I suppose it could work in BSD, Mac OS, others?
"burn" ISO to USB: sudo dd bs=4M status=progress conv=fsync if=./some_distro.iso of=/dev/sdX
backup and compress drive to image: sudo bash -c "dd if=/dev/device-drive-or-partition | gzip > /media/disk/name-backup-file.gz"
restore compressed drive image: gunzip -c /media/disk/name-backup-file.gz | sudo dd of=/dev/device-drive-or-partition
Files & File Systems
Move contents of folder one level up:
NOTE: the trailing dot is part of the command
NOTE: there are two commands connected via "&&"
Mount a remote file system through SSH. This "just works" on Ubuntu, you may need to install/setup sshfs and/or fuse.
Download a shortened URL with curl:
Find files that are okay in Linux, but not Windows and put the list into a text file:
I know, technically ampersand ("&") is allowed. But FAT filesystems and older apps don't play nice.
LXDE / LXQT
Clock format: %I:%M %p
Tooltip format: %a %x
Full Screen Windows
This will change/enable windows to be maximized by default.
At end of file, un-comment:
I have the Pinebook 1080p system-on-chip laptop. It is a nice device, but really a toy. I can only really do one task with it; don't try streaming, even by itself. At least with the distros I've tried. I started a review, but it is so old, I might post it eventually. I do wish I had a purpose to the laptop. Maybe someday something will occur to me.
I bought this USB cable for power. I use a powered USB hub and sometimes another computer to power the Pinebook. I also find the track pad sometime difficult, but don't plug it in until after boot.
It's currently running Manjaro with KDE. It is surprisingly performant if you are doing only one thing. :-) I can watch YouTube or play music. It's a shame the built-in speakers stink. But hooked it up to external speakers and its good.
The OS loads, and one can move around. But using it with apps gets a bit frustrating.
KDE Neon also auto starts Firefox in the background. This slows down the system, especially if you want to use Chromium instead. To stop Firefox from pre-loading delete/move/modify the file below:
Personally, I comment out the exec line inside the file.
Scanning is something that usually doesn't enter my mind. It used to be when I couldn't get medical reports electronically. But the late 20-teens had seen most medical institutions in the US be required to have electronic records. Which are also shared; and that raises privacy issues, but I digress. Now, working from home, there are still many processes that require printing -> signing -> scanning -> emailing documents.
And since my tried and true printer as well as scanner from the early 2000's finally died....
I bought a rather inexpensive HP Envy 7855. It got many good reviews online for working with Linux. Both as a printer and scanner. It was relatively painless to setup but for those who are totally tech-clueless, you may want to rely on HP's tools and/or a USB connection. If you understand basic IP networking, you can exit the first setup screen on the built-in touch panel and enter information manually.
Now with that done, onto scanning!
In the past, I had used gscan2pdf (noobies: link is to project, use your distro's package manager to install). My old scanner was a flatbed, so no sheet feeder. The new HP Envy 7855 has one, and I'd rather use that feature. I next tried Skanlite (again, project page), but it only seemed to scan to pictures, and I need PDF. So then I tried Simple Scan (sudo apt install simple-scan); low and behold, nice shiny PDF output. :-) If you don't have fancy needs, Simple Scan is the way to go!
SDDM (Login/Display Manager)
Change DPI in SDDM (method #1):
nano -w /etc/sddm.conf
paste in below:
Change DPI in SDDM (method #2):
nano -w /usr/share/sddm/scripts/Xsetup
/usr/bin/xrandr --dpi 201
SLiM (Login/Display Manager)
SLiM is one of the pieces of software that manages how users log into Unix-like systems, graphically. They are referred to as both "login manager" and "display manager". I usually use the default on any system, but FreeBSD did not have one for XFCE. So I choose SLiM over XDM.
Below are some notes/hints/etc.
In FreeBSD, config file = /usr/local/etc/slim.conf
In FreeBSD, themes are in /usr/local/share/slim/themes/
I made a simple theme to understand the files.
UDEV for Android Devices
Below are UDEV rules for connecting Android devices via USB on Linux. At the end is the values for Amazon Fire 7" 5th Generation.