This is my pense-bete for Open_BSD manpages and overall logic

[https://www.openbsd.org/faq] [https://begriffs.com/posts/2017-05-17-openbsd-workstation-guide.html] [https://www.unix-experience.fr/bsd/openbsd/howto_install/] [https://www.c0ffee.net/blog/openbsd-on-a-laptop]

toolshapepracticeshapetool

<iframe src="https://practices.tools">

Tue Jul 18 16:36:56 CEST 2023

Shortcuts for terminal use

Several useful basic manpages

Init launches rc, the script

TOUTES les infos sur l’ordi

Font, font How to manage fonts here with X

update openbsd computer

wifi n co

wsconsctl display.font=Spleen

modify man appearance

generate pass keys in cli?

pkgreadmes very useful

/usr/local/share/doc/pkg-readmes/firefox /usr/local/share/doc/pkg-readmes/sdl2 #tuto pour utiliser un controller ??

.core file

re:lated to core(5); can be read with $ readelf -a /file; utils core files are image file of a segfault. i think mdr.

locate something

Markdown, md flavor for lowdown to parse it elsewhere

Display&Monitor with xrandr

Sound, Mixer, Audio

for sound mixer and audio stuff

$ rcctl set sndiod flags.. $ rcctl restart sndiod

$ rcctl reload sndiod # try first to use usb device, then internal one, if the output is not read reload would force and switch.

disque file size

df -h

display img with bin nsxiv

Use nsxiv, or mupdf.

Mount USB KEY

disklabel # To find disks, sd0, is this pc doas mount /dev/sd2i /mnt/purse doas mount -t msdos /dev/sd2i /mnt/liseuse sd1 will be the key : otherwise go see OpenBSD FAQ disks

clipboard, primary, secondary

xcutsel, to interact with buffers and cut, maybe a solution to have clipboard history, and dispay it also xclip

X server, xenodm,

After erasing my home dot files, I went back to the FAQ to repopulate, Here is what I learned, again: - xenodm is preferred by openbsd rather than startx - xenodm use .xsession script to startup, make it executable and here’s my basic one:

#!/bin/sh export ENV=$HOME/.kshrc xrdb -merge $HOME/.Xresources xmodmap -e "keysym BackSpace = Delete" xsetroot -solid black & st -z 36 -g 87x25+0+0 & cwm

xrdb merge .Xressources

for xsession, xmodmap keynames refer to : /usr/X11R6/include/X11/keysymdef.h man 7 globe /usr/local/share/doc/xv/manuals/xvdocs.ps this is the ps doc for xv, X Image viewer, can convert to bmp for instance to set a background with X11, using anything to bmp

Font tools!!

fc-list to list fonts every available fonts; more info with man https://daemonforums.org/showthread.php?t=5371 is how I resolve vim/less UTF8 support however I still can’t make it work with st simple terminal, nor does cat support it

The link above is using the X composing key, to compose with alt special char, i set it up as it said, however I haven’t use the .XCompose he shared, nor I have the file yet in my Home directory.

Update 5 min later, with a simple research, UTF8 OpenBSD, and in THE FAQ : https://www.openbsd.org/faq/faq10.html (ok new issue, altgr doesnt works anymore, must be compose) anyway here is the line : If logging in via xenodm(1), add export LCCTYPE="enUS.UTF-8” to your ~/.xsession before starting the window manager. See customizing X for more details. Regarding this new issue, I should try to only keep, the line in xsession, and deletes the one in zshrc and kshrc also the line in xsession with the composekey first, even though this could be very useful for special char!

in the end : the alt compose key is not a good idea for the ones with an azerty keyboard, and altgreat used to enable a bunch of char on your keyboard. Next to it I have a unused key, that is on most french keyboard ‘ImpEc’, could be use as the compose key. Im tired so here is a todo - #todo with the link above and his compose key list, use Impéc key to compose and play with it.

I havent tested it but I left the two lines to export variables enabling utf8 for GTK, and LESS in both zshrc and kshrc and left the export [z;k]shrc in xsession (startup file for xenodm). I’m pretty sure that without them it will not work, despite not testing it, I was tired of restarting X with cwm alt maj ctrl Q

Anyway I have a lot of question to marc or Arthur explaining the ENV VAR, that is often talked about in Manuel Pages, maybe set the MAN VIEWER or something, is the way to use vim as the manuel viewer instead of less.

Everything could be done with a .profile, but ive read there : (link below) that OpenBSD prefer .kshrc rather than .profile, because of conflict, it isnt clear but I trusted those guys. even in faq customising x they suggest using kshrc instead of .profile

Font ep2

src man 7 fonts & i[https://twiserandom.com/unix/x11-fonts-a-tutorial/index.html] So there is something to understand, why is there a difference between what comes out of fc-list xlsfonts The later xlsfonts, looks for X11 fonts only when fc-lists looks for all the fonts, and have then a certain path in order to know where to look for.

Then there is also two systems the Xft one, modern, anti-aliasing and scalable font, and the core one, made for bitmap font exclusively.

A lot is explained in man 7 font to set up a new font,

Update ur path

ok so no path tutorial ?? #todo you need to write the : export PATH=${PATH:+${PATH}/ur/path} take care avec les espaces and co, pas hésiter à tester avec une var random

+ ‘h’ on a terminal line will look in the manual for the first command

bluetooth on openbsd

there is not, since 2014. However if needed solutions are found with Bt usb dongle. Why no bt tho ? because bt can be an easy way to come in even unwelcomed.

pkg package and ports

still not a clear understanding of the ports

tho i have that for pkglocate that can search in the pkg or the ports tree idk

vim tips

get the name of your current file write into your file : :r! echo %

:. so pour executer la ligne en haut qui est une ligne vim

Deutsch4000GermanWordsbyFrequency2SED.txt summup_OpenBSD.md

shell tips

list :

echo {a..z} echo {a-z} a b c d e f g h i j k l m n o p q r s t u v w x y z only zsh tho pas ksh

Zshell tips

reprends l’arguments de la dernière commande. !$ cherche argument contenant $1 ?!$1

Ports

https://www.openbsd.org/faq/ports/ports.html everything is there

but for a reminder search the ports by : cd /usr/ports make search key=”$query”

Colors

~/colors for info xcolor to pick up any colors on screen - incredible kcolorpicker to select color in rgb - for now HS

writing functions

as aliases

hey () echo “hey”


  1. the marc.info 2020 mail