SliTaz GNU/Linux official and community documentation wiki.
.png

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
en:guides:conspy [2010/02/21 02:25]
jozee created
en:guides:conspy [2012/04/22 11:00]
linea
Line 1: Line 1:
-====== ​Install the latest non-free Nvidia driver ​======+====== ​Conspy : tiny screen or VNC ======
  
-=== Required Reading ===+Slitaz core provides the 10Kb conspy to get remote control of Linux virtual consoles. See http://​ace-host.stuart.id.au/​russell/​files/​conspy/​
  
-    * Handbook ​[[http://www.slitaz.org/en/doc/handbook/x-window.html#​xorg|Xorg Installation]] +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).
-    * Quickstart Guide - [[en:​guides:​quickstart:​kernel|Build your own custom Linux Kernel]]+
  
-=== Prepare ===+To exit from conspy (and the virtual console) press the escape key three times in quick succession.
  
-    * Download the installer from the Nvidia [[http://​www.nvidia.com/​object/​unix.html|website]]. Latest version 190.53 +===== Conspy as screen (session manager) =====
-    * Install the Xorg server+
  
 +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.
 +You can open a new console / new session (say console 28) with //openvt -c 28 /​bin/​login//​ or //openvt -c 28 /bin/ash//.
 +You can free this virtual console with //deallocvt 28//.
 +
 +Example:
 <​code>​ <​code>​
-tazpkg get-install xorg-server+home$ ssh tux@slitazbox 
 +box$ su 
 +boxopenvt ​-c 28 /bin/ash 
 +box# conspy 28 
 +# some commands 
 +... 
 +# <​ESC><​ESC><​ESC>​ 
 +box# exit 
 +box$ exit
 </​code>​ </​code>​
- +<note tip> 
-    * Install ​the linux-source package and development tools. See [[http://​community.slitaz.org/​wiki/​quickstart/​customkernel|here]] +With a recent busybox (see below) you can skip the openvt step:
 <​code>​ <​code>​
-tazpkg get-install linux-source+home$ ssh tux@slitazbox 
 +box$ su 
 +boxconspy ​-cs 28 
 +# some commands 
 +... 
 +# <​ESC><​ESC><​ESC>​ 
 +box# exit 
 +box$ exit
 </​code>​ </​code>​
- +</​note>​ 
- +Later:
-=== Install the driver === +
-For this part you're going to need a pencil and paper as we now have to work in text mode without a X-server running +
- +
-When you're ready press alt-ctrl-del,​ you should now see a command line:+
- +
-    * Configure the X-server and copy the (generated) xorg.conf +
 <​code>​ <​code>​
-Xorg -configure +home$ ssh tux@slitazbox 
-cp /root/xorg.conf.new /​etc/​X11/​xorg.conf+box$ su 
 +boxconspy 28 
 +more commands 
 +... 
 +# <​ESC><​ESC><​ESC>​  
 +box# exit 
 +box$ exit
 </​code>​ </​code>​
- +To close the session:
-    * Prepare ​the Kernel+
 <​code>​ <​code>​
-# cd /​usr/​src/​linux +home$ ssh tux@slitazbox 
- +box$ su 
-make oldconfig && make prepare +boxconspy 28 
- +exit 
-make menuconfig (not required - but if you've come this far, you can take a peek) +<​ESC><​ESC><​ESC>​ 
-make bzImage +boxdeallocvt 28 
-make modules ​ +boxexit 
-# make modules_install+box$ exit
 </​code>​ </​code>​
- +<note tip> 
-    * Now make executable and install the Nvidia driver, change to directory ​you installed to+With a recent busybox (see below) ​you can skip the deallocvt step:
 <​code>​ <​code>​
- chmod +x NVIDIA-Linux-x86-177.80.pkg1.run +home$ ssh tux@slitazbox 
- # ​./NVIDIA-Linux-x86-177.80.pkg1.run --kernel-source-path=/usr/src/linux+box$ su 
 +boxconspy 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: 
 +<​code>​ 
 +# tazpkg get-install screen 
 +$ screen -S MySession
 </​code>​ </​code>​
  
-    * Copy the Kernel Image to /boot+===== Conspy as VNC (shared console) =====
  
 +You can share a virtual console between two or more users.
 +Say RemoteUser wants to show some commands to SlitazUser using SlitazBox.
 +RemoteUser selects SlitazUser'​s console with //chvt//:
 <​code>​ <​code>​
-cd /​usr/​src/​linux +home$ ssh SlitazBox 
-cp arch/​x86/​boot/​bzImage /boot+SlitazBox$ su 
 +SlitazBoxchvt 1 
 +SlitazBoxconspy 1
 </​code>​ </​code>​
 +Now both users show the same terminal. A third user can do //conspy 1// too.
  
- +If you prefer to share the X11 display, install x11vnc (VNC server) and x11vnc-extra (java VNC client) see http://​www.karlrunge.com/​x11vnc/:​
-=== Restart === +
- +
-    * Reboot into text mode+
 <​code>​ <​code>​
-reboot ​Hard drive users +SlitazBoxtazpkg get-install x11vnc 
-tazusb writefs gzip && reboot ​USB users+SlitazBoxtazpkg get-install x11vnc-extra 
 +SlitazBox# /​etc/​init.d/​x11vnc start 
 +</​code>​ 
 +<​code>​ 
 +home$ su 
 +home# get-java-jre 
 +home# exit 
 +home$ firefox http://​SlitazBox:​5800/​ultrasigned.vnc
 </​code>​ </​code>​
  
-Don't forget ​to pass the screen=text option at startup, (it may well boot into text mode anyway, if not just press alt-ctrl-del again)+===== X11VNC Autostart ​ ===== 
 +If you'd like to start X11VNC automatically you must edit /​home/​$USER/​.xinitrc with:
  
-    * Load the nvidia module+<​code>​ # nano /​home/​tux/​.xinitrc </​code>​
  
-<code+<file
-modprobe -v nvidia ​ +~/.xinitrc: Executed by slim login manager to startx X session. 
-</code>+# 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
  
-    * Edit Slim configuration file to load Xorg server+############################################################​ 
 +## ATTENTION!!! INSERT THE FOLLOWING LINE AFTER .conf FILE CALL 
 +/​etc/​init.d/​x11vnc start &
  
-<​code>​ +case $1 in 
-# vi /etc/slim.conf+ e17|enlightenment*) 
 +... 
 +</​file>​
  
-default_xserver ​    /​usr/​bin/​Xorg +**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).
-#​default_xserver ​    /​usr/​bin/​Xvesa +
-#​xserver_arguments ​  -ac -shadow dpms +extension Composite -screen 1024x768x24 +
-</​code>​+
  
-    * Restart Slim+===== Conspy and slow connections =====
  
-<​code>​ +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).  
-# /etc/init.d/slim start +===== Conspy and Busybox =====
-</​code>​+
  
-Err… that'it+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>​ 
 +  * -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
  
-(If you want the nvidia module to persist, just add it to the LOAD_MODULES variable in /etc/rcS.conf)+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.
  
 +---- 
 +\\
 +^  Page Review Section ​ ^^ 
 +|Quality| Good  |
 +|Review| Minor Updates ​ |
 +|Priority| Medium |
 +|Problems| add a [[http://​forum.slitaz.org|forum post link]]|
 +|:::     | OR add a [[http://​labs.slitaz.org/​issues |lab issue tracker link ]]|
 +|How to Improve| Suggest briefly|
 +|::: |  |
  
 +\\
 +----
 
en/guides/conspy.txt · Last modified: 2017/05/19 18:51 by hgt