Re: Comment on shellinaboxd_man in shellinabox

593 views
Skip to first unread message

shell...@googlecode.com

unread,
Feb 19, 2010, 3:53:44 PM2/19/10
to shell...@googlegroups.com
Comment by denny.mansart:

Thank you very much for this light and useful program !
I won't be able to do anything whithout it.


For more information:
http://code.google.com/p/shellinabox/wiki/shellinaboxd_man

shell...@googlecode.com

unread,
Mar 17, 2010, 9:07:39 AM3/17/10
to shell...@googlegroups.com
Comment by hm.stahl:

Thanks for this program, it works fine here. However, I do not quite
understand the various descriptions under --service, could you provide some
more examples on the various options?

shell...@googlecode.com

unread,
Apr 7, 2010, 3:05:45 PM4/7/10
to shell...@googlegroups.com
Comment by benering:

This is an awesome application. I currently cannot login as root on my
server, though other user accounts are able to login. Is there an easy way
to make root work like all other users?

Markus Gutschke (顧孟勤)

unread,
Apr 7, 2010, 3:31:13 PM4/7/10
to shell...@googlecode.com, shell...@googlegroups.com

This is likely an issue with how your distribution configures PAM. As such it isn't really anything ShellInABox controls. But it should be pretty easy to configure. Check your distribution's documentation.

Markus

> --
> To unsubscribe, reply using "remove me" as the subject.

shell...@googlecode.com

unread,
May 14, 2010, 9:54:10 AM5/14/10
to shell...@googlegroups.com
Comment by tcpsyn:

This is nearly perfect for my application. Now I'm trying to figure out how
to dynamically pass an env variable or something to the service from the
client. I want to be able to note the logged in user so I can script
his/her actions while inside the client. I know I can pass a variable on
the server side by using KEY=VAL on the startup string, but unless I'm
going to start a new session on a new port for every login, that doesn't
make sense.

When the user logs in, I want to pass his username (php session variable)
to an env variable in the shell.

Is that possible?

shell...@googlecode.com

unread,
May 14, 2010, 9:58:22 AM5/14/10
to shell...@googlegroups.com
Comment by tcpsyn:

I should add that I'm just running a script, not LOGIN or SSH .. like so:

shellinaboxd -t -s /:webterminal:nobody:/:selectstore.sh

I don't want to have to maintain individual user accounts for the users,
yet I want to be able to log who did what as the user webterminal based on
their SESSION data.

shell...@googlecode.com

unread,
May 14, 2010, 10:04:32 AM5/14/10
to shell...@googlegroups.com
Comment by tcpsyn:

And a bit more googling suggests I can use CGI mode. I'll give that a go.

shell...@googlecode.com

unread,
Jun 11, 2010, 10:34:42 PM6/11/10
to shell...@googlegroups.com
Comment by honk1...@web.de:

Hi,
after testing some software for a shell in the browser, I came to the
conclusion that ShellInABox is the best of them! Thank you for that great
program!
I'm using ShellInAbox v2.10 on a Linux OpenSUSE System with Apache
webserver.

But now I've got a question:

How to change font and font size?

I'm trying to change the font to "Courier New" and the font size to 12pt.

I created this user css:

#vt100 #console, #vt100 #alt_console, #vt100 #cursor, #vt100 #lineheight {
font-family: "Courier New", "DejaVu Sans Mono", "Everson Mono",
FreeMono, "Andale Mono", "Lucida Console", monospace;
font-size: 1pc;
}

After its implementation it works fine when calling the site directly
with "http://<server>:4200". I only need to reload the site after made the
changing to make the cursor size and position change. But I also must load
the site a aecond time after starting the my browser (MSIE 8) when the
changing is already saved. Otherwize the cursor size is too small und half
of the letters are clipped.
As I said, after the second load it works fine.

Now I want to implement ShellInABox in an other Website as an iframe, and
here comes my problem:

In the iframe the size of the cursor is staying too small when
using "Courier New 12pt" and the letters keep clipped, reloading the
iframes doesn't help here.

Has someone an idea how I could solve that problem?

thanks,
Honk

shell...@googlecode.com

unread,
Jun 15, 2010, 12:28:27 AM6/15/10
to shell...@googlegroups.com
Comment by raygarstasio:

You don't want to maintain individual user account for your users?
Seriously?! Please tell me you are not managing anything even remotely
important.

shell...@googlecode.com

unread,
Jul 7, 2010, 12:09:49 PM7/7/10
to shell...@googlegroups.com
Comment by r.ausserehl:

Damn man! The project is SOOOOOOOOO AWESEOME! MANY THX :))

shell...@googlecode.com

unread,
Jul 8, 2010, 8:51:29 AM7/8/10
to shell...@googlegroups.com
Comment by sandrofabbro:

Thanks

shell...@googlecode.com

