Revision 2 of 2026-11-25 15:15 UTC by tux, the current one. Current version - History
Conspy
5.1
conspy shows a Linux virtual console in your terminal and sends it
your keys: a tiny, text-mode VNC. Over SSH, it lets you watch or drive
the consoles of a remote SliTaz box, keep sessions running there like
screen does, or show someone what you type. It is a BusyBox applet,
so it is on every SliTaz system, even the smallest.
The basics
SliTaz opens a login on six virtual consoles, tty1 to tty6: switch with
Ctrl+Alt+F1 to F6 (the desktop runs on tty7). As root, or as a user
of the tty group, connect to a console by its number:
# conspy 1
conspy alone connects to the console on screen. To leave, press Esc
three times quickly: you are back in your terminal and the console
keeps running.
The options, from conspy --help:
-v: only watch, your keys are not sent;-c: create the missing/dev/ttyNand/dev/vcsaN;-s: open a shell on the console;-n: black and white;-d: dump the console to the standard output (a text screenshot);-f: follow the cursor;-F: the console is on a framebuffer;-Q: do not leave on Esc Esc Esc;-x COL,-y LINE: start at this column and line.
Conspy as screen: a session that stays
Linux has up to 63 virtual consoles and SliTaz uses the first seven. Pick a free one, say 28, and open a shell on it:
home$ ssh tux@slitazbox
box$ su
box# conspy -cs 28
# some commands
...
<Esc><Esc><Esc>
box# exit
box$ exit
The shell on console 28 keeps running when you leave, and so does anything you started in it. Later, from anywhere:
home$ ssh tux@slitazbox
box$ su
box# conspy 28
# more commands
...
<Esc><Esc><Esc>
To close the session, type exit in it before leaving with Esc Esc
Esc. If the console stays allocated, free it with:
# deallocvt 28
The long way, without -cs, does the same with openvt and
deallocvt:
# openvt -c 28 /bin/ash
# conspy 28
If you prefer a real terminal multiplexer, screen, tmux and
dtach are packaged:
# spk-add screen
$ screen -S mysession
Conspy as VNC: a shared console
Several people can look at the same console. Say a helper connected by SSH wants to show some commands to the user sitting at the box, who is on console 1. The helper brings console 1 to the screen and joins it:
home$ ssh slitazbox
slitazbox$ su
slitazbox# chvt 1
slitazbox# conspy 1
Now both see the same terminal, and both can type. A third person can
run conspy 1 too, or conspy -v 1 to only watch.
To share a graphical desktop instead, use a VNC server: see Remote desktop.
Tips
Slow links: a very verbose command started in a conspy session runs at full speed on the console, whatever the speed of your SSH link to the box, and it goes on even if the link breaks.
Text screenshot: dump a console to a file, without colours:
# conspy -nd 28 > screen28.txt
Troubleshooting
"can't open '/dev/vcsa28'" or a similar error: the console does not
exist yet. Add -c to create it, or open it first with openvt.
Permission denied: /dev/vcsa* and /dev/tty* are open to root
and the tty group only: run conspy as root (su), or add the user
to that group (addgroup tux tty, then log in again). Creating a
console with -c needs root.