|
|
|
|
| Ubuntu: Enabling remote X-windows |
|
Problem: By default remote x-windows (port 6000) is disabled in Ubuntu, how do I enable this?
|
|
Solution: One easy way around this is just to use ssh to login with port forwarding like such:
$ ssh -X host
This will set the DISPLAY variable automatically and any X program you run will be automatically tunneled back through the ssh connection.
Otherwise we're going to need to enable it. Here's how:
1. Go to System->Administration->Login Window (or run gdmsetup as root)
2. Under the security tab uncheck "Deny TCP connections to Xserver"
3. Now we have to restart gdm which will kill our Xsession.
# kill -HUP `cat /var/run/gdm.pid`
or if you prefer to edit /etc/gdm.conf by hand, make sure there are no overriding settings in /etc/gdm.conf-custom. Under the security section change DisallowTCP to false.
Unfortunately we cannot use gdmflexiserver, only a gdm restart will work.
|
|
|
|
|
|
This is free technical advice without any warranties.
Use at your own risk. Solutions offered may not apply to your particular problem at all.
Opinions and views expressed in the articles are the authors' personal
and may not necessarily reflect or coincide with those of Ano-Tech Computers.
We take no responsibility if anything bad happens from following any of
the intructions given. If you don't understand and accept this, please
contact us for personal assistance instead.
To read our full disclaimer, go
here.
We welcome anyone who is willing to contribute to this public knowledge base,
contact siteadmin@atc.no
if you have information you would like to share. The idea is not to replace
the commercial support sites, but to publish those hard-to-find
solutions you've found yourself looking for over and over again.
Show all articles