Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I recently started a job where all the workstations have windows on them and I find that difficult to bare. I need my daily shot of Linux ;-)
I have been trying to use VNC to connect to my Linux box at home over SSH. I have Mandrake Linux 10 installed with tightvnc-server and ssh server. My server sits behind a Linksys router with port 22 forwarded to the serv.
At work I downloaded Putty for windows and TightVNC Viewer. I set up putty to forward 5901 to localhost:5900 and I can remotely connect via SSH to my home server.
The next bit is where I can not proceed beyond:
Logged in via ssh to my Linux server I issue the command
vncserver -geometry 1024x768 -depth 16:2 and after the initial questions about passwords(when I ran it for the first time) it seems that the Xvnc is started on screen 2.
If I open my VNC viewer and point it at localhost:0 the vnc viewer reports that "Failed to connect to server"
localhost::5901 makes the Vnc viewers connection dialogue dissapear without any error message but nor do I get the remote desktop.
localhost::5900 reports "failed to connect to server
localhost:1 has the same effect as localhost:5901
This is all tested whith the ssh connection open to my linux machine.
Please help me figure out what I might be doing wrong or any setting I have not configured,
I copied the article and edited it to reflect my scenario, which was very similar to yours. I used to connect to my home network (linux, of course) from the windoze network at the office. I think one of your trouble lies in the port forwarding setting in PuTTY. If you start the vncserver on display 2 (vncserver -geometry 1024x768 -depth 16:2) you would have to forward to port 5902. If you try to connect to the wrong display, you won't get an error message from the vnc client on windows, the connection dialog will just disappear.
I hope this helps! It's great to have access to linux from work.
Originally posted by c_mitulescu I set up putty to forward 5901 to localhost:5900 and I can remotely connect via SSH to my home server.
Set up putty to forward 5901 to your ip:5900 and it should work. Forwarding it to localhost just forwards it to the same computer you're on. And you should be able to connect via localhost:1 once the putty connection is up.
Yeeeaaahhhhh! It feels so much better now- getting my shot of Linux while at work. Eat this M$ lol.
We have quite a number of policies at work not allowing us to be registered to newsgroups, IM etc so I knew I could count on Linux.
The problem was with my tunneling. the setting that seems to work is localhost:5900 forwarded to localhost:5901. I had it the other way arround after reading an internet "tutorial" on how to do it.
Thanks for the help.
PS - Im at work writting this over SSH on a VNC connection to my home box
It is a link to an esound binary for windows with instructions. The part that would make me nervous is the comment about "donīt do this with a machine connected to the internet" . Maybe there is another option besides "public" for the binary. I will play around with it and let you know if I figure anything out.
Try localhost:1. Also be sure that your vncserver is running on screen 1. That translates to port 5901. If it is running on a different screen, say :2, that would translate to port 5902 and you would connetct using localhost:2
Originally posted by Hangdog42 Try localhost:1. Also be sure that your vncserver is running on screen 1. That translates to port 5901. If it is running on a different screen, say :2, that would translate to port 5902 and you would connetct using localhost:2
I tried that also. When I go back to the Putty settings though for tunneling my previous settings are gone and I have to keep reentering the source port, the remote address and add to forwarding.
me too! Let me talk my situation!
In the Office-
In the Home-
I installed the VNCserver to my linux box, and just type vncserver; after that it prompted to type password, I followed that.
I openned the port 5899 to 5900. Right?
I went back to office next day, try login by vnc-3.3.7-x86_win32_viewer. It failed. I typed "IP:1" and "IP:5900", it also failed.
What port do I need? and What setting do I need to config?
I installed the VNCserver to my linux box, and just type vncserver
After you typed vncserver, you should have gotten a message telling you what screen vncserver was monitoring. If it said screen :1 then vncserver is running on port 5901. If it said screen :2 then vncserver is listening on port 5902. Once you figure out what screen it is running on, you connect using ipaddress:screen#. In the examples I just gave that would be something like 22.214.171.124:1 or 126.96.36.199:2 where you replace the 188.8.131.52 with the IP address of the computer running vncserver.
I openned the port 5899 to 5900. Right?
No, that's wrong. See what I wrote above to figure out what ports to open.
I went back to office next day
You should be aware that VNC is horribly insecure. If you are connecting over the internet using nothing but VNC you may as well hang out a sign that says "HACK MY RIG AT THIS IP ADDRESS" in big neon letters. Do some searching here on running VNC over an SSH tunnel.
I got your message! I already config the statis IP of the Linux box, and openning the vncserver! But it cannot access by my wireless laptop (Window 2000), it failed the connection. Why? Actually this is in LAN environment!
You really need to supply the details when you say something doesn't work. When you start vncserver, what screen is it starting on? What are you typing into the vncviewer to connec? Can you make other kinds of connections between your laptop and the linux box (like FTP or ssh)? Can you connect if you turn off your firewall? Right now you are giving me absolutely nothing to go on.