X11 forwarding doesn't read xinitrc?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
It appears that when forwarding X11, the local or remote xinitrc isn't
read. I am forwarding from a RedHat 9 box to my Mac X.3.

When using the mac, I need to run two xmodmap commands to get the keys
to work as expected (without them the + and * keys do forward and
reverse select in certain KDE apps).

I have tried adding the correct commands to both the xinitrc on the mac
and the xinitrc on the RH box. I've also added them to the .Xmodmap
files to no avail.

Should one (or both) these files be taking effect?

Is there any way to automatically execute these two commands when an X11
connection is received from the mac? (or even some file that gets
executed when an X11 connection is opened from anywhere!)

Thanks and cheers!

Re: X11 forwarding doesn't read xinitrc?

On Fri, 26 Dec 2003 11:30:45 +1100, Rick Measham wrote:
Quoted text here. Click to load it

Your login script, ~/.bash_profile, could grep ps aux for your remote
login process and parse it to set $DISPLAY and do something like
xrdb -merge $HOME/.Xresources


ps aux | grep -c bittwister
if [ $_rtn -gt 0 ] ; then
  export DISPLAY=wb:0
  xrdb -merge $HOME/.Xresources

For some light reading, http://www.tldp.org/LDP/abs/html/index.html

Site Timeline