Steven J Mackenzie wrote:
>
> Jacques Le Marois wrote:
>
> > > o If I start X (KDE) as a normal user, open a terminal, 'su' to root, and
> > > try to run any programs (eg linuxconf or xcdroast) they will not run. From
> > > memory, linuxconf prints a 'broken pipe' message, and xcdroast complains
> > > about not being to open 'display :0'. Even if I set DISPLAY, the programs
> > > still won't run. If I type 'xhost +' xlib prints some error messages ... If
> > > I start X as root, there are no problems.
> >
> > Did you do xhost + in a user term ?
>
> Doh! Thanks for that :)
>
> If I 'xhost localhost' in a user terminal, then the programs from the root
> terminal can write to my (user) X-session.
>
> Can anyone tell me which file I need to create so that I don't need to type
> this each time (the manual pages aren't clear)?
I guess in .bashrc
Jacques