Ajaxterm is a web based terminal. It was totally inspired and works almost exactly like Anyterm except it's much easier to install.
- Ajaxterm is very simple to install on Linux, MacOS X, FreeBSD, Solaris, cygwin and any Unix that runs python2.3.
- Ajaxterm was written by Antony Lesuisse (email: al AT udev.org), License Public Domain.
Firefox, to Ubuntu 10.10 Server and Byobu, running in the Cloud.
Installation and Setup
Simply install the ajaxterm package.
sudo apt-get install ajaxterm
You will need to enable SSH password authentication for AjaxTerm to work.
sudo sed -i s:PasswordAuthentication.*:PasswordAuthentication yes: /etc/ssh/sshd_config sudo service ssh restart
The default location for the config file is located /etc/default/ajaxterm . This may be edited to change the default port [Default=8022]
Remember to open up port 8022 if you are running a firewall, and that is it set up on your local machine. You can access it with http://localhost:8022/ . How ever check out below for how to access it from an external machine.
You can access your computer externally, how ever this is unsafe and may compromise your computers safety. Below is a fairly safe way of using Apache2 and SSL.
To configure Apache2 for HTTPS and generate a certificate, follow the instructions in the Server Guide.
Now copy [then symlink] the SSL config from the Available sites to the Enabled sites
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl
Make sure all the modules and sites for proxy and ssl have been enabled.
sudo a2enmod proxy_http sudo a2enmod ssl sudo a2ensite default-ssl
It is time to decide on an htaccess password and username. Remember to make this password strong.
sudo mkdir /srv/ajaxterm sudo htpasswd -bc /srv/ajaxterm/.htpasswd [user] [pass]
You will now need to edit the default Apache SSL configuration.
sudo nano -w /etc/apache2/sites-enabled/default-ssl
Insert just before </VirtualHost>:
ProxyRequests Off <Proxy *> AuthUserFile /srv/ajaxterm/.htpasswd AuthName EnterPassword AuthType Basic require valid-user Order Deny,allow Allow from all </Proxy> ProxyPass / http://localhost:8022/ ProxyPassReverse / http://localhost:8022/
sudo service apache2 restart
Open your firewall port 443 and try to browse to https://yourhost.foo where yourhost.foo is either your IP adress or your hostname/web address.