created: June 5, 2009
Last updated: July 16, 2009


Initial Setup for MacBook (Mac OS X v10.5.4)
Originally Written by KAZ on Aug 27, 2008
Last Updated by Kaz on Jun 4, 2008
FOR INTERNAL USE ONLY

For the latest instructions (ver. 7/16/09), please download 'initial_setup.txt' from here.


Step 1 --- [For Mac OS X 10.5.4]
> Install X11 from Disk 1
(search from the Application drop down sub-menu)
> Install various software packages from Disk1

Step 2.a --- [For Mac OS X 10.5.4]
> Install "XcodeTools.mpkg" from disk2 to get 'developers kit'
You can find it inside 'Xcode Tools'

Step 2.b --- [For Mac OS X 10.5.7]
> Coming soon...

Step 3
> Change bash to tcsh following
http://web.ipac.caltech.edu/staff/hoard/pages/MacOSX_configuration_tips.html#login_shell
From the Original web-page:

Leopard Solution: The application utility Netinfo Manager no longer exists in Leopard. Instead, open the Accounts preferences in System Preferences. Unlock the preferences by clicking on the lock icon in the lower left corner of the preferences panel and entering an administrator-level password. Then right-click (or control-click) on a user name and select the Advanced Options menu. Select the desired login shell from the pull-down menu, and click on OK. Log out and back in to put the change into effect.

A. Lorber pointed out to me that in order to change the default login shell, your chosen shell must also be listed in the file /etc/shells, which OS X consults to determine what is a valid shell. By default, /etc/shells contains the following entries:

/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh

If you want to use a different shell from these as your default login shell, then you must edit /etc/shells to include the full path to the installation of the shell on your computer (e.g., /opt/local/bin/bash). Editing /etc/shells requires an administrator-level password.

Step 4
> DL Scisoft from the web.
> 'Scisoft2008.8.1' 602Mb (newer version available now?)
> Installed in '/Applications/scisoft' -- make sure to update the startup files.
> Install Scisoft to default location
> type 'source /Appliations/scisoft/all/bin/Setup.csh'

Step 5
> Set up for printer
1. System Preference
2. Print & Fax
3. Click '+' then enter addresses
***.***.asu.edu
***.***.edu.edu
4. Select the defalt printer by Ctr+ right click on mouse

Step 6a
> make '.cshrc'
create defalt file as cshrc.default (see the box below)
set path=(/usr/bin /bin /usr/sbin /usr/X11R6/bin /sbin .)

source /Applications/scisoft/all/bin/Setup.csh

setenv TERM xterm-color
alias ls "\ls -vFG"
alias xterm "xterm -sb -sl 256"

Step 6b
> 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 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

Step 8 (this doesn't seem to work yet)
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 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. 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
select (1) for default ghostscript interpreter
select 'Y' for all packages
5. 'fink install gv' to install gv
select 'Y' for all packages

Step 11
Set up the mouse to follow the X11 window.
(This is for 10.5.4 and NO LONGER WORK!!)
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
Make ds9 work:
1. add to .cshrc: 'alias ds9 "/Applications/scisoft/i386/Applications/SAOImage\ DS9.app/Contents/MacOS/ds9" '

Step 13
To put all of the LaTex stuff (latexfiles.tar) in one directory
1. Create a new folder in home directory (i.e., 'LaTeX')
2. Untar the latexfiles.tar
3. Add to .cshrc: 'setenv TEXINPUTS ".:/Users/'usrname'/LaTeX/:"'

Step 14
IDL? not installed now.
need a license...
Ask Administrator for installation and license.

Step 15
Register AppleCare with SESE address.

Step 16
Install MS Office (need PowerPoint)

Step 17
Install Other necessary programs.
(http://software.asu.edu)

ADDED on June 4, 2009
Step 18
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


End of page.