Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Runnig "xhost local:localhost" automatically
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
crys0000
n00b
n00b


Joined: 11 Jan 2006
Posts: 44
Location: Todi, Italy

PostPosted: Sat Apr 08, 2006 12:42 pm    Post subject: Runnig "xhost local:localhost" automatically Reply with quote

I have set up a chroot to run 32bit applications that can't be compiled on amd64 natively. It works perfectly, but in order to run X programs I have to run "xhost local:localhost" on every reboot. Is there a way to run it automatically everytime I start an X session? I tried to add the command to /etc/init.d/gentoo32, but it gives me a "no screen found" error.

Any suggestions?

Thanks. 8)
Back to top
View user's profile Send private message
bhun
n00b
n00b


Joined: 01 Dec 2002
Posts: 70

PostPosted: Sat Apr 08, 2006 4:17 pm    Post subject: Re: Runnig "xhost local:localhost" automatically Reply with quote

crys0000 wrote:
Is there a way to run it automatically everytime I start an X session?


Adding the xhost command to the 'Xsession' files should work in most cases when using a session manager.
Back to top
View user's profile Send private message
crys0000
n00b
n00b


Joined: 11 Jan 2006
Posts: 44
Location: Todi, Italy

PostPosted: Mon Apr 10, 2006 6:27 am    Post subject: Re: Runnig "xhost local:localhost" automatically Reply with quote

bhun wrote:
crys0000 wrote:
Is there a way to run it automatically everytime I start an X session?


Adding the xhost command to the 'Xsession' files should work in most cases when using a session manager.


I added it to /etc/X11/Sessions/Xsession and /etc/X11/xdm/Xsession, but unfortunately it didn't work. Any other suggestion?

Thanks.
Back to top
View user's profile Send private message
bhun
n00b
n00b


Joined: 01 Dec 2002
Posts: 70

PostPosted: Mon Apr 10, 2006 6:39 am    Post subject: Re: Runnig "xhost local:localhost" automatically Reply with quote

crys0000 wrote:
I added it to /etc/X11/Sessions/Xsession and /etc/X11/xdm/Xsession, but unfortunately it didn't work. Any other suggestion?


It's only going to work for X sessions the way you did, if you add it to /etc/X11/gdm/Xsession, and /usr/kde/<version>/share/config/kdm/Xsession, it'll work for KDM en GDM too. This isn't going to work if you're not using a session manager.
Back to top
View user's profile Send private message
Jfr0
n00b
n00b


Joined: 19 Dec 2005
Posts: 72

PostPosted: Tue Apr 11, 2006 3:50 am    Post subject: Reply with quote

What about adding it to
/etc/conf.d/local.start
Back to top
View user's profile Send private message
bhun
n00b
n00b


Joined: 01 Dec 2002
Posts: 70

PostPosted: Tue Apr 11, 2006 8:26 am    Post subject: xhost in /etc/conf.d/local.start Reply with quote

Jfr0 wrote:
What about adding it to /etc/conf.d/local.start


That's not going to work. You need to set the DISPLAY value for it to run. E.g. if you start X with a display manager, and it crashes, then you would need rerun it again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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