Document the --user-css command line option. Added an example on how to
configure Apache for reverse proxy operation. git-svn-id: https://shellinabox.googlecode.com/svn/trunk@185 0da03de8-d603-11dd-86c2-0f8696b7b6f9
This commit is contained in:
parent
9eb1693630
commit
3c644e1c4c
8 changed files with 123 additions and 11 deletions
2
config.h
2
config.h
|
@ -138,7 +138,7 @@
|
||||||
#define STDC_HEADERS 1
|
#define STDC_HEADERS 1
|
||||||
|
|
||||||
/* Most recent revision number in the version control system */
|
/* Most recent revision number in the version control system */
|
||||||
#define VCS_REVISION "183"
|
#define VCS_REVISION "185"
|
||||||
|
|
||||||
/* Version number of package */
|
/* Version number of package */
|
||||||
#define VERSION "2.9"
|
#define VERSION "2.9"
|
||||||
|
|
2
configure
vendored
2
configure
vendored
|
@ -2319,7 +2319,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
|
||||||
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
||||||
|
|
||||||
|
|
||||||
VCS_REVISION=183
|
VCS_REVISION=185
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
|
|
@ -2,7 +2,7 @@ AC_PREREQ(2.57)
|
||||||
|
|
||||||
dnl This is the one location where the authoritative version number is stored
|
dnl This is the one location where the authoritative version number is stored
|
||||||
AC_INIT(shellinabox, 2.9, markus@shellinabox.com)
|
AC_INIT(shellinabox, 2.9, markus@shellinabox.com)
|
||||||
VCS_REVISION=183
|
VCS_REVISION=185
|
||||||
AC_SUBST(VCS_REVISION)
|
AC_SUBST(VCS_REVISION)
|
||||||
AC_DEFINE_UNQUOTED(VCS_REVISION, "${VCS_REVISION}",
|
AC_DEFINE_UNQUOTED(VCS_REVISION, "${VCS_REVISION}",
|
||||||
[Most recent revision number in the version control system])
|
[Most recent revision number in the version control system])
|
||||||
|
|
2
debian/README.available
vendored
2
debian/README.available
vendored
|
@ -8,7 +8,7 @@ restart the daemon with "sudo /etc/init.d/shellinabox restart".
|
||||||
|
|
||||||
All options are of the form "ID_Name of Option.css". Any options with
|
All options are of the form "ID_Name of Option.css". Any options with
|
||||||
identical IDs will be put into the same option group. They are
|
identical IDs will be put into the same option group. They are
|
||||||
mutually exclusive and only one such option can selected at any given
|
mutually exclusive and only one such option can be selected at any given
|
||||||
time.
|
time.
|
||||||
|
|
||||||
Please note that ':', ',', and ';' are all invalid characters in
|
Please note that ':', ',', and ';' are all invalid characters in
|
||||||
|
|
|
@ -1901,7 +1901,7 @@ VT100.prototype.toggleBell = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
VT100.prototype.about = function() {
|
VT100.prototype.about = function() {
|
||||||
alert("VT100 Terminal Emulator " + "2.9 (revision 183)" +
|
alert("VT100 Terminal Emulator " + "2.9 (revision 185)" +
|
||||||
"\nCopyright 2008-2009 by Markus Gutschke\n" +
|
"\nCopyright 2008-2009 by Markus Gutschke\n" +
|
||||||
"For more information check http://shellinabox.com");
|
"For more information check http://shellinabox.com");
|
||||||
};
|
};
|
||||||
|
|
|
@ -358,7 +358,7 @@ ShellInABox.prototype.extendContextMenu = function(entries, actions) {
|
||||||
};
|
};
|
||||||
|
|
||||||
ShellInABox.prototype.about = function() {
|
ShellInABox.prototype.about = function() {
|
||||||
alert("Shell In A Box version " + "2.9 (revision 183)" +
|
alert("Shell In A Box version " + "2.9 (revision 185)" +
|
||||||
"\nCopyright 2008-2009 by Markus Gutschke\n" +
|
"\nCopyright 2008-2009 by Markus Gutschke\n" +
|
||||||
"For more information check http://shellinabox.com" +
|
"For more information check http://shellinabox.com" +
|
||||||
(typeof serverSupportsSSL != 'undefined' && serverSupportsSSL ?
|
(typeof serverSupportsSSL != 'undefined' && serverSupportsSSL ?
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
.\" The most up-to-date version of this program is always available from
|
.\" The most up-to-date version of this program is always available from
|
||||||
.\" http://shellinabox.com
|
.\" http://shellinabox.com
|
||||||
.\"
|
.\"
|
||||||
.TH SHELLINABOXD 1 "Dec 25, 2008"
|
.TH SHELLINABOXD 1 "Nov 21, 2009"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
shellinaboxd \- publish command line shell through AJAX interface
|
shellinaboxd \- publish command line shell through AJAX interface
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -73,6 +73,7 @@ shellinaboxd \- publish command line shell through AJAX interface
|
||||||
[\ \fB--disable-ssl-menu\fP\ ]
|
[\ \fB--disable-ssl-menu\fP\ ]
|
||||||
[\ \fB-q\fP\ | \fB--quiet\fP\ ]
|
[\ \fB-q\fP\ | \fB--quiet\fP\ ]
|
||||||
[\ \fB-u\fP\ | \fB--user=\fP\fIuid\fP\ ]
|
[\ \fB-u\fP\ | \fB--user=\fP\fIuid\fP\ ]
|
||||||
|
[\ \fB--user-css=\fP\fIstyles\fP\ ]
|
||||||
[\ \fB-v\fP\ | \fB--verbose\fP\ ]
|
[\ \fB-v\fP\ | \fB--verbose\fP\ ]
|
||||||
[\ \fB--version\fP\ ]
|
[\ \fB--version\fP\ ]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
@ -486,6 +487,44 @@ For more details, refer to the description of the
|
||||||
.B --group
|
.B --group
|
||||||
option.
|
option.
|
||||||
.TP
|
.TP
|
||||||
|
\fB--user-css=\fP\fIstyles\fP
|
||||||
|
The visual appearance of the terminal emulator can be customized
|
||||||
|
through user-selectable style sheets. These style sheets will show up
|
||||||
|
as options in the right-click context menu of the terminal emulator.
|
||||||
|
|
||||||
|
Styles sheet make up either independently selectable on/off options,
|
||||||
|
or multiple style sheets can be grouped together. When forming a group,
|
||||||
|
only one member of the group can be active at any given time. This is
|
||||||
|
used for multiple-choice options.
|
||||||
|
|
||||||
|
Multiple independent groups are separated by semicolons:
|
||||||
|
.in +4
|
||||||
|
\fISTYLES\fP := \fIGROUP\fP { ';' \fIGROUP\fP }*
|
||||||
|
.in
|
||||||
|
|
||||||
|
The members of a group are separated by commas:
|
||||||
|
.in +4
|
||||||
|
\fIGROUP\fP := \fIOPTION\fP { ',' OPTION }*
|
||||||
|
.in
|
||||||
|
|
||||||
|
Groups with exactly one member are used for options that can be
|
||||||
|
independently turned on and off.
|
||||||
|
|
||||||
|
Options include a human readable label that will be shown in the
|
||||||
|
context menu, followed by the name of the CSS file. They also must
|
||||||
|
include an indicator showing whether the option should initially be
|
||||||
|
turned on or turned off. Within a group, exactly one option should be
|
||||||
|
turned on:
|
||||||
|
.in +4
|
||||||
|
\fIOPTION\fP := <label> ':' [ '-' | '+' ] <css-file>
|
||||||
|
.in
|
||||||
|
|
||||||
|
The user's selection of options will be persisted in a cookie. This
|
||||||
|
means, the default settings of options as passed on the command line
|
||||||
|
only takes effect the very first time the user visits the terminal
|
||||||
|
emulator in his browser. On all subsequent visits, the user's
|
||||||
|
preferences take precedence.
|
||||||
|
.TP
|
||||||
\fB-v\fP\ |\ \fB--verbose\fP
|
\fB-v\fP\ |\ \fB--verbose\fP
|
||||||
Enables logging of
|
Enables logging of
|
||||||
.IR Apache -style
|
.IR Apache -style
|
||||||
|
@ -499,10 +538,52 @@ and
|
||||||
\fB--version\fP
|
\fB--version\fP
|
||||||
Prints the version number of the binary and exits.
|
Prints the version number of the binary and exits.
|
||||||
.SH CONFIGURATION
|
.SH CONFIGURATION
|
||||||
|
#ifndef DPKGBUILD
|
||||||
There are no configuration files or permanent settings for
|
There are no configuration files or permanent settings for
|
||||||
.BR shell\%ina\%boxd .
|
.BR shell\%ina\%boxd .
|
||||||
|
#endif
|
||||||
|
#ifdef DPKGBUILD
|
||||||
|
Except for the options in
|
||||||
|
.I /etc/default/shellinabox
|
||||||
|
that are used when running the daemon as a system-wide service, and
|
||||||
|
except for the style sheet definitions in
|
||||||
|
.IR /etc/shellinabox ,
|
||||||
|
there are no other configuration options.
|
||||||
|
#endif
|
||||||
|
|
||||||
A small number of run-time configuration options are available from a
|
A small number of run-time configuration options are available from a
|
||||||
context menu that becomes available when clicking the right mouse button.
|
context menu that becomes available when clicking the right mouse
|
||||||
|
button. These options get persisted in a browser cookie.
|
||||||
|
|
||||||
|
Many sites already have a web server running and would like to
|
||||||
|
integrate
|
||||||
|
.B shellinaboxd
|
||||||
|
into their existing site. This is most commonly done by means of a
|
||||||
|
reverse-proxy entry for the main web server. For
|
||||||
|
.I Apache
|
||||||
|
this would require adding an option such as:
|
||||||
|
.in +4
|
||||||
|
<Location /shell>
|
||||||
|
ProxyPass http://localhost:4200/
|
||||||
|
Order allow,deny
|
||||||
|
Allow from all
|
||||||
|
</Location>
|
||||||
|
.in
|
||||||
|
|
||||||
|
If you are using a different web server, refer to that server's
|
||||||
|
documentation on how to configure reverse proxy operations.
|
||||||
|
|
||||||
|
When using a reverse proxy, the
|
||||||
|
.B --localhost-only
|
||||||
|
option would normally be enabled as well.
|
||||||
|
#ifdef DPKGBUILD
|
||||||
|
This can be done in
|
||||||
|
.IR /etc/default/shellinabox .
|
||||||
|
#endif
|
||||||
|
In addition, the
|
||||||
|
.B --disable-ssl
|
||||||
|
might also be considered depending on the exact configuration details
|
||||||
|
of the reverse proxy.
|
||||||
.SH EXAMPLES
|
.SH EXAMPLES
|
||||||
.TP \w'shellinaboxd\ 'u
|
.TP \w'shellinaboxd\ 'u
|
||||||
.B shellinaboxd
|
.B shellinaboxd
|
||||||
|
@ -572,17 +653,41 @@ terminal. Again, this command should be run as
|
||||||
.B shellinaboxd --css white-on-black.css
|
.B shellinaboxd --css white-on-black.css
|
||||||
#endif
|
#endif
|
||||||
#ifdef DPKGBUILD
|
#ifdef DPKGBUILD
|
||||||
.B shellinaboxd --css /usr/share/doc/shellinabox/white-on-black.css
|
.B shellinaboxd --css '/etc/shellinabox/options-available/00_White On Black.css'
|
||||||
#endif
|
#endif
|
||||||
Loads the
|
Loads the
|
||||||
|
#ifndef DPKGBUILD
|
||||||
.B white-on-black.css
|
.B white-on-black.css
|
||||||
|
#endif
|
||||||
|
#ifdef DPKGBUILD
|
||||||
|
.B 00_White On Black.css
|
||||||
|
#endif
|
||||||
style sheet
|
style sheet
|
||||||
#ifndef DPKGBUILD
|
#ifndef DPKGBUILD
|
||||||
from the current directory
|
from the current directory
|
||||||
#endif
|
#endif
|
||||||
and appends it to the built-in
|
and appends it to the built-in
|
||||||
.B styles.css
|
.B styles.css
|
||||||
sheet. This causes the terminal to render white text on a black background.
|
sheet. This causes the terminal to always render white text on a black
|
||||||
|
background.
|
||||||
|
.TP
|
||||||
|
.B shellinaboxd --user-css Normal:+black-on-white.css,Reverse:-white-on-black.css
|
||||||
|
Allow the user to select whether they want text to be rendered
|
||||||
|
normally or in reverse video. This command line option adds a new
|
||||||
|
entry to the right-click context menu.
|
||||||
|
#ifdef DPKGBUILD
|
||||||
|
|
||||||
|
If starting
|
||||||
|
.B shellinaboxd
|
||||||
|
as a system process, the
|
||||||
|
.I /etc/init.d/shellinabox
|
||||||
|
script looks in
|
||||||
|
.I /etc/shell\%in\%a\%box/op\%tions-\%en\%abled
|
||||||
|
for style sheets that should be added to the command line. See the
|
||||||
|
.I README
|
||||||
|
file in that directory for details on how to configure system-wide
|
||||||
|
options.
|
||||||
|
#endif
|
||||||
.P
|
.P
|
||||||
.SH DIAGNOSTICS
|
.SH DIAGNOSTICS
|
||||||
The daemon returns a non-zero exit code in case of failure. With the
|
The daemon returns a non-zero exit code in case of failure. With the
|
||||||
|
@ -605,6 +710,13 @@ The system-wide installation of
|
||||||
can be configured by editing this file. After making any changes, restart
|
can be configured by editing this file. After making any changes, restart
|
||||||
the daemon with \fBsudo service shellinabox restart\fP.
|
the daemon with \fBsudo service shellinabox restart\fP.
|
||||||
.TP
|
.TP
|
||||||
|
.I /etc/shellinabox
|
||||||
|
This directory contains style sheets that will be used for the
|
||||||
|
.B --user-css
|
||||||
|
command line option, when running
|
||||||
|
.B shellinaboxd
|
||||||
|
as a system-wide service.
|
||||||
|
.TP
|
||||||
.I /etc/init.d/shellinabox
|
.I /etc/init.d/shellinabox
|
||||||
This is the system-wide service definition. Usually, there is no need to
|
This is the system-wide service definition. Usually, there is no need to
|
||||||
edit this file.
|
edit this file.
|
||||||
|
|
|
@ -1901,7 +1901,7 @@ VT100.prototype.toggleBell = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
VT100.prototype.about = function() {
|
VT100.prototype.about = function() {
|
||||||
alert("VT100 Terminal Emulator " + "2.9 (revision 183)" +
|
alert("VT100 Terminal Emulator " + "2.9 (revision 185)" +
|
||||||
"\nCopyright 2008-2009 by Markus Gutschke\n" +
|
"\nCopyright 2008-2009 by Markus Gutschke\n" +
|
||||||
"For more information check http://shellinabox.com");
|
"For more information check http://shellinabox.com");
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue