Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'd like to connect to a remote machine via ssh and start a graphical program there. Right now, when I just ssh to the machine in a terminal window and start the program, my display behaves strangely (flickering and strange colours). So I figure I might need to use vnc.
I've experimented with ssh and vnc but I couldn't figure out how to do this properly.
From all I've read, I still don't understand how to use the vncserver and the vncviewer, ssh tunneling (I guess I need that, don't I?), displays, ports etc. - I'm just confused.
Can someone please point out how to accomplish this?
well essentially vnc will do the job just fine... start the vnc server on the remote machine, connect to it using the client and away you go. one thign you may have been getting confused about is that the default conventional implementation of the vnc server will create a brand new X session, but the mor recent versions of the x11-xorg server contains it's own internal vnc modules which will share the current screen, indeed i'd bet money that what control centre mandrake 2007 uses will have a tick box to enable it in there somewhere. if not you can edit tin /etc/X11/xorg.conf file yourself and add the vnc module to it. i'm not sure of the exact syntax there but google knows it.
I forgot to mention: I can't start a vncserver on the remote machine.
I once (in an earlier version of Mandrake) managed to start a new Xsession, then open a terminal window therein, do the ssh connection there and launch the program on the remote machine. I got the GUI of the program in an XVNC window in my primary Xsession. It was complicated but it worked. Now, I can't do it like that anymore. I tried to start vncserver like
Quote:
vncserver :2
and then
Quote:
vncviewer :2
but I get an error message:
Quote:
vncviewer: VNC server closed connection
I have no idea how to resolve this, because the message is not very specific.
Also, if it worked like it used to, I don't want KDE to startup a second time for it takes up so much resources, but that's a different issue, I guess.
So, regardless of what I tried, what I'm looking for is a simple solution to run that remote program on my desktop.
The remote machine, by the way, is a Sun Workstation, which I suspect is the cause for the strange colours metioned above. But as I said before, I had it working already (without strange colours) in an earlier version of Mandrake
if you wish to see the exsiting display you would, as above not use vncserver, but the x11-xorg vnc modules. there is also a program called x11vnc which can also export the currently runnign X session by vnc in solution to changing the x server configuration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.