Home
Name Modified Size InfoDownloads / Week
readme 2011-10-28 3.4 kB
anyterm.css 2011-10-28 4.4 kB
md5.js 2011-10-28 5.3 kB
jqueryui.js 2011-10-28 201.9 kB
jquery.js 2011-10-28 91.6 kB
customterm.js 2011-10-28 20.2 kB
anyterm.html 2011-10-28 540 Bytes
Totals: 7 Items   327.3 kB 0
To use this project first you must compile anyterm (http://www.anyterm.org). For development purposes I've served the Anyterm static content from proxy server which means that I don't have to recompile anyterm everytime I make changes to the html/js part.

If you know how to compile anyterm and/or serve the UI from proxy server you can skip to the bottom part "To use the contents of this project: ".

Here's my tutorial for setting up anyterm (with proxy) and everything required for this project to work:
//I'm using Ubuntu 11.10 and Lamp server with latest Anyterm development version which was 1.1.29
//Prerequisites:
//1. Apache server (I use LAMP):
//for ubuntu, open terminal and type:
sudo apt-get install tasksel
tasksel //choose lamp and continue installation

//after lamp is installed we have to install the prerequisites for compiling anyterm

//2. When compiling c++ we need the following to prevent errors
sudo apt-get install zlib1g-dev g++

//3. download boost from http://www.boost.org/users/history/version_1_47_0.html and extract the contents of boost folder to /usr/include/boost/ directory. These are required header files for c++

//Next step is getting the source code of Anyterm using svn (note that subversion must be installed to do this "sudo apt-get install subversion") I downloaded the source to ~/anyterm/ folder.

svn co http://svn.anyterm.org/anyterm/tags/releases/1.1/1.1.29/

//Now we need to make some changes to prevent other errors when compiling
cd //wherever we have downloaded the sourcecode (in my case this is "cd ~/anyterm")
gedit libpbe/src/SmtpClient.cc
//add this line to the top
#include <cstdio>

//now all should be ready for compiling.
make
//if no errors occur then we should set up the proxy

//install proxy module for apache. Open terminal and type:
a2enmod proxy_http
//edit httpd.conf file
sudo gedit /etc/apache2/httpd.conf
//paste this:
	ServerName localhost

	<Location /anyterm/proxy>
		ProxyPass http://localhost:7777 ttl=60
		ProxyPassReverse http://localhost:7777
	</Location>
//save and exit

//restart apache
sudo service apache2 restart

//DEFAULT STEP for serving Anyterm's static content from proxy: we copy the contents of anyterm/browser folder (the html, js and css files) to the /var/www/anyterm/ folder. In my case I copied the contents of ~/anyterm/browser to anyterm folder I've created at /var/www/anyterm/ 
(Reminder: ~/anyterm/ was where I downloaded the source code and /var/www is where my apache www folder is located at)

//edit the anyterm.js you have copied to /var/www/anyterm/ and change url_prefix to /anyterm/proxy (the proxy location above: <Location /anyterm/proxy>)
//to start anyterm daemon type the following in terminal:
~/anyterm/anytermd -p 7777 --local-only

//anyterm installation with proxy is complete.

Now if you would go to http://localhost:7777 you would see the contents of compiled html and js files. If you would go to http://localhost/anyterm/ you would see the contents of js, html, css files in /var/www/anyterm/ 
/////////////////////////////////////////////////////
/////////////////////////////////////////////////////

To use the contents of this project:
1. Delete the files that you just put in (in DEFAULT STEP to the folder) /var/www/anyterm/
2. Download the files hosted here
3. Put them in the empty folder of /var/www/anyterm/
4. Start anyterm with "~/anyterm/anytermd -p 7777 --local-only" command from terminal.
Source: readme, updated 2011-10-28