This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
screen [2009/04/10 07:49] k2patel |
screen [2009/04/11 04:49] jt |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Screen Quick Help ====== | + | ====== Using Screen ====== |
- | ~/.screenrc: | + | === allow people to attach to my screen === |
- | # allow people to attach to my screen | + | |
- | <code bash> | + | <code bash | ~/.screenrc> |
multiuser on | multiuser on | ||
</code> | </code> | ||
- | # allow the following people full control | + | === allow the following people full control === |
<code bash> | <code bash> | ||
addacl root,aledesma,mymanager,mycoworker1,mycoworker2 | addacl root,aledesma,mymanager,mycoworker1,mycoworker2 | ||
Line 13: | Line 14: | ||
</code> | </code> | ||
- | # allow everyone readonly access | + | === allow everyone readonly access === |
<code bash> | <code bash> | ||
aclchg *,!aledesma -rwx “#?” | aclchg *,!aledesma -rwx “#?” | ||
</code> | </code> | ||
- | # setup 10,000 lines of available scrollback — copy/paste | + | === setup 10,000 lines of available scrollback — copy/paste === |
<code bash> | <code bash> | ||
defscrollback 10000 | defscrollback 10000 | ||
- | |||
</code> | </code> | ||
- | # fix scrollback in putty | + | |
+ | === fix scrollback in putty === | ||
<code bash> | <code bash> | ||
termcapinfo xterm* ti@:te@ | termcapinfo xterm* ti@:te@ | ||
Line 60: | Line 64: | ||
Search is a very useful feature. For example, you could run a script and search for keywords in the output (such as Error), without having to redirect the output. | Search is a very useful feature. For example, you could run a script and search for keywords in the output (such as Error), without having to redirect the output. | ||
+ | |||
+ | <code text> | ||
+ | GNU nano 2.0.2 File: .screenrc | ||
+ | |||
+ | hardstatus alwayslastline "%H Screen(s): %{b}%w %=%{kG}%C%A %D, %M/%d/%Y " | ||
+ | |||
+ | startup_message off | ||
+ | defscrollback 5000 | ||
+ | msgwait 1 | ||
+ | |||
+ | bindkey -k k1 select 1 | ||
+ | bindkey -k k2 select 2 | ||
+ | bindkey -k k3 select 3 | ||
+ | bindkey -k k4 select 4 | ||
+ | |||
+ | bindkey -k k5 screen | ||
+ | bindkey -k k6 title | ||
+ | bindkey -k k7 prev | ||
+ | bindkey -k k8 next | ||
+ | bindkey -k k9 detach | ||
+ | |||
+ | </code> |