Difference between revisions of "Installation on Ubuntu"

From Linux-VServer

Jump to: navigation, search
(usefull Links)
(added Alternate Method)
Line 49: Line 49:
 
* http://oldwiki.linux-vserver.org/TestScripts
 
* http://oldwiki.linux-vserver.org/TestScripts
  
==== Useful Links ====
+
=== Alternate Method ===
 +
 
 +
This is based on [http://oldwiki.linux-vserver.org/UbuntuVserverHowTo UbuntuVserverHowTo] on the old wiki, updated with new links that work as of December 2006.
 +
 
 +
apt-get install linux-source-2.6.17  kernel-package
 +
cd /usr/src
 +
tar xjvf linux-source-2.6.17.tar.bz2
 +
cd linux-source-2.6.17/
 +
wget http://vserver.13thfloor.at/Experimental/OLD-2.0/patch-2.6.17.13-vs2.0.2.1.diff
 +
patch -p1 < *diff
 +
...
 +
cp /boot/config-2.6.17-10-generic .config
 +
 
 +
== Useful Links ==
  
 
* http://www2.uni-klu.ac.at/support/VServer
 
* http://www2.uni-klu.ac.at/support/VServer

Revision as of 21:14, 30 December 2006

Contents

Vserver Kernel on Ubuntu Dapper with grsecurity

Prerequisites

  • 32 Bit Ubuntu Dapper.
  • installed packages:
apt-get install build-essential gcc make g++ libncurses5-dev

Howto Devel 2.6.17.14-vs2.0.2.1-grsec2.1.9

Get the Kernel

cd /usr/src/ && mkdir kernel && cd kernel
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.14.tar.bz2
wget http://people.linux-vserver.org/~harry/patch-2.6.17.14-vs2.0.2.1-grsec2.1.9.diff
tar xfjv linux-2.6.17.14.tar.bz2
cd linux-2.6.17.14

Patch the Kernel

cat ../patch-2.6.17.14-vs2.0.2.1-grsec2.1.9.diff | patch -p1
cp /boot/vmlinuz-2.6.15-26-server
make oldconfig
make menuconfig
make

Make the Kernel

make install
make modules_install
mkinitramfs -o /boot/initrd.img-2.6.17.14-grsec2.1.9-vs2.0.2.1 2.6.17.14-grsec2.1.9-vs2.0.2.1
vi /boot/grub/menu.lst

The Boot entry should look like this

title           Ubuntu, 2.6.17.14-vs2.0.2.1-grsec2.1.9
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.17.14-grsec2.1.9-vs2.0.2.1 root=/dev/sda1 ro quiet splash
initrd          /boot/initrd.img-2.6.17.14-grsec2.1.9-vs2.0.2.1
savedefault
boot

Test the Kernel

  • boot Kernel
  • uname -r should show
2.6.17.14-grsec2.1.9-vs2.0.2.1

Alternate Method

This is based on UbuntuVserverHowTo on the old wiki, updated with new links that work as of December 2006.

apt-get install linux-source-2.6.17  kernel-package
cd /usr/src
tar xjvf linux-source-2.6.17.tar.bz2
cd linux-source-2.6.17/
wget http://vserver.13thfloor.at/Experimental/OLD-2.0/patch-2.6.17.13-vs2.0.2.1.diff
patch -p1 < *diff

...

cp /boot/config-2.6.17-10-generic .config

Useful Links

Personal tools