[UCLA-LUG] login autoexecutions?
chris
cbs@ucla.edu
Tue, 9 Nov 1999 17:27:50 -0800 (PST)
On Tue, 9 Nov 1999, Dimi Shahbaz wrote:
> OK, I got linux in X login mode (ie, /etc/inittab is 5 for X11). Now,
> when I login, I often su in an xterm to run some admin commands. However,
> I have to 'xhost +' everytime, in every xterm, if I want to run X programs
> while su'ed. I tried putting 'xhost +' in my .xinitrc file, but I guess
> this file does not "execute" when login's are in X mode (ie, I have to
> console login, and then 'startx' in order to run the .xinitrc file). Is
> this assumption correct? If so, how can I specify commands to be run
> automatically when I login in X11 mode?
an easier solution is to do something like
xauth merge ~userid/.Xauthority ; export DISPLAY=:0
where userid is the userid you are logged into the box as. then you don't
have to use xhost at all. or, if you don't want to merge all of the
autorization keys
xauth -f ~userid/.Xauthority export - display | xauth merge -
export DISPLAY=display
where userid is as above and display is whatever display you are coming
from (ie, :0).
-chris
> TIA,
> Dimi
>
> -----
> Your attention please everyone, if I could just say a few words... I would be a better public speaker.
> -- Homer Simpson
>