As an excercice on #plan9 I am trying to write a basic text editor in C. Sofar I can open a file and read it into a biobuffer, then print it to the console by writing to /dev/cons file. That works fine. Now I am struggling to clear the console before writing, so that I have only the intended text, which I can edit and then save by reading /dev/cons and saving it to the original text file. Not sure if this makes send nor if this is the #plan9 way of coding. Any suggestions?
plan9
🛸 Plan 9 is a Uniquely Complete Operating System https://posixcafe.org/blogs/2024/07/27/0/
OK, u9fs for media sharing from unix to #9front is kicking my butt. I am using the "stock" binary from ports on #OpenBSD.
Cpu server / drawterm access are working on #plan9 Glenda has a password and keys and all. I deliberately chose p9sk1 for the keys in factotum to enable legacy protocols since, as far as I can tell, u9fs only knows that.
Added this to /etc/services (from FreeBSD's equivalent):
9pfs 564/tcp #plan 9 file service
9pfs 564/udp #plan 9 file service
Added this to /etc/inetd.conf:
9pfs stream tcp nowait root /usr/local/sbin/u9fs -D -a p9any -l /var/log/u9fs /media
I opened TCP/564 in pf.conf for good measure - tho I think inetd does this? Anyway,
pass out proto tcp to any port 564
pass in proto tcp to any port 564
u9fs.keys is in place on OpenBSD and it has exactly 3 lines only with password/username/host. Can confirm inetd is OK and u9fs process is running.
However, on 9front:
cpu% 9fs 192.168.1.101
post...
srv net!192.168.1.101!9fs: mount failed: unknown user
cpu%
Same result if I run it manually with srv and mount -c
Logs on OpenBSD side for u9fs don't show anything (wish "verbose logging" were actually verbose and logged something..)
What am I missing?!
CARTER AND REAGAN DISPUTE VIEWS ON ARMS POLICY
#unix_surrealism #funhole #plan9 #9front #iwp9 #art #comic #poster #news #netflix #linux #werc #glenda
Doot do doooooot
got encrypted PDFs opening on plan9 :)
maybe now that I can read the PDF specification I can use it to get better font renderings :P
#UNIX is not just an OS; it is the ultimate #IDE for #programmers. Arguably the best written introductory book on UNIX programming is "The UNIX Programming Environment", Kernighan (1983). This book covers UNIX V7, but I used it with 4.2BSD.
There is another jewel of a book of a similar kind, a free one to boot, by Prof. Ballesteros (King Juan Carlos University): "Introduction to Operating Systems Abstractions Using Plan 9 from Bell Labs" (2007). Prof. Ballesteros wrote this book to teach his CS students the fundamentals of good OS design.
Although almost no one uses #Plan9 today, it is alive and kicking. It even runs on Raspberry Pi. Anyone interested in OSs and likes the philosophical underpinnings of UNIX should take a look at Plan 9.
The other must-read book is his "Notes on the Plan 9 3ed Kernel Source" (2007).
Prof. Ballesteros has many Plan 9 related publications in PDF format.
https://lsub.org/books-papers/
PS—Those with a historical bent should also read Organick's "The Multics System: An Examination of Its Structure" (1980). Multix is the mother of UNIX, and Plan 9 is the grown-up UNIX.
(1) I was able to get vmx up and running,
(2) data which I extracted from tar backups cannot be removed because some letters were converted into question mark signs,
(3) MBR on one of disks has vanished, but disk is recognized and mounted be l*nux.
Remember, this OS is not for stupid people.
The next International #Workshop on Plan 9 🔧🐇 will take place in Prague at Czech Technical University (CTU/ČVUT), from May 13-16 2027.
We are calling for participation, with a scope covering the Plan 9 operating system and related ones, applications connecting to/integrating with Plan 9, system architecture, services and development, as well as file systems.
For more, see https://iwp9.org/ 👈
Congrats to my nerdy linux friends who are giving the BSDs a test drive.
I already daily drive OpenBSD, so I'm enjoying having my brain broken by trying to get to know this...
#unix_surrealism #9front #bobby_glendys #glenda #plan9 #lunic