LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   VNC connection from WinXP (https://www.linuxquestions.org/questions/fedora-35/vnc-connection-from-winxp-440664/)

aabfm 05-01-2006 05:08 PM

VNC connection from WinXP
 
Hi you all.

First of all thanks for all the help you all provided me before since I'm a newbie in Linux.

My head is in a mess.
I've been visiting sites and sites about VNC connection and still I just can't figure out how to remotly connect from XP into Fedora.
Basically what I would like to do would be:
- stop a running xyz application;
- upload a file;
- restart the xyz application.
I've tried to install a couple of different VNCs but nothing so far.
Every time I try to connect from XP with UltraVNC it keeps saying 'Unable to connect'.
Adding to this I think I have to many VNCs installed and running on my machine and I don't know how to uninstall them.
Any ideas?
Thanks in advance.

aabfm 05-01-2006 05:10 PM

By the way, I've been trying all this on my home network.

Brian1 05-01-2006 05:52 PM

Check this link to setup vnc on a Fedora box first. You should be able to see if you have more than one session setup. http://fedoranews.org/tchung/vnc/

Then from the FC box itself run the command ' vncserver '. Enter address 127.0.0.1 and then password when asked. If this works goto the XP and go from there.

One thing to check is see if you have a firewall enabled on the Fedora box. Do this as root to stop the firewall. ' service iptables stop '. Now try connecting. If it does then you need to open port 5900 in your firewall if you wish for it to remain running. Not sure of your network so can't advise if it is ok to leave off. To open a hole then goto /etc/sysconfig/iptables and edit it as root of course. Add these to line to your iptables file before the COMMIT line. Save and Exit. Then as root run the command ' service iptables restart '.
# Add access to VNC
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5900 -j ACCEPT

Brian1

aabfm 05-02-2006 04:49 AM

Thanks!
It works!

Right now I will continue my quest for, and I quote from my previous post:
"Basically what I would like to do would be:
- stop a running xyz application;
- upload a file;
- restart the xyz application."

If you have any ideas, I will appreciate them very much.

Brian1 05-02-2006 05:34 PM

If I understand I would ssh to the box.
Stop the service or app. For service as root ' service service_app_name stop '
or
To stop an app then use ' pkill app_name '
Now upload the file.
Restart the service ' service service _app_name '
or
An app ' name_of_app & '
Close ssh session

Brian1

aabfm 05-24-2006 12:29 PM

Thanks! It works!


All times are GMT -5. The time now is 12:26 PM.