Exploring 9front on my Raspberry Pi 4

  • profile file = $home/lib/profile
  • riostart file = $home/rc/bin/riostart

Add permanent keyboard layout change

Simply add this line with the kbmap you want to use to your profile file in the terminal case:

cat /sys/lib/kbmap/dvorak > /dev/kbmap

Sync time automatically at start

Just add this line to the profile file in the terminal case:

aux/timesync -n pool.ntp.org

source

Fix "buggy" spawned terminal

In your riostart file ($profile/bin/rc) simply remove the following line:

; ~ $#console 0 || window -scroll console

and replace it with:

window -scroll

Fixing the background

First of all, make sure to follow this tutorial to get the theme patch on rio working.

(If by accident you run the patch twice then you will get a lot of errors and you need to reset the hg tree and get the original rio files again)

Once you got themes working go to:

cd /sys/src/cmd/rio

acme rio.c

and simply follow the short guide to my rio background fix:

rio-background-fix

For some reason the background is buggy until the rio window is resized, so the "bug fix" I made is just a stripped down version of the resized function in rio.c and I put it in redraw to execute it once since I did not know where else to put it to make sure it is run once at the start.

After the code has been fixed make sure to run mk and if no bugs were encountered run:

mk install

werc

This tutorial is great. I was just confused on how to start the listener. Running this line fixed the problem:

aux/listen

To get the web server working and I also struggled at first to comprehend how to use the sites directory.

Simply make a folder with your local ip such as 192.168.0.2 and you can use it immediately with werc if everything is set up correctly.

You can also set up a loopback to use other local folders in the sites directory such as 127.0.0.1 or localhost:

ip/ipconfig loopback add 127.0.0.1