Running A File- And Print-Server With eBox On Ubuntu 8.04 Server

Version 1.0
Author: Falko Timme

This article shows how to run a file- and print-server for small and medium enterprises (SME) on one single Ubuntu 8.04 server. It is very easy to set up, and management is done with an easy-to-use web interface called eBox so once the system is set up, you can forget about the command line. eBox was developed to administrate advanced services for corporate networks.

This document comes without warranty of any kind! I want to say that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!


1 Preliminary Note

I assume you have already set up a basic Ubuntu 8.04 server. You can set up your system as described on the first three pages (chapters 1 - 10) of this tutorial: The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server).

I use as the IP address and as the hostname of my Ubuntu server in this tutorial. If your Ubuntu system does not have a static IP address you should now change its network configuration as shown in chapter 7 of the above tutorial.

Also make sure that you change the default shell and disable AppArmor, as described in chapters 9 and 10.


2 Install eBox

There are Ubuntu packages available for eBox. To install them, we must edit our /etc/apt/sources.list first:

vi /etc/apt/sources.list 

Add the following line to your existing sources.list:

deb hardy main

Then update your package database:

apt-get update

Afterwards we can install eBox with all needed modules with one single command:

apt-get install "^ebox-.*"

You will be asked a few questions. Most of the time you can simply accept the default values:

Administrator password: <-- somepasswd
Confirm password: <-- somepasswd

LDAP server Uniform Resource Identifier: <-- ldapi:///

Distinguished name of the search base: <-- dc=example,dc=net

LDAP version to use: <-- 3

Make local root Database admin: <-- Yes

Does the LDAP database require login? <-- No

LDAP account for root: <-- cn=manager,dc=example,dc=net

LDAP root account password: <-- [empty]

Create directories for web-based administration? <-- No

General type of mail configuration: <-- Internet Site

System mail name: <--

SSL certificate required <-- Ok

eBox administrator password: <-- somepasswd
Confirm password: <-- somepasswd

eBox HTTPS port: <-- 443


3 Logging In To eBox

Now that eBox is installed, open your browser and go to The login screen appears. Enter the eBox password that you've created in the previous step and log in:

After the login, you'll see the eBox status page (Summary):


4 Enabling/Disabling Modules

Now we go to Module Status...

... and enable the modules that we need for a file- and print-server:

  • users and groups
  • network
  • file sharing
  • printers
  • software
  • logs
  • ntp

Whenever you click on a checkbox to enable a module, you will see something like this:

Click on Accept to continue.

In almost all cases when you change a setting, you will see the red Save changes rectangle in the upper right corner afterwards. Click on it (you don't have to click on it after each module you've enabled, you can do this after you've enabled all desired modules - eBox remembers all the changes and does all the configuration in one turn):

After you have clicked on the red rectangle, another screen comes up telling you to save the configuration; click on Save:

eBox is now performing the necessary configuration changes:

Share this page:

Suggested articles

8 Comment(s)

Add comment



If you did something wrong and/or would like to change some settings, you need to do the following for complete uninstall (don't need "sudo" if logged in as root):

sudo apt-get remove --purge "^ebox-.*"
sudo apt-get remove --purge libebox

Also see:

By: Jim Robinson

Hi Falko,

I believe a comment needs to be added at the end of page 2 about changing the port to eg 444 instead 443 when running a web/intranet server from the same server. Apache2 uses 443.

Best Wishes

Jim R

By: Anonymous

Had problems installing ebox on Ubuntu 8.04.2 LTS. (Linux 2.6.24-24-server #1 SMP i686 GNU/Linux) Please post fix for this here. Clamav already installed.
[email protected]:~$ sudo apt-get install "^ebox-.*"
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting ebox-openvpn for regex '^ebox-.*'
Note, selecting ebox-ca for regex '^ebox-.*'
Note, selecting ebox-network for regex '^ebox-.*'
Note, selecting ebox-dhcp for regex '^ebox-.*'
Note, selecting ebox-mailfilter for regex '^ebox-.*'
Note, selecting ebox-jabber for regex '^ebox-.*'
Note, selecting ebox-webserver for regex '^ebox-.*'
Note, selecting ebox-egroupware for regex '^ebox-.*'
Note, selecting ebox-mail for regex '^ebox-.*'
Note, selecting ebox-dns for regex '^ebox-.*'
Note, selecting ebox-trafficshaping for regex '^ebox-.*'
Note, selecting ebox-ntp for regex '^ebox-.*'
Note, selecting ebox-software for regex '^ebox-.*'
Note, selecting ebox-usersandgroups for regex '^ebox-.*'
Note, selecting ebox-samba for regex '^ebox-.*'
Note, selecting ebox-objects for regex '^ebox-.*'
Note, selecting ebox-squid for regex '^ebox-.*'
Note, selecting ebox-printers for regex '^ebox-.*'
Note, selecting ebox-services for regex '^ebox-.*'
Note, selecting ebox-firewall for regex '^ebox-.*'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  ebox-mailfilter: Depends: clamav (< 0.94) but 0.94.dfsg.2-1ubuntu0.3~hardy4 is to be installed
                   Depends: clamav-daemon (< 0.94) but 0.94.dfsg.2-1ubuntu0.3~hardy4 is to be installed
                   Depends: clamav-freshclam (< 0.94) but 0.94.dfsg.2-1ubuntu0.3~hardy4 is to be installed
E: Broken packages

By: Anonymous

Please add this MODS as fix for my problem

STEP 1: sudo vim /etc/apt/sources.list

STEP 2: change entry from "deb hardy main" 

to "deb hardy main"

STEP 3: sudo apt-get update

STEP 4: apt-get install "^ebox-.*" 



Where do you guys get firefox or any other browser?

 8.04 server does not come with firefox that I can find, and when I download it and install it it gives off an error of some kind which I cannot remember, but that is immaterial...Falco just kicked firefox into gear and I see no way...I even installed kde and xwindows for a graphical environment, and still firefox won't run.

By: Anonymous

by the time you get to this stage you should be using a different computer to log in to the server. the server edition of ubuntu doesn't include a gui for the simple fact that it is a server & not a desktop machine. you can even disconnect the keyboard & monitor from the server box now. use the terminal on another linux machine or putty for windows to log in remotely, or your favourite web browser to access the server's web interface.

By: Jamie Strandboge

I noticed that this tutorial recommends to disable all of AppArmor. Unless you have a very specific need to do so, this is not recommended. In particular, there have been vulnerabilities in CUPS that the apparmor profile proactively protected against on systems that did not apply the security updates in a timely manner. The apparmor profiles shipped in Ubuntu are designed to work with the default installation. If a particular profile is causing you trouble, please disable the profile or put it in complain mode, and leave the other profiles that are not causing problems to do their jobs. Better yet, file a bug. :) See my blog entry at for details.

By: mediafire search

great article, thanks for sharing.