sudo apt-get install build-essential git
sudo apt-get build-dep linux-image-$(uname -r) libncurses5-dev
mkdir ~/dev; cd ~/dev
tar xJf linux-3.10.19.tar.xz
mv patch-3.10.19-vs184.108.40.206.diff linux-3.10.19
git apply patch-3.10.19-vs220.127.116.11.diff
cp /boot/config-* .config# CRITICAL STEP: Replace
*with the latest vanilla kernel version you have installed from the Debian package repositories. Try
ls /bootfor info.
- At this point you need to probably answer a ton of yes/no questions. The default answers are generally pretty sane, and it's hard to go wrong with them; if you are in doubt, you can type
nto get more info. If you're feeling dangerous or impatient, hold down the enter key for about 30 seconds to accept the defaults for everything, or run
yes "" | make oldconfig.
- Read here on the various Linux-VServer kernel config options. Edit
.configwith a text editor or by typing
make menuconfig(requires a compatible libncurses dev package). The defaults should be OK for the basics, but you might want to look at "Automatic Single IP Special Casing" in particular, as that is fairly important if you will have services listening on the same port, such as SSH, apache, etc., but moreso if the service does not allow you to configure the listen IP address, like MySQL (grr!)).
- Once you're satisfied tweaking the Linux-VServer config options, run
- As root or
make modules_install && make install && make firmware_install. If you don't get any obvious errors (a lot of file names will be spewed to the console), you are good.
- You need to set the default boot index. Examine
/boot/grub/grub.cfg, which has been updated by step 16, and find your kernel's boot entry. Now edit
/etc/default/grubas root with a text editor. Change the
GRUB_DEFAULT=0option (or add it if it doesn't exist). It's zero-based. If the new kernel entry is the first one from the top of the file, you'll need to set the number to
0. If it were at the bottom of the list, you'd need to count the number of entries, and set the number to the count of the entries, minus 1.
how to install linux-vserver 3.10.19 patch vs18.104.22.168 on Debian Wheezy