Difference between revisions of "SWAT2"

(SWAT2 on Debian Squeeze AMD64 using a Samba4 install from GIT)
m (Remove link to 'Samba4' page, because it doesn't exist any more.)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
SWAT2 is a Python frontend to Samba 4, originally written by Ricardo Velhote.
 
SWAT2 is a Python frontend to Samba 4, originally written by Ricardo Velhote.
  
Repositories:
+
Repository:
  
* https://github.com/rvelhote/GSoC-SWAT
 
 
* git://git.samba.org/jelmer/swat.git
 
* git://git.samba.org/jelmer/swat.git
  
 
= Dependencies =
 
= Dependencies =
  
* [[Samba4]] (in particular, the Samba 4 Python bindings)
+
* Samba4 (in particular, the Samba 4 Python bindings)
 
* pylons
 
* pylons
 +
* authkit module ("easy_install authkit") on RHEL based distros.  You'll need python-setuptools installed before you can do this.
  
 
= Installation =
 
= Installation =
Line 18: Line 18:
  
 
Use paster:
 
Use paster:
$ paster serve development.ini  
+
 
 +
  $ paster serve development.ini  
  
 
== From Samba ==
 
== From Samba ==
  
== From Apache ==
+
First, install SWAT or make sure it is available in the Samba server's Python path:
  
==SWAT2 on Debian Squeeze AMD64 using a Samba4 install from GIT==
+
  $ ./setup.py install
  
Here are the steps I went through on a Debian Squeeze AMD64 machine to achieve a workable setup....
+
Make sure that Samba is running the web service by adding the following line to the *[global]* section of the smb.conf file:
  
   $ wget http://cloud.github.com/downloads/rvelhote/GSoC-SWAT/swat-git-scripts.tar.gz
+
   $ server services = +web
  $ gunzip swat-git-scripts.tar.gz
 
  $ tar -xvf swat-git-scripts.tar
 
  $ cd ./fromgit
 
  
Because the GIT repository is not up-to-date with this file, edit the file ./install and change line 10 to:
+
SWAT will now be available at http://localhost:901/.
  
  git clone git://git.samba.org/jelmer/swat.git swat
+
== From Apache ==
 
 
Now it will retrieve the latest updates.
 
 
 
  $ ./install
 
  $ source swatdevenv/bin/activate
 
  $ easy_install pip
 
  $ pip install WebOb==1.0.8
 
  $ 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.
+
TODO

Latest revision as of 02:24, 2 June 2014

SWAT2 is a Python frontend to Samba 4, originally written by Ricardo Velhote.

Repository:

Dependencies

  • Samba4 (in particular, the Samba 4 Python bindings)
  • pylons
  • authkit module ("easy_install authkit") on RHEL based distros. You'll need python-setuptools installed before you can do this.

Installation

There are three ways in which you can run SWAT. Pick one:

Standalone

Use paster:

 $ paster serve development.ini 

From Samba

First, install SWAT or make sure it is available in the Samba server's Python path:

 $ ./setup.py install

Make sure that Samba is running the web service by adding the following line to the *[global]* section of the smb.conf file:

 $ server services = +web

SWAT will now be available at http://localhost:901/.

From Apache

TODO