Changes

From SME Server
Jump to navigationJump to search
823 bytes added ,  15:40, 15 November 2007
no edit summary
Line 6: Line 6:     
=== Download ===
 
=== Download ===
[http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/ajaxterm smeserver-ajaxterm]
+
[http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/ajaxterm smeserver-ajaxterm-1.0.3-0.noarch.rpm]
    
=== Installation ===
 
=== Installation ===
  yum localinstall smeserver-ajaxterm-*.noarch.rpm
+
  yum localinstall ajaxterm/smeserver-ajaxterm-1.0.3-0.noarch.rpm
 +
This installs and starts the Ajaxterm service. There is no need for the signal-event post-upgrade/reboot
   −
There is no need for the signal-event post-upgrade/reboot
+
=== Configuration ===
 +
The Ajaxterm service is configurable by properties of the ''ajaxterm'' record in the SME server ''configuration'' database.
 +
==== Restrict to local login on localhost ====
 +
config setprop Ajaxterm allowOnlyLocalhost yes
 +
service ajaxterm restart
 +
Only a login to local host is possible (default setting). Ajaxterm runs the 'su --login USER' command to login. You are asked for a username and password
 +
 
 +
==== Allow ssh login on all hosts ====
 +
config setprop Ajaxterm allowOnlyLocalhost no
 +
service ajaxterm restart
 +
Ajaxterm runs the 'ssh' command to login to a host. You are asked for hostname or IP, ssh port, username and password. If localhost or 127.0.0.1 is given as the host Ajaxterm falls back to the 'su --login USER' login command.
 +
 
 +
==== Ajaxterm service port ====
 +
By default Ajaxterm runs as a service (a python script) listening on port 8022. You can change the port using the following commands:
 +
config setprop Ajaxterm servicePort NEWPORT
 +
service ajaxterm restart
 +
service httpd-e-smith restart
    
=== Usage ===
 
=== Usage ===
Point your browser to https://yourdomain.com/ajaxterm
+
Point your browser to https://yourdomain.com/ajaxterm/index.html
    
* Login in to browser prompt as admin.
 
* Login in to browser prompt as admin.
   −
* Login to shell access as any user, NB, you may need to enter the servername at ''Host''
+
* Login to shell access as any user, NB, you may need to enter the servername at ''Host'' and port and ''SSH Port'' depending on your configuration.
 +
 
   −
* If you changed your Server SSH port from 22, add your port number to login.sh
+
=== Screenshot ===
nano -w /opt/ajaxterm/login.sh
+
[[Image:Ajaxterm-login.gif]]
/usr/bin/ssh '''-p nnn''' -o StrictHostKeyChecking=no $l@$h
     −
[[Image:Ajaxterm-screenshot.gif]]
     −
=== Additional information ===
  −
Ajaxterm runs as a service listening on port 8022. You can control the service using the service command:<br>
  −
<code>service ajaxterm {start|stop|restart|status}</code>
   
[[Category: Webapps]]
 
[[Category: Webapps]]
 
[[Category: Contrib]]
 
[[Category: Contrib]]
 
[[Category: Administration]]
 
[[Category: Administration]]
 
----
 
----
501

edits

Navigation menu