Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xfree 4.3.0-r5: xhost +localhost permanently
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
pitkali
n00b
n00b


Joined: 03 Sep 2003
Posts: 3
Location: Wroc?aw/POLAND

PostPosted: Fri Feb 27, 2004 9:38 pm    Post subject: Xfree 4.3.0-r5: xhost +localhost permanently Reply with quote

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
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Fri Feb 27, 2004 10:17 pm    Post subject: Reply with quote

You might try to put
Code:

xhost +localhost

in your ~/.xinitrc
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
meital
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2004
Posts: 93

PostPosted: Fri Feb 27, 2004 10:19 pm    Post subject: Reply with quote

try adding
Code:
xhost +localhost
export DISPLAY=:0.0
to .bash_profile
Back to top
View user's profile Send private message
pitkali
n00b
n00b


Joined: 03 Sep 2003
Posts: 3
Location: Wroc?aw/POLAND

PostPosted: Sat Feb 28, 2004 10:31 am    Post subject: Reply with quote

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
View user's profile Send private message
meital
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2004
Posts: 93

PostPosted: Sat Feb 28, 2004 12:21 pm    Post subject: Reply with quote

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 :wink:
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Sat Feb 28, 2004 3:16 pm    Post subject: Reply with quote

Oh, I just saw my info was incomplete :oops:
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 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum