1. Download MzScheme version 352 to some directory
2. add the path for that directory to your .profile ($ vim ~/.profile)
# Setting PATH for MzScheme, which Arc depends on
# The original version is saved in .profile.mzscheme
PATH="/Users/niels/Desktop/LearningPython/MzSchemeV352/bin:${PATH}"
export PATH
3. Download and untar Arc to some directory
4. add the path for that directory to your .profile:
# Setting PATH for Arc2
# The original version is saved in .profile.arc2
PATH="/Users/niels/Desktop/LearningPython/arc2:${PATH}"
export PATH
5. navigate to your arc directory
6. type mzscheme -m -f as.scm
7. at the arc> prompt, type (nsv)
8. point your browser to localhost:8080
9. Be advised, it has its own web server which makes the site immediately also live, regardless of the web sharing settings in System Preferences: just find your IP address (eg, xx.xx.xx.xx) and point your browser to xx.xx.xx.xx:8080. In fact, you can continue to run apache on other ports. Note: you can't run news and blog at the same time out-of-the-box. Thinking out loud, it looks like the server is a child of the web app, so you could make a copy of the srv.arc file (SrvForBlog.arc) and modify blog.arc and SrvForBlog.arc to serve out of another port.
Notes on geography:
- <path to arc>/arc/cooks: the list of cooks in the kitchen
- <path to arc>/arc/hpw: list of hashed passwords for all users
- <path to arc>/arc/logs/news-yyyy-mm-dd: log of news activity for the day
- <path to arc>/arc/logs/srv-yyyy-mm-dd: log of server activity for the day
- <path to arc>/arc/news/topstories: list of top stories in news, by serial number
- <path to arc>/arc/news/profile/: contains a file on each user
- <path to arc>/arc/news/story/: contains a file for each story
- <path to arc>/arc/news/vote/: contains a file for each user's voting.
If you're like me and playing with this on a remote server while sitting in a coffee shop, you may want to keep your experiment running when you leave. Great little tutorial here on backgrounding tasks, nohup, and screen: