Results 1 to 5 of 5

Thread: X-terminal attaching to an existing session ?

  1. #1
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872

    X-terminal attaching to an existing session ?

    Hi,

    With a slight modification, Knoppix can be a very handy XServer(X-Terminal) solution.

    What I would like to know is if the X11 system support the usage of reattaching previous sessions like the wonder screen utility in text mode. If that can be done, I would be able to go to any workstation, boot knoppix and re-attach to an previously detached but still running desktop on a server.

    I know that x11vnc can do this but that would mean running multiple copy of X11 server on the server which can use lots of resource on the server.

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: X-terminal attaching to an existing session ?

    --Try using VNC, and monitor the situation with "top". Running Xrealvnc doesn't use a whole lot of resources from what I've seen, but YMMV.

    Quote Originally Posted by garyng
    Hi,

    With a slight modification, Knoppix can be a very handy XServer(X-Terminal) solution.

    What I would like to know is if the X11 system support the usage of reattaching previous sessions like the wonder screen utility in text mode. If that can be done, I would be able to go to any workstation, boot knoppix and re-attach to an previously detached but still running desktop on a server.

    I know that x11vnc can do this but that would mean running multiple copy of X11 server on the server which can use lots of resource on the server.

  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    thanks. VNC is actually a more suitable solution for me but just that the multiple xserver(which is what xvncserver does) on the server scares me a bit in terms of resource. Didn't test it though.

    However, it seems that VNC is slower than X, at least in my limited test situation on a local 100Mbps network, especially when I hold the scrollbar and drag. This is understandable as VNC need to sort of redraw the screen in a pixel by pixel for each small movement. The difference is though quite noticeable.

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    --VNC gets more responsive when you:
    o Load a more lightweight Windowmanager (such as Icewm)

    o Use SSH with portforwarding and compression.

    Example: Put this in ~/.vnc/Xsession:
    Code:
    # initialize variables for use by all session scripts
    
    OPTIONFILE=/etc/X11/Xsession.options
    
    SYSMODMAP=/etc/X11/Xmodmap
    USRMODMAP=$HOME/.Xmodmap
    SYSRESOURCES=/etc/X11/Xresources
    USRRESOURCES=$HOME/.Xresources
    
    SYSSESSIONDIR=/etc/X11/Xsession.d
    STARTUP=$HOME/.xsession
    ALTSTARTUP=$HOME/.Xsession
    ERRFILE=$HOME/.xsession-errors
    
    #xinit /usr/bin/sawfish
    
    xrdb
    
    rxvt &
    # -display :3 &
    /usr/bin/sawfish &
    --Here is an example script that I use to start VNC on the server side:

    BEGIN remotex
    Code:
    #!/bin/sh
    
    #vncserver -cc 3 &
    # cc 3 == pseudocolor visual
    
    vncserver :2 -geometry 900x700
    # -cc 3 -geometry 1024x768 -fp /usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/ -fn -misc-fixed-bold-r-normal--13-100-100-100-c-70-iso8859-1
    # Use font -misc-fixed-bold-r-normal--13-100-100-100-c-70-iso8859-1
    
    # Connect using vncviewer p233:5902 || http://p233:5802
    #vncserver -kill :2
    
    # if ssh -2 -C -L 5992:p233:5902 p233
    # THEN vncviewer localhost:5992
    --Here is how to port-forward with compression (Note the VNC server hostname on my network is p233.)

    BEGIN ssh-vncserver
    Code:
    #!/bin/bash
    
    ssh -2 -C -X -c blowfish \
     -l dave \
     -L 5992:p233:5902 \
     10.0.0.2 $*
    --The above code forwards port 5902 on the vnc server to port 5992 on the client box, with compression. Connect the VNC viewer to localhost:5992 after starting the remote X session, and it will use the compressed port connection.

    --You can also play with the VNC viewer's Options and experiment with different ways to re-draw the screen.

    --Note that you will have to assign a password to the VNC session the first time you run it... Best of luck.

    Quote Originally Posted by garyng
    thanks. VNC is actually a more suitable solution for me but just that the multiple xserver(which is what xvncserver does) on the server scares me a bit in terms of resource. Didn't test it though.

    However, it seems that VNC is slower than X, at least in my limited test situation on a local 100Mbps network, especially when I hold the scrollbar and drag. This is understandable as VNC need to sort of redraw the screen in a pixel by pixel for each small movement. The difference is though quite noticeable.

  5. #5
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    thanks, I was running vnc over SSH(compression on) and the wm is fluxbox. Not that it is slow in normal operation(perfectly fine) but if I am in firefox browsing and use the scrollbar, the speed difference(comparing with X) is quite noticeable.

    PS, the machine I am VNC in is a XBOX.

Similar Threads

  1. Thermal Sensors: attaching techniques
    By jjmac in forum Hardware & Booting
    Replies: 0
    Last Post: 05-16-2005, 11:34 AM
  2. Problems sending/attaching files in email using Linux
    By francisgirard in forum General Support
    Replies: 13
    Last Post: 02-01-2005, 07:53 PM
  3. Attaching midi keyboard/synthesizer
    By el_supremo in forum Hardware & Booting
    Replies: 2
    Last Post: 07-26-2004, 05:28 PM
  4. Replies: 0
    Last Post: 05-18-2004, 04:05 PM
  5. [announce] S-terminal: a secure X terminal based on KNOPPIX
    By bkw1a in forum Customising & Remastering
    Replies: 2
    Last Post: 03-19-2003, 03:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot picture

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot

$573.98



24x Micron MT40A512M16LY-062E IT:E 8Gb DDR4-3200 96-FBGA Memory IC picture

24x Micron MT40A512M16LY-062E IT:E 8Gb DDR4-3200 96-FBGA Memory IC

$349.99



Wholesale 5/10/100PCS 1GB 2GB 4GB 8GB 16GB 32GB USB 2.0 Flash Drive Memory Stick picture

Wholesale 5/10/100PCS 1GB 2GB 4GB 8GB 16GB 32GB USB 2.0 Flash Drive Memory Stick

$489.96



Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM  M393A4K40CB2-CTD6Q picture

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q

$169.00



USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot picture

USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot

$3.75



Server Memory: Samsung 32GB 4DRx4 PC4-2133P ECC LRDIMM DDR4 M386A4G40DM0-CPB picture

Server Memory: Samsung 32GB 4DRx4 PC4-2133P ECC LRDIMM DDR4 M386A4G40DM0-CPB

$124.95



Samsung Planet First 8GB 2Rx4 PC3-10600R picture

Samsung Planet First 8GB 2Rx4 PC3-10600R

$341.00



Dell 16GB PC4-21300 (DDR4-2666) Memory (SNPPWR5TC16G) picture

Dell 16GB PC4-21300 (DDR4-2666) Memory (SNPPWR5TC16G)

$89.99