Commit graph

123 commits

Author SHA1 Message Date
zodiac
065ac9f0fb Added transparent printing support. The development of this feature is sponsored by De Bortoli Wines Pty Limited and by Eternity Technologies.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@176 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-08-20 08:16:28 +00:00
zodiac
9b8e3af162 Added a ${url} parameter that can be used in the service description
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@174 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-08-19 19:08:30 +00:00
zodiac
15e91a32f7 Internet Explorer still doesn't properly support CSS. In particular, it has
problems dealing with "inherit" styles. This prevented proper switching
between color and monochrome.

Implemented a work-around.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@172 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-08-16 05:20:09 +00:00
zodiac
161e848e23 Simplify the code that compresses HTTP replies. This also gives us the ability
to manipulate headers more easily. We now add "Connection: close" in more cases
where we force a closing of the connection.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@171 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-08-15 22:55:02 +00:00
zodiac
e3a4eb95e3 For Debian packages, install user CSS style options in /etc/shellinabox and
automatically pick them up when the service starts.

Persist preferences when the user changes them in the context menu.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@170 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-08-15 05:24:31 +00:00
zodiac
5eade3daff Fixed a potential assertion failure in the daemon, if a user manages to type keys before he had a chance to establish a session.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@169 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-08-13 01:55:44 +00:00
zodiac
bc811017fd Allow quotes in SHELLINABOX_ARGS (for Debian packages)
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@168 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-08-12 19:55:25 +00:00
zodiac
341eb1982c Included example style sheets that allow switching to white-on-black or to
monochrome mode from the right click context menu. This required a couple of
architectural changes to the JavaScript code.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@167 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-08-12 02:32:26 +00:00
zodiac
71ba8641c1 Fixed support for Swedish keyboards
Some more tweaks for IE6 support. Overall, IE6 is still pretty
broken. Not sure if we can do much about this.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@166 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-08-11 18:37:12 +00:00
zodiac
7ab3b32465 Initial version of code that allows users to interactively select from
different style sheet options. This code is still incomplete and subject to
change (e.g. the command line syntax might still change). But it is good
enough to demonstrate the concept on simple style sheets (such as selecting
between normal and reverse video).


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@165 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-08-11 07:21:51 +00:00
zodiac
e78b94961c Sanitize the SSH command line a little more.
Show the real host name in the SSH password prompt, if available.
Add some commented-out debugging helpers for tracking down problems with non-US keyboards. 


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@164 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-08-09 19:08:40 +00:00
zodiac
2d226f5b53 Removed incorrectly added duplicate HTML header from root HTML page.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@163 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-08-08 22:49:31 +00:00
zodiac
94e7bd4dd3 Even if ShellInABox is running with SSL support disabled, if the user connected
to it over HTTPS (e.g. because the SSL encryption is done by a reverse proxy
in front of the daemon), we should not redirect away from the HTTPS session.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@162 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-08-08 22:07:42 +00:00
zodiac
86a9d06a8b Added an example for the SSH service option.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@161 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-30 18:12:54 +00:00
zodiac
e35cf266da - Added the --css command line option to make incremental changes to the style sheet without having to load a full replacement with the --static-file option. Added an example that enables white text on a black background.
- Added Debian specific documentation to the manual page.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@158 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-30 17:40:54 +00:00
zodiac
37c51363d6 Updated examples in manual page.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@157 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-29 21:27:01 +00:00
zodiac
01e6f3c9de Updated manual page to show new SSH service.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@155 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-29 21:08:06 +00:00
zodiac@gmail.com
218d901131 - Perform all URL rewriting before loading the first resource (e.g. style sheets).
- Allow reverse proxies to do their own SSL encryption even if ShellInABox explicitly disabled encryption.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@153 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-27 20:09:33 +00:00
zodiac@gmail.com
052a47aa08 Use JavaScript redirection for attaching the missing slash to
the URL. This should make it easier to use reverse proxies. It was
already possible to run shellinaboxd behind a proxy, but a lot of
users got the configuration wrong.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@152 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-27 18:31:05 +00:00
zodiac
468bcbbb4e For Debian packages, added a missing build dependency on zlib.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@149 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-10 16:28:11 +00:00
zodiac
13263e1737 Make 'update' warn about merge conflicts
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@147 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-08 20:11:40 +00:00
zodiac
d51ada4a87 Added an 'update' script that should make it easier for people to track SVN
even if they have mismatching versions of the autotools


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@146 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-08 19:16:53 +00:00
zodiac
f4ed4c38d0 Include some more of the autotools dependencies. This might make it easier for
users that want to track development with 'svn update', but who use a different
version of autotools than the one that is checked into SVN.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@145 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-08 17:34:55 +00:00
zodiac
1c4d50f112 Treat a few more types of trailing characters as not forming part of a URL.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@144 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-08 17:24:21 +00:00
zodiac
d96e312a70 More fine tuning of the regular expressions that detect URLs. We now allow '.' and ',' in URLs, as long as they are not at the very end of the URL, where they would probably be part of the enclosing sentence and not actually part of the URL.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@143 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-08 17:08:47 +00:00
zodiac
8920606f6f Optionally compress large responses, if the browser accepts deflate compression. This mainly improves start up time.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@142 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-08 08:33:36 +00:00
zodiac
ca18a5346f Run-time testing for availability of libpthread functions does not
work reliably on some platforms. So, avoid doing so on anything other
than Linux/i386. For all other platforms, assume that the code is not
linked against libpthread. For ShellInABox, this is always the correct
assumption. But if the code gets embedded into other projects, this
might have to be changed.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@141 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-07 00:40:51 +00:00
zodiac
bb4dbaa5f5 Making it easier to host the terminal on non-root URLs by always redirecting to a URL that includes a trailing slash.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@140 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-06 16:27:11 +00:00
zodiac
8ff79d1ce7 Released version 2.9
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@139 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-06 04:28:59 +00:00
zodiac
5df28de89c - Refined regular expressions for finding URLs.
- Show new terminal size when resizing the browser.
- Restored compatibility with IE5 and IE6.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@137 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-05 02:45:49 +00:00
zodiac
cedb046244 Fixed a null pointer dereference that could be triggered by using non-standard
service definitions.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@136 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-04 08:46:28 +00:00
zodiac
9713e1d58c Fixed vt100.jspp so that it can be used without shell_in_a_box.jspp. This
broke demo.jspp.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@135 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-04 08:31:39 +00:00
zodiac
19177de98c Added --linkify option. Default settings cause the terminal to recognize fully qualified URLs and to make them clickable.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@134 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-07-04 08:16:07 +00:00
zodiac
ee1cd17b18 Additional fixes for dealing with keyboard layouts that need AltGr as a
second level chooser.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@133 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-06-30 17:14:35 +00:00
zodiac
f613bc1ca8 Added support for keyboards that have a dedicated "<" / ">" key.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@132 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-06-28 20:22:29 +00:00
zodiac
62d5195057 Document the "--localhost-only" option
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@126 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-06-21 20:06:21 +00:00
zodiac@gmail.com
5ec8c4c19b Added new "--localhost-only" command line option.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@125 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-06-21 19:55:20 +00:00
zodiac@gmail.com
6dbbe62310 Added code so that "objcopy" picks an appropriate target architecture when
building for ARM.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@124 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-06-21 19:41:32 +00:00
zodiac@gmail.com
2c090c8beb Respect "Connection: close" if sent by the browser.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@123 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-06-21 18:51:14 +00:00
zodiac@gmail.com
db631d5e35 Added SSL support for OpenBSD
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@122 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-05-25 06:03:26 +00:00
zodiac@gmail.com
adadddf91c Released version 2.8
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@121 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-05-23 19:53:09 +00:00
zodiac@gmail.com
60b5f38d74 Improved support for entering non-ASCII characters.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@120 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-05-23 05:56:16 +00:00
zodiac
41fd8f3ea5 Fixed various issues with building on OpenBSD
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@119 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-05-21 07:50:22 +00:00
zodiac
abb9a50f3b Fixed variable expansion in service descriptions.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@118 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-04-28 07:12:55 +00:00
zodiac
28b65c9f2a Released version 2.7
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@117 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-04-27 16:54:17 +00:00
zodiac
3bacdb002b - Make the code actually do, what the comments say (i.e. skip PAM account
management, if we don't have the privileges to do so, anyway)
- Make ssl.h compile again, even if OpenSSL is not found at compile time.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@115 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-04-16 20:54:08 +00:00
zodiac
0258d46926 - Add support for commands that want to read before they write anything.
- A couple of changes to avoid false error messages in valgrind.
- Fixed a bug that could potentially lead to a double-free()


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@114 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-04-16 05:33:05 +00:00
zodiac
f8c85ae26f Released version 2.6
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@113 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-04-12 17:26:58 +00:00
zodiac
6021dd8aaa Force updating revision numbers in Javascript files, when running the commit script.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@103 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-03-30 17:34:36 +00:00
zodiac
312b2853f5 Added "NEW" command to demo BASIC interpreter. Still not very useful, but we
now have some of the basic framework in place to implement a minimalistic
interpreter.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@102 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-03-30 16:55:00 +00:00
zodiac
81845fd5f7 Log fatal error messages even in "quiet" mode. Allow overriding more of the
default values needed by the system startup script.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@101 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-03-30 16:09:37 +00:00
zodiac
3e0241dde3 Added initial revision of demo application
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@93 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-03-30 08:41:48 +00:00
zodiac
3edcc43298 Avoid closing the certificate file twice. Tweak make-chained-cert.sh script to
generate long-lasting certificates no matter the system defaults.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@91 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-03-29 22:20:59 +00:00
zodiac
1ea698ad72 Add support for chained SSL certificates.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@90 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-03-29 21:52:18 +00:00
zodiac
2f6b0934ee Renamed the JavaScript source files to *.jspp and the pre-processed files
to *.js. Checked both versions of the file into SVN, so that users can
directly access the preprocessed files, if they don't want to rebuild them.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@89 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-03-23 23:12:17 +00:00
zodiac
ff6ffe7400 Addes a dependency on the "openssl" command line tool to the Debian package.
This is needed to create self-signed certificates, if no other SSL certificates
are available.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@88 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-03-23 16:15:27 +00:00
zodiac
96cc177071 Added an INSTALL.Debian file with Debian-specific instructions on
how to build and install a package file.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@87 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-03-23 15:48:06 +00:00
zodiac
abba562359 Work-around for an IE6 bug when doing HTTPS through proxies.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@86 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-03-21 19:09:05 +00:00
zodiac
0596dc00c3 Possible fix for IE problems with horizontal positioning of cursor if the line
ends in spaces.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@85 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-03-21 16:49:17 +00:00
zodiac
0ac80a7829 Released version 2.5
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@84 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-03-21 15:56:49 +00:00
zodiac
b52b4d9af0 Updated regular expression to match Subversion's keyword pattern.
Added missing depency on config.h.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@69 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-02-17 05:43:34 +00:00
zodiac
9414759983 Changed keyword anchor
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@68 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-02-17 05:38:29 +00:00
zodiac
cc09440d27 Include Subversion revision number in user-visible version number.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@67 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-02-17 05:26:58 +00:00
zodiac
84dcc33650 Allow "configure" to explicitly disable OpenSSL and PAM support. Also, allow
OpenSSL and PAM libraries to be optionally linked as regular shared libraries
instead of being searched for and loaded at run-time.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@65 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-02-17 04:13:47 +00:00
zodiac
cc8979092c Fixed FreeBSD support. We now find both /bin/login and /usr/bin/login. We
provide our own conversation function, if PAM misc is not available. We
rely on login_tty to set up the terminal for us. And we avoid a few other
API uses that turned out to be Linux specific extensions.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@63 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-02-17 00:51:41 +00:00
zodiac
9dd2367209 Released version 2.4:
Fixed fatal compiler warning if compiling without SSL support.

Fixed cursor hiding and showing

Fixed various rendering glitches reported by Phil Endecott of Anyterm
(http://anyterm.org) fame.

Made code more portable. In particular, fixed sed scripts.

Added explicit config.h file, instead of passing configuration options on
the compiler's command line.

Fixed compilation issues on BSD systems. Code is still untested and
unsupported on non-Linux systems at this time.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@61 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-02-13 01:58:01 +00:00
zodiac
1e27276feb Use a config.h file, instead of passing configuration options on the compiler's
command line.

Fix fatal compilation warning when building without SSL support.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@59 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-02-11 23:25:15 +00:00
zodiac
75c09f9f83 Make code a little more portable. In particular, fix sed scripts.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@56 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-02-02 21:42:33 +00:00
zodiac
90d9d492b7 Added better compatibility with different versions of compilers and libaries.
In particular, work around a problem with gcc complaining about NULL format
strings. And added additional system header files that might be required on
some platforms.

This should fix some of the problems reported when compiling on BSD-style
systems. But we are still using SysV style session management code. This
probably needs to be rewritten before ShellInABox can be run on BSD-style
system.

In particular, we rely on grantpt(), we use the utmpx API, and we access
/dev/urandom.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@55 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-02-02 00:55:15 +00:00
zodiac
8a6cba17f1 Released version 2.3
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@54 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-01-22 02:42:52 +00:00
zodiac
349f0795e6 Released version 2.2
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@49 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-01-22 00:39:16 +00:00
zodiac
537d83a5b1 - Released version 2.1
- Fixed a few more build issues.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@36 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2009-01-12 18:59:06 +00:00
zodiac
aab20f5ed0 First public release of the version 2.0 rewrite. This is the
first release of ShellInABox that supports an AJAX interface
instead of the original Java applet.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@2 0da03de8-d603-11dd-86c2-0f8696b7b6f9
2008-12-29 23:57:07 +00:00