Here are some exercise to help one get use to programming on the ischool clusters.
Installing software
SSH clients
You might want to set up SSH / SCP clients for your local machines to enable command line access to ischool.berkeley.edu (or harbinger or people.ischool.berkeley.edu) and also GUI-based file transfers:
Windows: WinSCP
Mac: ssh built-inĀ Fugu or Fetch for graphical file transfer.
Text editors
You might want to have a local editor to help you edit files instead of using the Unix based editors. There are many. On OS X, campus has a license for TextMate. I also enjoy the free Komodo Edit, which runs on multiple platforms.
Making Sure PHP is working for you on people.ischool.berkeley.edu
Get warmed up on ischool.berkeley.edu
- login with your ischool account — you all have a
~/public_htmldirectory — e.g.,/home/rdhyee/public_html
- add test.php to your directory ~/public_html :
<?php echo "hello -- how are you? This year is 2010"; ?>
- See
http://people.ischool.berkeley.edu/~rdhyee/test.php
Downloading code for Pro Web 2.0 Mashups from Apress.
- Make a directory in ~/public_html by typing
mkdir ~/public_html/Book cd ~/public_html/Book
- now get the source code:
- get the permissions right:
chmod -R o+rX Ch* R*
- get flickrsearch.php working in Chapter 6 http://people.ischool.berkeley.edu/~rdhyee/Book/Chapter06/flickrsearch.php:
cd Chapter06
setfacl -m u:apache:r--,o:---,m:rwx flickrsearch.php
curl -o Source.zip http://www.apress.com/resource/bookfile/3901 unzip Source.zip
4 Responses to “S10 Programming Setup”
Leave a Reply
You must be logged in to post a comment.
FYI, the end of the curl command in step 2 is “…/3901″. (no period, no quotes, no ellipses)
So, I’ve been trying to ssh into ischool.berkeley.edu and people.ischool.berkeley.edu using Terminal, Fugu, Transmit. On two different computers. I get all sorts of errors, but no access. Is this something we can do only when on AirBears? I don’t think that should be the case… .
Yup, seems you (or I, at least) need to be on AirBears.
In Step 1, there needs to be a space after “cd” and before the tilde.
Is it telling too much to say you need to redo the permissions change as a final-final step?