Koozali.org: home of the SME Server

Smeserver-shellinabox : Need tests

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Smeserver-shellinabox : Need tests
« on: June 29, 2014, 12:10:33 AM »
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: [Select]
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
Code: [Select]
wget http://mirror.de-labrusse.fr/Sme-Server/shellinabox/smeserver-shellinabox-0.0.6-2.el5.sme.noarch.rpm
for sme9
Code: [Select]
wget http://mirror.de-labrusse.fr/Sme-Server/shellinabox/smeserver-shellinabox-0.0.6-2.el6.sme.noarch.rpm
then

Code: [Select]
yum install smeserver-shellinabox-0.0.6-2.el6.sme.noarch.rpm --enablerepo=epel
signal-event console-save
or
Code: [Select]
signal-event shellinaboxd
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: [Select]
config setprop shellinaboxd PublicAccess global
signal-event shellinaboxd
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Smeserver-shellinabox : Need tests
« Reply #1 on: August 03, 2014, 07:32:56 PM »
released in my repository, both for sme8 and sme9 :  http://wiki.contribs.org/Shellinabox
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline idp_qbn

  • *****
  • 347
  • +0/-0
Re: Smeserver-shellinabox : Need tests
« Reply #2 on: August 04, 2014, 01:47:41 AM »
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
___________________
Sydney, NSW, Australia

Offline stephdl

  • *
  • 1,523
  • +0/-0
    • Linux et Geekeries
Re: Smeserver-shellinabox : Need tests
« Reply #3 on: August 04, 2014, 10:33:03 AM »
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 :)
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!