Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: flashbios on May 28, 2010, 01:19:06 pm

Title: HOWTO: WEBMIN installation
Post by: flashbios on May 28, 2010, 01:19:06 pm
Ebox is great, but not everything can be done with Ebox yet, for example: if you want to attach 2 mirror-harddisks which contains already data, you can solve that very easy with Webmin.
Also there is still no FTP module, no LAMP support, etc.. if you install Webmin on your Ebox-server too, you can do a lot more until Ebox supports all the things you need.

So, this is a small HOWTO to install Webmin at your EBOX-server:

Login (as root) at your Ebox-server with a SSH-program like PUTTY (http://www.putty.org/) .
Check the newest version of Webmin here: www.webmin.com

Enter these commands in the shell:

cd /usr/local
mkdir webmin
cd webmin
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.510.tar.gz
tar xzvf webmin-1.510.tar.gz
cd webmin-1.510
sh setup.sh

You will be asked to answer some questions: root-user = 'admin'  and root-password = your admin password. For the rest of the questions: use the defaults.

Don't forget to open the TCP poort 10000 in your firewall. (internal or external connections, whatever you need to use).

Access to webmin:  https://ip-adres-of-your-eboxserver:10000

Maybe this HOWTO can be put in the HOWTO-section of this website ?

Warning: read also Thomas message here below: use Webmin with very great care !!
Title: Re: HOWTO: WEBMIN installation
Post by: wise_crypt on June 17, 2010, 01:19:57 pm
what do you mean ?
lamp is working so does ftp,,,  weird post  ???
in ubuntu just sudo apt-get install mysql-server && sudo apt-get install php << will get you a lamp server or if you like it to be manage by ebox you can sudo apt-get install ebox-webserver and for ftp just as simple as sudo apt-get install ebox-ftp. webmin ?
log in as root is not a wise thing to do dude
Title: Re: HOWTO: WEBMIN installation
Post by: thomas on June 17, 2010, 02:50:03 pm
Webmin is a great tool.
The problem is, that it overlaps ebox in many cases (samba, printers, network, firewall etc).
The good thing, is that if someone knows, what he is doing, it (webmin) can be a good tool, that "fills the gaps" (bootup scripts, cron jobs, grub manager and many more frontends for system internal)

So you may use it with very great care.
Title: Re: HOWTO: WEBMIN installation
Post by: gordoncameron on June 18, 2010, 12:07:51 am
If I was looking for a Webmin howto, I'd be looking for it over at the Webmin forums http://sourceforge.net/projects/webadmin/forums/forum/600155 (http://sourceforge.net/projects/webadmin/forums/forum/600155) rather than here.
Title: Re: HOWTO: WEBMIN installation
Post by: flashbios on June 18, 2010, 11:21:46 am
thomas: you are totally right  :)

This howto is made for the gaps, many Ebox-users would like some howto's specially
written for their Ebox-server. Not everybody is a Linux-expert, it's true most information can be found on for example the webmin-website: but it's handy if there are Ebox howto's available here ;-)



Title: Re: HOWTO: WEBMIN installation
Post by: dlbm on June 21, 2010, 05:21:46 pm
Hi, Im new in here... so before I can vote, I would recommend editting/adding the CONS of installing WEBMIN along with eBox. Its very important to make clear the CONS of having both systems installed and running. In my opinion it would be like having two persons editing a configuration file, one of them will override configurations made by the other, so I'm not sure, Ive never been a LAMP or FTP fan... I rather have php, apache2, mysql, sftpd, etc installed on my own from the debian repositories w/o a frontend gui since the configuration files are pretty simple to modify.

So lets say, that this guide is good at the momment, if your just looking for a guide to install webmin along with ebox indeed. "I need a guide to install Webmin, I got a guide to install Webmin", no questions asked.

(no flamming pls, its just my opinion )

My best regards,
DLBM
Title: Update for 'wget'
Post by: mikeg on June 22, 2010, 10:36:21 pm
The link for the wget step did not work for me. I was able to get the statementbelow to work and the rest works fine too.

wget http://sourceforge.net/projects/webadmin/files/webmin/1.510/webmin-1.510.tar.gz/download

Hope this is helpful to someone else.

mikeg
Title: Re: HOWTO: WEBMIN installation
Post by: thomas on June 24, 2010, 08:14:22 pm
Enter these commands in the shell:

cd /usr/local
mkdir webmin
cd webmin
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.510.tar.gz
tar xzvf webmin-1.510.tar.gz
cd webmin-1.510
sh setup.sh



A much easier intallation is with apt-get
Use the procedure as it appears in http://webmin.com/deb.html

Edit the /etc/apt/sources.list  file on your system and add the line :
Code: [Select]
deb http://download.webmin.com/download/repository sarge contrib
You should also fetch and install the GPG key with which the repository is signed, with the commands :
Code: [Select]
cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc

You will now be able to install web with the commands :
Code: [Select]
apt-get update
apt-get install webmin


DON'T FORGET that YOU MUST USE WEBMIN WITH VERY GREAT CARE, as it overlaps with eBox
Title: Re: HOWTO: WEBMIN installation
Post by: thomas on June 24, 2010, 08:17:58 pm
As for the question
"Is this HOW-TO useful"

