/r/plan9

Photograph via snooOG

/r/plan9

2,776 Subscribers

51

Adventuresin9 has been super active on YouTube

And not a moment too soon. I’ve been working on my own 9grid for experiments

6 Comments
2024/10/31
02:52 UTC

8

9p mutex fs (POC), Thoughts and advices, does this really make sense?

https://github.com/LoupLobet/yates

Hey I juste finished writing a 9p fs that serves mutex for inter-program synchronization over network. Thoughts and advices ? Does this really make sense?

Thanks a lot :) !

8 Comments
2024/10/25
10:04 UTC

6

Working on some (just for fun) go code that can use auth/factotum for linux/bsd/web authentication and I'm having some strange issues...

Background: factotum is running as a standalone 9front instance, go code can connect but i cant seem to get to the point it can auth. I've been trying to watch drawterm to see what its doing but some of the process is still a mystery.

1.) Consistently get ERANGE ("Result to large") when attempting to write a key to /mnt/factotum/ctl but reads of the file succeed returning empty (i.e. no keys stored). Is there a step needed beyond starting factotum and mount -t 9p before keys can be written?

2.) Is there a standard way to perform p9any negotiation from plan9port tools (from MacOS an/or Linux) prior to the TAuth message?

3.) Is there documentation about the byte formatting of the individual messages for the p9any negotiation steps and the initial TAuth (preferably including which parts are encrypted with the agreed upon session key once the exchange establishes one)?

0 Comments
2024/10/23
20:11 UTC

5

Odd behavior with putenv() on 9front

Hi all,

I'm wokring my way through Ballestero's text on plan 9, and I've gotten to the project in chapter two where you write a C program that creates environment variables.

My program is working as expected, and putenv() is creating environment variables inside the /env folder after execution, andt if I cat the file I can see that it was correctly written.

However, doing 'echo $foo' does not echo the newly created variable unless I launch another instance of rc (which presumably causes the /env to be re-read due to the fork). Is there a step I'm missing to update environment variables written by C programs?

edit: I apologize if my explanation above is somewhat nonsensical as I wrote it late in the evening after staring at source code for hours. I did a better job explaining my issue in this comment

5 Comments
2024/10/19
03:44 UTC

18

Haskell on Plan 9

I recall seeing ports of Hugs and nhc98 but just wanted to ask if anyone has tried running/porting https://github.com/augustss/MicroHs on Plan 9 (legacy/9front)?

2 Comments
2024/10/05
22:23 UTC

8

Question of a newcomer

I have been playing with a virtual machine running 9front for a few days now...

[1]

from what i have read about them programs like zuke and treason simply play the file and have no way of immidiate controll (rewinding, fast forwarding ect...)

Why is this the case, it sounds like a trivial problem... what am i missing, is there a technicical limitation ? Was no one intrested ?

[2]

Why isnt the mouse wheel exploited ?

Programs such as mpv on linux show the intuitive and effective nature of using the scroll wheel for selection and navigation.

Is it because of legacy of the os in an era without scroll wheel prominence ?

if so will we need another spritual sucessor to plan9/inferno/forks ?

19 Comments
2024/08/25
19:11 UTC

5

Networking issues on Mac Pro 1.1.

Hi! I've installed 9front on a Mac Pro 1.1 and I'm having trouble getting the network up and running. The issues I'm facing are:

  1. Both DHCP and static IP configuration fail to establish connectivity.
  2. The kernel log shows: "i82563: phy 1 wedged 08310000" followed by "i82563: phy port reset"
  3. DHCP fails: "ip/ipconfig: no success with DHCP"
  4. Only IPv6 link-local address is configured, no IPv4 address.
  5. The interface is detecting packets (101 received, 80 transmitted) but no successful connections.

DHCP works when booting into MacOS on the same machine. So far I've tried both ethernet ports on the Mac Pro and tried with different cables. I've tried a different router. I've checked that that there are no MAC address filters enabled on the router.

What could be causing the "phy 1 wedged" state, and how can I resolve it? Are there any known issues with the i82563 driver in 9front for Mac Pro 1.1? 3. Is there a way to force IPv4 configuration or bypass the PHY issue?

I've collected more detailed diagnostic information which can be found here:
https://pastebin.com/GsXmGX8S

Any help or direction would be greatly appreciated! Thank you!

2 Comments
2024/08/19
19:20 UTC

6

Help wanted installing 9front

I am currently running a Linux machine. I am looking to use 9front in live usb before switching to it fully and using vmx for all the bad (but sadly required) programs.

