Discussion:
[9fans] (RPi) Added new user - now what?
(too old to reply)
Roswell Grey
2013-08-14 23:29:40 UTC
Permalink
I've done con -l /srv/fscons and gone through that process. But I don't
know what to do to log in as the new user. The console just does its
business and logs in to Glenda. How do I make it prompt, or is this even
possible? Thanks!
Deepak Chawla
2013-08-14 23:53:09 UTC
Permalink
Check your plan9.ini (in the 9fat partition), it probably has a
"user=glenda" line in there. Remove it and it'll prompt for a user name.
Post by Roswell Grey
I've done con -l /srv/fscons and gone through that process. But I don't
know what to do to log in as the new user. The console just does its
business and logs in to Glenda. How do I make it prompt, or is this even
possible? Thanks!
Richard Miller
2013-08-15 07:08:49 UTC
Permalink
Post by Deepak Chawla
Check your plan9.ini (in the 9fat partition), it probably has a
"user=glenda" line in there. Remove it and it'll prompt for a user name.
Correct, except on the pi it's cmdline.txt instead of plan9.ini
Richard Miller
2013-08-15 07:14:06 UTC
Permalink
Post by Deepak Chawla
Check your plan9.ini (in the 9fat partition), it probably has a
"user=glenda" line in there. Remove it and it'll prompt for a user name.
Correct, except on the pi it's cmdline.txt instead of plan9.ini

... and it's a dos partition instead of 9fat. Mount with 'dosmnt 1 /n/d'
erik quanstrom
2013-08-15 07:17:28 UTC
Permalink
Post by Richard Miller
Post by Deepak Chawla
Check your plan9.ini (in the 9fat partition), it probably has a
"user=glenda" line in there. Remove it and it'll prompt for a user name.
Correct, except on the pi it's cmdline.txt instead of plan9.ini
... and it's a dos partition instead of 9fat. Mount with 'dosmnt 1 /n/d'
; 9diff 9fat:
/n/sources/plan9/rc/bin/9fat::1,7 - 9fat::1,7
#!/bin/rc

rfork e
- part=`{ls /dev/fs/9fat /dev/sd*/9fat >[2]/dev/null}
+ part=`{ls /dev/fs/9fat /dev/sd*/9fat /dev/sd*/dos >[2]/dev/null}
if(~ $#part 0) {
echo 'no 9fat partition found' >[1=2]
exit no.9fat

- erik
Skip Tavakkolian
2013-08-15 07:30:36 UTC
Permalink
c:

even shorter :)


On Thu, Aug 15, 2013 at 12:17 AM, erik quanstrom
Post by erik quanstrom
Post by Richard Miller
Post by Deepak Chawla
Check your plan9.ini (in the 9fat partition), it probably has a
"user=glenda" line in there. Remove it and it'll prompt for a user
name.
Post by Richard Miller
Correct, except on the pi it's cmdline.txt instead of plan9.ini
... and it's a dos partition instead of 9fat. Mount with 'dosmnt 1 /n/d'
/n/sources/plan9/rc/bin/9fat::1,7 - 9fat::1,7
#!/bin/rc
rfork e
- part=`{ls /dev/fs/9fat /dev/sd*/9fat >[2]/dev/null}
+ part=`{ls /dev/fs/9fat /dev/sd*/9fat /dev/sd*/dos >[2]/dev/null}
if(~ $#part 0) {
echo 'no 9fat partition found' >[1=2]
exit no.9fat
- erik
Bakul Shah
2013-08-15 07:08:20 UTC
Permalink
Post by Roswell Grey
I've done con -l /srv/fscons and gone through that process. But I don't
know what to do to log in as the new user. The console just does its
business and logs in to Glenda. How do I make it prompt, or is this even
possible? Thanks!
[Assuming you started with
http://plan9.bell-labs.com/sources/contrib/miller/9pi.img.gz]

This is decided by what's in cmdline.txt on the dos partition.
Do the following

dosmnt 1 /n/dos
cd /n/dos
cp cmdline-term.txt cmdline.txt
fshalt -r
Loading...