]> andersk Git - test.git/commitdiff
Document the --user-css command line option. Added an example on how to
authorMarkus Gutschke <markus@shellinabox.com>
Sat, 21 Nov 2009 21:01:32 +0000 (21:01 +0000)
committerMarkus Gutschke <markus@shellinabox.com>
Sat, 21 Nov 2009 21:01:32 +0000 (21:01 +0000)
configure Apache for reverse proxy operation.

config.h
configure
configure.ac
debian/README.available
demo/vt100.js
shellinabox/shell_in_a_box.js
shellinabox/shellinaboxd.man.in
shellinabox/vt100.js

index 0b212bc7e18e8de609d713d6ccd4b4020bfebc3e..6b640f19726c65fca444b67b2a977c7d4f477cbf 100644 (file)
--- a/config.h
+++ b/config.h
 #define STDC_HEADERS 1
 
 /* Most recent revision number in the version control system */
-#define VCS_REVISION "183"
+#define VCS_REVISION "185"
 
 /* Version number of package */
 #define VERSION "2.9"
index ffb10435b09d90d66764554d8670183738d349a9..f2ddac4ed85292d976f3d3669a4c5356cf8c209a 100755 (executable)
--- a/configure
+++ b/configure
@@ -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
 
 
-VCS_REVISION=183
+VCS_REVISION=185
 
 
 cat >>confdefs.h <<_ACEOF
index dba99282563a55cb9f0334a6bd498afc90c602c3..1f349c9183127dde1ae2392d09c4e2ea8dd43990 100644 (file)
@@ -2,7 +2,7 @@ AC_PREREQ(2.57)
 
 dnl This is the one location where the authoritative version number is stored
 AC_INIT(shellinabox, 2.9, markus@shellinabox.com)
-VCS_REVISION=183
+VCS_REVISION=185
 AC_SUBST(VCS_REVISION)
 AC_DEFINE_UNQUOTED(VCS_REVISION, "${VCS_REVISION}",
                    [Most recent revision number in the version control system])
index f438e40e1d9f7ba923814b25d5004c76cd9c9e34..fa76d0fd40cf6d2e3723903868d2c13ba323d0ce 100644 (file)
@@ -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
 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.
 
 Please note that ':', ',', and ';' are all invalid characters in
index 35f4a3e35dfd2e34fbc404f220202f68ab76d9d2..a66db588f43e7b901270623e489a0072c77b5e6c 100644 (file)
@@ -1901,7 +1901,7 @@ VT100.prototype.toggleBell = 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" +
         "For more information check http://shellinabox.com");
 };
index 13ccd10d7f6eae0c27505f2472e396f6d83c5fef..2333bc28c48853ee02da519dd59e60629b0abd51 100644 (file)
@@ -358,7 +358,7 @@ ShellInABox.prototype.extendContextMenu = function(entries, actions) {
 };
 
 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" +
         "For more information check http://shellinabox.com" +
         (typeof serverSupportsSSL != 'undefined' && serverSupportsSSL ?
index e4d3142b54a5f69e511e018b93c9f552e3a78485..18b647dc69c598260ea7d2e010f340bc3d94886a 100644 (file)
@@ -44,7 +44,7 @@
 .\" The most up-to-date version of this program is always available from
 .\" http://shellinabox.com
 .\"
-.TH SHELLINABOXD 1 "Dec 25, 2008"
+.TH SHELLINABOXD 1 "Nov 21, 2009"
 .SH NAME
 shellinaboxd \- publish command line shell through AJAX interface
 .SH SYNOPSIS
@@ -73,6 +73,7 @@ shellinaboxd \- publish command line shell through AJAX interface
 [\ \fB--disable-ssl-menu\fP\ ]
 [\ \fB-q\fP\ | \fB--quiet\fP\ ]
 [\ \fB-u\fP\ | \fB--user=\fP\fIuid\fP\ ]
+[\ \fB--user-css=\fP\fIstyles\fP\ ]
 [\ \fB-v\fP\ | \fB--verbose\fP\ ]
 [\ \fB--version\fP\ ]
 .SH DESCRIPTION
@@ -486,6 +487,44 @@ For more details, refer to the description of the
 .B --group
 option.
 .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
 Enables logging of
 .IR Apache -style
@@ -499,10 +538,52 @@ and
 \fB--version\fP
 Prints the version number of the binary and exits.
 .SH CONFIGURATION
+#ifndef DPKGBUILD
 There are no configuration files or permanent settings for
 .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
-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
 .TP \w'shellinaboxd\ 'u
 .B shellinaboxd
@@ -572,17 +653,41 @@ terminal. Again, this command should be run as
 .B shellinaboxd --css white-on-black.css
 #endif
 #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
 Loads the
+#ifndef DPKGBUILD
 .B white-on-black.css
+#endif
+#ifdef DPKGBUILD
+.B 00_White On Black.css
+#endif
 style sheet
 #ifndef DPKGBUILD
 from the current directory
 #endif
 and appends it to the built-in
 .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
 .SH DIAGNOSTICS
 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
 the daemon with \fBsudo service shellinabox restart\fP.
 .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
 This is the system-wide service definition. Usually, there is no need to
 edit this file.
index 35f4a3e35dfd2e34fbc404f220202f68ab76d9d2..a66db588f43e7b901270623e489a0072c77b5e6c 100644 (file)
@@ -1901,7 +1901,7 @@ VT100.prototype.toggleBell = 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" +
         "For more information check http://shellinabox.com");
 };
This page took 0.07001 seconds and 5 git commands to generate.