Re: X11 forwarding doesn't read xinitrc?

From: Bit Twister (BitTwister_at_localhost.localdomain)
Date: 12/26/03

  • Next message: Roger Wilco: "Data encryption 360 degrees the nsa cannot break -- 01 turn 100 gigs into 2 bytes"
    Date: Fri, 26 Dec 2003 00:40:54 GMT
    
    

    On Fri, 26 Dec 2003 11:30:45 +1100, Rick Measham wrote:
    > 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!)

    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

    example:

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

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


  • Next message: Roger Wilco: "Data encryption 360 degrees the nsa cannot break -- 01 turn 100 gigs into 2 bytes"

    Relevant Pages

    • X11 forwarding doesnt read xinitrc?
      ... It appears that when forwarding X11, the local or remote xinitrc isn't ... I am forwarding from a RedHat 9 box to my Mac X.3. ... I have tried adding the correct commands to both the xinitrc on the mac ... Is there any way to automatically execute these two commands when an X11 ...
      (comp.security.ssh)
    • Re: No sound...?
      ... the menus say what they do in plain English, ... You know very well that I have tried out menu commands. ... I need manuals. ... almost all of them are available via menus and accessible via Mac Help. ...
      (uk.comp.sys.mac)
    • Re: [SLE] Sometimes Linux makes me crazy.
      ... > out of X. That's why we have KDE and Gnome, ... X11 provides a network-transparent means of displaying windows, ... the mac comes with an OS ... network transparency - presuming you keep that linux box around. ...
      (SuSE)
    • Re: OT: Desktop wars
      ... actually X11 is an application running on top of any operating ... Can a Mac display windowed application on another Mac without ... If you mean can a Mac serve it's native GUI to an application on another Mac ...
      (comp.os.vms)
    • Re: How to shut down a server?
      ... and with Remote Apple Events turned on (on the commanded Mac) ... - `Enable access for assistive devices' in Universal Access (similar ... want to control' or the Mac serving the AppleScript commands to the ...
      (uk.comp.sys.mac)