LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-10-2005, 03:59 PM   #1
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Rep: Reputation: 30
server names in linux


hello,

i'm not sure were this thread should be at, but i put it in the newbie group anyways,

when i ssh into a linux server i just type in the server name, but when i want to connect to it with VNC (X11 Forwarding, i think that is what it is called), i first need to start the vnc server wiht
Code:
vncserver
which will return with same server name but with a colon followed by a number. My question is what is the colon and number after the server name for?

thanks,
djgerbavor3
 
Old 02-10-2005, 04:10 PM   #2
cadkins
Member
 
Registered: Mar 2004
Location: <----- there
Distribution: Mandrake 9.0 - 9.2, Slackware 9.1 - 10
Posts: 98

Rep: Reputation: 15
port number
 
Old 02-10-2005, 04:15 PM   #3
djgerbavore
Member
 
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458

Original Poster
Rep: Reputation: 30
no, because it only goes up to 4, and you have to be root to access any port under 1024. I'm thinking it was to do with the order the servers or something.

Last edited by djgerbavore; 02-10-2005 at 04:16 PM.
 
Old 02-10-2005, 04:23 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,810

Rep: Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334Reputation: 6334
google lately?
http://www.uk.research.att.com/archive/vnc/xvnc.html
http://www.die.net/doc/linux/man/man1/xserver.1.html
 
Old 02-10-2005, 04:56 PM   #5
cadkins
Member
 
Registered: Mar 2004
Location: <----- there
Distribution: Mandrake 9.0 - 9.2, Slackware 9.1 - 10
Posts: 98

Rep: Reputation: 15
taken from the first link that michaelk posted above:

Quote:
Now, the VNC protocol normally uses port 59xx, where xx is the display number of the server. So a VNC server on a Windows machine, which normally uses display number 0, will listen on port 5900. Most Unix VNC servers will probably use display numbers 1,2, etc and so will be listening on ports 5901, 5902 and so forth. If you forward these ports to a remote machine, you can make the remote VNC server appear to be a server running on your local machine.

So, imagine you had a VNC server running as display :1 on machine snoopy, and you wanted a secure connection to it from your local machine. You could start the ssh session using:

ssh -L 5902:localhost:5901 snoopy

and any references to display :2 on your local machine would actually connect to display :1 on snoopy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Multiple names for the same SAMBA server Paul.Hermans Mandriva 0 07-29-2005 09:53 AM
SSL Install not going well. Linux server, Apache directions? File names not matching. maineweb Linux - Newbie 1 11-18-2004 09:18 AM
DNS security / primary names server down after large number of requests rioguia Linux - Security 4 10-08-2004 10:00 AM
SAMBA: display of share names is OK but files names are wrong superandrzej Linux - Software 5 02-02-2004 09:14 AM
Mail Server for Multiple Domain Names iamPlace Linux - Newbie 0 06-27-2003 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:21 AM.

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