vps_-_plan9front_-_ed_network_configuration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
vps_-_plan9front_-_ed_network_configuration [2022/02/19 17:46] – hc9 | vps_-_plan9front_-_ed_network_configuration [2022/07/19 19:30] – [rc: the Plan 9 shell] shriver | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== ed, network configuration ====== | + | ====== |
- | === ed === | + | ===== rc: the Plan 9 shell ===== |
- | === network configuration === | + | * **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< |
+ | * 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 ' | ||
+ | * //**ed**// and "'' | ||
- | < | + | |% [[: |
- | * **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< | ||
- | * 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 ' | ||
- | * //**ed**// and "'' | ||
- | |% [[#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/ | ||
+ | |||
+ | < | ||
+ | prompt=(' | ||
+ | fn cd {builtin cd $* && prompt=(' | ||
+ | </ | ||
+ | |||
+ | These lines update the prompt, and replace the ' | ||
+ | |||
+ | ===== ed ===== | ||
+ | |||
+ | Ed is a text editor, and similar to [[: | ||
+ | |||
+ | < | ||
+ | % cd samtest | ||
+ | % cp /lib/ndb/local local-1ed | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | % ed local-1ed | ||
+ | 291 | ||
+ | | ||
+ | ip=127.0.0.1 sys=localhost dom=localhost | ||
+ | s/ip=/#ip= | ||
+ | #ip=127.0.0.1 sys=localhost dom=localhost | ||
+ | $ | ||
+ | # | ||
+ | a | ||
+ | ip=YOUR_IP sys=plan9 dom=plan9 dns=205.166.94.20 | ||
+ | . | ||
+ | w | ||
+ | 341 | ||
+ | q | ||
+ | % | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | % cp / | ||
+ | % ed termrc.local-1ed | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | % ed termrc.local-1ed | ||
+ | 424 | ||
+ | $ | ||
+ | cpu=CP | ||
+ | a | ||
+ | ip/ipconfig -g 205.166.94.1 ether /net/ether0 YOUR_IP 255.255.255.0 | ||
+ | ndb/cs | ||
+ | ndb/dns -r | ||
+ | . | ||
+ | w | ||
+ | 510 | ||
+ | q | ||
+ | % | ||
+ | </ | ||
+ | |||
+ | ^Command^ Title^ Quick Reference^ | ||
+ | |ED|ed Cheat Sheet|http:// | ||
+ | |||
+ | === network configuration === | ||
< | < | ||
Line 18: | Line 79: | ||
|Sam, Ed, Acme|https:// | |Sam, Ed, Acme|https:// | ||
- | |||
- | |Sam, Ed, Acme|https:// | ||
|Plan 9 Rc Survival Guide|http:// | |Plan 9 Rc Survival Guide|http:// | ||
+ | |||
+ | |[[http:// | ||