LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-22-2005, 01:13 AM   #1
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
installing a VNC through SSH


my fedora box is in colorado, and i didnt get a chance to install and set up a VNC server before leaving to illinois. now, on my parents machine (windows XP) i can ssh back to my machine, and would like to try and install a VNC. 1st i need to make sure one isnt already installed (i did a full install with fedora core 4) and if it is, i would probubly just need to enable it. if there is not one installed, what is the name of a free one? basically here are my questions.

1. how would i check to see if i have a VNC server installed?
2. if it is installed, how would i enable it?
3. if it is not installed, what is the name of a free VNC server?
4. what ports would i need to forward for a VNC server?

thanks

Last edited by true_atlantis; 12-22-2005 at 01:15 AM.
 
Old 12-22-2005, 02:24 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
For some of your questions:
Quote:
Originally Posted by true_atlantis
1. how would i check to see if i have a VNC server installed?
3. if it is not installed, what is the name of a free VNC server?
Fedora Core has RealVNC. You can do "rpm -q vnc-server" to check for the VNC server. If it's not installed you can do "yum install vnc-server" to install it.
 
Old 12-26-2005, 03:33 PM   #3
LLS
Member
 
Registered: Sep 2003
Location: North America
Distribution: FC6 FC7 F8
Posts: 75

Rep: Reputation: 15
Quote:
1. how would i check to see if i have a VNC server installed?
2. if it is installed, how would i enable it?
3. if it is not installed, what is the name of a free VNC server?
4. what ports would i need to forward for a VNC server?
true_atlantis, if you are successfull in this, could you post a brief how you did it and where you get your info for doing it?
My FDC4 has vnc-server-4.1.1-10.1 resulting from a stock install so I would imagine yours too.
 
Old 12-26-2005, 04:50 PM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Oh yeah, this article might help. The ports used are 59xx, where xx is the number of the display; so :0 is 5900, :1 is 5901, etc. You probably won't use the 0 display unless you want to remote the display on the console.
 
Old 12-26-2005, 05:17 PM   #5
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Original Poster
Rep: Reputation: 30
yes, im sorry, i planned on doing that, i just forgot...

first, i already had realVNC installed. to get the server running, all i did was:

1. SSH to the box
2. run 'vncserver'
3. it will ask for a password, this is what you use when you connect via VNC

*note the default client is fluxbox or something of that nature, as long as you have the vncserver create the default files, to change it to whatever you want, just edit the file /home/*USERNAME*/.vnc/xstartup and i changed the last line to 'startkde &' to use KDE

the other problem i ran into was i had to forward the ports, and i didnt have access to the box, so i had to find a way to get into my router. now, im using windows, so this is how i did it using PUTTY. there is a way to do it using ssh, read the man page about forwarding ports.

1. open putty and enter in the IP address
2. under Connection->SSH->Tunnels
Source port: *IPADDRESS*:80
Destination port: localhost:8999
click 'Add'
3. Connect and log on to any user
4. opened firefox and went to http://192.168.1.1:8999

what this does is forwards port 80 from your home machine to port 8999 to your current machine, so now you can access the router via your current browser.

now, there are 2 seperate ports you can forward, the java interface 5801 if your using display 1, or the normal VNC server port 5901.

hope this helps

Last edited by true_atlantis; 12-26-2005 at 05:19 PM.
 
Old 12-27-2005, 07:09 PM   #6
LLS
Member
 
Registered: Sep 2003
Location: North America
Distribution: FC6 FC7 F8
Posts: 75

Rep: Reputation: 15
Thanks all, as remote admistration is a necessary utility, just as good or maybe better than being there.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vnc over ssh ieuuk Linux - Networking 18 01-18-2006 07:11 AM
ssh with vnc Dillius Linux - Security 1 03-11-2005 04:53 PM
vnc with ssh Paxmaster Linux - Networking 1 03-07-2005 09:05 PM
SSH and VNC bandersen Linux - Newbie 5 03-29-2004 05:53 AM
VNC and SSH jrmann1999 Linux - Networking 0 12-26-2001 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration