Difference between revisions of "SWAT2"
(Created page with "SWAT2 is a Python frontend to Samba 4, originally written by Ricardo Velhote. Repositories: * https://github.com/rvelhote/GSoC-SWAT * git://git.samba.org/jelmer/swat.git = Dep…") |
|||
Line 23: | Line 23: | ||
== From Apache == | == From Apache == | ||
+ | |||
+ | ==SWAT2 on Debian Squeeze AMD64 using a Samba4 install from GIT== | ||
+ | |||
+ | Here are the steps I went through on a Debian Squeeze AMD64 machine to achieve a workable setup.... | ||
+ | |||
+ | $ wget http://cloud.github.com/downloads/rvelhote/GSoC-SWAT/swat-git-scripts.tar.gz | ||
+ | $ gunzip swat-git-scripts.tar.gz | ||
+ | $ tar -xvf swat-git-scripts.tar | ||
+ | $ cd ./fromgit | ||
+ | $ ./install | ||
+ | $ source swatdevenv/bin/activate | ||
+ | $ easy_install pip | ||
+ | $ pip install WebOb==0.9.6.1 | ||
+ | $ pip install authkit | ||
+ | |||
+ | Make sure Samba4 is cloned from the GIT repo, tested with quicktest, configured, made, installed, and properly configured as according to the [[Samba4/HOWTO]]. '''Note: Your path for the python packages may differ according to how you installed Samba4 and what version of Python you have.''' | ||
+ | |||
+ | $ cd ./swatdevenv/lib/python2.6/site-packages/ | ||
+ | $ for i in /usr/local/samba/lib/python2.6/site-packages/*; do ln -s $i; done | ||
+ | $ cd ../../../.. | ||
+ | |||
+ | Make sure Samba4 is provisioned and running as according to the [[Samba4/HOWTO]]. | ||
+ | |||
+ | $ ./run | ||
+ | |||
+ | Now you can go to http://127.0.0.1:5000 to access SWAT2. |
Revision as of 10:20, 7 September 2011
SWAT2 is a Python frontend to Samba 4, originally written by Ricardo Velhote.
Repositories:
Contents
Dependencies
- Samba4 (in particular, the Samba 4 Python bindings)
- pylons
Installation
There are three ways in which you can run SWAT. Pick one:
Standalone
Use paster: $ paster serve development.ini
From Samba
From Apache
SWAT2 on Debian Squeeze AMD64 using a Samba4 install from GIT
Here are the steps I went through on a Debian Squeeze AMD64 machine to achieve a workable setup....
$ wget http://cloud.github.com/downloads/rvelhote/GSoC-SWAT/swat-git-scripts.tar.gz $ gunzip swat-git-scripts.tar.gz $ tar -xvf swat-git-scripts.tar $ cd ./fromgit $ ./install $ source swatdevenv/bin/activate $ easy_install pip $ pip install WebOb==0.9.6.1 $ pip install authkit
Make sure Samba4 is cloned from the GIT repo, tested with quicktest, configured, made, installed, and properly configured as according to the Samba4/HOWTO. Note: Your path for the python packages may differ according to how you installed Samba4 and what version of Python you have.
$ cd ./swatdevenv/lib/python2.6/site-packages/ $ for i in /usr/local/samba/lib/python2.6/site-packages/*; do ln -s $i; done $ cd ../../../..
Make sure Samba4 is provisioned and running as according to the Samba4/HOWTO.
$ ./run
Now you can go to http://127.0.0.1:5000 to access SWAT2.