Difference between revisions of "X Connection - Ubuntu"

From The System Administrator Zone
 
Line 30: Line 30:
 
DisallowTCP=false
 
DisallowTCP=false
 
</pre>
 
</pre>
'''You must then reboot.''' Simply logging out from the graphical desktop and back in is not enough.
+
'''You must then reboot.'''  
 +
 
 +
Simply logging out from the graphical desktop and back in is not enough.
  
  
 
[[Category:Ubuntu]]
 
[[Category:Ubuntu]]

Latest revision as of 17:37, 30 August 2011

You are sitting at your brand new Ubuntu desktop.


You enable (you think) remote X connections from one of your Solaris servers by running;

$ xhost ServerName

Unfortunately, when log into the server and try to run an X application, such as *xterm*. you see the following;

# xterm
xterm Xt error: Can't open display: YourDeskTop:0.0
#

Starting with version 10.10, Ubuntu by default prohibits X11 listening to TCP connections. To verify if this is your problem, see if the X server is running with the *-nolisten* option.

# ps -ef | grep listen
root      1750  1745  0 Jul21 tty7     00:00:51 /usr/bin/X :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-HaI5Zl/database -nolisten tcp vt7
108       1877  1837  0 Jul21 ?        00:00:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root     31856 31777  0 12:18 pts/1    00:00:00 grep --color=auto listen
root:/etc/gdm#

If that is the case, become root and go to /etc/gdm. Create file *custom.conf* and edit it.

Enter two lines:

[security]

DisallowTCP=false

You must then reboot.

Simply logging out from the graphical desktop and back in is not enough.