![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#21 |
|
Ubuntu Extra Shot
![]() |
Re: HOWTO: Setting up a VNC to GDM connection
If you're going through a router or even some cable modems, you have NAT setup and you may have to configure port-forwarding.
I'm not sure how much you know about networking, so I'm gonna break it down a little for you. Here's an setup of someone with a router: 62.45.23.20 (Internet Ip)->Router Outside->Router Internal/Gateway (192.168.0.1)->Desktop External (192.168.0.101) aka NAT. Your desktop also has the loopback address 127.0.0.1 Try running nmap on all your different IPs (except the gateway), It makes a big difference if it's your Internet IP that's filtering, or if it's your Desktop's NAT that is.
__________________
Computer science has as much to do with computers as astronomy has to do with telescopes. - Edsger Wybe Dijkstra Intangible's Desktop |
|
|
|
|
|
#22 | |
|
A Carafe of Ubuntu
![]() Join Date: Jun 2005
Location: Canada
Beans: 86
Ubuntu 9.10 Karmic Koala
|
Re: HOWTO: Setting up a VNC to GDM connection
Quote:
|
|
|
|
|
|
|
#23 |
|
Ubuntu Extra Shot
![]() |
Re: HOWTO: Setting up a VNC to GDM connection
We need to see where it's getting blocked... Open a terminal, paste this, and then send me scanlog.txt through private message. This will scan just about everything that could be causing the problem.
This assumes you have nmap and w3m installed and the interface you want to scan is eth0. Code:
echo "Looking up addresses...";IN=127.0.0.1;ON=`ifconfig eth0|grep -Eo \
"inet addr:[0-9.]{7,15}"|grep -Eo "[0-9.]{7,15}"`;IG=`route|grep -Eo "^\
default[ ]{1,}[0-9a-z]{1,}"|grep -Eo "[0-9a-z]{1,}\$"`;IA=`w3m -dump -n\
o-cookie "http://www.showmyip.com/simple/"|grep -Eo "[0-9.]{7,15}"`;ech\
o -en "Starting scan on the following:\n\nInternal\t$IN\nOutter \t$ON\\
nGateway \t$IG\nInternet\t$IA\n\nResults will be in scanlog.txt\n\nPlea\
se Wait...\n";echo -ne "\nScans started at ">>scanlog.txt; date>>scanlo\
g.txt; echo -e "\nInternal: $IN\nOutter: $ON\nGateway: $IG\nInternet: $\
IA">>scanlog.txt;nmap $IN $ON $IG $IA>>scanlog.txt;echo Done.
Anybody else having similar problems, feel free to PM me for help.
__________________
Computer science has as much to do with computers as astronomy has to do with telescopes. - Edsger Wybe Dijkstra Intangible's Desktop |
|
|
|
|
|
#24 |
|
Ubuntu Extra Shot
![]() |
Re: HOWTO: Setting up a VNC to GDM connection
Just as a side-note: this is the thing I love most about Unix-like systems, you can combine all these commands, and have them pasted by someone into a terminal instead of having to ask them 100 questions or explain a bunch of different things.
__________________
Computer science has as much to do with computers as astronomy has to do with telescopes. - Edsger Wybe Dijkstra Intangible's Desktop |
|
|
|
|
|
#25 | |
|
A Carafe of Ubuntu
![]() Join Date: Jun 2005
Location: Canada
Beans: 86
Ubuntu 9.10 Karmic Koala
|
Re: HOWTO: Setting up a VNC to GDM connection
Quote:
It was actually a stupid mistake on my part. In my router settings, I didn't check a checkbox (which would enable the corresponding virtual server'). I've actually never noticed the checkbox until today. Now when I run 'nmap My-Internet-IP' I'm told port 5900 is open instead of filtered. |
|
|
|
|
|
|
#26 | |
|
A Carafe of Ubuntu
![]() Join Date: Mar 2005
Beans: 107
|
Re: HOWTO: Setting up a VNC to GDM connection
Quote:
EDIT: Bah, nevermind....A little fiddling and I figured it out. I just had to comment out the line at the bottom of the /etc/X11/xdm/Xservers file. Last edited by spacemonkey; June 29th, 2005 at 11:18 PM.. |
|
|
|
|
|
|
#27 |
|
Ubuntu Extra Shot
![]() |
Re: HOWTO: Setting up a VNC to GDM connection
Glad you got it; I figured it was either that or a firewall on the computer itself. It's easy to overlook stuff like that, I do it all the time.
__________________
Computer science has as much to do with computers as astronomy has to do with telescopes. - Edsger Wybe Dijkstra Intangible's Desktop |
|
|
|
|
|
#28 |
|
5 Cups of Ubuntu
![]() Join Date: Jun 2005
Beans: 14
|
Re: HOWTO: Setting up a VNC to GDM connection
I actually ended up using x11vnc to do it. Here's how:
First of all, disable Desktop Sharing with Vino under System -> Preferences -> Remote Desktop. Use synaptic to install x11vnc. Once x11vnc is installed, you will need to create a password file that x11vnc will use. Do this: Code:
sudo x11vnc -storepassword yourpasswordhere /etc/x11vnc.pass Code:
sudo nano -w /etc/X11/gdm/Init/Default Code:
/usr/bin/x11vnc -rfbauth /etc/x11vnc.pass -o /tmp/x11vnc.log -forever -bg -rfbport 5900 Code:
sudo nano -w /etc/X11/gdm/gdm.conf Code:
#KillInitClients=true Code:
KillInitClients=false |
|
|
|
|
|
#29 |
|
Ubuntu Extra Shot
![]() |
Re: HOWTO: Setting up a VNC to GDM connection
That looks like the newest x11vnc from Breezy, the one from Hoary doesn't have the same options.
__________________
Computer science has as much to do with computers as astronomy has to do with telescopes. - Edsger Wybe Dijkstra Intangible's Desktop |
|
|
|
|
|
#30 | |
|
5 Cups of Ubuntu
![]() |
Re: HOWTO: Setting up a VNC to GDM connection
Quote:
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|