I must say that ALL how-to are useful

We must thank all the people that try and make them (even if we don't need them personally)
Title: Re: HOWTO: WEBMIN installation
Post by: DWAM on August 16, 2011, 12:41:25 pm
Hi!

I recently tried the  apt-get webmin install as explained by Thomas on a 2.0.22 zentyal box.

The install went to the end but notified something I couldn't interpret (about ureadahead needing to be modified after next reboot... I didn't copy the alert, sorry)

Then I modified the port used by webmin (from 10000 to 9999, not to overlap with asterisk rtp ports) and added a "service" in Zentyal using this port and finally set the firewall to let me use it ...

After this Webmin was working fine but I started to have problems with zentyal services not working anymore (roundcube or usercorner for example...)

Because of the alert, I tried to reboot the system and then Webmin stopped working...

Then I decided to uninstall it (apt-get remove...) and rebooted again the server... Zentyal then worked properly again...

Is there a better way to install webmin over Zentyal ?
I really need it to "monitor" more easily the server.

TIA..
Title: Re: HOWTO: WEBMIN installation
Post by: christian on August 16, 2011, 05:12:27 pm
Is it clear to you that almost all Zentyal feature could be covered managing applications and components having, for most of then, module in Webmin?

I mean: if Webmin is mandatory and conflicting with Zentyal, why do you want to run both in parallel?  :o

I know I'm a bit provocative here  :P but goal it to make you reacting: what do you have with Zentyal that is missing in Webmin?
- If you know LDAP, you can manage accounts (users) and groups using Webmin (and do much more that Zentyal does)
- you can manage Squid, Squidguard, firewall, DNS, DHCP, Postfix, Dovecot, Spamassassin, Samba... well, almost everything with much more parameters and flexibility assuming you understand the very detail of those products and applications.

On the other hand, if you don't know the very detail or don't want to bother with hundreds of parameters and if Zentyal scope fits your needs, why would you take the risk to break something while using Webmin in parallel of Zentyal. Here again I'm a bit provocative but not that much  :-[
I'm not saying Zentyal is perfect  ;) but feel that Zentyal and Webmin are not on the same shelf and not targeting same kind of user or same kind of deployment. Trying to have both at the same time is somewhat strange to me (yes, I do understand that Webmin brings some added value, I'm using it too.... but not on my Zentyal server.... anymore :D
Title: Re: HOWTO: WEBMIN installation
Post by: DWAM on August 16, 2011, 06:52:55 pm
I mean: if Webmin is mandatory and conflicting with Zentyal, why do you want to run both in parallel?  :o

On the other hand, if you don't know the very detail or don't want to bother with hundreds of parameters and if Zentyal scope fits your needs, why would you take the risk to break something while using Webmin in parallel of Zentyal. Here again I'm a bit provocative but not that much  :-[
I'm not saying Zentyal is perfect  ;) but feel that Zentyal and Webmin are not on the same shelf and not targeting same kind of user or same kind of deployment. Trying to have both at the same time is somewhat strange to me (yes, I do understand that Webmin brings some added value, I'm using it too.... but not on my Zentyal server.... anymore :D

Hi Christian!

I'm new to Zentyal... and I perfectly understand that Webmin and Zentyal may conflict. My goal in installing webmin was only to "use" webmin to see/check what Zentyal does "auto-magically". I was not going to modify the config thru webmin.

I just would like to know if it is possible to run webmin safely on a zentyal box. Or not... I guess not, tho this tread is labelled "HOWTO: WEBMIN installation" !!!!

I don't see the point in writing an HOWTO for things that SHOULDN'T be done...
Title: Re: HOWTO: WEBMIN installation
Post by: nicolasdiogo on August 16, 2011, 07:10:01 pm
you could install webmin on the same box by using webmin installation instruction and openning the port 10000 through zentyal.

but if you use any webmin module to modify something that zentyal does - you are on your own..
Title: Re: HOWTO: WEBMIN installation: can't login ? -> SOLVED !
Post by: flashbios on October 05, 2011, 12:45:21 am
Just installed Zentyal 2.2.1 and Webmin.   (used webmin in the past with Ebox, no problems)

Add the service Webmin and opened the port 10000 for it too.
I can go to https://localhost:100000 but if I want to login with the administrator account (root doesn't work, so the sudo account doesn't): it failed...

I solved this in this way:

-> login in a shell
-> change the webmin password with:
     sudo perl /usr/share/webmin/changepass.pl /etc/webmin username newpassword

After that, a succesfully login in webmin !

BUT: be carefully with all the webmin options !!!   



Title: Re: HOWTO: WEBMIN installation
Post by: mithamopolycap on October 15, 2011, 09:26:31 am
Thanks for that info flashbios!!!
Title: Re: HOWTO: WEBMIN installation: can't login ? -> SOLVED !
Post by: Marcus on October 18, 2011, 03:12:49 pm
Hello,

I can go to https://localhost:10000 but if I want to login with the administrator account (root doesn't work, so the sudo account doesn't): it failed...

Are you sure that your user(s) is(are) in the sudoer group?

Otherwise I didn't had that problem on my last Zentyal installation...

Best,

Marcus