-- install fink (comes with finkcommander), scisoft
-- install sm
read sm.install first!
then run make in the sm2_4_28 directory. then sudo make install in the same directory.
NOTE: as noted in http://geordie.astro.uiuc.edu/mac.html#sm, I need to substitute
XLIB11 = -lX11
for
XLIB11 = -L/USR/X11R6/lib -lX11
in the src/Makefile file to compile sm.
put .sm in home directory.
-- install MacTeX, which includes TeXShop
move texmf to ~/Library
-- next, some steps for x11. following helpful tips given here, I create the following files to put in my home directory:
.xinitrc:
###########################################################
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xrdb -merge $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xrdb -merge $usermodmap
fi
# initialise programs below
# xterm &
# start the window manager
exec quartz-wm
###########################################################
.login:
###########################################################
source /usr/share/tcsh/examples/login
###########################################################
.logout:
###########################################################
source /usr/share/tcsh/examples/logout
###########################################################
.cshrc
###########################################################
setenv TERM xterm-color
setenv CLICOLOR true
setenv LSCOLORS exfxcxdxbxegedabagacad
# set color ls options
source /usr/share/tcsh/examples/rc
# sourced handy defaults
test -r /sw/bin/init.csh && source /sw/bin/init.csh
source /Applications/scisoft/all/bin/Setup.csh
set path=($path . )
###########################################################
in addition I also download Xcode 3.1.2 Developer Tools from
https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/204/wo/4R4sFKmLiB8s3DbJsyXUK9qgCeq/7.1.17.2.1.3.3.1.1.1.1.0.3.4.3.3.1
and install Developer Tools Essentials and UNIX Development Support
this installs gcc; for gfortran, I download the compiler here
then update x11 to the latest version from xquartz project website
-- ssh: as I'm using a new laptop, I need to create a key, then transport it to the machines I want to connect to. using file sharing to first transfer my new pub key to my old laptop, then use it to transfer the key to the servers I work with.
here and here provide good tips.
the basic idea is, on the local machine, type "ssh-keygen -t dsa", then somehow transport the .ssh/id_dsa.pub key to the server, and append it to the ~/.ssh/authorized_keys file on the server.
-- for astronomers, starlink and scisoft are useful collection of tools to have, despite their big sizes
何以為人,還有也談 privilege
3 months ago

No comments:
Post a Comment