Re: Can X11 for MacOS X and XDarwin coexist?
Re: Can X11 for MacOS X and XDarwin coexist?
- Subject: Re: Can X11 for MacOS X and XDarwin coexist?
- From: Michèle Garoche <email@hidden>
- Date: Fri, 17 Jan 2003 22:32:21 +0100
Le vendredi, 17 jan 2003, ` 17:45 Europe/Paris, Jonas Steverud a icrit :
"macauboy" <email@hidden> writes:
Can X11 for MacOS X and XDarwin coexist? Do we need to modify
anything or just
install them together? thank you very much!
From what I know, they cannot coexist since X11 requires some (most)
files to be placed in specific directories.
Not true. I run both side by side without problem. X11 with quartz-wm
(but you can choose another wm) and the other with wmaker (idem you
have choice). I even try both with wmaker at the same time, it works
just fine.
Here's how to do it. I assume here that you use Fink and update it via
cvs, but I'll guess the mechanism is the same if you use already
compiled package. I had the xfree86-base-threaded package installed
before X11 and I use French keyboard (just adapt the steps to your
needs).
1 - First desintall xfree86 threaded
sudo sudo dpkg -r --force-depends xfree86-rootless-threaded
xfree86-rootless-threaded-shlibs xfree86-base-threaded
xfree86-base-threaded-shlibs
2 - Install X11
Install X11User, X11SDK
3 - Move the installation elsewhere in case I want to go back to
previous installation
sudo mv /usr/X11R6 /usr/X11R6_bak
sudo mv /etc/X11 /etc/X11_bak
4 - Reinstall xfree86 threaded
fink install xfree86-base-threaded
fink install xfree86-rootless-threaded
5 - Copy the the previously save directories where it belongs
sudo cp /usr/X11R6_bak/bin/Xquartz /usr/X11R6/bin
sudo cp /usr/X11R6_bak/bin/quartz-wm /usr/X11R6/bin
sudo cp /usr/X11R6_bak/lib/libapplexp.1.0.dylib /usr/X11R6/lib
6 - Copy some files in home directory
mkdir ~/X11
sudo cp /usr/X11R6_bak/bin/Xquartz ~/X11
sudo cp /usr/X11R6_bak/bin/quartz-wm ~/X11
sudo cp /usr/X11R6_bak/lib/libapplexp.1.0.dylib ~/X11
7 - Create two .xinitrc files: one for X11, the other for XDarwin
sudo cp .xinitrc .xinitrc.xdarwin
sudo cp .xinitrc .xinitrc.x11
8 - Change .xinitrc.x11 to run with quartz-wm
sudo pico .xinitrc.x11
and changed the last part as follows;
# For X11
xmodmap -e 'keycode 66 = Mode_switch'
exec xterm -geometry 80x20+34+22 -ls -sb -rightbar -si -sl 10000 -j &
exec quartz-wm
9. Create 2 files in ~/bin to launch XDarwin or X11 as I want
pico x11start
#!/bin/sh
exec cp .xinitrc.x11 .xinitrc &
/Applications/X11.app/Contents/MacOS/X11 --xquartz-be-xinit -keymap
/System/Library/Keyboards/Francais.keymapping
pico xdarwinstart
exec cp .xinitrc.xdarwin .xinitrc &
exec launch /Applications/XDarwin.app &
10 - Give them the right execute permissions
chmod +x x11start
chmod +x xdarwinstart
11 - Change the display used by XDarwin
defaults write org.xfree86.XDarwin Display 1
12 - Create a script in ~/bin to run after each Fink selfupdate cvs
pico finkx11
#!/bin/sh
cp ~/X11/Xquartz /usr/X11R6/bin
cp ~/X11/quartz-wm /usr/X11R6/bin
cp ~/X11/libapplexp.1.0.dylib /usr/X11R6/lib
ln -sf /usr/X11R6/lib/libapplexp.1.0.dylib
/usr/X11R6/lib/libapplexp.1.dylib
ln -sf /usr/X11R6/lib/libapplexp.1.0.dylib
/usr/X11R6/lib/libapplexp.dylib
13 - Give it the right execute permission
chmod +x finkx11
This script is to be run with: sudo finkx11
See the fink users mailing list archives for more info:
The thread titled [Fink-users] Bluefish, Apple X11, and
xfree86-threaded?
<http://www.mail-archive.com/email@hidden/
thrd2.html#07799>
Michhle
<http://micmacfr.homeunix.org/>
_______________________________________________
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.