/9front

Primary LanguageShell

9front tips
===========

mount 9fat (from a remote cpu)
	bind -b '#S' /dev
	9fs 9fat
  
reboot
	fshalt -r
  
send file to pastebin
	cat file | webpaste

convert jpg to plan9 format
	jpg -9t wall.jpg > wall

add background image support
	cd /sys/src/cmd/rio/
	hget https://raw.githubusercontent.com/mcpcpc/9front-rpi4-scripts/main/data.c.patch
	patch data.c.patch
	mk install
	mk clean

using the patched data.c for background images
	# remember to convert the *.jpg to plan9 format
	cd /path/to/wall
	cat wall | rio -i riostart

install hack fonts
	hget https://github.com/sirnewton01/plan9-font-hack/releases/download/2-020/hack-font.zip > /tmp/hack-font.zip
	cd /lib/font/bit
	unzip < /tmp/hack-font.zip
	rm /tmp/hack-font.zip
	
	hget http://9front.org/extra/font.hack.tgz > /tmp/font.hack.tgz
	cd /lib/font/bit
	gunzip < /tmp/font.hack.tgz | tar xv
	rm /tmp/font.hack.tgz