Re: Need Help on customizing X11; Couldn't find .xinitrc
Re: Need Help on customizing X11; Couldn't find .xinitrc
- Subject: Re: Need Help on customizing X11; Couldn't find .xinitrc
- From: Jeremy Huddleston <email@hidden>
- Date: Thu, 6 Jan 2011 17:14:10 -0800
On Jan 6, 2011, at 15:08, Anuj Goyal wrote:
> I find the xinitrc file in the directory I mentioned earlier
> /usr/X11/lib/X11/xinit/. I commented the *twm &, and added quartz-wm &* .
Why? Don't do that. That's a fall-through case and doesn't get executed anyway.
> Further copied this to my home directory.
Why? Don't do that. Delete it. As mentioned before, using ~/.xinitrc is deprecated. Just use the system one. You've expressed no need to customize it.
> But still when I start X11, I do
> not have quartz starting up.
Delete everything you've done and try again. Look at /var/log/system.log for helpful information. Remove any ~/.profile ~/.bashrc ~/.bash_profile, etc.
> 1 . So am I missing something here. To apply the changes do I need to
> execute some command ? or to integrate it with .Xresources ?
Yes, I think you're confused. Just do nothing and it will work. You've created a ~/.xinitrc and of course things aren't working. Just don't do that.
>
> Following is my .xinitrc
>
> #!/bin/sh
>
> userresources=$HOME/.Xresources
> usermodmap=$HOME/.Xmodmap
> sysresources=/usr/X11/lib/X11/xinit/.Xresources
> sysmodmap=/usr/X11/lib/X11/xinit/.Xmodmap
>
> # merge in defaults and keymaps
>
> if [ -f $sysresources ]; then
>
> if [ -x /usr/bin/cpp ] ; then
> xrdb -merge $sysresources
> else
> xrdb -nocpp -merge $sysresources
> fi
>
>
>
> fi
>
> if [ -f $sysmodmap ]; then
> xmodmap $sysmodmap
> fi
>
> if [ -f "$userresources" ]; then
>
> if [ -x /usr/bin/cpp ] ; then
> xrdb -merge "$userresources"
> else
> xrdb -nocpp -merge "$userresources"
> fi
>
>
>
> fi
>
> if [ -f "$usermodmap" ]; then
> xmodmap "$usermodmap"
> fi
>
> # start some nice programs
>
> if [ -d /usr/X11/lib/X11/xinit/xinitrc.d ] ; then
> for f in /usr/X11/lib/X11/xinit/xinitrc.d/*.sh ; do
> [ -x "$f" ] && . "$f"
> done
> unset f
> fi
>
> *#twm &*
> *quartz-wm & // made this change *
> xclock -geometry 50x50-1+1 &
> xterm -geometry 80x50+494+51 &
> xterm -geometry 80x20+494-0 &
> exec xterm -geometry 80x66+0+0 -name login
> ~
>
> ~
>
> ---
>
>
> 2. When is use xrdb -merge ~/.Xresources , it says
>
> sh: /usr/bin/cpp: No such file or directory
Are you doing that manually? The xinitrc file that you copy/pasted clearly has:
if [ -x /usr/bin/cpp ] ; then
xrdb -merge "$userresources"
else
xrdb -nocpp -merge "$userresources"
fi
Again, just undo everything you've done. Put xrdb changes in ~/.Xresources, and it will "just work". Messing with ~/.xinitrc if you're not 100% expert and know exactly what you are doing will most likely lead to problems as has been clearly evident if you search the mailing list archives. _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden