slitaz-doc-wiki-data view pages/en/guides/conspy.txt @ rev 86

Updated meta folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Aug 02 21:40:18 2011 +0000 (2011-08-02)
parents df9950c99d41
children
line source
1 ====== Conspy : tiny screen or VNC ======
3 Slitaz core provides the 10Kb conspy to get remote control of Linux virtual consoles. See http://ace-host.stuart.id.au/russell/files/conspy/
5 Slitaz opens 6 virtual consoles which you can access with Ctrl-Alt-F1 to Ctrl-Alt-F6. You can connect to console 1 with //conspy 1// and console n with //conspy n// or the current active console with //conspy// (root user only).
7 To exit from conspy (and the virtual console) press the escape key three times in quick succession.
9 ===== Conspy as screen (session manager) =====
11 Linux supports up to 63 virtual consoles. You can have up to 62 (63 - X11 on console 7) sessions. Six sessions are already opened by Slitaz.
12 You can open a new console / new session (say console 28) with //openvt -c 28 /bin/login// or //openvt -c 28 /bin/ash//.
13 You can free this virtual console with //deallocvt 28//.
15 Example:
16 <code>
17 home$ ssh tux@slitazbox
18 box$ su
19 box# openvt -c 28 /bin/ash
20 box# conspy 28
21 # some commands
22 ...
23 # <ESC><ESC><ESC>
24 box# exit
25 box$ exit
26 </code>
27 <note tip>
28 With a recent busybox (see below) you can skip the openvt step:
29 <code>
30 home$ ssh tux@slitazbox
31 box$ su
32 box# conspy -cs 28
33 # some commands
34 ...
35 # <ESC><ESC><ESC>
36 box# exit
37 box$ exit
38 </code>
39 </note>
40 Later:
41 <code>
42 home$ ssh tux@slitazbox
43 box$ su
44 box# conspy 28
45 # more commands
46 ...
47 # <ESC><ESC><ESC>
48 box# exit
49 box$ exit
50 </code>
51 To close the session:
52 <code>
53 home$ ssh tux@slitazbox
54 box$ su
55 box# conspy 28
56 # exit
57 <ESC><ESC><ESC>
58 box# deallocvt 28
59 box# exit
60 box$ exit
61 </code>
62 <note tip>
63 With a recent busybox (see below) you can skip the deallocvt step:
64 <code>
65 home$ ssh tux@slitazbox
66 box$ su
67 box# conspy 28
68 # clear; exit
69 <ESC><ESC><ESC>
70 box# exit
71 box$ exit
72 </code>
73 </note>
74 If you prefer to use screen, see http://www.gnu.org/software/screen:
75 <code>
76 # tazpkg get-install screen
77 $ screen -S MySession
78 </code>
80 ===== Conspy as VNC (shared console) =====
82 You can share a virtual console between two or more users.
83 Say RemoteUser wants to show some commands to SlitazUser using SlitazBox.
84 RemoteUser selects SlitazUser's console with //chvt//:
85 <code>
86 home$ ssh SlitazBox
87 SlitazBox$ su
88 SlitazBox# chvt 1
89 SlitazBox# conspy 1
90 </code>
91 Now both users show the same terminal. A third user can do //conspy 1// too.
93 If you prefer to share the X11 display, install x11vnc (VNC server) and x11vnc-extra (java VNC client) see http://www.karlrunge.com/x11vnc/:
94 <code>
95 SlitazBox# tazpkg get-install x11vnc
96 SlitazBox# tazpkg get-install x11vnc-extra
97 SlitazBox# /etc/init.d/x11vnc start
98 </code>
99 <code>
100 home$ su
101 home# get-java-jre
102 home# exit
103 home$ firefox http://SlitazBox:5800/ultrasigned.vnc
104 </code>
106 ===== Conspy and slow connections =====
108 Launch a very verbose command into a conspy and the output is displayed at full speed in the virtual console whatever your connection speed to the remote box is (even if your connection is broken).
109 ===== Conspy and Busybox =====
111 Conspy is a busybox applet since busybox 1.17.0. It adds 2.5Kb to busybox, has better terminal support and supports some new options:
112 * -c to create missing devices (/dev/vcsaXX and /dev/ttyXX)
113 * -d for screen shot<code># conspy -nd 28 > screen28.txt</code>
114 * -s to launch a shell<code># conspy -cs 28</code> (no more openvt/deallocvt)
115 * -x COL -y LINE upper left corner position
116 * -f follow cursor with automatic scrollings
118 The conspy applet is enabled in the busybox package. The conspy package is no longer more useful than the recent busybox and will be removed from the packages database.
120 ----
121 \\
122 ^ Page Review Section ^^
123 |Quality| Good |
124 |Review| Minor Updates |
125 |Priority| Medium |
126 |Problems| add a [[http://forum.slitaz.org|forum post link]]|
127 |::: | OR add a [[http://labs.slitaz.org/issues |lab issue tracker link ]]|
128 |How to Improve| Suggest briefly|
129 |::: | |
131 \\
132 ----