Difference: MacOSXX11 (1 vs. 9)

Revision 9
13 Nov 2008 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="MacOSX"
Changed:
<
<
See:
>
>

Xquartz

 
Changed:
<
<
>
>
On OSX 10.5, I use the Xquartz releases of X11 instead of the X11 releases from Apple. These are easy to install and have resolved some issues I've had. Currently using Xquart 2.3.1. They now allow copy from X11 to other apps using normal command-C command-V keystrokes (this may work in Apple releases as well, I'm not sure). Xquartz also now includes 3 button mouse emulation --- yeah! You still need a three button USB mouse to effectively work...
 
Changed:
<
<

My Setup

>
>
Get it here http://xquartz.macosforge.org/
 
Changed:
<
<
Start X11 at Login Add X11 to the programs that start automatically when you login. System Preferences -> Accounts -> Login Items
>
>

DISPLAY var

 
Changed:
<
<
Make your own xinitrc to eliminate the xterm that is started by the system xinitrc...

Copy system xinitrc to your home area, fix permissions, and edit it...

cd ~
cp /etc/X11/xinit/xinitrc .xinitrc
chmod 664  .xinitrc
emacs .xinitrc

Set DISPLAY var in terminals When you use xterm, the DISPLAY variable is automatically set, but many people prefer using the terminal program.

Snippet of ~/.profile (note that BASH runs only the first found (in this order) of ~/.bash_profile, ~/.bash_login or ~/.profile ).
>
>
The X security is handled differently in 10.5. The DISPLAY environment variable looks like this:
 
Changed:
<
<
# set DISPLAY if not set, don't do if SSH_TTY is set if [ -z $DISPLAY ] && [ -z $SSH_TTY ]; then export DISPLAY=":0.0" fi
>
>
bash-3.2$ echo $DISPLAY /tmp/launch-nGX5JE/:0
 
Changed:
<
<
-- TomRockwell - 01 Jun 2007
>
>
If you use ssh -Y to connect to remote hosts and don't mess with the DISPLAY variable manually, things should just work.
Revision 8
01 Jun 2007 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="MacOSX"
See:
Line: 33 to 33
 

-- TomRockwell - 01 Jun 2007
Deleted:
<
<

META FILEATTACHMENT attachment="bash-invocation.txt" attr="" comment="Invocation section of the BASH man page" date="1180720241" name="bash-invocation.txt" path="bash-invocation.txt" size="4757" stream="bash-invocation.txt" user="Main.TomRockwell" version="0"
Revision 7
01 Jun 2007 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="MacOSX"
See:
Line: 12 to 12
 

Make your own xinitrc to eliminate the xterm that is started by the system xinitrc...
Added:
>
>
Copy system xinitrc to your home area, fix permissions, and edit it...
 
cd ~
cp /etc/X11/xinit/xinitrc .xinitrc
Revision 6
01 Jun 2007 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="MacOSX"
See:
Line: 25 to 25
 

# set DISPLAY if not set, don't do if SSH_TTY is set
Changed:
<
<
if [ -z $DISPLAY && -z $SSH_TTY ]; then
>
>
if [ -z $DISPLAY ] && [ -z $SSH_TTY ]; then
  export DISPLAY=":0.0" fi
Revision 5
01 Jun 2007 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="MacOSX"
See:
Line: 21 to 21
 

Set DISPLAY var in terminals When you use xterm, the DISPLAY variable is automatically set, but many people prefer using the terminal program.
Changed:
<
<
Snippet of ~/.profile (note that BASH runs only the first found of ~/.bash_profile ~/.bash_login ~/.profile ).
>
>
Snippet of ~/.profile (note that BASH runs only the first found (in this order) of ~/.bash_profile, ~/.bash_login or ~/.profile ).
 

# set DISPLAY if not set, don't do if SSH_TTY is set
Revision 4
01 Jun 2007 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="MacOSX"
See:
Line: 21 to 21
 

Set DISPLAY var in terminals When you use xterm, the DISPLAY variable is automatically set, but many people prefer using the terminal program.
Changed:
<
<
Snippet of ~/.profile
>
>
Snippet of ~/.profile (note that BASH runs only the first found of ~/.bash_profile ~/.bash_login ~/.profile ).
 
Changed:
<
<
# set DISPLAY if not set if [ -z $DISPLAY ]; then
>
>
# set DISPLAY if not set, don't do if SSH_TTY is set if [ -z $DISPLAY && -z $SSH_TTY ]; then
  export DISPLAY=":0.0" fi
Changed:
<
<

# if DISPLAY is not set, set it to default for local connection if
>
>
 

-- TomRockwell - 01 Jun 2007
Revision 3
01 Jun 2007 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="MacOSX"
See:

Added:
>
>
 

My Setup

Start X11 at Login Add X11 to the programs that start automatically when you login. System Preferences -> Accounts -> Login Items
Added:
>
>
Make your own xinitrc to eliminate the xterm that is started by the system xinitrc...

cd ~
cp /etc/X11/xinit/xinitrc .xinitrc
chmod 664  .xinitrc
emacs .xinitrc

Set DISPLAY var in terminals When you use xterm, the DISPLAY variable is automatically set, but many people prefer using the terminal program.

Snippet of ~/.profile

# set DISPLAY if not set
if [ -z $DISPLAY ]; then
  export DISPLAY=":0.0"
fi 


# if DISPLAY is not set, set it to default for local connection
if 
 

-- TomRockwell - 01 Jun 2007
Added:
>
>
 
META FILEATTACHMENT attachment="bash-invocation.txt" attr="" comment="Invocation section of the BASH man page" date="1180720241" name="bash-invocation.txt" path="bash-invocation.txt" size="4757" stream="bash-invocation.txt" user="Main.TomRockwell" version="0"
Revision 2
01 Jun 2007 - Main.TomRockwell
Line: 1 to 1
 
META TOPICPARENT name="MacOSX"
See:
Line: 11 to 11
 

-- TomRockwell - 01 Jun 2007 \ No newline at end of file
Added:
>
>
META FILEATTACHMENT attachment="bash-invocation.txt" attr="" comment="Invocation section of the BASH man page" date="1180720241" name="bash-invocation.txt" path="bash-invocation.txt" size="4757" stream="bash-invocation.txt" user="Main.TomRockwell" version="0"
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback