Hello everyone:
I tried following the instructions on this page to set up a VNC server: http://wiki.centos.org/HowTos/VNC-Server
I can telnet to port 5901 from the machine itself: # telnet 127.0.0.1 5901 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. RFB 003.008
But, when I try to connect to it from the outside world, I get a connection timeout.
My /etc/sysconfig/vncservers file does not have the -nolisten tcp nor the -localhost options so it should be configured to accept outside connections.
Is there some default setting in the vncserver that I need to change to allow outside connections?
Thanks, Neil
-- Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos Virtual private server with CentOS 6 preinstalled Unmetered bandwidth = no overage charges
On 02/25/2013 11:33 AM, Neil Aggarwal wrote:
Hello everyone:
I tried following the instructions on this page to set up a VNC server: http://wiki.centos.org/HowTos/VNC-Server
I can telnet to port 5901 from the machine itself: # telnet 127.0.0.1 5901 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. RFB 003.008
But, when I try to connect to it from the outside world, I get a connection timeout.
My /etc/sysconfig/vncservers file does not have the -nolisten tcp nor the -localhost options so it should be configured to accept outside connections.
Is there some default setting in the vncserver that I need to change to allow outside connections?
And what about iptables?
Is there some default setting in the vncserver that I need to change to allow outside connections?
And what about iptables?
I have iptables and selinux turned off currently. It still will not connect.
Any other ideas?
Thanks, Neil
-- Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos Virtual private server with CentOS 6 preinstalled Unmetered bandwidth = no overage charges
On 02/25/2013 01:15 PM, Neil Aggarwal wrote:
Is there some default setting in the vncserver that I need to change to allow outside connections?
And what about iptables?
I have iptables and selinux turned off currently. It still will not connect.
Any other ideas?
All I ever do is install vncserver, run vncpasswd on the account(s) I will configure in it, add to /etc/sysconfig/vncserver
VNCSERVERS="1:user1 2:user2"
then enable 5901 and 5902 in iptables and it works. I also tend to replace twn with exec gnome-session in the ~/.vnc/xstart file.
Then all you have are network firewall and transport security issues.
Last I looked, vncpasswd only accepted the first 8 characters and ignored the rest.
On 02/25/2013 01:15 PM, Neil Aggarwal wrote:
Is there some default setting in the vncserver that I need to change to allow outside connections?
And what about iptables?
I have iptables and selinux turned off currently. It still will not connect.
Any other ideas?
Check to make sure you have connectivity. ie: telnet ip.of.vnc.server 5900 (5901, 5902, etc)
You should get 'connected' and/or some text indicating you connected to something.
If life gives you lemons, keep them-- because hey.. free lemons. "~heart~ Sticker" fixer: http://microflush.org/stuff/stickers/heartFix.html
On 02/25/2013 11:33 AM, Neil Aggarwal wrote:
Hello everyone:
I tried following the instructions on this page to set up a VNC server: http://wiki.centos.org/HowTos/VNC-Server
I can telnet to port 5901 from the machine itself: # telnet 127.0.0.1 5901 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. RFB 003.008
But, when I try to connect to it from the outside world, I get a connection timeout.
My /etc/sysconfig/vncservers file does not have the -nolisten tcp nor the -localhost options so it should be configured to accept outside connections.
Is there some default setting in the vncserver that I need to change to allow outside connections?
Try:
# netstat -an |grep 5901
What do you get back?
Also, is this box reachable from the outside world on any other ports? Just curious about network connectivity. SSH maybe?
telnet ip.of.box 22
If life gives you lemons, keep them-- because hey.. free lemons. "~heart~ Sticker" fixer: http://microflush.org/stuff/stickers/heartFix.htm
On Mon, Feb 25, 2013 at 11:33 AM, Neil Aggarwal neil@jammconsulting.com wrote:
Hello everyone:
I tried following the instructions on this page to set up a VNC server: http://wiki.centos.org/HowTos/VNC-Server
I can telnet to port 5901 from the machine itself: # telnet 127.0.0.1 5901 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. RFB 003.008
But, when I try to connect to it from the outside world, I get a connection timeout.
so it listens on the localhost, but is it also listening on the other (eth0,1,2...) interfaces?are there possibly outbound network ACLs from your outside host? is there a firewall rule (I think later you said iptables is off, but there could well be others, speculating about your network topology)? what do you get when you use telnet from $outside to $ip_you_really_intend_to_use 5901? and if that's not an option have you considered tunneling X over ssh and just using that?
Hey everyone:
I got it working. I set it up under a user account. I was trying to set it up with the root account. It is working with the user account.
Will the VNC server allow remote logins as root?
Thanks, Neil
-- Neil Aggarwal, (972) 834-1565 We lend money to investors to buy or refinance single family rent houses. No origination fees, quick approval, no credit check.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Neil Aggarwal Sent: Monday, February 25, 2013 10:33 AM To: centos@centos.org Subject: [CentOS] VNC server not reponding to external requests
Hello everyone:
I tried following the instructions on this page to set up a VNC server: http://wiki.centos.org/HowTos/VNC-Server
I can telnet to port 5901 from the machine itself: # telnet 127.0.0.1 5901 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. RFB 003.008
But, when I try to connect to it from the outside world, I get a connection timeout.
My /etc/sysconfig/vncservers file does not have the -nolisten tcp nor the -localhost options so it should be configured to accept outside connections.
Is there some default setting in the vncserver that I need to change to allow outside connections?
Thanks, Neil
-- Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos Virtual private server with CentOS 6 preinstalled Unmetered bandwidth = no overage charges
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Tue, Feb 26, 2013 at 9:55 AM, Neil Aggarwal neil@jammconsulting.comwrote:
Hey everyone:
I got it working. I set it up under a user account. I was trying to set it up with the root account. It is working with the user account.
Will the VNC server allow remote logins as root?
Thanks, Neil
Well, once you VNC to the system, you can simply change to the root use if
you have the credentials to do so.
Well, once you VNC to the system, you can simply change to the root use if you have the credentials to do so.
I was hoping to connect to the remote session directly as root as opposed to doing su.
Neil
-- Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos Virtual private server with CentOS 6 preinstalled Unmetered bandwidth = no overage charges
Well, once you VNC to the system, you can simply change to the root use if you have the credentials to do so.
I was hoping to connect to the remote session directly as root as opposed to doing su.
I've used root vnc sessions in the past; sometimes if you have to use something graphical it's just easier. I've never had problems with creating vnc sessions as root.
On 02/25/2013 07:55 PM, Neil Aggarwal wrote:
Hey everyone:
I got it working. I set it up under a user account. I was trying to set it up with the root account. It is working with the user account.
Will the VNC server allow remote logins as root?
I would answer you offlist on this one, but you are bouncing my direct emails.
Thanks, Neil
-- Neil Aggarwal, (972) 834-1565 We lend money to investors to buy or refinance single family rent houses. No origination fees, quick approval, no credit check.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Neil Aggarwal Sent: Monday, February 25, 2013 10:33 AM To: centos@centos.org Subject: [CentOS] VNC server not reponding to external requests
Hello everyone:
I tried following the instructions on this page to set up a VNC server: http://wiki.centos.org/HowTos/VNC-Server
I can telnet to port 5901 from the machine itself: # telnet 127.0.0.1 5901 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. RFB 003.008
But, when I try to connect to it from the outside world, I get a connection timeout.
My /etc/sysconfig/vncservers file does not have the -nolisten tcp nor the -localhost options so it should be configured to accept outside connections.
Is there some default setting in the vncserver that I need to change to allow outside connections?
Thanks, Neil
-- Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos Virtual private server with CentOS 6 preinstalled Unmetered bandwidth = no overage charges
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 02/25/2013 07:55 PM, Neil Aggarwal wrote:
Hey everyone:
I got it working. I set it up under a user account. I was trying to set it up with the root account. It is working with the user account.
Will the VNC server allow remote logins as root?
From root did you run vncpasswd to create the needed /root.vnc/ files?
Thanks, Neil
-- Neil Aggarwal, (972) 834-1565 We lend money to investors to buy or refinance single family rent houses. No origination fees, quick approval, no credit check.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Neil Aggarwal Sent: Monday, February 25, 2013 10:33 AM To: centos@centos.org Subject: [CentOS] VNC server not reponding to external requests
Hello everyone:
I tried following the instructions on this page to set up a VNC server: http://wiki.centos.org/HowTos/VNC-Server
I can telnet to port 5901 from the machine itself: # telnet 127.0.0.1 5901 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. RFB 003.008
But, when I try to connect to it from the outside world, I get a connection timeout.
My /etc/sysconfig/vncservers file does not have the -nolisten tcp nor the -localhost options so it should be configured to accept outside connections.
Is there some default setting in the vncserver that I need to change to allow outside connections?
Thanks, Neil
-- Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos Virtual private server with CentOS 6 preinstalled Unmetered bandwidth = no overage charges
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Will the VNC server allow remote logins as root?
From root did you run vncpasswd to create the needed /root.vnc/ files?
Yes, I did. I see a /root/.vnc directory with a log, pid, passwd, and xstartup files.
Any suggestions?
Thanks, Neil
-- Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos Virtual private server with CentOS 6 preinstalled Unmetered bandwidth = no overage charges
On 02/26/2013 01:19 PM, Neil Aggarwal wrote:
Will the VNC server allow remote logins as root?
From root did you run vncpasswd to create the needed /root.vnc/ files?
Yes, I did. I see a /root/.vnc directory with a log, pid, passwd, and xstartup files.
Any suggestions?
And your /etc/sysconfig/vncserver has something like;
VNCSERVERS="1:foo 2:root"
and you are attempting to connect to 5902 for the root user (compared to 5901 for user foo)?
Robert:
And your /etc/sysconfig/vncserver has something like; VNCSERVERS="1:foo 2:root" and you are attempting to connect to 5902 for the root user (compared to 5901 for user foo)?
Yes.
This is strange. I just ran vncpasswd as root again and I can connect now. Weird, but I guess the problem is solved.
Thanks, Neil
-- Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos Virtual private server with CentOS 6 preinstalled Unmetered bandwidth = no overage charges
On 02/26/2013 01:36 PM, Neil Aggarwal wrote:
Robert:
And your /etc/sysconfig/vncserver has something like; VNCSERVERS="1:foo 2:root" and you are attempting to connect to 5902 for the root user (compared to 5901 for user foo)?
Yes.
This is strange. I just ran vncpasswd as root again and I can connect now. Weird, but I guess the problem is solved.
Our's is not to reason why...
Our's is not to reason why...
I love that quote! I guess you truncated it to be nice.
Thanks for your help!
Neil
-- Neil Aggarwal, (972)834-1565, http://UnmeteredVPS.net/centos Virtual private server with CentOS 6 preinstalled Unmetered bandwidth = no overage charges
So, I decided to install CentOS on a separate system in my local home (business) network. I know the internal IP and the external IP for the router. I will be working with a dynamic IP for a while, from our ISP, provided by our cable company. It's almost always the same but it's not static.
When I setup Linux on my VirtualBox, I setup a domain of sandbox.dev and IP 127.0.0.1 inside the Windows host file. Inside VirtualBox, I forwarded the port 2222 to 22 for SSH and 8080 to 80 for HTTP. Then from Windows I could connect to my server with http://sandbox.dev:8080/ Now, I tried to setup the httpd.conf file on the other system running Apache to use a domain name. I followed a tutorial on the web. I did backup the file. Here are my questions: 1) The tutorial suggested that I setup a root for all websites of /www, which is fine. So, then if I wanted to setup domain1.com, I would create a directory of /www/domain1.com, does that sound right? Then I would put the site files in a html folder, perhaps? 2) How can I test this so that it would be similar to a remote production server? One, from my own local network and two, as if coming from the web? I did forward the router port for the machine with CentOS. During installation of CentOS, I identified the machine as fwwebdevelopment.com. I don't have a DNS server setup yet to map that domain to my external IP. 3) Is there a way to connect to the server on that machine, from my main desktop, using anything besides the internal IP, as in being able to browse to fwwebdevelopment.com while I am inside my own LAN? I suppose I know it can be done. Do, I need to change this in the windows host file, for it to work inside my local network, if I am using a Windows desktop to browse to the site? 4) Should I use something like dynamic dns to map a domain to my IP? 5) I want to also be able to have ftp setup. So, if I was developing for Drupal, and I wanted to do updates, I could both ftp from my desktop to the other machine and be able to download to that machine from the web. Currently, on my virtualbox installation on my machine, I cannot download files for Drupal updates because it says ftp is not configured. So, I'm asking if I setup the ftp server on that machine, can I ftp from my internal network and from the web? Thanks in advance for any help, Bruce
_______________________________________________________ Bruce Whealton - Web Design/Development/Programming Future Wave Web Development: http://futurewaveonline.com Developing for the Desktop as well as for Mobile Devices - Smartphones/Tablets Call 919-636-5809 _______________________________________________________
Bruce Whealton wrote:
So, I decided to install CentOS on a separate system in my local home (business) network. I know the internal IP and the external IP for the router. I will be working with a dynamic IP for a while, from our ISP, provided by our cable company. It's almost always the same but it's not static.
<snip> First question: do you intend to have anyone come into this from outside?
mark
Sorry for not responding sooner. Yes, I do see that happening in the near future. So, it's for a local development environment but it is also for external access. Since I have a dynamic IP, I was thinking I needed free dns solutions for persons that use a dynamic ip. So, I might want to use http://mysubdomain.no-ip.com Thanks, Bruce
_______________________________________________________ Bruce Whealton - Web Design/Development/Programming Future Wave Web Development: http://futurewaveonline.com Developing for the Desktop as well as for Mobile Devices - Smartphones/Tablets Call 919-636-5809 _______________________________________________________
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of m.roth@5-cent.us Sent: Tuesday, February 26, 2013 4:37 PM To: CentOS mailing list Subject: Re: [CentOS] Help setting up Apache and ftp on Centos
Bruce Whealton wrote:
So, I decided to install CentOS on a separate system in my local home (business) network. I know the internal IP and the external IP for the router. I will be working with a dynamic IP for a while, from our ISP, provided by our cable company. It's almost always the same but it's not static.
<snip> First question: do you intend to have anyone come into this from outside?
mark
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Tue, Feb 26, 2013 at 3:13 PM, Bruce Whealton bruce@futurewaveonline.com wrote:
So, I decided to install CentOS on a separate system in my local home (business) network. I know the internal IP and the external IP for the router. I will be working with a dynamic IP for a while, from our ISP, provided by our cable company. It's almost always the same but it's not static.
When I setup Linux on my VirtualBox, I setup a domain of sandbox.dev and IP 127.0.0.1 inside the Windows host file. Inside VirtualBox, I forwarded the port 2222 to 22 for SSH and 8080 to 80 for HTTP. Then from Windows I could connect to my server with http://sandbox.dev:8080/ Now, I tried to setup the httpd.conf file on the other system running Apache to use a domain name. I followed a tutorial on the web. I did backup the file. Here are my questions:
- The tutorial suggested that I setup a root for all websites of /www,
which is fine. So, then if I wanted to setup domain1.com, I would create a directory of /www/domain1.com, does that sound right? Then I would put the site files in a html folder, perhaps?
Note that you can put multiple virtual servers on the same host and they are then identified by the host header the browser sends. If you only want to host one site you can greatly simplify the configuration - and make it not care about what name or IP you used to reach it. If you do that, just leave the default DocumentRoot at /var/www/html and put your site there.