NetBSD Hints
Moved from BSD Screenshots. Just hints I have from playing with NetBSD, maybe others can add items here as time goes on.
HTH: For suspend, did you see this netbsd.org ? For 2 finger scrolling, try adding this to xorg.conf Code:
Section "InputDevice" |
Just stopping this from being 'marked as zero'
|
Nice!
I'm getting quite used to using page up/down and arrow up/down however, on my laptop both of those are in a vertical line of keys to the far right. Or space and shift-space. Or a combination of both, left hand thumb on spacebar to scroll down, right hand index finger on page up to scroll up. |
I don't really bother with suspend as I tend to vnc into a linux box for my gui desktop/programs (such as chrome, libreoffice ..etc.). So mostly just boot netbsd and fire up vncviewer to connect into that always on (server) desktop.
I find the best choice is to install tigervnc on both boxes and run x0vncserver on the server, that way for me has videos/youtubes play as well via vnc (same lan) as if played directly. My linux server is a read only contained system, so a reboot has it back to pristine/clean again, so any virus caught whilst surfing only persist for that session, are automatically eradicated after a restart. Whilst my data files on the NetBSD laptop are secure in that the only outside communications layer is the vncviewer session, which is just basically a pixed read/write activity. No risk of ransomware or suchlike. All of OpenBSD additional security was pretty much wasted in my usage case, unnecessary overheads. I'm very much liking NetBSD's quickness in comparison. |
|
Small tty font
I find the ctrl-alt-Fn (tty) fonts too small for my liking, but do like that smaller font for the initial bootup (can see more of what messages might have been indicated). So in .shrc or .profile or wherever alongside setting my keyboard to gb
setxkbmap gb I also set a larger font Code:
if [ ! -z $(tty | grep tty) ]; then |
rufwoof -
Thank You, I have been looking for that, I had it a long time ago but lost my notes and I could not find this setting in google. I am now using it! |
Quote:
|
Quote:
First off I had no xorg.conf so used X -configure ... to generate one, but startx didn't work with that so I removed that /etc/xorg.conf and started X and extracted the default Screen settings being used for that (working) version (from /var/log/Xorg.1.log) and edited the xorg.conf to use those instead ... which worked OK. I then added those additional elements to the Mouse section, but touchpad behavior remains the same (no two finger scrolling). As I said before, not really a bother for me as page or arrow up/down works fine. More of a issue is that light touching of the touchpad invokes a click or mouse cursor move action which can be a bother at times when typing. |
screenshots
1 Attachment(s)
I have just base NetBSD installed, with pkgin and tigervnc the only other things installed on top of that.
For screenshots I use xwd -root >file.xwd, or with a delayed snapshot using sleep 10;xwd -root >file.xwd I then scp that over to my server and use gimp to open that file and Export it as a png (and a jpg ... and pick whichever is the smaller filesize as the version to use/upload). Others I see pipe the xwd file through 'convert' - but that requires additional packages to be installed. Alternatively there are online converters, a quick search for example indicated https://convertio.co/xwd-png/ ... but I haven't actually tried that. Then to upload to a post, select the post editor choice that has the additional options and simply select and then upload that file, before closing the attach files window and the image should be visible as an attachement. |
battery charge/CPU temperature
For cli based indication of your battery charge and/or cpu temperature ...etc - just run ...
envstat |
Update CPU Microcode on NetBSD
https://retrobsd.ddns.net/57fd9.htm
... and other tips (Click the RetroBSD Net label in the top left corner) |
colorls
1 Attachment(s)
Install colorls (pkgin install colorls) and set your preference of colors in .Xdefaults/.Xresources, create a alias ls="colorls -G" ... so ls uses colors to distinguish different files (blue for folders, red for executables ...etc.). I've also tweaked the colors in .ctwmrc
|
Quote:
setvar ttyE0 font Boldface\\\ 16x32 setvar ttyE1 font Boldface\\\ 16x32 setvar ttyE2 font Boldface\\\ 16x32 setvar ttyE3 font Boldface\\\ 16x32 is an alternative choice. Boots with the green kernel regular text mode style, switches to white smaller graphics mode system boot font, until the wscons.conf file is parsed in late boot when the Boldface larger font kicks in. Note that the three \\\ are required for correct parsing to occur. |
Low battery alert sound
Rather than clutter a ctwm desktop with a laptop battery indicator I knocked out this script that sounds an alert once the batter level declines to 33% and the system isn't connected to mains power
Code:
#!/bin/sh |
All times are GMT -5. The time now is 02:22 PM. |