Obsolete Releases > SME 8.x Contribs

Smeserver-shellinabox : Need tests

(1/1)

stephdl:
Hi all

I have played a bit on a contrib which can help some of us to manage our beautiful server

smeserver-shellinabox

The purpose is to have in the server-manager an ajax web based emulator instead to use putty or a terminal. The RPM comes from epel...This contribs is done either for sme8 or sme9, choose the correct version for the rpm and the repository


--- Code: ---For SME 8.x,

/sbin/e-smith/db yum_repositories set epel repository \
Name 'Epel - EL5' \
BaseUrl 'http://download.fedoraproject.org/pub/epel/5/$basearch' \
MirrorList 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch' \
EnableGroups no \
GPGCheck yes \
GPGKey http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL \
Visible no \
status disabled

For SME 9.x,

/sbin/e-smith/db yum_repositories set epel repository \
Name 'Epel - EL6' \
BaseUrl 'http://download.fedoraproject.org/pub/epel/6/$basearch' \
MirrorList 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch' \
EnableGroups no \
GPGCheck yes \
GPGKey http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL \
Visible no \
status disabled

After adding it to the database updating the configuration file is required by issueing:

signal-event yum-modify
--- End code ---

for sme8

--- Code: ---wget http://mirror.de-labrusse.fr/Sme-Server/shellinabox/smeserver-shellinabox-0.0.6-2.el5.sme.noarch.rpm
--- End code ---

for sme9

--- Code: ---wget http://mirror.de-labrusse.fr/Sme-Server/shellinabox/smeserver-shellinabox-0.0.6-2.el6.sme.noarch.rpm
--- End code ---

then


--- Code: ---yum install smeserver-shellinabox-0.0.6-2.el6.sme.noarch.rpm --enablerepo=epel
signal-event console-save
--- End code ---
or

--- Code: ---signal-event shellinaboxd
--- End code ---

now you can use the contrib in the server-manager or with the url https://sme-host_or_ip/shell

this is the default DB value

# config show shellinaboxd 
shellinaboxd=service
    FixedIP=                      #You can precise which IP can connect (set PublicAccess to IP)
    Name=shell                   #You can change this folder if you want
    PublicAccess=local         #local=localnetwork,global=internet,IP=one IP allowed,none=no access
    ShellUsers=                   #SME users allowed to use shellinabox, use coma to separate users user1,user2,user3
    TcpPort=1870                #You can change the port if you want
    WebAuth=disabled          #Force or not the apache authentication : enabled/disabled
    status=enabled              #enabled or disabled



* Admin or ShellUsers are real users of server-manager with their credentials.
* HTTPS is always forced.
* The Apache authentication is only asked if the PublicAccess  is not set to local, you have to authenticate throught apache with admin or using ShellUsers.
* If you want you can force the apache authentication with the DB WebAuth.

This contribs is tested with chrome and IE, it seems that with Firefox you can have issues with certain characters, especially if your keyboard is not  in English...Think to test the right clic, you will find other options.

for example

--- Code: ---config setprop shellinaboxd PublicAccess global
signal-event shellinaboxd
--- End code ---

stephdl:
released in my repository, both for sme8 and sme9 :  http://wiki.contribs.org/Shellinabox

idp_qbn:
stephdl
I have tried it on SME9, very bare VM, using Chrome from a Windows7 PC.

Seems to work very well - it evens runs "mc" which is my favourite management tool and editor.

Next I will try it on something with a few more contribs loaded.

Thank you. :smile:

Ian

stephdl:
Thanks for your report ian. The purpose is to give easy the management for people with few skill. Obviously when you start to speak to a window man, Hey guy, you have  to use putty and ssh for installing a software, it is not comfortable.

This is my first step work, give the ability to install easily a software from the server-manager.
The second step I would do, it is a full software manager for installing contribs, but It is not easy :)

Navigation

[0] Message Index

Go to full version