Linux - SoftwareThis 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
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.