Re: system default xinitrc
Re: system default xinitrc
- Subject: Re: system default xinitrc
- From: Randy Ford <email@hidden>
- Date: Tue, 28 Jan 2003 04:07:21 -0600
On Monday, January 27, 2003, at 11:28 PM, William Julien wrote:
Thanks for the information. But it's disappointing. They seem to have
a single user mentality,
I'm not sure that this is a single user viewpoint. It may be more of a
lack of sysadmin viewpoint. Each user can have their own .xinitrc,
.Xdefaults and .Xresources files. The problem is that there isn't a
way to have modifiable system ones without placing an .xinitrc in each
users directory.
In my case, I wanted to learn the system defaults before I changed it.
My primary issues are to set automatically my xhost settings and to
xrdb merge my .Xresources and Xdefaults. I'm tired of typing 'xhost +'
on every session. One thought, can Xauthority be used to always allow
specific hosts? How?
As best as I can tell, the system default is to look for an ~/.xinit
file. If it exists, it's executed; otherwise, an xterm is started in
the background and quartz-wm is exec-ed. The sample .xinitrc doesn't
appear to have been modified by Apple; it's at /etc/X11/xinit/xinitrc.
Here's mine:
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# start some nice programs
/usr/X11R6/bin/xterm -ls&
exec quartz-wm
I'm tired of typing 'xhost +' on every session. One thought, can
Xauthority be used to always allow specific hosts? How?
You can use "xhost hostname" to allow only listed machines to connect.
Xhost has some rather large security holes, though. I use ssh to
connenct to other machines and tunnel X through that. I had to change
both /etc/ssh_conf and /etc/sshd_conf to allow X11Forwarding. I did it
on both machines. (I couldn't deme to get ssh -X to work.) Now I just
"ssh hostname" to the other machine. It sets up my DISPLAY
automagically. I then can just type "xterm&" or such and it appears on
my screen.
It is useless to have an X server when by default it works only as a
client.
I don't understand this statement. Are you referring to the difficulty
at getting it to display clients from other machines?
randy.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.