Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:guides:conspy [2010/07/08 17:14] 127.0.0.1 external edit |
en:guides:conspy [2017/05/19 18:51] (current) hgt replaced broken link |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Conspy : tiny screen or VNC ====== | ====== Conspy : tiny screen or VNC ====== | ||
- | Slitaz core provides the 10Kb conspy to get remote control of Linux virtual consoles. See http://ace-host.stuart.id.au/russell/files/conspy/ | + | Slitaz core provides the 10Kb conspy to get remote control of Linux virtual consoles. See http://conspy.sourceforge.net/ |
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). | 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). | ||
To exit from conspy (and the virtual console) press the escape key three times in quick succession. | To exit from conspy (and the virtual console) press the escape key three times in quick succession. | ||
- | |||
===== Conspy as screen (session manager) ===== | ===== Conspy as screen (session manager) ===== | ||
Line 25: | Line 24: | ||
box$ exit | box$ exit | ||
</code> | </code> | ||
+ | <note tip> | ||
+ | With a recent busybox (see below) you can skip the openvt step: | ||
+ | <code> | ||
+ | home$ ssh tux@slitazbox | ||
+ | box$ su | ||
+ | box# conspy -cs 28 | ||
+ | # some commands | ||
+ | ... | ||
+ | # <ESC><ESC><ESC> | ||
+ | box# exit | ||
+ | box$ exit | ||
+ | </code> | ||
+ | </note> | ||
Later: | Later: | ||
<code> | <code> | ||
Line 47: | Line 59: | ||
box$ exit | box$ exit | ||
</code> | </code> | ||
+ | <note tip> | ||
+ | With a recent busybox (see below) you can skip the deallocvt step: | ||
+ | <code> | ||
+ | home$ ssh tux@slitazbox | ||
+ | box$ su | ||
+ | box# conspy 28 | ||
+ | # clear; exit | ||
+ | <ESC><ESC><ESC> | ||
+ | box# exit | ||
+ | box$ exit | ||
+ | </code> | ||
+ | </note> | ||
If you prefer to use screen, see http://www.gnu.org/software/screen: | If you prefer to use screen, see http://www.gnu.org/software/screen: | ||
<code> | <code> | ||
Line 78: | Line 102: | ||
home$ firefox http://SlitazBox:5800/ultrasigned.vnc | home$ firefox http://SlitazBox:5800/ultrasigned.vnc | ||
</code> | </code> | ||
+ | |||
+ | ===== X11VNC Autostart ===== | ||
+ | If you'd like to start X11VNC automatically you must edit /home/$USER/.xinitrc with: | ||
+ | |||
+ | <code> # nano /home/tux/.xinitrc </code> | ||
+ | |||
+ | <file> | ||
+ | # ~/.xinitrc: Executed by slim login manager to startx X session. | ||
+ | # You can use F1 with Slim to change your window manager or configure | ||
+ | # it permanently with your personal applications.conf file. | ||
+ | # | ||
+ | . $HOME/.config/slitaz/applications.conf | ||
+ | |||
+ | ############################################################ | ||
+ | ## ATTENTION!!! INSERT THE FOLLOWING LINE AFTER .conf FILE CALL | ||
+ | /etc/init.d/x11vnc start & | ||
+ | |||
+ | case $1 in | ||
+ | e17|enlightenment*) | ||
+ | ... | ||
+ | </file> | ||
+ | |||
+ | **DO NOT USE** the Autostart Programs option under OpenBox or Daemon tricks, it will start a X11VNCserver before a X11server and crash the VNC after the first client connection. So you'll only connect once to the server (and it's not desirable in support environments). | ||
+ | |||
+ | ===== Conspy and slow connections ===== | ||
+ | |||
+ | 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). | ||
+ | ===== Conspy and Busybox ===== | ||
+ | |||
+ | 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: | ||
+ | * -c to create missing devices (/dev/vcsaXX and /dev/ttyXX) | ||
+ | * -d for screen shot<code># conspy -nd 28 > screen28.txt</code> | ||
+ | * -s to launch a shell<code># conspy -cs 28</code> (no more openvt/deallocvt) | ||
+ | * -x COL -y LINE upper left corner position | ||
+ | * -f follow cursor with automatic scrollings | ||
+ | |||
+ | 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. | ||
---- | ---- |