LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-21-2003, 07:12 AM   #1
init-5
Member
 
Registered: Sep 2003
Location: SJ
Distribution: RHL 9, Solaris 9
Posts: 41

Rep: Reputation: 15
Xvnc not started ??


Hi, I installed VNC server on RHL 9.0. Now I want to access the linux box remotely through vnc. I have XFree86 intalled on the box.
Now when I execute -

#vncserver

it gives me an error that -

[root@mydomain /]# vncserver

Couldn't start Xvnc; trying default font path.

New 'X' desktop is mydomain.com:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/mydomain.com:1.log


What could be the reason?
Thank You.
 
Old 09-21-2003, 10:23 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It think it has started.

What does the output of this show:
netstat -nlp | grep vnc
 
Old 09-21-2003, 02:29 PM   #3
init-5
Member
 
Registered: Sep 2003
Location: SJ
Distribution: RHL 9, Solaris 9
Posts: 41

Original Poster
Rep: Reputation: 15
this is the output -

tcp 0 0 0.0.0.0:5801 0.0.0.0:* LISTEN 4059/Xvnc
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 4059/Xvnc
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 4059/Xvnc
unix 2 [ ACC ] STREAM LISTENING 292441 4059/Xvnc /tmp/.X11-unix/X1
 
Old 09-21-2003, 02:36 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
That means that it has started and is listening on port 5901. 5801 is the webviewer and 6001 is the X server. You should now be able to connect to it from another machine if you can't then make sure you don't have a firewall blocking requests.
 
Old 09-21-2003, 02:37 PM   #5
init-5
Member
 
Registered: Sep 2003
Location: SJ
Distribution: RHL 9, Solaris 9
Posts: 41

Original Poster
Rep: Reputation: 15
And how would I know if a firewall is blocking the request?
Thank You.
 
Old 09-21-2003, 02:52 PM   #6
init-5
Member
 
Registered: Sep 2003
Location: SJ
Distribution: RHL 9, Solaris 9
Posts: 41

Original Poster
Rep: Reputation: 15
found it -- iptables --list

but am not sure what to look for in this ... maybe an entry with a DROP? are those the entries that don't allow the transferring of packages?

thanks
 
Old 09-21-2003, 03:04 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Can you post the output of iptables -L

OR

If you don;t have any special pre defined rules for internet sharing etc then try just removing all rules:
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F

If this works and you want to be a bit more secure:
# Drop all connections by default
iptables -P INPUT DROP
# Accept current connections
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# Accept connections to certain ports eg 5901
iptables -A INPUT -p tcp --dport 5901 -j ACCPT
 
Old 09-21-2003, 05:01 PM   #8
init-5
Member
 
Registered: Sep 2003
Location: SJ
Distribution: RHL 9, Solaris 9
Posts: 41

Original Poster
Rep: Reputation: 15
I figured it out. Thanks a lot for your help. I just needed the pointer in the right direction.

Here's what I modified -

Chain Cid3EB05FFB.0 (2 references)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW multiport dports 5901,10000,25,80,22,21,53,993,143,443,110,3306,8443,995


So, now I am connecting to VNC. However, as I read on some other Thread on this forum, it is showing the command line based screen with a mouse pointer. So,
1) I'll probably have to install KDE/GNOME. Correct?
2) I'll have to change the .vnc/xstartup file to point to the correct file? It points to xinitrc right now.

Thank You.
 
Old 09-21-2003, 05:08 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Yes. Add a command to ~/.vnc/xstartup that will load your chosen X application.
 
  


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
How do I stop xvnc from loading? Jamaika Linux - Software 2 03-08-2005 02:09 AM
Fedora Core 3 and Xvnc? adamkimber Linux - Newbie 3 03-06-2005 07:38 AM
starting Xvnc mickeyboa Fedora 0 08-28-2004 02:28 PM
Xvnc Positioning neophile Linux - Software 0 10-07-2003 10:55 AM
Xvnc Positioning neophile Linux - Games 0 10-07-2003 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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