My HOWTO for Debian users / 2 May 2006

View: New views
1 Messages — Rating Filter:   Alert me  

My HOWTO for Debian users / 2 May 2006

by Elizabeth Dodd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This HOWTO assumes that a user doesn't need complete instructions on basic
linux commands, nor how to find particular packages.


Punjab and JWChat

This particular solution was chosen for a person behind a firewall with access
only to limited ports who wanted to use jabber to communicate with the
outside world.

Port 80 was open, so this solution should get past the firewall.
Operating system
Debian etch/sid (From a Mepis install)

packages required

Python 2.4
from apt-get,normal sources.
(Python 2.3 would not compile the punjab libraries for me.)

Punjab
punjab-0.10.tar.gz downloaded from sourceforge

JWChat
jwchat-1.0beta2.tar.gz downloaded from sourceforge

Twisted
downloaded through apt-get after adding the following source
to /etc/apt/sources.list
deb http://twisted.sourceforge.net/debian/ ./
asking for python2.4-twisted pulled all the required dependencies


No jabber server is required on this machine as it is a client only install


Install
(assume twisted and python2.4 are installed)
1. Install punjab.
a) untar the package. There are no examples of where to put the package but it
would be helpful if it was in the PATH.
b) setup punjab as root. Change into the punjab directory and
shell> python2.4 ./setup.py install
c) copy the html files to /var/www/punjab
shell> cp -r html/ /var/www/punjab
d) configure punjab. change back to the directory where you put punjab and all
on one line
shell> mktap2.4
punjab --port=5280 --host=localhost  --httpp=1 --httpb=1  --html_dir="/var/www/punjab/"
this gives an error message but doesn't seem to affect the operation of the
system
2. Install JWChat
a) untar the package. It needs to be in /var/www/punjab/jwchat/
so after untarring copy jwchat-1.0beta2/ to /var/www/punjab/jwchat
change into that directory and then the perl command will actually work

shell> cp -r jwchat-1.0beta2 /var/www/punjab/jwchat/
shell> cd /var/www/punjab/jwchat/
shell> perl -e 'for my $file (split("\n",`ls *.en`)) { $tmp = $file; $tmp =~
s/\.en$//gi; rename($file,$tmp);}'

{The perl statement is because twisted does not support multi-view. So, you
have to run that. Inorder to get other languages use the .ext for that
language. This example is english, so we use .en } thanks Tofu
b) edit (as root) jwchat/config.js
change the BACKENDS - change this to what you need for default_server

var BACKENDS =
[
                {
                        name:"HTTP Polling",
                        description:"Punjab's HTTP Polling Backend",
                        httpbase:"http://localhost:5280/httpp/",
                        type:"polling",
                        servers_allowed:['localhost']
                },
                {
                        name:"HTTP Binding",
                        description:"Punjab's HTTP Polling Backend",
                        httpbase:"http://localhost:5280/httpb/",
                        type:"binding",
                        default_server: "my_jabber_server.net"
                        // NOTE : this can be jabber.org or something else
                },

];

I also edited the conference room settings to suit my usual preferences.

3. Start Punjab
shell> twistd2.4 -f punjab.tap

4. Run JWChat
use firefox, not konqueror
http://localhost:5280/jwchat/


log in to your jabber server.
mine works on http binding

5. Still to be solved
autostarting the twisted server on bootup
the error message from mktap



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Punjab-user mailing list
Punjab-user@...
https://lists.sourceforge.net/lists/listinfo/punjab-user
LightInTheBox - Buy quality products at wholesale price!