User Tools

Site Tools


vps_-_plan9front_-_ed_network_configuration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
vps_-_plan9front_-_ed_network_configuration [2022/02/20 03:59] – [ed] hc9vps_-_plan9front_-_ed_network_configuration [2022/07/19 19:30] – [rc: the Plan 9 shell] shriver
Line 1: Line 1:
-====== ed, network configuration ======+====== rc, ed, network configuration ====== 
 + 
 +===== rc: the  Plan 9 shell ===== 
 + 
 +    * **ctl-h** is backspace, kind of; **ctl-u** erases the current line. As seen, with the VPS Plan 9 console prompt **ctl-h** backspace, the screen output may not be what one would expect<sup>1</sup>
 +    * To detach the Plan 9 console prompt (%), while retaining the ability to reattach it __without__ rebooting your server, press **ctl-]** to close the prompt (%). Then, press '**q**' to disconnect the VPS Maintenance Shell menu, and ssh connection. You can return again with another [[:vps_-_plan9front_-_plan_9_instance_under_xen#default_pre-generated_installation|ssh]] to the allocated VPS server, an SDF VPS Maintenance Shell menu review, and a press on the "**c**" key to connect to the Plan 9 console prompt (%). 
 +    * //**ed**// and "''% sam -d''" are available in the Plan 9 Image. They may be used for setting the DNS, or other tasks from the Plan 9 VPS console prompt (%), before Drawterm is accessible. An [[http://sdf.org/?tutorials/ed | ed cheat-sheet]] is available. Additional editors are operational from a [[:vps_-_plan9front_-_drawterm_rio_and_stats#drawterm|Drawterm]] Rio rc prompt: acme, [[:vps_-_plan9front_-_acme_sam_abaco_mothra_and_man#sam|sam]], or ''% sam -d''
 + 
 +|% [[:vps_-_plan9front_-_acme_sam_abaco_mothra_and_man#sam|sam -d]]| Editing will be done with the command language only, as in //ed//.| 
 + 
 + 
 +=== Configuring a dynamic prompt === 
 + 
 +To have a prompt that shows your pwd and user name, add the following lines to your lib/profile. Place them in the 'case cpu' section replacing the cpu% prompt line  
 + 
 +<code> 
 +prompt=('['^`{pwd}^'] '^$sysname^'% ' ' ') 
 +fn cd {builtin cd $* && prompt=('['^`{pwd}^'] '^$sysname^'% ' ' ')} 
 +</code> 
 + 
 +These lines update the prompt, and replace the 'cd' command so that the prompt is updated each time you change a directory.
  
 ===== ed ===== ===== ed =====
Line 53: Line 73:
  
 === network configuration === === network configuration ===
- 
-=== Plan 9 shell === 
- 
-    * **ctl-h** is backspace, kind of; **ctl-u** erases the current line. As seen, with the VPS Plan 9 console prompt **ctl-h** backspace, the screen output may not be what one would expect<sup>1</sup>. 
-    * To detach the Plan 9 console prompt (%), while retaining the ability to reattach it __without__ rebooting your server, press **ctl-]** to close the prompt (%). Then, press '**q**' to disconnect the VPS Maintenance Shell menu, and ssh connection. You can return again with another [[:vps_-_plan9front_-_plan_9_instance_under_xen#default_pre-generated_installation|ssh]] to the allocated VPS server, an SDF VPS Maintenance Shell menu review, and a press on the "**c**" key to connect to the Plan 9 console prompt (%). 
-    * //**ed**// and "''% sam -d''" are available in the Plan 9 Image. They may be used for setting the DNS, or other tasks from the Plan 9 VPS console prompt (%), before Drawterm is accessible. An [[http://sdf.org/?tutorials/ed | ed cheat-sheet]] is available. Additional editors are operational from a [[:vps_-_plan9front_-_drawterm_rio_and_stats#drawterm|Drawterm]] Rio rc prompt: acme, [[:vps_-_plan9front_-_acme_sam_abaco_mothra_and_man#sam|sam]], or ''% sam -d''. 
- 
-|% [[:vps_-_plan9front_-_acme_sam_abaco_mothra_and_man#sam|sam -d]]| Editing will be done with the command language only, as in //ed//.| 
  
 <sup>1</sup> [[http://sdf.org/?tutorials/Plan_9_rc|Control keys -- Available at the SDF Boot Camp VPS server console prompt]] <sup>1</sup> [[http://sdf.org/?tutorials/Plan_9_rc|Control keys -- Available at the SDF Boot Camp VPS server console prompt]]