特殊:Badtitle/NS100:AjaxTerm:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示2个用户的14个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/AjaxTerm}} | {{From|https://help.ubuntu.com/community/AjaxTerm}} | ||
{{Languages| | {{Languages|UbuntuHelp:AjaxTerm}} | ||
=== Overview === | === Overview === | ||
Ajaxterm is a web based terminal. It was totally inspired and works almost exactly like [http://anyterm.org Anyterm] except it's much easier to install. | Ajaxterm is a web based terminal. It was totally inspired and works almost exactly like [http://anyterm.org Anyterm] except it's much easier to install. | ||
* Ajaxterm written in python (and some AJAX javascript for client side) and depends only on python2.3 or better. | * Ajaxterm written in python (and some AJAX javascript for client side) and depends only on python2.3 or better. | ||
* Ajaxterm is very simple to install on Linux, MacOS X, FreeBSD, Solaris, cygwin and any Unix that runs python2.3. | * 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. | * Ajaxterm was written by Antony Lesuisse (email: al AT udev.org), License Public Domain. | ||
''Please note''; this guide currently only works on Ubuntu version 6.10 aka Edgy Eft. I will add 6.06 information soon. | ''Please note''; this guide currently only works on Ubuntu version 6.10 aka Edgy Eft. I will add 6.06 information soon. | ||
=== Installation and Setup === | === Installation and Setup === | ||
Simply install the ajaxterm package. | Simply install the ajaxterm package. | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install ajaxterm | sudo apt-get install ajaxterm | ||
</nowiki></pre> | </nowiki></pre> | ||
Once it has downloaded and installed the apt files you can start ajaxterm with the command; | Once it has downloaded and installed the apt files you can start ajaxterm with the command; | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo /etc/init.d/ajaxterm start | sudo /etc/init.d/ajaxterm start | ||
</nowiki></pre> | </nowiki></pre> | ||
With some peoples computers we start to get errors due to their ssh config.. so you will need to edit your ssh_config | With some peoples computers we start to get errors due to their ssh config.. so you will need to edit your ssh_config | ||
<pre><nowiki> | <pre><nowiki> | ||
第32行: | 第21行: | ||
//uncomment: PasswordAuthentication yes | //uncomment: PasswordAuthentication yes | ||
</nowiki></pre> | </nowiki></pre> | ||
{|border="1" cellspacing="0" | {|border="1" cellspacing="0" | ||
| | |[http://elitelinux.org/andrewb/ajaxterm.png] | ||
|} | |} | ||
The default location for the config file is located /etc/default/ajaxterm . This may be edited to change the default port [Default=8022] | The default location for the config file is located /etc/default/ajaxterm . This may be edited to change the default port [Default=8022] | ||
Remember and 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. | Remember and 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. | ||
=== External Access === | === External Access === | ||
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. | 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 [https://help.ubuntu.com/7.10/server/C/httpd.html#https-configuration Server Guide]. | |||
Now copy [then symlink] the SSL config from the Available sites to the Enabled sites | Now copy [then symlink] the SSL config from the Available sites to the Enabled sites | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl | sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl | ||
</nowiki></pre> | </nowiki></pre> | ||
Make sure all the modules for proxy have been made available; | Make sure all the modules for proxy have been made available; | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo | sudo a2enmod proxy_http | ||
</nowiki></pre> | </nowiki></pre> | ||
It is time to decide on an htaccess password and username, remember and make this password strong. | |||
It is time to decide | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo mkdir /srv/ajaxterm | sudo mkdir /srv/ajaxterm | ||
sudo htpasswd -bc /srv/ajaxterm/.htpasswd [user] [pass] | sudo htpasswd -bc /srv/ajaxterm/.htpasswd [user] [pass] | ||
</nowiki></pre> | </nowiki></pre> | ||
You will now need to go access the vhost settings which [here at least..] are located in sites-enabled | You will now need to go access the vhost settings which [here at least..] are located in sites-enabled | ||
<pre><nowiki> | <pre><nowiki> | ||
第78行: | 第48行: | ||
Remove the line; <code><nowiki>NameVirtualHost *</nowiki></code> | Remove the line; <code><nowiki>NameVirtualHost *</nowiki></code> | ||
and edit the first Vhost to include the port 80; <code><nowiki><VirtualHost *></nowiki></code> change to <code><nowiki><VirtualHost *:80></nowiki></code>. | and edit the first Vhost to include the port 80; <code><nowiki><VirtualHost *></nowiki></code> change to <code><nowiki><VirtualHost *:80></nowiki></code>. | ||
Add an entry for the new port number and proxy to the AjaxTerm | Add an entry for the new port number and proxy to the AjaxTerm | ||
<pre><nowiki> | <pre><nowiki> | ||
第102行: | 第71行: | ||
</VirtualHost> | </VirtualHost> | ||
</nowiki></pre> | </nowiki></pre> | ||
Restart apache2 <code><nowiki>sudo /etc/init.d/apache2 restart</nowiki></code> 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. | Restart apache2 <code><nowiki>sudo /etc/init.d/apache2 restart</nowiki></code> 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. | ||
=== Alternatives === | |||
* [[UbuntuHelp:shellinabox|shellinabox]] | |||
=== Links === | === Links === | ||
[http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm AjaxTerm Homepage] | [http://antony.lesuisse.org/qweb/trac/wiki/AjaxTerm AjaxTerm Homepage] | ||
[http://www.ubuntuforums.org/archive/index.php/t-4466.html Helpful page on SSL] | [http://www.ubuntuforums.org/archive/index.php/t-4466.html Helpful page on SSL] | ||
[http://wiki.kartbuilding.net/index.php/Ajaxterm Debian Guide] | [http://wiki.kartbuilding.net/index.php/Ajaxterm Debian Guide] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月19日 (三) 17:18的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/AjaxTerm }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/af | • {{#if: UbuntuHelp:AjaxTerm|Afrikaans| [[::AjaxTerm/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/ar | • {{#if: UbuntuHelp:AjaxTerm|العربية| [[::AjaxTerm/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/az | • {{#if: UbuntuHelp:AjaxTerm|azərbaycanca| [[::AjaxTerm/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/bcc | • {{#if: UbuntuHelp:AjaxTerm|جهلسری بلوچی| [[::AjaxTerm/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/bg | • {{#if: UbuntuHelp:AjaxTerm|български| [[::AjaxTerm/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/br | • {{#if: UbuntuHelp:AjaxTerm|brezhoneg| [[::AjaxTerm/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/ca | • {{#if: UbuntuHelp:AjaxTerm|català| [[::AjaxTerm/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/cs | • {{#if: UbuntuHelp:AjaxTerm|čeština| [[::AjaxTerm/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/de | • {{#if: UbuntuHelp:AjaxTerm|Deutsch| [[::AjaxTerm/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/el | • {{#if: UbuntuHelp:AjaxTerm|Ελληνικά| [[::AjaxTerm/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/es | • {{#if: UbuntuHelp:AjaxTerm|español| [[::AjaxTerm/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/fa | • {{#if: UbuntuHelp:AjaxTerm|فارسی| [[::AjaxTerm/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/fi | • {{#if: UbuntuHelp:AjaxTerm|suomi| [[::AjaxTerm/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/fr | • {{#if: UbuntuHelp:AjaxTerm|français| [[::AjaxTerm/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/gu | • {{#if: UbuntuHelp:AjaxTerm|ગુજરાતી| [[::AjaxTerm/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/he | • {{#if: UbuntuHelp:AjaxTerm|עברית| [[::AjaxTerm/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/hu | • {{#if: UbuntuHelp:AjaxTerm|magyar| [[::AjaxTerm/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/id | • {{#if: UbuntuHelp:AjaxTerm|Bahasa Indonesia| [[::AjaxTerm/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/it | • {{#if: UbuntuHelp:AjaxTerm|italiano| [[::AjaxTerm/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/ja | • {{#if: UbuntuHelp:AjaxTerm|日本語| [[::AjaxTerm/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/ko | • {{#if: UbuntuHelp:AjaxTerm|한국어| [[::AjaxTerm/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/ksh | • {{#if: UbuntuHelp:AjaxTerm|Ripoarisch| [[::AjaxTerm/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/mr | • {{#if: UbuntuHelp:AjaxTerm|मराठी| [[::AjaxTerm/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/ms | • {{#if: UbuntuHelp:AjaxTerm|Bahasa Melayu| [[::AjaxTerm/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/nl | • {{#if: UbuntuHelp:AjaxTerm|Nederlands| [[::AjaxTerm/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/no | • {{#if: UbuntuHelp:AjaxTerm|norsk| [[::AjaxTerm/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/oc | • {{#if: UbuntuHelp:AjaxTerm|occitan| [[::AjaxTerm/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/pl | • {{#if: UbuntuHelp:AjaxTerm|polski| [[::AjaxTerm/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/pt | • {{#if: UbuntuHelp:AjaxTerm|português| [[::AjaxTerm/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/ro | • {{#if: UbuntuHelp:AjaxTerm|română| [[::AjaxTerm/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/ru | • {{#if: UbuntuHelp:AjaxTerm|русский| [[::AjaxTerm/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/si | • {{#if: UbuntuHelp:AjaxTerm|සිංහල| [[::AjaxTerm/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/sq | • {{#if: UbuntuHelp:AjaxTerm|shqip| [[::AjaxTerm/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/sr | • {{#if: UbuntuHelp:AjaxTerm|српски / srpski| [[::AjaxTerm/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/sv | • {{#if: UbuntuHelp:AjaxTerm|svenska| [[::AjaxTerm/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/th | • {{#if: UbuntuHelp:AjaxTerm|ไทย| [[::AjaxTerm/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/tr | • {{#if: UbuntuHelp:AjaxTerm|Türkçe| [[::AjaxTerm/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/vi | • {{#if: UbuntuHelp:AjaxTerm|Tiếng Việt| [[::AjaxTerm/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/yue | • {{#if: UbuntuHelp:AjaxTerm|粵語| [[::AjaxTerm/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/zh | • {{#if: UbuntuHelp:AjaxTerm|中文| [[::AjaxTerm/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/zh-hans | • {{#if: UbuntuHelp:AjaxTerm|中文(简体)| [[::AjaxTerm/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AjaxTerm | UbuntuHelp:AjaxTerm | {{#if: | :}}AjaxTerm}}/zh-hant | • {{#if: UbuntuHelp:AjaxTerm|中文(繁體)| [[::AjaxTerm/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:AjaxTerm|:AjaxTerm|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :AjaxTerm/zh | | {{#ifexist: AjaxTerm/zh | | {{#ifeq: {{#titleparts:AjaxTerm|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:AjaxTerm|1|-1|}} | zh | | }}
Overview
Ajaxterm is a web based terminal. It was totally inspired and works almost exactly like Anyterm except it's much easier to install.
- Ajaxterm written in python (and some AJAX javascript for client side) and depends only on python2.3 or better.
- 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.
Please note; this guide currently only works on Ubuntu version 6.10 aka Edgy Eft. I will add 6.06 information soon.
Installation and Setup
Simply install the ajaxterm package.
sudo apt-get install ajaxterm
Once it has downloaded and installed the apt files you can start ajaxterm with the command;
sudo /etc/init.d/ajaxterm start
With some peoples computers we start to get errors due to their ssh config.. so you will need to edit your ssh_config
sudo nano -w /etc/ssh/ssh_config //uncomment: PasswordAuthentication yes
[1] |
The default location for the config file is located /etc/default/ajaxterm . This may be edited to change the default port [Default=8022] Remember and 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 [2] . How ever check out below for how to access it from an external machine.
External Access
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 for proxy have been made available;
sudo a2enmod proxy_http
It is time to decide on an htaccess password and username, remember and make this password strong.
sudo mkdir /srv/ajaxterm sudo htpasswd -bc /srv/ajaxterm/.htpasswd [user] [pass]
You will now need to go access the vhost settings which [here at least..] are located in sites-enabled
sudo nano -w /etc/apache2/sites-enabled/000-default
Remove the line; NameVirtualHost *
and edit the first Vhost to include the port 80; <VirtualHost *>
change to <VirtualHost *:80>
.
Add an entry for the new port number and proxy to the AjaxTerm
<VirtualHost *:443> SetEnvIf Request_URI "^/u" dontlog ErrorLog /var/log/apache2/error.log Loglevel warn SSLEngine On SSLCertificateFile /etc/apache2/ssl/apache.pem 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/ </VirtualHost>
Restart apache2 sudo /etc/init.d/apache2 restart
open your firewall port 443 and try to browse to [3] where yourhost.foo is either your IP adress or your hostname/web address.