playground:9front_terminal_on_a_raspberry_pi_2_b
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
playground:9front_terminal_on_a_raspberry_pi_2_b [2021/09/02 00:35] – [A Plan 9 rcpu application] hc9 | playground:9front_terminal_on_a_raspberry_pi_2_b [2021/11/12 03:50] (current) – removed hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== VPS - Plan 9 / 9Front, the namespace, and an interactive terminal ====== | ||
- | |||
- | * This tutorial is intended for SDF Boot Camp participants, | ||
- | * It's a supplement to the SDF Plan 9 Boot Camp tutorials. | ||
- | * And, a tutorial about the Raspberry Pi 2 B. | ||
- | * An amd64 terminal ('' | ||
- | |||
- | ===== DRAFT tutorial ===== | ||
- | |||
- | //====== 9front terminal on a Raspberry Pi 2 B ======// | ||
- | |||
- | |:!:|THIS IS A DRAFT| | ||
- | |||
- | **About** | ||
- | |||
- | This is a tutorial about setting-up the Plan 9 9front < | ||
- | |||
- | The following steps assume that you have edited files while user “glenda”, | ||
- | |||
- | The [[: | ||
- | |||
- | < | ||
- | |||
- | |||
- | ==== Less ambitious: ==== | ||
- | |||
- | ISO \\ [[http:// | ||
- | |||
- | **Note**: | ||
- | |||
- | RELEASE \\ [[http:// | ||
- | |||
- | OR | ||
- | |||
- | ==== More ambitious: ==== | ||
- | |||
- | Appendix J - Junk \\ Raspberry Pi \\ [[http:// | ||
- | |||
- | |||
- | ==== CAUTION: ==== | ||
- | |||
- | |: | ||
- | |||
- | Cautionary instructions for **working with SD cards** can be found here: | ||
- | |||
- | Installing operating system images \\ [[https:// | ||
- | |||
- | * Linux | ||
- | * Mac OS | ||
- | * Windows | ||
- | * Chrome OS | ||
- | |||
- | === The copy to an SD card process: === | ||
- | |||
- | **Linux**: | ||
- | |||
- | |:!:|Run '' | ||
- | |:!:|The mentioned ''/ | ||
- | |:!:|Do not guess. Verify first.| | ||
- | | **..**|Optionally, | ||
- | |||
- | * Run '' | ||
- | </ | ||
- | |||
- | * (:!: CAUTION) ''/ | ||
- | sudo dd bs=1M if=9pi.img of=/dev/sdc | ||
- | lsblk -p | ||
- | umount /dev/sdc1 | ||
- | sync | ||
- | </ | ||
- | |||
- | |:!:|THIS IS A DRAFT| | ||
- | |||
- | === The copy image process: === | ||
- | |||
- | * Insert the MicroSD card. | ||
- | * Start the Raspberry Pi 2 B. | ||
- | |||
- | < | ||
- | % 9fs pidos | ||
- | % cp / | ||
- | </ | ||
- | |||
- | Edit **cmdline.txt** if needed: | ||
- | |||
- | < | ||
- | % cd /n/pidos/ | ||
- | % lc cmdline.txt | ||
- | % sam cmdline.txt | ||
- | </ | ||
- | |||
- | |:!:|Add text with a single space separator, for example “mouseport=ps2intellimouse”; | ||
- | |||
- | Example of additional **cmdline.txt** text: | ||
- | |||
- | < | ||
- | console=0 mouseport=ps2intellimouse | ||
- | </ | ||
- | |||
- | * Optional (:!: CAUTION) example: < | ||
- | </ | ||
- | * :!: // | ||
- | * Boot the 9pi without the optional example. | ||
- | * Replace // | ||
- | |||
- | === An overclock the Pi 2 B process: === | ||
- | |||
- | Modify (optional) the default '' | ||
- | [pi2] | ||
- | kernel=9pi2 | ||
- | gpu_mem=16 | ||
- | disable_overscan=1 | ||
- | arm_freq=900 | ||
- | force_turbo=1 | ||
- | </ | ||
- | |||
- | === A start networking process: === | ||
- | |||
- | * The example is using [[wp> | ||
- | |||
- | * The '' | ||
- | </ | ||
- | |||
- | * < | ||
- | </ | ||
- | |||
- | ==== Timezone: ==== | ||
- | |||
- | **Configure a Time zone process**: | ||
- | |||
- | * [[: | ||
- | |||
- | **The shutdown process**: | ||
- | |||
- | * < | ||
- | </ | ||
- | |||
- | ==== The start network process: ==== | ||
- | |||
- | * Start the Raspberry Pi. < | ||
- | % ip/ipconfig | ||
- | % date | ||
- | </ | ||
- | * Checking the '' | ||
- | % date | ||
- | </ | ||
- | |||
- | **Note**: | ||
- | |||
- | |The pi.img file can be used for Raspberry Pi 1, 2, and 3.| | ||
- | |The pi3.img file can be used for Raspberry Pi 3 and 4. The “/ | ||
- | |||
- | ====== A Plan 9 9front SDF Boot Camp tutorial application ====== | ||
- | |||
- | - From the Plan 9 VPS Drawterm rio rc cpu prompt (%): < | ||
- | </ | ||
- | - From the Plan 9 9front Raspberry Pi rio rc terminal prompt (%): < | ||
- | password: | ||
- | ! | ||
- | </ | ||
- | - (This __may__ take time.) | ||
- | - From the Plan 9 VPS Drawterm rio rc prompt (%): | ||
- | - Press the [Delete] key once. | ||
- | - Enter the following to determine if any additional rcpu listening remains active. < | ||
- | </ | ||
- | |||
- | * Note: Half the battle is figuring out where to place the mice, since two mice are the used in this tutorial. | ||
- | * The mentioned 9pi terminal prompt (term%) [[: | ||
- | * The mentioned 9pi terminal [[: | ||
- | * The 9pi terminal example is not intended to replace Drawterm. | ||
- | * Additional review is required to determine if a 9pi terminal is suitable. | ||
- | * Further //study (([[https:// | ||
- | * The 9pi terminal may benefit from additional configuration (TBD). | ||
- | |||
- | ==== Additional files: ==== | ||
- | |||
- | * Create a file on the cpu (cpu%) machine. <file config invitemy9pi> | ||
- | #!/bin/rc | ||
- | echo ' | ||
- | aux/listen1 -t ' | ||
- | |||
- | </ | ||
- | * < | ||
- | chmod 755 invitemy9pi | ||
- | </ | ||
- | |||
- | * Create a file on the 9pi term (term%) machine. <file config recmy9pi> | ||
- | #!/bin/rc | ||
- | echo ' | ||
- | rcpu -h YOUR_IP -u glenda | ||
- | |||
- | </ | ||
- | * < | ||
- | chmod 755 recmy9pi | ||
- | </ | ||
- | |||
- | ====== A Plan 9 rcpu application ====== | ||
- | |||
- | From the Plan 9 9front Raspberry Pi rio rc terminal prompt (%): | ||
- | |||
- | === Edit the / | ||
- | |||
- | * The '' | ||
- | </ | ||
- | |||
- | === Check if factotum is running: === | ||
- | |||
- | < | ||
- | term% ps | grep factotum | ||
- | glenda | ||
- | </ | ||
- | |||
- | === Start factotum if it is not running: === | ||
- | |||
- | < | ||
- | term% auth/ | ||
- | </ | ||
- | |||
- | === RCPU to 9p.sdf.org === | ||
- | |||
- | * A '' | ||
- | % rcpu -h 9p.sdf.org -u USER | ||
- | password: | ||
- | ! | ||
- | </ | ||
- | |||
- | * Once connected to // | ||
- | cpu% cd /usr/$user | ||
- | </ | ||
- | |||
- | * Start the //rio (([[: | ||
- | cpu% rio | ||
- | </ | ||
- | |||
- | === An incorrect password repair method: === | ||
- | |||
- | < | ||
- | % cat / | ||
- | key proto=dp9ik dom=9sdf user=USER !password? | ||
- | % echo ' | ||
- | % | ||
- | </ | ||
- | |||
- | ===== Updating the 9pi ===== | ||
- | |||
- | <file config / | ||
- | |||
- | I.) Updating the 9pi system: | ||
- | |||
- | 1. type ' | ||
- | (you can 'cat / | ||
- | |||
- | 2. cd / | ||
- | 3. . / | ||
- | 4. cd /sys/src | ||
- | 5. mk install | ||
- | |||
- | II.) Updating the kernel: | ||
- | |||
- | 1. cd / | ||
- | 2. mk | ||
- | |||
- | III.) Installing the new kernel: | ||
- | |||
- | 1. type 9fs pidos | ||
- | # be careful: | ||
- | 2. cp / | ||
- | 3. fshalt -r | ||
- | |||
- | IV.) The 9pi should boot completely up-to-date. | ||
- | </ | ||
- | |||
- | * Installing the new kernel: < | ||
- | % cd | ||
- | % | ||
- | % 9fs pidos | ||
- | % cp / | ||
- | % fshalt -r | ||
- | </ | ||
- | |||
- | * Start networking & check date: < | ||
- | % ip/ipconfig | ||
- | % date | ||
- | </ | ||
- | |||
- | |:!:|THIS IS A DRAFT| | ||
- | |||
- | ===== To be determined ===== | ||
- | |||
- | ==== Least ambitious?: ==== | ||
- | |||
- | * It may be possible to use a 9front terminal ('' | ||
- | * The hardware must support networking. | ||
- | * Exclude timezone configuration step. | ||
- | * To be determined | ||