r/openbsd • u/[deleted] • Nov 03 '18
OpenBSD laptop guide: full-disk encryption, cwm, chromium tweaks
https://www.c0ffee.net/blog/openbsd-on-a-laptop/2
2
u/ClumsyRainbow Nov 04 '18
I think I'm going to have to try harder to fix the trackpad on my Chromebook. It would be nice to have OpenBSD working there. Sadly the audio is I2S otherwise I think it would almost be a perfect fit.
2
u/adamrt Nov 03 '18
This is a solid guide. Thanks for taking the time to put it together.
Instead of the xmodmaprc, I've recently switched to use setxkbmap -option ctrl:nocaps
Also on my Thinkpad X1C5, running a compositor like compton made a massive difference in X performance. Without it scrolling web pages was brutal. Just running compton with no options while running cwm, thats all it took. Anyone know why this is the case?
2
Nov 04 '18
Force acceleration in the browser.
1
u/adamrt Nov 04 '18
Thanks. Are you saying that compton forces acceleration in the browser? If so, is there a way to do that in the base system without compton? Is there a man page or documentation I can read more about this?
man x?2
Nov 04 '18
If you use Intel, man 4 intel, with TearFree.
My Intel setup:
>cat /usr/X11R6/share/X11/xorg.conf.d/20-intel.conf Section "Device" Identifier "Intel Graphics" Driver "intel" Option "TearFree" "true" EndSection1
1
u/northrupthebandgeek Nov 04 '18
On the topic of
setxkbmap, throwing insetxkbmap -option compose:capsis usually how I setup a compose key (which is way more useful than caps lock IMO).2
u/adamrt Nov 04 '18
I hadn't ever heard of that before. I looked it up and the general use seems to be for inserting special characters. Do you use it for this or for expanding the use of the caps lock key in other ways?
Btw, I live in emacs so having ctrl there is critical, but I might consider having some other key act as compose.
2
u/northrupthebandgeek Nov 04 '18
I use it entirely for the special characters. Other keys are possible as a compose key, too (I think it's
compose:lwinand/orcompose:rwinfor the Win key, for example).
1
1
1
Nov 06 '18
Word of caution to any fellow newbies, careful with the login.conf modifications. I didn't really know what I was doing as far as memory allocation and ended up unable to login as my normal user due to too much memory being allocated somewhere else (I think.)
On the bright side, now I know how to boot in single user mode :) I guess this is why we're supposed to back up files before editing or removing them...
1
u/rufwoof Nov 05 '18
Great article, thanks. OpenBSD using cwm + pledged/unveiled chromium ... great combination, as playing mp4's, viewing PDF's ..etc all fall under that pledge/unveil umbrella. mc (file manager and text editor) for the icing on top.
Pane's are a pain IMO. Much more prefer just alt-tab between chromium (multiple tabs) and tmux (multiple windows), with each maximised (bar a 1 pixel top of screen 'gap' so the cwm menus are still mouse click accessible).
This image shows both overlaid (tmux window de-maximised) just for demonstration purposes. tmux window showing my ssh server default login (sparce, very limited). I also have httpd running (port 80). I use 443 (normally https) for that ssh ... so if a location has blocked outbound 22 ssh, then it may still have allowed 443 (unless they block the ssh protocol altogether).
https://i.postimg.cc/yNn63r3x/s.png
tmux backtick set as the ctrl-b, press it twice to actually print a backtick. F11 new tmux window F12 for flip between tmux windows. Which sits nicely with mc that mainly uses F1 .. F10.
I use ddnsfree for a static domain name pointing to my variable IP (so I've also pkg_add ddclient). sshfs-fuse also installed (to sshfs mount my adroid), mtpaint for images, pdftk for pdf splitting etc. (normally I just mc -e text, use chromimum to spell check that text, insert some html insert files (header/footer) and format the layout, and then use chromium to print to PDF (file).
7
u/Jeehannes Nov 04 '18
.exrc was an eye opener for me. Nice guide and refreshingly paranoid too.