Zentyal Server is an open source Linux small business server, that can act as a Gateway, Infrastructure Manager, Unified Threat Manager, Office Server, Unified Communication Server or a combination of the above.
I am performing this setup on a minimal virtual machine installation of Ubuntu Server 14.04. At the time of writing Zentyal 3.5 is the most current Zentyal release.
First make sure that repositories and software are up to date:
sudo apt-get update
sudo apt-get upgrade
Add the Zentyal 3.5 repository to /etc/apt/sources.list:
echo "deb http://archive.zentyal.org/zentyal 3.5 main extra" | sudo tee -a /etc/apt/sources.list
Import public keys for Zentyal 3.5:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 10E239FF
wget -q http://keys.zentyal.org/zentyal-3.5-archive.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install zentyal
- When prompted enter a password for the MySQL root user.
- Confirm port 443 as the Zentyal https port.
From here we simply setup Zentyal using the web-gui. Open Firefox (the only officially supported browser) and enter the url for your Zentyal install: https://zentyal-server-ip.
Confirm the security exception in Firefox and then log in to Zentyal using your Ubuntu Server credentials:
Installing software or making system changes from the command line can be a great time saver. Editing the repositories list though has always been something that I have done manually – either opening /etc/apt/sources.list with nano or making the necessary changes via the GUI.
Today, for example, I wanted to install Skype in Ubuntu 11.4 which meant enabling the “partner” repository. In /etc/apt/sources.list this would mean manually removing the # from the following line:
# deb http://archive.canonical.com/ubuntu natty partner
With a bit of searching though I found a solution that can be adapted to enable any of the existing entries in sources.list.
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo sed -i "/^# $STOP.*$REPO/ s/^# //" /etc/apt/sources.list
The first command simply makes a backup copy of your sources.list file.
In the second line we define the parameter STOP as “deb ” so that we will only edit deb repositories (and not deb-src repositories which are not needed to install Skype).
The third line defines the REPO parameter which in this case contains a character string that is unique to the ubuntu natty partner repository.
The last line uses the sed command to remove the # according to the parameters that we have set.
This script gives a great and easily customizable framework to work from as STOP will either be “deb ” or “deb-src” and REPO will always be something unique to the repository to be enabled.
Kudos to Franklin52 on the The Unix and Linux Forums for the script.