Skip to main content


Any #Plan9 gurus on the fedi?

I've managed to break my profile causing me to be unable to connect to my account. It disconnects me upon running the profile script. drawterm -c is not an option because it executes the profile disconnecting me before even running the command. drawterm -G's a no-go as well.

Is there a way I can mount my remote home directory into my local (Debian 12) filesystem so that I can fix the profile without running rcpu?

#AskFedi

in reply to Jonathan Lamothe

you can pass a command to drawterm -G to run rc -i without the -l so it wont load your profile.
in reply to Jonathan Lamothe

-c is how you pass the command, there is not another way to do it. Why can't you use -c?
in reply to moody

@moody
From the man page:

The command to run can be passed with -c cmd ..., otherwise an interactive shell is started. The user's profile is run before the command with $service set to cpu to allow further customization of the environment (see rc(1) for more information).


Problem is that the profile is executed before the command is run, so it boots me before even running the command. This is why I was trying to see if I could remote mount the filesystem to get around this.

in reply to moody

Content warning: scary compiler error

in reply to Jonathan Lamothe

You need at least openssl1.1 this seems like you only have 1.0 which has not been supported for 3 years and counting.
in reply to moody

@moody That's surprising. Stuff in Debian's repositories is often out of date, but not usually that out of date.
in reply to Jonathan Lamothe

Yeah, something does seem a bit fishy, sorry that it doesn't work out for you. I'll get a debian VM going in a bit and figure out whats up. In terms of booting a 9front VM, you should be able to use the live CD for connecting, you don't need to do a full install first. For what that's worth.
in reply to moody

@moody Such is the nature of compiling C code. I really wish it had some sort of automatic dependency management, but what can you expect from a language that old?

When the bootcamp is over, I actually want to get into writing software for Plan9, because despite being very C-centric, it seems a nice system to develop for.

Edit: autocorrupt

in reply to Jonathan Lamothe

I figured out the issue, it was somehow related to the ordering of passing the -l flags to cc (ugh!), if you pull the latest code from sr.ht it should build fine on debian stable now. You will need both libssl-dev and pkg-config. I've added debian to the CI builds for this now so this shouldn't slip by again without me noticing. Thanks for the bug report.

Plan 9 C thankfully has none of this insanity, as you've noticed.

in reply to Jonathan Lamothe

@moody So I ran:
./tlsclient -u jlamothe -h 9p.sdf.org -a 9p.sdf.org -p 17019 rm /usr/jlamothe/lib/profile
...but my profile still seems to exist. It's giving me the same error about line 7 when I connect using drawterm.
in reply to Jonathan Lamothe

You need -R to make tlslcient act like rcpu, by default it works closer to tlsclient on 9front. If you choose to just remove the file don't forget to re-run /sys/lib/newuser to generate a new default.
in reply to Jonathan Lamothe

Cool, so now you can do something like:

tlsclient -R -h 9p.sdf.org -a 9p.sdf.org rc -i

Then edit profile with either ed or sam -d.

in reply to moody

@moody oh my god, I have a prompt!

Thank you!!

Edit: I was clearly too happy here to be bothered with proper spelling.

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.