LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-06-2004, 02:14 PM   #1
laclac01
Member
 
Registered: Feb 2004
Posts: 36

Rep: Reputation: 15
newbie linux question


I am new to linux, and I am running gentoo. I installed vnc server on my gentoo machine and vnc viewer on my windows machine. And i can't connect, so i try to run the view and server on my linux machine and i still can't connect. I think this might be a case of lack of information on my part. How can i make sure the port is open and not block? Also what else should i check for? Oh i can ping from my windows machine to my linux machine.
 
Old 08-07-2004, 08:07 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
vnc

Make sure that you have the vncserver started and listening:
netstat -nlp

And that you don't have any firewall rules blocking the port vnc is listening on:
iptables -nL

If you are unsure then post the output of the above commands.
 
Old 08-09-2004, 07:11 AM   #3
laclac01
Member
 
Registered: Feb 2004
Posts: 36

Original Poster
Rep: Reputation: 15
I don't have Iptables installed, do i need to have that installed?
and my output of netstat -nlp is:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign
Address State PID/Program name
tcp 0 0 0.0.0.0:5801 0.0.0.0:*
LISTEN 19293/Xvnc
tcp 0 0 0.0.0.0:5802 0.0.0.0:*
LISTEN 24772/Xvnc
tcp 0 0 0.0.0.0:5901 0.0.0.0:*
LISTEN 19293/Xvnc
tcp 0 0 0.0.0.0:5902 0.0.0.0:*
LISTEN 24772/Xvnc
tcp 0 0 0.0.0.0:6001 0.0.0.0:*
LISTEN 19293/Xvnc
tcp 0 0 0.0.0.0:6002 0.0.0.0:*
LISTEN 24772/Xvnc
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State
I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING
10448 8055/artsd
/tmp/mcop-root/gen2-1f77-4113d116
unix 2 [ ACC ] STREAM LISTENING
10383 8040/kdeinit: klaun /tmp/ksocket-root/klauncherpFm3mc.slave-socket
unix 2 [ ACC ] STREAM LISTENING
10520 8110/kdeinit: ksmse /tmp/.ICE-unix/8110
unix 2 [ ACC ] STREAM LISTENING
19574 19293/Xvnc /tmp/.X11-unix/X1
unix 2 [ ACC ] STREAM LISTENING 6338
5608/syslog-ng /dev/log
unix 2 [ ACC ] STREAM LISTENING 7971
6988/xfs /tmp/.font-unix/fs-1
unix 2 [ ACC ] STREAM LISTENING 8181
7149/X /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING
10356 8035/kdeinit: Runni
/tmp/ksocket-root/kdeinit__0
unix 2 [ ACC ] STREAM LISTENING
10358 8035/kdeinit: Runni
/tmp/ksocket-root/kdeinit-:0
unix 2 [ ACC ] STREAM LISTENING
62568 24772/Xvnc /tmp/.X11-unix/X2
unix 2 [ ACC ] STREAM LISTENING
10364 8038/kdeinit: dcops
/tmp/.ICE-unix/dcop8038-1091817749
 
Old 08-09-2004, 03:01 PM   #4
jdelaros1
LQ Newbie
 
Registered: Sep 2003
Location: Austin, TX USA
Distribution: Fedora 1.0, 2.0 & SuSE 9.2
Posts: 20

Rep: Reputation: 0
I start my vnc server with the following parameters:

$ vncserver -geometry 1024x768 -depth 24

Each user that connects must run its own vncserver.

Also, make sure you set a VNC password, which is independent from your system password (the first time you run vncserver, it should automatically ask you for your vnc password).

I have a $HOME/.vnc subdirectory for each user, and in that directory I have an "xstartup" file that simply executes "exec /etc/X11/xinit/xinitrc", a passwd file with the VNC password encrypted and a log file for my connection. You may want to check that log file for furhter debugging information.
 
  


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 newbie help stork Mandriva 6 11-05-2005 08:55 PM
Newbie help RE VNC viewer/server indespair Linux - Networking 3 08-25-2004 06:27 PM
Newbie - VNC failing pm02368 Linux - Networking 3 03-25-2004 04:31 PM
linux newbie question linuxnewbie00 Linux - General 3 09-11-2002 09:45 AM
NEwbie question on Linux tiger209 Linux - General 6 08-20-2002 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02: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