unread,
Jul 27, 2010, 2:56:06 PM7/27/10
to shell...@googlegroups.com
Comment by pmorch:

Getting root login to work: In /etc/default/shellinabox, I changed

`SHELLINABOX_ARGS=--no-beep`
to
`SHELLINABOX_ARGS="--no-beep --service=/:SSH"`

And voila! Root login works!

shell...@googlecode.com

unread,
Aug 9, 2010, 6:16:13 AM8/9/10
to shell...@googlegroups.com
Comment by pbormida:

Installed on FreeBSD through ports, had to modify /usr/ports/GIDs and
/usr/ports/UIDs during "make install", but successfully started. Now
accessing it through web interface I get the login prompt, login with root,
but i get a "Login incorrect" reply. If I enable SSH using "-s /:SSH" and
try to login with root I get a session closed just after typing root+enter.
What have I done wrong or not done at all?

shell...@googlecode.com

unread,
Aug 9, 2010, 12:03:13 PM8/9/10
to shell...@googlegroups.com
Comment by zod...@gmail.com:

If you can log in as a regular user, but you cannot log in as "root", then
that is most likely a policy restriction somewhere else in your system. It
is unlikely to be an issue with ShellInABox per se.

Some Linux systems have the same problem and this can often be adjusted in
the PAM configuration files and/or in the configuration files for
the "login" program.

shell...@googlecode.com

unread,
Sep 2, 2010, 3:54:00 AM9/2/10
to shell...@googlegroups.com
Comment by ian.purton:

I'm running shell in a box as a daemon on debian.

How can I configure shell in a box to give me more rows and columns ?

Thanks.

shell...@googlecode.com

unread,
Sep 15, 2010, 7:40:20 PM9/15/10
to shell...@googlegroups.com
Comment by nihad.mujkanovic:

I got it to work within 2 minutes, and I am still amazed like a child. Very
well done. Thank you :-)
Nihad

shell...@googlecode.com

unread,
Sep 20, 2010, 12:16:14 PM9/20/10
to shell...@googlegroups.com
Comment by hemanth...@gmail.com:

After i type the login in name and hit enter i get "Session closed."
Connect prompt. Am i missing some thing?

shell...@googlecode.com

unread,
Sep 20, 2010, 12:23:22 PM9/20/10
to shell...@googlegroups.com
Comment by zod...@gmail.com:

