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

Add pages/en folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 26 12:17:18 2011 +0000 (2011-02-26)
parents
children df9950c99d41
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 Later:
28 <code>
29 home$ ssh tux@slitazbox
30 box$ su
31 box# conspy 28
32 # more commands
33 ...
34 # <ESC><ESC><ESC>
35 box# exit
36 box$ exit
37 </code>
38 To close the session:
39 <code>
40 home$ ssh tux@slitazbox
41 box$ su
42 box# conspy 28
43 # exit
44 <ESC><ESC><ESC>
45 box# deallocvt 28
46 box# exit
47 box$ exit
48 </code>
49 If you prefer to use screen, see http://www.gnu.org/software/screen:
50 <code>
51 # tazpkg get-install screen
52 $ screen -S MySession
53 </code>
55 ===== Conspy as VNC (shared console) =====
57 You can share a virtual console between two or more users.
58 Say RemoteUser wants to show some commands to SlitazUser using SlitazBox.
59 RemoteUser selects SlitazUser's console with //chvt//:
60 <code>
61 home$ ssh SlitazBox
62 SlitazBox$ su
63 SlitazBox# chvt 1
64 SlitazBox# conspy 1
65 </code>
66 Now both users show the same terminal. A third user can do //conspy 1// too.
68 If you prefer to share the X11 display, install x11vnc (VNC server) and x11vnc-extra (java VNC client) see http://www.karlrunge.com/x11vnc/:
69 <code>
70 SlitazBox# tazpkg get-install x11vnc
71 SlitazBox# tazpkg get-install x11vnc-extra
72 SlitazBox# /etc/init.d/x11vnc start
73 </code>
74 <code>
75 home$ su
76 home# get-java-jre
77 home# exit
78 home$ firefox http://SlitazBox:5800/ultrasigned.vnc
79 </code>
81 ===== Conspy and slow connections =====
83 Launch a very verbose command into a conspy and the output is displayed at full speed in the virtual console what ever your connection speed to the remote box is, even if your connection is broken.
84 ===== Conspy and Busybox =====
86 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:
87 * -c to create missing devices (/dev/vcsaXX and /dev/ttyXX)
88 * -d for screen shot<code># conspy -d 28 > screen28.txt</code>
89 * -s to launch a shell<code># conspy -cs 28</code> (no more openvt)
90 * -x COL -y LINE upper left corner position
91 * -f follow cursor with automatic scrollings
93 The conspy applet is enabled in the busybox package. The conspy package is no longer more useful than the recent busybox.
95 ----
96 \\
97 ^ Page Review Section ^^
98 |Quality| Good |
99 |Review| Minor Updates |
100 |Priority| Medium |
101 |Problems| add a [[http://forum.slitaz.org|forum post link]]|
102 |::: | OR add a [[http://labs.slitaz.org/issues |lab issue tracker link ]]|
103 |How to Improve| Suggest briefly|
104 |::: | |
106 \\
107 ----