vps_-_plan9front_-_ed_network_configuration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
vps_-_plan9front_-_ed_network_configuration [2022/07/19 19:30] – [rc: the Plan 9 shell] shriver | vps_-_plan9front_-_ed_network_configuration [2022/07/19 20:40] (current) – removed hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 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< | ||
- | * 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 "'' | ||
- | |||
- | |% [[: | ||
- | |||
- | |||
- | === 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 / | ||
- | </ | ||
- | |||
- | < | ||
- | % ed local-1ed | ||
- | 291 | ||
- | /ip= | ||
- | ip=127.0.0.1 sys=localhost dom=localhost | ||
- | s/ip=/#ip= | ||
- | # | ||
- | $ | ||
- | # | ||
- | 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 === | ||
- | |||
- | < | ||
- | |||
- | Editor reference: | ||
- | |||
- | |Sam, Ed, Acme|https:// | ||
- | |||
- | |Plan 9 Rc Survival Guide|http:// | ||
- | |||
- | |[[http:// | ||