User Tools

Site Tools


playground:misc:newuser_raspberry_pi_2_b

raspberry pi 2 b, newuser and 9fs

A plan9 / 9front interactive terminal newuser USER thread.

  • This tutorial is intended for SDF Boot Camp participants, providing them and overview.
  • It's an accompaniment to the SDF Plan 9 Boot Camp tutorials.
  • And, a tutorial about the Raspberry Pi 2 B.
x:!: DRAFT
x Tutorial [ ] Guide [x]

Edit the cmdline.txt if needed:

  % 9fs pidos
  % cd /n/pidos/
  % lc cmdline.txt
  % sam cmdline.txt
:!:Add text with a single space separator, for example “mouseport=ps2intellimouse”; all “cmdline.txt” entries remain on a single line.
xThe example cmdline.txt text will prompt for a user during the restart (fshalt -r):
console=0 mouseport=ps2intellimouse

To create a new user, you must connect to the file server console by typing: 'con -C /srv/hjfs.cmd'. Once at the file server prompt (a blank), create a new user. Replace USER with what you want your new user to be named: 'newuser USER'. You will need to add that USER to the “sys” group if you want it to be able to change system configuration files. Again, change USER to what your new user name is: 'newuser sys +USER'. Exit the file server console prompt (a blank) by typing: 'ctrl+\'. You will now be at the “> > >” prompt; type 'q' to quit the “> > >” prompt.

1.Optional Plan 9 Boot Camp resource: replace USER with the 9p.sdf.org1) username (omitting the @9p.sdf.org).
2.Evaluate newuser sys +USER
a.Necessary for removing /usr/sdf files after sdflink (9p.sdf.org), unless user /usr/glenda.
3.Evaluate newuser upas +USER
a.Necessary for the command mail -c during step 5.
b.Further /mail/box discussion is outside the scope of this tutorial.
c.The SD card may have limited storage space.
  % con -C /srv/hjfs.cmd
  newuser USER
  newuser sys +USER
  newuser upas +USER
  

Ctrl+\

  >>> q
  %
Notes
xReview 'newuser adm +USER' (not needed).
a.newuser adm +USER
b.newuser adm -USER
xOmit 'newuser sys +USER' if not needed.
xOmit 'newuser upas +USER' if not needed.
xhjfs - file server maintenancehttp://man.9front.org/8/hjfs
a.Newuser requires a name argument.
I.Add member to the member list of name.
II.Remove existing member from the member list of name.

Restart the system:

  % fshalt -r

user[glenda]: ← Enter the new 'USER' name.

Verify your new “USER” login with 'pwd' or 'lc -l'. Stop if 'pwd' does not show your new “USER” name.

1.Initialize the new user environment with '/sys/lib/newuser'.
  term% /sys/lib/newuser
xCreate $user /mail/box files with 'mail -c'.
a.'mail -c' requires the newuser upas +USER step to complete
b.Run 'mail -c' after the '/sys/lib/newuser' is run
  term% mail -c
xnewuser - adding a new userhttp://man.9front.org/8/newuser
xmaintain or query authentication databaseshttp://man.9front.org/8/auth
a.These administrative commands run only on the authentication server.
2.The initial Rio display is a blank grey screen.

3.At the Rio blank grey screen, press the right button of your mouse. A menu should appear. Then, release the button over the “New” option.

There is a “Delete” option (above) in addition to the “New” option. This “Delete” option is useful. It will delete a window gracefully.

4.Now, press the right button again near the upper-left corner of rio, and drag the mouse to the lower-right before releasing the button, drawing a rectangle.

5.You should now have a Rio window, and rc prompt (term%).
a.Copy the previously written /usr/glenda files if needed.
x mkdir - make a directory http://man.9front.org/1/mkdir
x cp, fcp, mv - copy, move files http://man.9front.org/1/cp
6.cat the raspberry pi 2 b /adm/users for further review/troubleshooting, depending on the situation and usage of newuser +.
a.This is an accompaniment to an SDF Plan 9 Boot Camp tutorial.
  term% cat /adm/users
  % rcpu -h 9p.sdf.org -u $user
  % cd /usr/sdf/bin
  % cat sdflink
 
1.Recreate the /usr/sdf/bin/sdflink script on the raspberry pi 2 b.
a.raspberry pi 2 b: $home/bin/rc/sdflink
b.Select SDF 9p commands are available after the raspberry pi 2 b $home/bin/rc/sdflink has run.
  % sdflink
  ...post
  %
 
Command
comsdflink, recently released during the Summer SDF Plan 9 Boot Camp
bboard -ssdflink, recently released during the Summer SDF Plan 9 Boot Camp
  % com
  
  commode version 6
  type @help for commands
 
1)
plan9front running natively on hardware.
playground/misc/newuser_raspberry_pi_2_b.txt · Last modified: 2022/07/26 01:01 by hc9