Are you by chance running Fedora? If so, take a look at
[http://shellinabox.googlecode.com/svn/trunk/README.Fedora README.Fedora].
It describes some of the caveats that you might encounter with this
distribution.

shell...@googlecode.com

unread,
Sep 22, 2010, 7:30:05 AM9/22/10
to shell...@googlegroups.com
Comment by sjkeerthi:

If you guys facing any error on your browser after installing shellinabox
like
(Error 113 (net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH): Unknown error.) Just
follow the below instruction. I have tested this on FC12 / FC13 / Redhat5.4
/ CentOS 5.3

Finely after a long research I could able to success with https. Just
follow the below instruction you could up shellinabox with https.

The self sign could help us to solve the issue of

(Error 113 (net::ERR_SSL_VERSION_OR_CIPHER_MISMATCH): Unknown error.)

# openssl genrsa -des3 -out server.key 1024
# openssl req -new -key server.key -out server.csr
# cp server.key server.key.org
# openssl rsa -in server.key.org -out server.key
# openssl x509 -req -days 365 -in server.csr -signkey server.key -out
server.crt
# cat server.crt server.key > certificate.pem
# shellinabox

Then open the browser https://localhost:4200

Thanks,
Keerthi

shell...@googlecode.com

unread,
Sep 30, 2010, 6:47:44 PM9/30/10
to shell...@googlegroups.com
Comment by sgheeren:

@sjkeerthi: I tracked this down to openssl not being available during
install of the package on my system. Install openssl first, then
shellinabox.

Ideally, this should be a dependency

shell...@googlecode.com

unread,
Oct 14, 2010, 9:55:57 AM10/14/10
to shell...@googlegroups.com
Comment by m.feherpataky:

Kudos for the project. I love the speed. It leaves behind all other ajax
web terminal emulators in the dust.

Thank you

shell...@googlecode.com

unread,
Oct 26, 2010, 10:03:43 AM10/26/10
to shell...@googlegroups.com
Comment by nik.tettehlartey:

I agree with all the previous comments. Shellinabox is very, very good.

I would like to ask a couple of questions:
- Has anyone successfully ported shellinbox to centos 5.5 and got it to
work with https and certificates?
- If yes, how (give details please)?

Thanks in advance.

shell...@googlecode.com

unread,
Oct 29, 2010, 12:44:05 PM10/29/10
to shell...@googlegroups.com
Comment by sailorickm:

Hello, I have a few questions...

I was hoping to be able to access shellinabox from my Nokia N97 smartphone.
I installed the Ubuntu deb package on my Debian system. It segfaults, but
runs if I add --disable-ssl. I purged this and downloaded the latest source
from svn (version 2.10 (revision 239)) and built a deb package, but it
still only runs with --disable-ssl. I have the recommended libraries
installed.

So, with the daemon running, I can login from Firefox and it works fine.

When I connect from my cellphone and try to login, I see double characters
for everything I type, and the login fails with "Login incorrect". I don't
know anything about this browser. The Help/About says "BrowserNG/7.14".

I don't know how to get the right-mouse-button context menu on the cell
phone. I figure I need this to access the on-screen keyboard in order to
send ESC, ALT and CTRL key sequences. Perhaps the on-screen keyboard would
have to be turned on by an option to the daemon itself?

Any help with the above would be greatly appreciated!

Thanks,
Rick

shell...@googlecode.com

unread,
Oct 29, 2010, 12:49:07 PM10/29/10
to shell...@googlegroups.com
Comment by zod...@gmail.com:

If you always want the soft keyboard to be enabled, you could try finding
the line that reads "this.softKeyboard = false;" and changing it so that it
says "true" instead.

You most likely need to clear your cookies after doing this, as you
probably set cookies with the "false" value, when you previously opened the
page.

shell...@googlecode.com

unread,
Oct 29, 2010, 1:16:49 PM10/29/10
to shell...@googlegroups.com
Comment by sailorickm:

OK, that worked! I get the soft keyboard enabled in both in Firefox and the
phone browser.

On the phone, using the soft keyboard works in that I get single characters
and can login OK. However, I still get double characters typing directly
and only the soft keyboard works.

This is what it looks like:

$ ddaattee
-bash: ddaattee: command not found

Actually, I just found that if I hit backspace on the phone to remove the
extra characters, commands execute properly. I can even log in doing this.

It seems like the problem is with the phone's browser, but on the other
hand I don't get double characters when I enter into fields on other web
pages. Do you have any ideas about this?

shell...@googlecode.com

unread,
Oct 29, 2010, 1:25:37 PM10/29/10
to shell...@googlegroups.com
Comment by zod...@gmail.com:

Input events in Javascript are one of those things that are incredibly
poorly specified and every browser does its own thing. This is not a
problem when typing into input fields, as Javascript is rarely involved
with that. But it is a problem when writing a web application that needs to
receive individual keystrokes.

Unfortunately, without having access to the hardware, this will be pretty
much impossible for me to debug.

shell...@googlecode.com

unread,
Oct 29, 2010, 1:29:04 PM10/29/10
to shell...@googlegroups.com
Comment by sailorickm:

OK. After using it some more, I see that the double characters occur maybe
90% of the time.

I noticed (using the phone browser) that once the terminal fills and starts
to scroll, the soft keyboard disappears and doesn't come back. Any idea
about that? (It's OK on Firefox)

Maybe there's another browser I can install.

shell...@googlecode.com

unread,
Oct 29, 2010, 2:16:36 PM10/29/10
to shell...@googlegroups.com
Comment by sailorickm:

I installed 2 more browsers, Opera Mobile and Digia. I couldn't get Opera
to interact with shellinabox at all. It wouldn't send keystrokes even.
Digia behaves the same as the original browser above (including double
characters), except that I can get the soft keyboard back when it
disappears.

shell...@googlecode.com

unread,
Nov 5, 2010, 4:10:09 PM11/5/10
to shell...@googlegroups.com
Comment by jdcotton33:

Thanks for a great project.
I have a legacy application that can produces pdf files when printing. I
want to open the file in a new window correctly. The pass through print
feature treats them as text. Is there a way to do this correctly?

shell...@googlecode.com

unread,
Nov 5, 2010, 4:29:28 PM11/5/10
to shell...@googlegroups.com
Comment by zod...@gmail.com:

In principle, this should be doable. But there are some non-trivial
security issues that need to be considered.

Please file a feature request in the "issues" tab, so that I don't forget
about this requests.

Unfortunately, "real-life" has been impinging on my schedule recently. So,
it might be a while before I get to it.

shell...@googlecode.com

unread,
Nov 7, 2010, 8:23:03 PM11/7/10
to shell...@googlegroups.com
Comment by ryon77:

This thing is awesome- the speed is great compared to anything else I've
tried. One thing, though- I had to compile with AJAX_TIMEOUT set to 25 (vs.
45) so IE7 would not to timeout after 30 seconds of inactivity. I believe
IE7 is the only browser with that *special feature* ;)

shell...@googlecode.com

unread,
Nov 9, 2010, 5:20:45 AM11/9/10
to shell...@googlegroups.com
Comment by soos.zoltan:

I'm using the latest PPA version of shellinaboxd (2.10) on Ubuntu 10.10
server, it runs as a daemon. I'm accessing it via HTTPS from behind a
transparent proxy using Chromium 7 and Firefox 3.6.12. And both time out
after 20 seconds of inactivity. When used directly, that is with no proxy
in between, the timeout does not occur. Is this something a locally
compiled version with AJAX_TIMEOUT set to a lower than 20 value would fix?
If so, do you think the default could be set to a lower value or you could
modify the code in a way that this value would be a command line parameter?

Thanks.

Absolutely stunning piece of software, by the way.

shell...@googlecode.com

unread,
Nov 9, 2010, 10:58:15 AM11/9/10
to shell...@googlegroups.com
Comment by zod...@gmail.com:

I can definitely believe that a proxy has the ability to break connections
and force timeouts after a short amount of time. 20s sounds really short
though. I'd imagine that to cause problems with a lot of other services as
well.

But you could always try building your own version with a suitably adjusted
timeout value. Let us know what you find out.

I'd suggest you check out the source code from subversion, and then build
using the instructions in INSTALL.Debian.

shell...@googlecode.com

unread,
Nov 16, 2010, 9:57:57 AM11/16/10
to shell...@googlegroups.com
Comment by soos.zoltan:

As per your suggestion, I have built my own version with an AJAX_TIMEOUT
set to 15. Both the build and the install were flawless. And the custom
version works perfectly. So I can now conclude that my proxy hang issues
were caused by a low timeout value. Thanks.

shell...@googlecode.com

unread,
Jan 5, 2011, 4:26:41 AM1/5/11
to shell...@googlegroups.com
Comment by aitjcize:

This is a AWESOME project!!!
Thanks a lot!

shell...@googlecode.com

unread,
Jan 15, 2011, 11:54:42 PM1/15/11
to shell...@googlegroups.com
Comment by telehack...@gmail.com:

Agree with the others here, ShellInABox rocks and is the best web terminal
emulator out there.

One question - is it possible to make it not capture the Command key on
apple mac systems. I want to type command-T to make new browser tabs, but
shellinabox is stealing that char so the browser doesn't see it.

Thanks!

shell...@googlecode.com

unread,
Jan 25, 2011, 1:57:36 AM1/25/11
to shell...@googlegroups.com
Comment by skre...@gmail.com:

I'm having some issues with the iphone...it shrinks down to a single line
of input in some cases, and the full screen goes away. It *almost* works,
but seems to run off the rails at some point. Any suggestions/fixes?

shell...@googlecode.com

unread,
Feb 1, 2011, 5:14:30 PM2/1/11
to shell...@googlegroups.com
Comment by dcg99...@gmail.com:

I have shellinaboxd using the CGI option working great, unless I turn on
the SuSE firewall (version 11.2). When I do that the CGI sometimes creates
TWO shellinaboxd processes (I can see this with ps -ef) and it never
completes the call. If the firewall is off, it works perfectly every time.
And sometimes it creates just one like it should, and this works as
expected.

Looks to me like some sort of timing issue as if it is getting some kind of
failure and then re-launching the process. I am not a firewall expert,
however, so I don't know for sure...but I do have to have the firewall on
when this is deployed.

Any help would be greatly appreciated!

shell...@googlecode.com

unread,
Feb 1, 2011, 5:31:10 PM2/1/11
to shell...@googlegroups.com
Comment by dcg99...@gmail.com:

Never mind on the above...it turns out that there is a rule that allows for
a certain range of ports and when shellinaboxd using the CGI happens to be
in that range it was working. When not, failing.

shell...@googlecode.com

unread,
Feb 16, 2011, 12:43:37 PM2/16/11
to shell...@googlegroups.com
Comment by Stefan.P...@googlemail.com:

This project is awesome! Only thing that still troubles me is input of
international characters.
What encoding is shellinabox supposed to send/display? I run emacs on the
mac as a native cocoa gui and connect to it from within shellinabox and am
experiencing the following:

enter umlaut in gui -> see umlaut in emacsclient in shellinabox
enter umlaut in emacsclient in shellinabox -> see garbage in both

i am using the svn version, if i activate unicode support, i get

enter umlaut in emacsclient in shellinabox -> see umlaut in emacsclient but
garbage in gui
enter umlaut in gui -> see umlaut in gui but blanks in emacsclient

PS: I cannot use login on os x and only got shellinabox working by tweaking
pam
PPS: Did I say it's awesome?

shell...@googlecode.com

unread,
Feb 16, 2011, 1:40:24 PM2/16/11
to shell...@googlegroups.com
Comment by Stefan.P...@googlemail.com:

This function resolves the problem, needs to be called once per connection.
(Add to your .emacs)

(defun enter-utf-8 ()
(interactive)
(progn
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(prefer-coding-system 'utf-8)))

Reply all
Reply to author
Forward
0 new messages