View previous topic :: View next topic |
Author |
Message |
pitkali n00b


Joined: 03 Sep 2003 Posts: 3 Location: Wroc?aw/POLAND
|
Posted: Fri Feb 27, 2004 9:38 pm Post subject: Xfree 4.3.0-r5: xhost +localhost permanently |
|
|
After upgrading to new version of xfree, I can't run gvim when I su under KDE started from kdm. I get:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
I figured out that xhost +localhost solves the problem, but I have to run it every time I log in. Any ideas how to make it automatic?
Regards,
Piotr Kalinowski _________________ * Registered Linux User no. 282090 * GG: 1482763 *
* JID:pitkali@jabberpl.org * Tlen:pitkali@tlen.pl * |
|
Back to top |
|
 |
JeroenV Guru


Joined: 16 Jul 2002 Posts: 447 Location: Amsterdam / Hamburg
|
Posted: Fri Feb 27, 2004 10:17 pm Post subject: |
|
|
You might try to put
in your ~/.xinitrc _________________ Cheers
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you! |
|
Back to top |
|
 |
meital Tux's lil' helper


Joined: 17 Feb 2004 Posts: 93
|
Posted: Fri Feb 27, 2004 10:19 pm Post subject: |
|
|
try adding Code: | xhost +localhost
export DISPLAY=:0.0
| to .bash_profile |
|
Back to top |
|
 |
pitkali n00b


Joined: 03 Sep 2003 Posts: 3 Location: Wroc?aw/POLAND
|
Posted: Sat Feb 28, 2004 10:31 am Post subject: |
|
|
Modifying .xinitrc doesn't work as I'd expected (I'm using kdm..). Adding it to .bash_profile however (even without exporting DISPLAY variable) seems to work. Nevertheless, ain't there some X configuration files to control such things?
Update: I've modified /usr/kde/3.2/config/kdm/Xsession to run xhost and obviously it works. Sorry for trouble.
Regards,
PIotr Kalinowski _________________ * Registered Linux User no. 282090 * GG: 1482763 *
* JID:pitkali@jabberpl.org * Tlen:pitkali@tlen.pl * |
|
Back to top |
|
 |
meital Tux's lil' helper


Joined: 17 Feb 2004 Posts: 93
|
Posted: Sat Feb 28, 2004 12:21 pm Post subject: |
|
|
Quote: | Update: I've modified /usr/kde/3.2/config/kdm/Xsession to run xhost and obviously it works. Sorry for trouble.
| didn't know I can do that, thanks for the tip  |
|
Back to top |
|
 |
JeroenV Guru


Joined: 16 Jul 2002 Posts: 447 Location: Amsterdam / Hamburg
|
Posted: Sat Feb 28, 2004 3:16 pm Post subject: |
|
|
Oh, I just saw my info was incomplete
the .xinitrc trick only works when you also hack the Session file, i.e. my /etc/X11/Sessions/enlightenment file reads
Code: |
#!/bin/sh
. ~/.xsession
/usr/bin/enlightenment
|
and ~/.xsession is symlinked to ~/.xinitrc
Anyway, I do think this way may be preferable in some cases, since it makes a system wide policy to include non-system-wide preferences, i.e. not all users may want to permit things like xhost +localhost and such. _________________ Cheers
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you! |
|
Back to top |
|
 |
|