FrontPage
»
WebLog
»
Mac_OS_X
MAC OS X
I need the Mac stations to have identical setups to the debian servers so that they can join the ZEO load-balancing act
Meanwhile, a nice quick way to offload some of the big folders would be nice:
Procedure for off-loading some of the main ZODB onto imacs on the intranet
- export folder to be offload , let's say: bigfolder.zexp
- transfer (via rsync, or ftp) /var/lib/zope/var/bigfolder.zexp to the imac as /Applications/Zope/import/bigfolder.zexp (may vary according to the way zope was installed on your imac)
- import bigfolder.zexp into the imac's zope server
- go to the original zopesite's apache server and add new directives:
RewriteRule ^/imac(.*) http://imac:8080/$1 [L,P] RewriteRule (the old URL for bigfolder) (the new URL for bigfolder) [L,P]
- add a siteroot to the imac zope site
- adjust acl_users or syncronize authentication systems
- verify and test that the old URL still goes to the right place
- you may need to synchronize the Products and Extensions folders in the imac
and restart zope in the imac:
#!/bin/bash # assuming you have bash installed in the imac cd /Applications/Zope export INSTANCE_HOME=/Applications/Zope export SOFTWARE_HOME=/Applications/Zope/lib/python export PYTHONPATH=/Applications/Zope/lib/python2.1:/Applications/Zope/lib/python2.1/site-packages python2.1 z2s.py -u nobody -S -w8080 -y8443 -W 8081 -Y 8444 -f 8021 -D cd -
- Bugs: in ZMI, the breadcrumbs render URLs differently from rest of zope. I have seen this talked about in the zope mailing list and "google cached lost thread": google cached lost thread
Notes
- the fink product supposedly provides debian utilities to the imac world
- the equivalent to /etc/init.d/ seems to be /Library/StartupItems
- emacs and pico are available on the CLI on imacs as shipped OS X 10.1
- it appears that OS X tradition is to store packages in /Users/Shared
- bash is not default (tclsh is). to make bash default for a user:
sudo niutil -createprop / /users/username shell /bin/bash #where "username" is each user you want to include (including root).
Resources