Hi all
I have played a bit on a contrib which can help some of us to manage our beautiful server
smeserver-shellinaboxThe 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
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
for sme8
wget http://mirror.de-labrusse.fr/Sme-Server/shellinabox/smeserver-shellinabox-0.0.6-2.el5.sme.noarch.rpm
for sme9
wget http://mirror.de-labrusse.fr/Sme-Server/shellinabox/smeserver-shellinabox-0.0.6-2.el6.sme.noarch.rpm
then
yum install smeserver-shellinabox-0.0.6-2.el6.sme.noarch.rpm --enablerepo=epel
signal-event console-save
or
signal-event shellinaboxd
now you can use the contrib in the server-manager or with the url
https://sme-host_or_ip/shellthis 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
config setprop shellinaboxd PublicAccess global
signal-event shellinaboxd