|
|
#61 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
57- AppleScript to launch Apple's X11 and The Gimp
(Thanks to Martin Costabel and Marcelo Camperi)
Write a script in AppleScript Editor that looks like this: Code:
tell application "X11" activate end tell do shell script "export DISPLAY=:0 && source /sw/bin/init.sh && gimp" Works the same way for any program that uses Apple's X11, was installed by fink, and can be started from the command line. You can also write a regular shell script to start an application, and then use "DropScript" to generate an application that will run the shell script. The way to activate Apple's X11 by these means is to use the line: osascript -e 'tell application "X11" to activate' at the start of your shell script. About DropScript: "DropScript is an application for Mac OS X which lets you create new applications from any BSD program which takes files as command line arguments. Typically, these are scripts written in sh, perl, or other scripting languages". (freeware - OSX downloads): http://www.apple.com/downloads/macos...ropscript.html |
|
|
|
|
#62 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
58- Printing from Abiword
(Thanks to Martin Costabel)
"The problem is that Abiword and other X11-based Unix programs send Postscript files to the printer. This works, of course, if your printer is a postscript printer. It doesn't work for the usual USB inkjet printers, because Apple's version of CUPS does not include a filter for postscript files. It contains filters for all kinds of files, but not for postscript. One possibility is to print to a file and then convert this postscript file to pdf using ps2pdf from a ghostscript package. The pdf file can then be printed using Preview or Acrobat Reader or simply by "lpr" from the command line. The other possibility is to install gimp-print and eps-postscript, download from http://gimp-print.sourceforge.net/MacOSX.php3 . This includes a postscript filter for cups. You can then define a second version of your USB printer using a driver from gimp-print. This will then probably work with Abiword". |
|
|
|
|
#63 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
59- Download Apple's X11 Public Beta v0.3 and SDK
1- You can download Apple's third public beta for X11 (41.7MB) at:
http://www.apple.com/macosx/x11/download/ "This third beta is available as a free download for anyone using Mac OS X 10.2.x. It contains a wide range of bug fixes and feature enhancements" 2- Download and install the X11 for Mac OS X Public Beta SDK (4.0MB) "The optional software developer's kit contains headers and other support files for X11 Beta 3, enabling you to compile your own X11 applications. All SDK users should upgrade to this new version". You will find the download link at the bottom-right of the same page: http://www.apple.com/macosx/x11/download/ Last edited by sao; 03-18-2003 at 05:10 AM. |
|
|
|
|
#64 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
60- What's New in X11 Public Beta 3
Changes in Beta 3:
Added Pseudocolor (8-bit) visual plane support so applications requiring 8 bit support should find the visuals by default. You can also add " -depth 8 " (see Xquartz man page) when starting the X Server if you want to run it only in 8 bit mode, which is unrecommended as OpenGL support is not available in 8 bit mode. Added an option to quit X11 without presenting warning dialog: " defaults write com.apple.x11 no_quit_alert true ". See man page for Xquartz for more details. Added Command-Q keyboard shortcut to quit X11. Can be disabled from preferences. Added Command-, to bring up preferences dialog. Can be disabled from preferences. Added customization of fake buttons while emulating mouse. See man page for Xquartz for more details. Fixed problems with dead keys on certain keyboard mappings. OpenGL: Fixed problem with linking against libGL resulting in multiple definitions of glGetColorTableEXT. Fixed problem where non-admin users could not start X11 because lock files were being left behind in /tmp. Fixed problem where quartz-wm lost ConfigureNotify events. Fixed problem so that windows can be resized by user to any size and not be limited by the Dock's height. Fixed window focus problem when un-minimizing X11 windows from the Dock. Fixed a crash that could occur when dragging remotely hosted windows. Dialog windows can now be resized. Fixed a problem with hardware accelerated scrolling in 16 bit mode. Fixed a bug where emulated middle-button-raise fails when Alt/option is not Mode_Switch. Fixed a bug where cursor would jump on multiple monitor systems if application tried to manage the cursor's position. Fixed a bug that crashes the X Server if application tried to retrieve data back from the framebuffer using XGetImage. Fixed a bug when quitting from the Dock that would result in the Quit Dialog being presented behind the current application. Fixed a bug where windows are created offscreen if (0,0) maps to an offscreen location. Fixed a bug with undecorated and modal windows having a titlebar because the window manager hints were not being interpreted correctly. |
|
|
|
|
#65 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
61- Apple's FAQs for X11 Public Beta v0.3
The official "Apple's X11 for MacOS X PB v0.3 FAQs" are here:
http://developer.apple.com/qa/qa2001/qa1232.html |
|
|
|
|
#66 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
62- Fink and Apple's X11 v.03
At the Fink site they recommend that all Fink users who are using Apple X11 upgrade to v0.3. After installing Apple's X11 beta3 you need to install with Fink, system-xfree86-4.2-11 or higher.
"It fixes a number of bugs including a few that can cause problems with building Fink packages. It is recommended that all Fink users who are using Apple X11 upgrade. A new version of the system-xfree86 package has been released that takes the new Apple X11 v0.3 into account". The Fink package system-xfree86-4.2-11 has been committed to stable, so you should be able to do a: 'sudo apt-get update' 'sudo apt-get install system-xfree86' Or, if you have the December 2002 Apple Developer Tools installed you can also run: 'fink selfupdate-cvs' 'fink install system-xfree86'. Last edited by sao; 04-23-2003 at 12:22 PM. |
|
|
|
|
#67 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
63- KDE 3.1 in Fink Stable and Apple's X11
KDE 3.1 is now in Fink stable.
"Improvements over 3.1 beta1 include an updated audio driver, faster startup times, cleaned up fink package info, support for Apple X11's window manager, and manybugfixes. Binary packages will be available in the next Fink binary distribution release". Apple X11 Support: 'startkde' now detects if you have Apple's quartz-wm (from the Apple X11 release), and runs with it instead of kwin if available. If you don't want to use Apple's window manager, you can get the old behaviour by putting: export KDEWM=kwin ...in your ~/.xinitrc file before the startkde line. |
|
|
|
|
#68 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
64- Pseudocolor (8-bit) visual plane support
(Thanks to John Harper and Toshimitsu Tanaka)
It means that starting the server with "-depth 8" will only create a PseudoColor visual, normally you get the TrueColor visuals plus a single PseudoColor visual that can be used by applications that want it. To use it try the following command from terminal: % /Applications/X11.app/Contents/MacOS/X11 -depth 8 |
|
|
|
|
#69 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
65- xman from Apple's X11 v.03
(Thanks to Martin Costabel)
xman is an X11 program that provides a gui interface to the manpages. If you want to use xman from Apple's X11, you have to run: setenv GROFF_TYPESETTER latin1 before starting xman. Because Apple's xman has a bug which it's still not yet fixed. To start it, type in an xterm window: xman & |
|
|
|
|
#70 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
66- Howto: Seamless Postscript printing
By Eric Dahlman at the x11-users mailing list
"A while back there was some talk about how to make X11 applications easily print under Jaguar and I promised to send on my solution. I got a free second so here it is. The problem with printing Postscript is that the printing system (CUPS) does not know how to convert a Postscript document into a PDF which is what many OSX print drivers take as input. So I wrote a little filter that uses ps2pdf from Ghostscript and the configuration file to tell the printing system how to use it. Once the filter is installed then you can send Postscript to lpr and print to your hearts content. This is particularly nice because there is no need to install the gimp-print printer drivers an you can just use the drivers you have currently working on your printer". You can grab the two little files you need and the directions from: http://www1.twincitizen.net/~dahlman |
|
|
|
|
#71 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
67- Trouble launching OOo with Apple's X11
At the "OOo - Testing -Mac OS X forums" at the thread "Trouble launching OOo with Apple's X11", they report several problems:
http://www.ooodocs.org/modules.php?n...0b5a1a6543f4b6 "From the crashlogs above, it appears that the crash *may* be related to changes in their OpenGL implementation. What may help is removing any of the X11 OpenGL libraries in /usr/X11R6/lib. When using Apple X11, /usr/X11R6/lib must *not* be contained in the path as loading or attempting to load the GL libraries from that directory will fail. They unfortunately have the same names as the OpenGL.framework libraries against which OpenOffice.org is linked". And "Some problems seem to related to... * Locale (NULL) * Java versions (1.3.3 vs 1.4.1) * Installer graphics (jpg vs gif) Of course, it doesn't help that several people have reported 'spontaneous recovery' after reboots etc. Well, it does help them but it makes figuring out what went wrong a little tougher "And regarding, * Installer graphics (jpg vs gif) : "apparently on some systems those premature end of JPEG messages may be related to the installer crashes. I've never had a problem on my system (latest Java VM 1.3.1/1.4.1 and QT6), but others have. Interestingly enough, if the JPEG based installer is run off the 1.4.1 VM on my system, it segfaults inside of code that parses the JPEGS in the VM (very bad, very bad) but it doesn't crash under 1.3.1, only barfs up those messages from the console. So even if it seems to be harmless on my box, it may be wise to replace them in order to work around a potentially very serious bug in the JVM". One post advices that people having weird problems like this, should back up important data, do a clean install of Mac OS X 10.2.x, apply any Mac OS X updates, install OOo and X11.app, and if things work, then start modifying the environment, restoring applications and data etc. Last edited by sao; 03-24-2003 at 04:00 AM. |
|
|
|
|
#72 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
68- OpenOffice + Fink + dlcompat libraries
OOo wants you to have dlcompat libraries in /usr/local/lib.
Make links in /usr/local/lib to your fink-installed dlcompat libraries, otherwise your fink installation will stop working. This seems to work fine. |
|
|
|
|
#73 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
69- To get xterm to support scrollback while in "screen"
(Thanks to David Brown)
This problem is with screen and not with xterm. Add a line such as the following to you ~/.screenrc Code:
# Do not use xterms alternate window buffer (won't add lines to # scrollback bfr) termcapinfo xterm|xterms|xs|xterm-color ti=\E7\E[?47l |
|
|
|
|
#74 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
70- If you are using Fink installed KDE and Apple's X11
KDE Security Advisory
On April 10, Benjamin Reed posted the following at the 'fink-announce' mailing list: ----------------------------------- Overview -------- KDE uses Ghostscript software for processing of PostScript (PS) and PDF files in a way that allows for the execution of arbitrary commands that can be contained in such files. An attacker can prepare a malicious PostScript or PDF file which will provide the attacker with access to the victim's account and privileges when the victim opens this malicious file for viewing or when the victim browses a directory containing such malicious file and has file previews enabled. An attacker can provide malicious files remotely to a victim in an e-mail, as part of a webpage, via an ftp server and possible other means. More specifics can be found in the KDE security advisory at: http://www.kde.org/info/security/adv...20030409-1.txt Solution -------- Updated packages for kdelibs, kdebase, and kdegraphics have been checked into Fink unstable: kdelibs3-ssl-3.1.1-6 kdebase3-ssl-3.1.1-6 kdelibs3-3.1.1-6 kdebase3-3.1.1-6 kdegraphics3-3.1.1-5 All users of the unstable tree are encouraged to upgrade as soon as possible. After an initial smoke test, the KDE 3.1.1 packages will be moved to stable tomorrow, the morning of the 11th (EST). New binaries will be built as soon as possible, most likely within the next two weeks. Users of the stable tree are encouraged to update as soon as these packages are available to help find any remaining problems that might come up so that we can get binaries built. Users of the unstable tree can update immediately by running: fink selfupdate-cvs; fink update-all Users of the stable tree will be able to update tomorrow morning after 10:00 EST. --------------------------------- Last edited by sao; 04-15-2003 at 03:49 AM. |
|
|
|
|
#75 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
71- Installing Matlab on Mac OS X With Apple's X11
Thanks to Nathaniel Grady
http://www.ece.rice.edu/~ngrady/install_matlab_osx.html ------------------------------------------------------------------ Installing Matlab on Mac OS X With Apple's X11 If you don't want to use the bundled X11 for whatever reason, this guide is for you. Method one: Edit install script * Right click on the "Install for OS X" in the mathworks jag update and hit "show contents" * Open runme.txt * Change reference at the top pointing to where X11 is to /Applications/X11 * Remove all references to OroborOSX in the rest of the file * Run and it won't try to install X11 anymore. You may have to manually start X11 Method two: Install manually * Run X11 and open an xterm * Make a directory to install into and cd to it (ex: mkdir /Applications/matlab ; cd /Applications/matlab ) * Copy license.dat to the directory you just made * Run sudo /Volumes/MathWorks_R13_N/install, where N is the cd # * Run MATLABR13_Jaguar_Patch: -It doesn't sudo before running automagically. Really dumb. Fails due to this. -Mount disk image -sudo /Volumes/MathWorks_Jaguar_Updater/MATLABR13_Jaguar_patch.app/Contents/MacOS/MATLABR13 -Point it to your actual matlab instillation -Repeat for CD's 2 and 3. Final Steps * go to matlab/bin (the bin directory under the directory you installed it to) * right-click on LaunchMATLAB and select "Show Package Contents" * right-click on the file "launch_matlab.sh" and select "open with" and "other." At this point you can select any text editor, such as "TextEdit" or whatever is your favorite. * Change the "grep OroborOSX" to read "grep X11" -- "ps xc" lists running programs, and "grep X11" searches the list for the phrase "X11". If it's not found, then the return will be blank and the if goes to the else. * after "sleeptime=60" in the "else" block, insert "osascript -e 'tell application "X11" to activate'" so that it starts X11 if it is not already running. * Finally, comment out "osascript Contents/launch_oroborosx" further down by placing a "# " in front of it. * The LaunchMATLAB icon should now try and start the right X11 and open matlab for you! * Have, um, fun with Matlab. I highly recommend trying Python with the Numeric and Scientific extensions. Also glance at SciPy . Much more pleasant! ----------------------------------------------------------------- |
|
|
|
|
#76 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
72- To start OOo with Apple's X11
Thanks to Richard Gill ( http://www.math.uu.nl/people/gill )
To get OOo to work (I have Apple's X11): one must start up the program from the command line (not from the launcher supplied by OOo). You follow OOo's instructions (which flash by on your screen at the end of installation), but you must remove /usr/X11R6/lib from the path for dynamic libraries. So it goes like this: Code:
setenv DISPLAY localhost:0 setenv DYLD_LIBRARY_PATH /Applications/OpenOffice.org1.0.1/program:/Applications/OpenOffice.org1.0.1/program/filter cd /Applications/OpenOffice.org1.0.1/program sh soffice Code:
#!/bin/tcsh setenv DISPLAY localhost:0 setenv DYLD_LIBRARY_PATH /Applications/OpenOffice.org1.0.1/program:/Applications/OpenOffice.org1.0.1/program/filter cd /Applications/OpenOffice.org1.0.1/program sh soffice Call it myoffice, say. Then I can put it in Apple's X11 "Applications" menu, as well as calling it from the command line. |
|
|
|
|
#77 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
73- To activate the "font menu" in xterm
Thanks to David McNett
"Ctrl-Apple-Click on the xterm window. (Assuming default mouse button configuration). xterm contains a variety of menus similar to the font menu, all accessable through a variety of chorded clicks (or alternate button clicks if you've got a multibutton mouse)" |
|
|
|
|
#78 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
74- Application to launch gv in Finder
Kazuhumi Murakami has made a small application called "Open GV.app" to launch gv in Finder. It launches gv and preview a postscript file with double-clicking in Finder.
It requires OSX 10.2.6, X11 and gv and you can download it from: http://homepage.mac.com/droppedgreentomato/ |
|
|
|
|
#79 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
75- Instructions to download and compile X11-wwdc (v1.0) source code
(Thanks to Toshimitsu Tanaka)
1. Download X11-wwdc source code from: http://developer.apple.com/darwin/pr...X11/index.html . 2. Get Xplugin.h and install as /usr/include/ Xplugin.h. ( http://lists.apple.com/archives/x11-...update.006.txt ) (Also, Torrey T. Lyons informed that the current Xplugin.h (minus gremlins) is now checked into XFree86 CVS in xc/programs/Xserver/hw/darwin/quartz/xpr) 3. Create the symlink /usr/lib/libXplugin.dylib->libXplugin.1.0.dylib. ( http://lists.apple.com/archives/x11-...quired.001.txt ) 4. % tar xzf X11ForMacOSXSource-wwdc.tar.gz % cd X11ForMacOSXSource-wwdc/xc 5. % make World % sudo make install % sudo make install.man 6. Launch /Applications/Utilities/X11.app. Important: You cannot use quartz-wm with X11 v1.0 in Jaguar. It's just not open-source so it's not available to those who are building it themselves from source on jaguar. X11 v1.0 final does have quartz-wm, on panther. So, in Jaguar to use X11-wwdc, you will have to install another window manager, like oroborus, blackbox, etc... If you follow these instructions carefully, what you will get is a clean build in MacOSX v10.2.6 of X11 v1.0 and XFree86 v4.3.0 from the source you downloaded in "X11ForMacOSXSource-wwdc.tar.gz" And, in the X11 "About box" you will read the inscription "X11 1.0 - XFree86 4.3.0" Note: Be aware that Fink does not recognize this X11 installation at the moment, since it is based on XFree86 4.3 rather than XFree86 4.2.x. Fink's "system-xfree86" packages assumes that your non-Fink install of X11 was based on 4.2.x. I believe there is already a *not fully tested* system-xfree86 package in fink's CVS repository which might work with the self-compiled X11. 8/18/03: (Thanks to Benjamin Reed and Martin Costabel) Benjamin Reed has committed to Fink unstable branch a new version of the system-xfree86 package. system-xfree86 is now a placeholder for the placeholder which depends on either system-xfree86-42 or system-xfree86-43. This new package system-xfree86 in "unstable" works well for a first time install of Fink with an installation from source of Apple's X11-wwdc (v1.0). Just enable "unstable" in the /sw/etc/fink.conf file by adding: unstable/main unstable/crypto to the beginning of the Trees: line and after run the command 'fink index'. Then run 'fink selfupdate-cvs' till you see the package, then run 'fink install system-xfree86' *It doesn't work for an update. To make it work for an update you have to use force (and dpkg) to install the update. Either: sudo dpkg -r --force-depends system-xfree86 fink install system-xfree86 or sudo dpkg -i --force-all /sw/fink/dists/unstable/main/binary-darwin-powerpc/x11-system/system-xfree86-42_4.2-1_darwin-powerpc.deb fink install system-xfree86 Don't try the update remotely via ssh while you are not logged in at the console because it will hang. FinkCommander: If you're using Fink Commander, you can select system-xfree86, use Source->Force Remove, then reselect it and use Source->Install. Last edited by sao; 09-08-2003 at 05:30 AM. |
|
|
|
|
#80 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
76- Latest Apple Developer Tools update and Fink
If you use Fink to install packages in Apple's X11, be aware that Fink won't work with the latest Apple Developer Tools version (2003-06-26) Fink does not yet support compiling with gcc 3.3.
It is recommended that if you update your Developer Tools with the new patch, you should be careful to run sudo gcc_select 3 prior to any "fink build" or "fink install" commands. Or, if you want to remove the updated Dev Tools to reinstall Apple's Dec 2002 Developer Tools tools on a clean system, there should be a Perl script called /Developer/Tools/uninstall-devtools.pl. If you run this, that should clear everything out, and then you can reinstall. |
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|