Jesse Long on Fri, 03 Mar 2006 22:57:07 +0200 (SAST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[GLUG-chat] OT: Problem X (was: mp3 players for the car)


On Fri, 2006-03-03 at 10:38 +0200, Alan McKinnon wrote:
> On Friday, 3 March 2006 10:12, Vivian Gervais wrote:
> > >> *also a top post*
> > >
> > >Now that's just less intelligent.
> >
> > This i disagree with, intelligence (or the lack thereof) is the
> > blatant unknown, i knew exactly what i was doing, and factually
> > pointed it out, it would tend to be obvious that someone who didnt
> > understand what was read and then still posted an obvious,
> > possesses the character traits of unintelligence... not unlike your
> > last comment..
> 
> Intelligence is the ability to solve problems. The inability to solve 
> a specific problem X does not prove unintelligence, as the person 
> might not know enough about X to solve that problem while still 
> having enough intelligence to solve it if he did know enough.

Hi Alan, Vivian,

These seems to be causing considerable problems for you guys, let me
explain for all those who do not know enough about X:

I find one of the best ways to debug X problems is to do this:

# xinit /usr/bin/X11/xterm -- :2 >/tmp/debug.out 2>&1

This will put the debug output in /tmp/debug.out, usually with a good
explanation as to your problem. 

In most recent distros, you will have a X.org installed, the replacement
for XFree86. Older distros still have XFree86. For XFree86, you should
check your XF86Config-4 file for configuration options (also see the
XF86Config-4 man page). On Debian Sarge, the XF86Config-4 file is
in /etc/X11/.

On distros with X.org, you want to look for the xorg.conf file, which is
pretty much the same as the older XF86Config files, and the xorg.conf(5)
man page.

If your problem X is in X11 forwarding over ssh, you should set the
following options:

in /etc/ssh/sshd_config of the remote machine (this will be the machine
you connect to via ssh, but which is the X11 client):
-------------------------------------------------------------------
X11Forwarding yes
X11DisplayOffset 10
-------------------------------------------------------------------

On the local machine (the machine from which you initiate the ssh
connection, also the machine with the X server), you should set this
in /etc/ssh/ssh_config:
-------------------------------------------------------------------
  Host *
    ForwardAgent yes
    ForwardX11 yes
-------------------------------------------------------------------

Then, reload the ssh server configuration, and establish a ssh
connection from xterm, as shown:
-------------------------------------------------------------------
user@local$ ssh 192.168.0.123
You have new mail.

Last login: Mon Feb 27 21:48:18 2006 from hell
user@remote$ echo $DISPLAY
localhost:13.0
user@remote$ xcalc
-------------------------------------------------------------------

This shows how ssh will tunnel X11 over the encrypted connection,
automatically setting the $DISPLAY variable for X11 clients.

To have X11 displays on remote machine, where ssh is unavailable, you
can use the X11 protocol unencrypted over the wire. For example, if you
establish the connection to the remote machine via telnet, you would
first add the remote machine to the X11 access control lists, then
establish the connection. Once in your remote shell, you would export
the correct $DISPLAY value, then launch the X11 client, like so:
--------------------------------------------------------------------
user@local$ xhost +192.168.0.123
192.168.0.123 being added to access control list
user@local$ telnet 192.168.0.123
Trying 192.168.0.123...
Connected to 192.168.0.123.
Escape character is '^]'.

Welcome to hostname

login: user
password: 

Last login: Mon Feb 27 21:48:18 2006 from hell
user@remote$ export DISPLAY=192.168.0.110:0.0
user@remote$ xcacl
--------------------------------------------------------------------

And.... if all else fails, google.

ITS FRIDAY, SO SMILE DAMNIT! ;-)

Keep well,
Jesse

---
To unsubscribe: send the line "unsubscribe glug-chat" in the
subject of a mail to "glug-chat-request@xxxxxxxxxxxx".
Problems? Email "glug-chat-admins@xxxxxxxxxxxx". Archives are at
http://www.linux.org.za/Lists-Archives/