The Perfect Server - Ubuntu 10.10 [ISPConfig 3] - Page 3

4 Get root Privileges

After the reboot you can login with your previously created username (e.g. administrator). Because we must run all the steps from this tutorial with root privileges, we can either prepend all commands in this tutorial with the string sudo, or we become root right now by typing

sudo su

(You can as well enable the root login by running

sudo passwd root

and giving root a password. You can then directly log in as root, but this is frowned upon by the Ubuntu developers and community for various reasons. See


5 Install The SSH Server (Optional)

If you did not install the OpenSSH server during the system installation, you can do it now:

aptitude install ssh openssh-server

From now on you can use an SSH client such as PuTTY and connect from your workstation to your Ubuntu 10.10 server and follow the remaining steps from this tutorial.


6 Install vim-nox (Optional)

I'll use vi as my text editor in this tutorial. The default vi program has some strange behaviour on Ubuntu and Debian; to fix this, we install vim-nox:

aptitude install vim-nox

(You don't have to do this if you use a different text editor such as joe or nano.)


7 Configure The Network

Because the Ubuntu installer has configured our system to get its network settings via DHCP, we have to change that now because a server should have a static IP address. Edit /etc/network/interfaces and adjust it to your needs (in this example setup I will use the IP address

vi /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static

Then restart your network:

/etc/init.d/networking restart

Then edit /etc/hosts. Make it look like this:

vi /etc/hosts       localhost.localdomain   localhost     server1

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Now run

echo > /etc/hostname
/etc/init.d/hostname restart

Afterwards, run

hostname -f

Both should show now.


8 Edit /etc/apt/sources.list And Update Your Linux Installation

Edit /etc/apt/sources.list. Comment out or remove the installation CD from the file and make sure that the universe and multiverse repositories are enabled. It should look like this:

vi /etc/apt/sources.list

# deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted

#deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
# See for how to upgrade to
# newer versions of the distribution.

deb maverick main restricted
deb-src maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb maverick-updates main restricted
deb-src maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb maverick universe
deb-src maverick universe
deb maverick-updates universe
deb-src maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb maverick multiverse
deb-src maverick multiverse
deb maverick-updates multiverse
deb-src maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb maverick-backports main restricted universe multiverse
# deb-src maverick-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb maverick partner
# deb-src maverick partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb maverick main
# deb-src maverick main

deb maverick-security main restricted
deb-src maverick-security main restricted
deb maverick-security universe
deb-src maverick-security universe
deb maverick-security multiverse
deb-src maverick-security multiverse

Then run

aptitude update

to update the apt package database and

aptitude safe-upgrade

to install the latest updates (if there are any). If you see that a new kernel gets installed as part of the updates, you should reboot the system afterwards:



9 Change The Default Shell

/bin/sh is a symlink to /bin/dash, however we need /bin/bash, not /bin/dash. Therefore we do this:

dpkg-reconfigure dash

Install dash as /bin/sh? <-- No

If you don't do this, the ISPConfig installation will fail.


10 Disable AppArmor

AppArmor is a security extension (similar to SELinux) that should provide extended security. In my opinion you don't need it to configure a secure system, and it usually causes more problems than advantages (think of it after you have done a week of trouble-shooting because some service wasn't working as expected, and then you find out that everything was ok, only AppArmor was causing the problem). Therefore I disable it (this is a must if you want to install ISPConfig later on).

We can disable it like this:

/etc/init.d/apparmor stop
update-rc.d -f apparmor remove
aptitude remove apparmor apparmor-utils


11 Synchronize the System Clock

It is a good idea to synchronize the system clock with an NTP (network time protocol) server over the Internet. Simply run

aptitude install ntp ntpdate

and your system time will always be in sync.

Share this page:

32 Comment(s)

Add comment


From: bibe at: 2010-10-13 10:30:36

Hi, and thanks for the well-detailed tutorial.

Just one (trivial?) question: is aptitude installed in an Ubuntu 10.10 server default install [I found that there was no aptitude on a 10.10-rc desktop default install]. If so, before the first aptitude command you should enter an

apt-get install aptitude

Thanks again, and keep up the good work!

From: Anonymous at: 2011-03-17 19:51:01

apt(APTitude)-get you can´t install a package with itself.

From: vinyll at: 2011-05-30 22:26:12

yes, you can install aptitude.

From: at: 2010-10-17 05:13:08

~(Oh gee... sure would have been nice to experience the professional web site "before" experiencing the "professional" tutorial...) 

From: Anonymous at: 2011-07-29 14:00:03

Google chrome and Safari use the same layout engine

From: Kevin at: 2010-10-22 14:50:34

When you are installing the sever from disc you can manual config the IP address and gateway plus add the nameservers.

If you are not sure how to do that just wait till it find the dhcp setting the yuse the tab button to go back.

Or just unplug the network cable and you will get the option screen come up

From: George at: 2010-10-27 07:47:25

Yeah! I have the exact same problem, and i cant figure it out??

From: Alex at: 2010-11-01 07:49:47

Hi, I had same problem at first so had a look around and realised that the gateway and network didn't match. I had to change mine to and respectively. Hope this helps

From: Anonymous at: 2011-01-07 09:00:30

Hi. first you should can delete the edit line data. after write new ..



From: Stefan J. at: 2011-02-09 01:40:46

I have the exact same problem, and i cant figure it out??I set static , I change DNS , ip address , mask , gateway , and I still don't have internet connection . Any sugestion ? 

From: Anonymous at: 2011-02-13 05:10:52

i have the same problem...any luck?

From: Carlos R. Moreira at: 2011-04-04 22:51:52

I had the same problem here...

What i did was returning the network config to dhcp, run aptitude update and made a safe-upgrade, reboot, uninstalled apparmor then reconfigured the network to static...

All working now, hope it helps...

From: clay at: 2010-10-16 23:34:55

after I rebooted I no longer have internet ???

From: Anonymous at: 2011-02-08 00:22:50

See is no longer a valid link.

From: Lukeup at: 2011-04-29 22:32:12

Hi, I'm a noob.  I've been following this tutorial to get a ubuntu server up and running.  I got my eth0 setup for a static IP fine but I had problems with the - sudo aptitude update.  Since I was able to ssh into the server I knew the interface worked.  I was receiving a 'Temporary failure resolving ''' error.

Just wanted to make a note that you should check your - resolv.conf to be sure your DNS nameserver is setup right.  The command is - sudo vi /etc/resolv.conf.  I set this to my gateway IP.  You can google to find more info as I know you can add several nameservers.

The only reason I started getting this error is because I had to switch networks.  Hope this helps someone.  Thanks, Luke.

From: Anonymous at: 2010-11-15 05:34:19

Use sudo.

From: Anonymous at: 2011-01-23 23:20:10

18 Install Jailkit

Jailkit is needed only if you want to chroot SSH users. It can be installed as follows (important: Jailkit must be installed before ISPConfig - it cannot be installed afterwards!):

aptitude install build-essential autoconf automake1.9 libtool flex bison debhelper

cd /tmp
tar xvfz jailkit-2.12.tar.gz
cd jailkit-2.12
./debian/rules binary
cd ..
dpkg -i jailkit_2.12-1_*.deb
rm -rf jailkit-2.12*

Can someone tell me what  './debian/rules binary' is suppose to do here? I type it in and it says, its not a directory.  I'm stuck here. :(

From: Anonymous at: 2011-02-28 01:23:56

same problem here. bash returns "No such file or directory"

From: Adam at: 2010-10-29 07:55:24


echo 1 > /etc/pure-ftpd/conf/TLS


 bash: /etc/pure-ftpd/conf/TLS: Permission denied

From: Gerry at: 2011-04-04 11:15:59

echo1 > /etc/pure-ftd/conf/TLS

the respose is then:

echo1: command not found...





From: André at: 2010-12-20 22:29:33

Jailkit has released anew version 2.13 and with slightly changes to step 18 you can install latest version of Jailkit.

cd /tmp
tar xvfz jailkit-2.13.tar.gz
cd jailkit-2.13
./debian/rules binary
cd ..
dpkg -i ../jailkit_2.13-1_*.deb
rm -rf jailkit-2.13*

 Just a little update and I hope this is of any help for whom want to follow this great tutorial!

Cheers All

From: at: 2011-01-03 05:04:45

Just a quick note:

dpkg -i ../jailkit_2.13-1_*.deb

 should be

dpkg -i jailkit_2.13-1_*.deb

From: vwpete at: 2011-01-19 19:29:55

phpmyadmin wont work as you need to ad system link


/var/www/[new alias] pointing to the directory /usr/share/phpmyadmin


Great work bytheway


From: Freiheit at: 2011-03-12 02:48:58


Could someone tell me wich packages I don't install if I don't want an email server?

 Would it cause problems to ISPconfig?



From: at: 2011-02-12 16:03:38

I have setup my server based on this tutorial but Jailkit is not working. When I add shell user to some site and then login via ssh as that user, the user can browse all system. Outputs are:

 tail -f /var/log/auth.log 

 Feb 12 16:58:43 www sshd[4370]: Accepted password for bojana from port 2128 ssh2 Feb 12 16:58:43 www sshd[4370]: pam_unix(sshd:session): session opened for user bojana by (uid=0) Feb 12 16:58:44 www sshd[4370]: pam_unix(sshd:session): session closed for user bojana




 /etc/init.d/jailkit restart

 Stopping jailkit: jk_socketd/usr/sbin/jk_socketd: no process found


Starting jailkit: jk_socketdversion 2.13, no sockets specified in configfile /etc/jailkit/jk_socketd.ini or on commandline, nothing to do, exiting...


Please can you help me solve this.


From: Anonymous at: 2011-04-07 17:50:54


Did anyone manage to fix this issue? Am having one hell of a time fixing it

From: at: 2011-06-24 19:17:56

I'm seeing the same thing (re: jailkit socket config file error on start). anyone? falko?

From: Carlos Paulino at: 2011-03-17 05:15:24

After following this guide I can not log into ISPCONFIG3.

I tried reinstalling, changing the password directly via phpmyadmin, but nothing seems to work.

FYI: The installation didn't give me any errors.

I get the following message.


  1. Error

    Username or Password wrong.1

From: Tommy Nefcy at: 2011-03-28 20:27:18

cd /etc/apache2/conf.d/
ln -s ../../squirrelmail/apache.conf squirrelmail.conf
/etc/init.d/apache2 reload

I used the above instructions as detailed in 22.2 Squirrelmail above. When I attempt to access the browser attempts to download a file called 'squirrelmail' to my local hd. The file is a copy of the /usr/share/squirrelmail/index.php file.

Any suggestions on how to correct this?


From: MatrixDiaz at: 2012-03-10 15:34:17

I have the same problem, any sugestion to solve this???


From: Alberto at: 2011-04-01 21:20:38

Hello there!
I always post about problems but today I am happy to say that this manual worked perfect for me!
at once!

I am testing it in my server at home Ubuntu 10.10 ( btw I don't have a static IP and the installation worked perfect)

I am system administrator and at work I use CentOs and Ubuntu Server in few different servers.

I have to say that this is exactly what I was looking for.
Thank you!

From: Swiss420 at: 2011-04-05 05:56:13

When your Brain is experiencing a lack of activity is here to jump start it.