I put the iso on the flash drive with the help of dd ( I am guessing cat iso > usb/data only works on plan 9 as it didn't on Linux )

now i boot into the prompt in the image

tyiping boot doesn't work because bootfile is unset

and i can't set the bootfile as i dont have access to the location of the usb

When i try to install using makebootfat the system doesn't boot

what do i do ?

https://preview.redd.it/j4mlfkv1bahd1.jpg?width=4608&format=pjpg&auto=webp&s=4a0dc808df844728cefcaf633ed86cf267c9a408

you can ignore the logo it is a remnant from the bootscreen that is not cleared

16 Comments
2024/08/07
15:00 UTC

3

Installing on a USB drive via a Thinkpad T480

Hello. I am trying to install 9front on a USB drive to be booted on my Thinkpad T480, but after installation, the system cannot find plan9.ini, saying "no config" and I cannot figure out what commands to put into the prompt. Is this a common issue with newer Thinkpads? If you need more information please ask but I don't know what else to put here. I'm trying to boot via legacy mode, and the installation USB boots fine, only the installed USB that won't boot.

1 Comment
2024/08/03
06:16 UTC

6

installing (plan) 9front with coreboot

I need coreboot to use a cpu that my bios doesn't support and wan't to run plan9 on hardware i do not know how to do this and the best option i've found is to use grub which officially doesen't support plan9 is there any known way to do this properly?

Edit: going to try using SeaBios like on an old chromebox i had if it doesen't work let this be a lesson to future readers

1 Comment
2024/07/22
18:06 UTC

34

Plan 9 Lecture Series: File Abstractions

3 Comments
2024/06/15
15:33 UTC

3

Is it possible to use Sam in the scripting mode?

Something like `ex -s`, but with Sam command language.

1 Comment
2024/06/14
07:22 UTC

3

Acme: is it possible to use 2-1 chord with a touchpad?

From acme(1):

Commands may be given extra arguments by a mouse chord with buttons 2 and 1. While holding down button 2 on text to be executed as a command, clicking button 1 appends the text last pointed to by button 1 as a distinct final argument.

I use a laptop. Most of the time, I do not have a mouse with me. Not being able to execute or simulate this particular chord is very inconvenient.

I can simulate the 1-2 and 1-3 chords by first selecting text and then, without letting go of the touchpad button, typing either Control or Alt. But I do not now how to simulate the 2-1 chord.

2 Comments
2024/06/02
22:22 UTC

2

Acme: how to write the window body into a file other than the one specified in the tag?

Screenshot

I work with Acme as shown on the screenshot.

In short, I do not know how to save the commands I use to work with the project (top-right window) in a file. If I run Put .acme/guide, it works. However, if I select the whole line, as shown in the screenshot, and execute it, Acme saves the window body in .acme/guide\n, \n being the literal line feed symbol. I do not understand why this happens, is it possible to fix this issue, is there another approach.

To demonstrate the problem I'm trying to solve, here's an analysis of what exactly is depicted in the screenshot:

  • Code is in the left column, commands to work with the project are in

the right column.

  • There can be a lot of commands. I save them in a file named "guide".

  • The project directory is /home/azat/hello/. The guide is located

inside /home/azat/hello/.acme/. To make commands work within the project's directory, the window tag should be set to something like /home/azat/hello/.

  • Instead of opening the guide file as is, I create an empty window,

put /home/azat/hello/ inside the window tag, and load the content of the guide into the window body. Notice <cat .acme/guide inside the window's scratch area. Tricky, but it does the job.

  • However, I need a method to put the content back into the file. If I

run Put .acme/guide, it works. However, if I select the whole line, as shown in the screenshot, and execute it, Acme saves the window body in .acme/guide\n, \n being the literal line feed symbol.

  • I could use >cat .acme/guide. But I do not know how to select the

whole window body.

I use the current build of plan9port.

My approach is similar to how win handles window tags. The name in the tag doesn't represent the actual file, but indicates the directory in which commands are run. However, I do not need a terminal, most of the time. And I need a method to save my commands.

6 Comments
2024/06/01
22:06 UTC

20

Plan 9 Lecture Series: Introduction

1 Comment
2024/05/31
19:24 UTC

7

General community question

Looking at the 9front website i notice they fall over themselves to make sure the world knows they are not racist homophobe nazis. Shouldn't that just be a given? I was curious is there were past problems on the matter so the community feels the need to make sure to wave a flag. Any ideas?

18 Comments
2024/05/07
22:38 UTC

6

How to reload profile?

When making changes to my lib/profile file, I would like to "reload" it similar to linux where I can exec source $HOME/.bashrc. I know that 9front is different since the rio session is based on the profile (I think).

Is there an easy way to reload the profile file without doing fshalt -r to just reboot?

3 Comments
2024/04/21
15:36 UTC

5

pi400 9front install

I'm having trouble getting 9front to boot on a pi400. I've found and tried numerous confit.txt examples but so far none of them are working. I'm currently getting a firmware not found error.

3 Comments
2024/04/20
23:02 UTC

11

9Front on a Chinese Mystery NAS; and a Teardown

1 Comment
2024/04/18
08:49 UTC

8

Is the discord server still up?

Hi, I'd like to lurk around and learn from plan9 users. Is the 9fans Discord server still online? All the links I found were expired.

I know there's IRC... I just don't have a bouncer and I'm not connected that much.

8 Comments
2024/03/28
22:47 UTC

4

Baremetal on ARM surface?

Has anyone attempted to install (plan)9(front) on the newer MS surface with the Qualcomm ARM cpu?

With drivers for the cell modem, it could be a dream machine...

3 Comments
2024/03/26
21:18 UTC

5

The impact of the open/close overhead

Plan9 has like 38 syscalls, which means that all other operations available via syscalls in OSs like Linux must be done in terms of file operations, and that can lead to a lot of open/close syscalls, so there's not only the overhead of the context switching but also whatever bookkeeping operations the kernel makes with the file descriptors.

So, instead of only making 1 context switch to get access to a certain functionality, now a program must make 3 context switches and 2 bookkeeping operations on the file descriptors to get the same.

So I'm wondering what's the impact of this overhead, and if (and what) actions have Plan9 done to mitigate it.

6 Comments
2024/03/26
10:44 UTC

4

How does one start a virtual file system in general?

Often when i try to start a web-browser in 9legacy/9front, it never works due to the webFS not being initiated beforehand. webFS is needed for any HTML browsers in plan9, but when i'd tried looking for a way to start webFS, results came up empty.

Is there a simple foolproof way to start up webFS? While i had more experience with plan9 over the years, i'm still new in some aspects, and one of those is starting up a virtual filesystem (that in ways acts like a driver on other systems) like webFS.

9 Comments
2024/03/23
01:37 UTC

6

Useful things to do post-install?

Hey everyone, just got around to my first bare-metal install of 9front last night. Are there any useful settings or programs to change/build post-install? I've already set up wifi.

18 Comments
2024/03/15
13:36 UTC

Back To Top