plan9front_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 revisionNext revisionBoth sides next revision | ||
plan9front_terminal_on_a_raspberry_pi_2_b [2023/06/30 23:29] – [Least ambitious?:] hc9 | plan9front_terminal_on_a_raspberry_pi_2_b [2023/11/23 21:12] – [CAUTION:] :!: m( hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Plan 9 / 9Front, the namespace, and an interactive terminal ====== | ||
+ | |||
+ | * This tutorial is intended for SDF Boot Camp participants, | ||
+ | * It's an accompaniment 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 ======// | ||
+ | |||
+ | |x|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 [[sdf|SDF]] [[plan_9_9front|Plan 9 / 9Front]] [[sdf_virtual_private_server_service|VPS]], | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | ==== Less ambitious: ==== | ||
+ | |||
+ | ISO \\ [[http:// | ||
+ | |||
+ | Nightly ISO \\ [[http:// | ||
+ | |||
+ | **Note**: | ||
+ | |||
+ | RELEASE \\ [[http:// | ||
+ | |||
+ | ^ //ISO// ((The //Raspberry Pi 2 Model B// available memory is limited, failing if there are too many updates, during an initial '' | ||
+ | | ✔ Nightly ISO ((A recent //Nightly ISO// may have an update, during an initial '' | ||
+ | |||
+ | | < | ||
+ | |||
+ | OR | ||
+ | |||
+ | ==== More ambitious: ==== | ||
+ | |||
+ | Appendix J - Junk \\ Raspberry Pi \\ [[http:// | ||
+ | |||
+ | |||
+ | ==== CAUTION: ==== | ||
+ | |||
+ | |[%%:!:%%] ((The [%%:!:%%] is interchangeable with a // | ||
+ | |||
+ | 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**: | ||
+ | |||
+ | |[%%: | ||
+ | |[%%: | ||
+ | |[%%: | ||
+ | | **..**|Optionally, | ||
+ | |||
+ | * Run '' | ||
+ | </ | ||
+ | |||
+ | * ([%%:!:%%] CAUTION) ''/ | ||
+ | sudo dd bs=1M if=9pi.img of=/dev/sdc | ||
+ | lsblk -p | ||
+ | umount /dev/sdc1 | ||
+ | sync | ||
+ | </ | ||
+ | |||
+ | |x|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 | ||
+ | </ | ||
+ | |||
+ | |[%%: | ||
+ | |||
+ | 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**: | ||
+ | |||
+ | * [[vps_-_9front# | ||
+ | |||
+ | **The shutdown process**: | ||
+ | |||
+ | * < | ||
+ | </ | ||
+ | |||
+ | ==== The start network process: ==== | ||
+ | |||
+ | * Start the Raspberry Pi. < | ||
+ | % ip/ipconfig | ||
+ | % date | ||
+ | </ | ||
+ | * Check 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%) [[vps_-_9front# | ||
+ | * The mentioned 9pi terminal [[vps_-_9front# | ||
+ | * 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 9front rcpu application ====== | ||
+ | |||
+ | From the plan9front 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 $home | ||
+ | </ | ||
+ | |||
+ | * Start the //rio (([[vps_-_9front# | ||
+ | cpu% rio | ||
+ | </ | ||
+ | |||
+ | * Start '' | ||
+ | cpu% stats -lmisce | ||
+ | </ | ||
+ | |||
+ | === An incorrect password repair example: === | ||
+ | |||
+ | < | ||
+ | % 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 | ||
+ | </ | ||
+ | |||
+ | [[spreading_the_word_about_sdf|{{https:// | ||
+ | |||
+ | |x|THIS IS A DRAFT| | ||
+ | |||
+ | ===== 9fs link ===== | ||
+ | |||
+ | |x|DRAFT FIXME| | ||
+ | |||
+ | |x|< | ||
+ | |x|< | ||
+ | |||
+ | ===== 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 | ||
plan9front_terminal_on_a_raspberry_pi_2_b.txt · Last modified: 2023/11/24 03:30 by hc9