MacOSX TipsI inherited MacOS X Panther Laptop (PowerBook G4 1.25 Ghz). MacOS X is a hybrid of Mach, BSD and NextStep. It is very closeto UNIX with differences and thus it becomes pain. I was surprized to find the sloppiness in Apple tools and Fink tools. Index
How can I get the system info?Menu → Go → Application → Utilities → System Profiler. How can I install unix software?If you ever tried to compile unix software on MacOSX, you get irritated by the small differences MacOSX has. Fortunately, Fink project http://fink.sourceforge.net does all the work for you and installationis a snap if you have a fast internet connection. You first install Fink software from http://fink.sourceforge.net/download/index.php?phpLang=en. Note that the software is installed in /sw. Ask fink whether "package" is available or not. $ /sw/bin/fink list package If you want to install "package" $ sudo /sw/bin/fink install packageFor example, $ /sw/bin/fink list blt Information about 1498 packages read in 1 seconds i blt 2.4z-2 Toolkit for tcl/tk blt-dev 2.4z-2 Toolkit for tcl/tk i blt-shlibs 2.4z-2 Toolkit for tcl/tk The "i" indicates the package is installed. Sometimes the package is designated unstable. Then you cannot install it in this way. You should look up FAQ at FAQ 5.8 Why can't I see /usr etc. in Finder?Apple wants to hide these unix directories(/.hidden file shows/usr, /etc, /dev etc). In order to make Finder show these files, you do $ defaults write com.apple.Finder AppleShowAllFiles YES You can find all options of Finder by doing the following: $ defaults read com.apple.Finder{ AlwaysOpenWindowsInColumnView = 0; AppleShowAllFiles = YES; BurnProgressWindowLocation = "411, 164"; ComputerOptions = { ComputerBackgroundType = DefB; ComputerIconViewArrangeBy = dnam; ComputerIconViewIconSize = 64; ComputerIconViewScrollPosition = {h = 0; v = 0; }; ComputerListViewColumnFlags = 1; ComputerScrollPosition = {h = 0; v = 0; }; ComputerSidebarWidth = 128; ComputerToolbarVisible = 1; ComputerUseCustomIconViewOptions = 1; ComputerUseCustomListViewOptions = 1; ComputerViewStyle = icnv; ComputerWindowBounds = {bottom = 0; left = 0; right = 0; top = 0; }; }; ContentIndexingLanguages = { ... How can I compile OpenGL programs?Apple has two graphics systems, Aqua and X11. The X11 is not installedas default. You have to use Mac OSX disk3 CD and find the X11User.pkg Package in the Package folder and X11SDK.pkg in /Developer Tools/Packages of the XcodeTools CD.. The X11SDK contains header files and libraries for compiling a X11 programs. If you want to use AQUA, then you have to use the Apple framework: $(CC) -o $@ $< -framework OpenGL -framework GLUT -lobjc Note that the resulting binary is the AQUA version and thus you cannot use it to run remotely on the X11 system. On the other hand, if you want to use the X11 version of OpenGL, configure script istricky. Usually configure script uses to locate the X11 header files. Apple gcc compiles fine without specifying X11 directory and thus X_CFLAGS is not set. Unfortunately, X11 version of GL/gl.h and GL/glu.h lives in /usr/X11R6/include. Applegcc won't find these OpenGL header files. How can I start items in StartupItems after boot?In RedHat, you have many scripts for services in /etc/init.d. You can startany of the services in that directory by root> /sbin/service ypbind start I'm trying to find a similar things. So far, I failed to come up with the way.If you find a way, please send me email. MacOSX has /sbin/SystemStarter which does the similar thing for various things in /System/Library/StartupItems. Thus I tried the following: $ sudo SystemStarter -v start NIS Note that SystemStarter is a compiled binary file, not script.However, this does not start NIS. How can I set up NISItem 7-10 are specific to my work place.
Where is the missing crt1.o and dylib1.o?After running OSX CD3 and CD4, gcc cannot find crt1.o, even though crt2.o exists in /usr/lib/gcc/darwin/3.3. You can find them in /Developer/SDKs/MacOSX10.3.0.sdk/usr/lib. Are there any free user tools?Several tools are available at www.bresink.de/osx/. TinkerTool, TemperatureMonitor, PrefEdit are all free. What should I do for the error:
|
OSes‎ > ‎