The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Linux to Linux Gui through SSH

    Discussion in 'Linux Compatibility and Software' started by ccbr01, Jan 19, 2006.

  1. ccbr01

    ccbr01 Matlab powerhouse! NBR Reviewer

    Reputations:
    448
    Messages:
    1,700
    Likes Received:
    0
    Trophy Points:
    55
    Trying to grasp the whole remote desktop connection. For my Electrical Computer Engineering class, we have a lab on the far side of campus, and my professor gave us the option of ssh to the lab for our projects. I'm running bootable Knoppix v4.0, and I don't know what versions of linux the other computers are running. So when I have terminal open, I do the ssh -l (username) flux.ece.utk.edu, and get to the shell of the remote computer and I can run apps from that, but my professor told me that a gui can be brought up instead of running terminal. I have found something else. It is ssh -x [email protected]. I have tried that line but my terminal crashes for reasons I don't know. If anybody knows any suggestions, please post because I need to know how to do this before I bring up my Counter-Strike server to my dorm room. I was thinking about putting old red hat and working ssh with it. Please help!!! -ccbr01
     
  2. pt9386

    pt9386 Notebook Consultant

    Reputations:
    108
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    30
    I think it depends on the distribution. I know that we use Fedora Core 4 here and when you install the Server side of FC4 it doesn't install the X Windows interface. I will try it later tonight when I boot back up to linux and see if that will work, but I am pretty sure if there is a server installation it won't work. But you may need something else for the GUI to show up and might need another program. I know here there is something else that I can use instead of SSH that would be able to bring up a GUI, but I have never gotten that to work. I would have to get you the name of it tomorrow, as I am not in the labs, but I think it is a proprietary program someone wrote here. But if I can get a hold of it, maybe I can lend it to you.
     
  3. ccbr01

    ccbr01 Matlab powerhouse! NBR Reviewer

    Reputations:
    448
    Messages:
    1,700
    Likes Received:
    0
    Trophy Points:
    55
    Ok, I found out what the computers in the lab are running. They are running Debian GNU/Linux - Sarge. That should connect via ssh to my Knoppix because Knoppix is Debian Linux.
     
  4. pt9386

    pt9386 Notebook Consultant

    Reputations:
    108
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    30
    Well it doesn't seem to work here for me. I think it is because of what I said before of the X Windows interface not being installed on a server.
     
  5. Sidicas

    Sidicas Notebook Consultant

    Reputations:
    45
    Messages:
    215
    Likes Received:
    0
    Trophy Points:
    30
    Hello! Yea, at my campus we do that too.
    Here is a guide by our Computer Science Department, maybe it can help you.

    SSH, but you already know how to do this:
    http://www.cs.sunyit.edu/network/help/ssh.php

    Running remote X-Applications:
    http://www.cs.sunyit.edu/network/help/ssh.php

    READ THIS FOR A BETTER SOLUTION!
    I've run Debian GNU/Linux for several years. And whenever I wanted to run Linux applications on my Windows computer, I got CygWin and then I got the CygWin Xserver package. Then inside of CygWin, I SSH into the Linux box that I want to connect to and then initiate an X session and then connect from my CygWin-X session on the local computer to that. This lets me run whatever X programs I want (or KDE, Gnome, whatever). The performance of this method is typically MUCH faster than booting from a Knoppix CD. It is also MUCH faster than running a VNC Server. PLUS you can work in Windows and copy-paste back and forth from Windows applications to Linux applications.

    To do this is a bit complex, but the performance is incredible.
    http://x.cygwin.com/docs/ug/cygwin-x-ug.html

    The best setups are this:
    1. Either do a pure install of Linux to your hard drive and run that...
    2. OR Run CygWin/X in Windows XP/98, and run the Linux apps remotely on the Linux box. Of course.... This will put load on the Linux box. But it works very well.

    I'm guessing you don't want to do #1 which is why you're running Knoppix. I don't suggest you run Knoppix, it boots way too slow. Try #2.
     
  6. Sidicas

    Sidicas Notebook Consultant

    Reputations:
    45
    Messages:
    215
    Likes Received:
    0
    Trophy Points:
    30
    You need to run an X client locally on the computer.. If you're in Linux, then just install XFree86 and instead of initializing it onto the local monitor (default) initialize it over the network to a remote X-session. If you're running Windows, use CygWin-X and do the same thing.

    EDIT: I just tested the CygWin, and it works...

    First I ran startx in CygWin-X
    Then a xterm came up. Its an X-application, but it's running locally. I want to run applications on the remote linux box... So....
    Then I typed ssh -Y -l smithd12 belle.cs.sunyit.edu
    which connects to my school's Linux box
    Then I ran xeyes& and *poof* it just works lol..
    This is the easiest way, and gets good performance... You can also stream OpenGL stuff through SSH X-Servers as well.
    There are guides to do this.

    If you have any questions, don't be afraid to ask.
     
  7. ccbr01

    ccbr01 Matlab powerhouse! NBR Reviewer

    Reputations:
    448
    Messages:
    1,700
    Likes Received:
    0
    Trophy Points:
    55
    CygWin-X isn't stable with our lab. Professor told us that. I don't know why. Our backbone is very slow in the Electrical Computer Engineering building. I'm going to stick to my Knoppix hopefully. Thanks for the info.

    I found this site on your servers ( http://www.cs.sunyit.edu/network/help/x11remote.php) I just printed it off and going to try that. Thanks again
     
  8. Aero

    Aero PC/Mac...Whatever works! NBR Reviewer

    Reputations:
    733
    Messages:
    1,919
    Likes Received:
    0
    Trophy Points:
    55
    Knoppix is great. I use version 3.6 (3.8 is the latest) it runs pretty stable.
     
  9. pt9386

    pt9386 Notebook Consultant

    Reputations:
    108
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    30
    I tried using cygwinx but i guess our servers here don't really have the X Windows installed. Too bad. I sound like a broken record.

    I have a question though. I know you can use the secure shell transfer client to move files back and forth. Can you do the same in cygwin, such as typing "sftp username@hostname" and when i "get" and "put" files, where do they get "put", is it under my install directory, then "\home\username" ?

    If I want to install more packages, do I then have to rerun the executable that was downloaded from the site or do I have to install them manually?

    Thanks for the help. I am a relative novice at this.
     
  10. ccbr01

    ccbr01 Matlab powerhouse! NBR Reviewer

    Reputations:
    448
    Messages:
    1,700
    Likes Received:
    0
    Trophy Points:
    55
    I tried the Remote X command last night (ssh -x remotemachine), and it just went back into the terminal. I tried to excute some gui commands but nothing works. I don't know what to do...
     
  11. altimar

    altimar Notebook Enthusiast

    Reputations:
    93
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    15
    ssh -x will appear to be the same terminal you get as if you didn't use the -x option. You may need to just be more patient. You said earlier that the network connection to the remote machine is very slow. Remote X sessions take a lot of bandwidth. I have a server that I connect to from home, fast cable connections on both ends, and it can take a full minute or two before the window will come up on screen. Unless the program is just dying in the terminal...
     
  12. tripinva

    tripinva Notebook Consultant NBR Reviewer

    Reputations:
    62
    Messages:
    187
    Likes Received:
    0
    Trophy Points:
    30
    Are you doing ssh -x or ssh -X? The latter enables X forwarding, the former disables it...

    EDIT: And you may want to use -XC as the C enables compression.

    - Trip
     
  13. ccbr01

    ccbr01 Matlab powerhouse! NBR Reviewer

    Reputations:
    448
    Messages:
    1,700
    Likes Received:
    0
    Trophy Points:
    55
    Haha! This thread was made 22 months ago when I was in my c++ class. lol :) I've long been knowing how to do this, but thanks for your help with this thread. rep+
     
  14. altimar

    altimar Notebook Enthusiast

    Reputations:
    93
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    15
    Sorry about that. I must've hit "Last page" instead of "Next page" again. Heh, I'm feeling pretty stupid...