Koozali.org: home of the SME Server

How to - AjaxTerm

Offline xboxer21

  • ***
  • 60
  • +0/-0
How to - AjaxTerm
« on: June 16, 2007, 03:25:56 PM »
I have been using sme server at home for a while now. In the past I was able to ssh into my server from work. The firewall there did not block out going traffic to port 22. Recently I switched my job and could not ssh from my new work place anymore. So here is what i did to get Ajaxterm (Web based SSH) to work on SME 7.1

Installing AjaxTerm
Code: [Select]
cd /opt
wget http://antony.lesuisse.org/qweb/files/Ajaxterm-0.10.tar.gz
tar zxvf Ajaxterm-0.10.tar.gz


Installing ProxyPass Contrib
Download the contrib from http://www.saco-support.de/index.php?_m=downloads&_a=view&parentcategoryid=3&pcid=0&nav=0
then do a
Code: [Select]
yum localinstall smeserver-proxypass-0.0.3-1.noarch.rpm
signal-event postupgrade;signal-event reboot


Login to the server-manager
Click the ProxyPass link on the left nav and add a proxypass entry
Click the link to create a new ProxyPass URL entry.
Enter the following
Path = /ajaxterm/
Target = http://localhost:8022
Description= Ajaxterm
http= yes or no
https = yes
I selected No for Http and I use this only with Https. The developer mentions that Https is faster than http.
Click the create button
You might get an error message saying it could not restart the http server sucessfully. if you see that
run this command
Code: [Select]
/etc/init.d/httpd-e-smith restart

Time to test ajaxterm

cd /opt/Ajaxterm-0.10
./ajaxterm.py

in your browser enter the following URL by substituting the IP address or the hostname of your SME Server
https://<SMEServer>/ajaxterm/ (Dont forget the trailing slash)
Your browser will display a terminal.

if you like to start Ajaxterm when you server boots add the following line to
/etc/rc.d/rc.local file
Code: [Select]
./opt/Ajaxterm-0.10/ajaxterm.py -d

For more command line options check out the ajaxterm website.

Issues I faced:
Could not login with root user. I had to login as regualr user and then use sudo.

Please let me know if these needs any correction or improvement
......