Initial Setup for MacBook (Mac OS X v10.5.4) Written by KAZ on Aug 27, 2008 Revised by MJR on Jun 6, 2009 (Mac OS X v10.5.7) Revised by RER on Jun 12, 2009 (Mac OS X v10.5.7 MacBook Pro) Revised by HWI,SHC,KAZ,NPH on Jul 21, 2009 (Mac Pro, iMac) _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ To enable copy-paste between X11 window and other windows, see Step 17 at the end of this file. _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Step 0 > Under apple menu, do software update. Install all. Repeat until there is no more updates for the system. Step 1.a (Mac OS X v10.5.4) > Install X11 from Disk 1 (search from the Application drop down sub-menu) > Install various software packages from Disk1 Step 1.b (Mac OS X v10.5.4) > Install "XcodeTools.mpkg" from disk2 to get 'developers kit' You can find it inside 'Xcode Tools' Step 1.c (Mac OS X v10.5.7) > Install "XcodeTools" packag on "OS X" disk (make sure install all components --- only two selected initially) Step 2 > Check more Software Update and install all. Step 3.a > Change bash to tcsh following http://web.ipac.caltech.edu/staff/hoard/pages/MacOSX_configuration_tips.html#login_shell (You change the default shell by going into 'Apple Menu/System Preferences/ Accounts/', then unlock to make changes in lower left. Right click (ctr+mouse button), click "Advanced Options" Step 3.b To emulate 3-button mouse. Goto 'System Preference/Mouse' Set the "middle button" as "Button 3" in X11 menu (top menubar), select "Preferences..." Enable "Emulate three button mouse" Step 3.3 > make '.cshrc' create defalt file as cshrc.default Step 3.d > Select (click on) xterm window > go to 'Applications' > click on 'Customize...' > double click on the word 'xterm' change it to 'xterm -sb -sl 256' Step 4.a > DL Scisoft from the web. > 'Scisoft2008.8.1' 602Mb > Installed in '/Applications/scisoft' -- make sure to update the startup files. > Install Scisoft to default location > type 'source /Applications/scisoft/all/bin/Setup.csh' ** Be very, VERY careful with the new SciSoft stuff. There are at least 2 known bugs (which have not been fixed). The most relevant but is in SExtractor. Download scisoft, but get your own installation of SExtractor. Step 4.b New build of SExtractor. Step 4.c ds9 is still packaged with SciSoft, but the calling sequence has changed. Nor (or somebody) has made ds9 an "Application" as opposed to an "X11 program", therefore, to be able to call ds9 from the terminal prompt (like you might do in linux), you need to add: alias ds9 "/Applications/scisoft/i386/Applications/SAOImage\ DS9.app/Contents/MacOS/ds9 &" to your .cshrc file. (NOTE: you can also drag the little ds9 icon onto your dock to start ds9 from within the Mac OS.) Step 5 Enable ssh X-forwarding. 1) Go to 'System Prefarance/Sharing' 2) Check off 'remote login' 3) Go to 'Energy Saver', and set 'Computer Sleep' to "NEVER" And disable the "Put the hard disk(s) to sleep when possible" 4) 'sudo' and edit '/etc/ssh_config' Uncomment 'ForwardX11 yes/no' and set to 'yes' 5) 'sudo' and edit '/etc/sshd_config' Uncomment FIRST 'X11Forwarding yes/no' and set to 'yes' (there are TWO 'X11Forwarding' in 'sshd_config' file... so be careful) Step 6 > Set up for printer 1. System Preference 2. Print & Fax 3. Click '+' then enter addresses blackhole.la.asu.edu colorhole.la.asu.edu 4. Select the defalt printer by Ctr+ right click on mouse Step 7 Initialize (enable) root user 1. From the Finder's 'GO' menu, choose 'Application' 2. Open directory "Utility" 3. Click on the 'lock' in the "Directory Utility" window (unlock it) 4. Enter an administrator account name and password, then ckick OK 5. Choose enable root user from 'edit' menu 6. Enter root password and verify it Step 8.a (See 8.b) 1. 'cd' to /usr/X11/lib/X11/xinit 2. 'su' 3. edit 'xinitrc' add lines of commands when x11 terminal is opend before the last line (before 'exec quartz-wm') Step 8.b The above was for Mac OS X < v10.5. For OS X >= v10.5, you need to do type following in an xterm: defaults write org.x.X11 app_to_run 'xterm -sb -sl 256' but if you don't want any program whatsoever to run when you start X11, then you should type: defaults write org.x.X11 app_to_run /usr/bin/true but RER actually like to start several several xterms at once, so RER have defaults write org.x.X11 app_to_run .xstartup where, .xstartup is a file that has u+x permissions and contains a variety of calls to xterm (NOTE: each call must have the amprersand or else it will hang.) Step 9 1. Download fink from the web: http://www.finkproject.org 2. Download fink for intel 3. Install it (it will add a line to .cshrc, LET FINK DO IT. (MJR: finc suggestion still works) Use the original .cshrc file created above!!) 4. Add the FINK executable path to my path in '.cshrc' (as 'set path=(... ... /sw/bin .)') Step 10 1. 'fink list' gives all programs available 2. 'fink apropos ***' to search for *** 3. 'fink install ***' to install *** 4. 'fink install tetex' to install LaTeX SKIP to step 4.c below!! select (1) for default ghostscript interpreter select 'Y' for all packages 4.a (or skip to 4.b) NOTE [MJR]: As of 6/7/09, in OS X 10.5.7, tetex will not install. You should download the "MacTex" package as a workarond which is available from "http://www.tug.org/mactex" 4.b NOTE [RER] 6/12/09 Tetex will install, but you need to update fink and update the way it downloads data. Follow the thred below and issue various combinations of the suggestions. http://www.mail-archive.com/fink-beginners@lists.sourceforge.net/msg23330.html 4.c To install 'tetex' onto Mac OS X, Run following: fink index -f fink selfupdate-rsync fink index -f fink index -f (YES, you have to do this TWICE!!) fink selfupdate fink install tetex (This will fail at end, but don't panic!!) fink update tetex-texmf fink update tetex-base 5. 'fink install gv' to install gv select 'Y' for all packages 6. 'fink install wget' Step 11 Set up the mouse to follow the X11 window. (OS X 10.5.4 before 9/22/08) X (This is OLD) Type 'defaults write com.apple.x11 wm_ffm -bool true' For Leopard 10.5.5 after 9/22/08 type: defaults write org.x.X11 wm_ffm -bool true Step 12 To put all of the LaTex stuff (latexfiles.tar) in one directory 1. Download 'latexfiles.tar.gz' (to top directory) from : http://www.public.asu.edu/~ktamura/mac_setup/ 2. Untar the latexfiles.tar 3. Add to .cshrc: 'setenv TEXINPUTS ".:/Users/usrname/LaTeX/:"' Step 13 IDL? not installed now. need a license... Ask Paul Scowen for installation and license. Step 14 Register AppleCare with SESE address. Step 15 Install MS Office (need PowerPoint) Step 16 Install Other necessary programs. (http://software.asu.edu) %% ADDED on June 3, 2009 Step 17 To enable copy-&-paste for Mac OS X 10.5.7 (if not working), you have to enable following parameters in ~/Library/Preferences/org.x.X11.plist: (http://hatx.blog.so-net.ne.jp/2009-05-13 <-- in Japanese) sync_clipboard_to_pasteboard sync_pasteboard sync_pasteboard_to_clipboard sync_pasteboard_to_primary sync_primary_on_select Commands can be found at: http://www.manpagez.com/man/1/Xquartz/ defaults write org.x.X11 sync_clipboard_to_pasteboard -boolean true defaults write org.x.X11 sync_pasteboard -boolean true defaults write org.x.X11 sync_pasteboard_to_clipboard -boolean true defaults write org.x.X11 sync_pasteboard_to_primary -boolean true defaults write org.x.X11 sync_primary_on_select -boolean true See 'man Xquartz' for more information. %% ADDED by KAZ on July 16, 2009 Step 18 To deactivate the beeping sound in X11 windows, go to 'Preferences...' in X11 main menu (top bar). Under "Output", enable "Use system alert effect". Then go to "Sound" menu under "Apple Menu/System Preference" and disable the "Play user interface sound effects" and reduce the "Alert volume" to minimum (none), both can be found under "Sound Effects" option. %% ADDED by RER on July 21, 2009 Step 19 Change name of computer NOTE: this may be different for a workstation with a static IP. But this seems to work for a laptop with DHCP. Go to System Preference/Sharing, set Computer Name at top. You can edit more under the 'edit' button. %% ADDED by NPH on July 21, 2009 %%%%% THESE are for EXTRA info (NOT for set-ups) just for information (not for setup) -- if you did not know ... --> shift+apple+4 gives screen capture cursor -- select region to capture -- selected region is saved as 'png' file -- can use 'gimp'/'preview' to convert png to ps/eps/pdf file --> you can also use ~/.Xdefaults file to setup your xterm as you like (if it does not exist ... you can create it) e.g. xterm*scrollBar: true (... adds scrollbar) xterm*saveLines: 1024 (...save lines) xterm*Background: Black xterm*Foreground: Red xterm*Font: *courier-medium-r-*-17-* xterm*geometry: 80x28