<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Technical Diary &#187; debian</title>
	<atom:link href="http://andriigrytsenko.net/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://andriigrytsenko.net</link>
	<description>With Andrii Grytsenko</description>
	<lastBuildDate>Tue, 17 Aug 2010 08:25:33 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux Kernel from sources for Debian</title>
		<link>http://andriigrytsenko.net/2009/07/linux-kernel-from-sources-for-debian/</link>
		<comments>http://andriigrytsenko.net/2009/07/linux-kernel-from-sources-for-debian/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 10:41:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://andriigrytsenko.net/?p=275</guid>
		<description><![CDATA[It&#8217;s useful manual if you want to compile kernel from sources in Debian environment. 

Get all required software over apt-get:
# apt-get install kernel-package ncurses-dev fakeroot wget bzip2 module-init-tools initrd-tools procps
Next, get latest linux kernel from kernel.org : 
# cd /usr/src
# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.tar.bz2
you can also done it over apt-get as well:
# apt-get install linux-source
Extract it: 
# [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s useful manual if you want to compile kernel from sources in Debian environment. </p>
<p><span id="more-275"></span></p>
<p>Get all required software over apt-get:</p>
<pre># apt-get install kernel-package ncurses-dev fakeroot wget bzip2 module-init-tools initrd-tools procps</pre>
<p>Next, get latest linux kernel from kernel.org : </p>
<pre># cd /usr/src
# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.tar.bz2</pre>
<p>you can also done it over apt-get as well:</p>
<pre># apt-get install linux-source</pre>
<p>Extract it: </p>
<pre># tar -xjvf linux-2.6.30.tar.bz2</pre>
<p>and make symbolic link pointed out your sources and go there:</p>
<pre># ln -s linux-2.6.30.tar.bz2 linux
# cd linux</pre>
<p>Configure your new kernel with
<pre>make menuconfig</pre>
<p> or
<pre>make oldconfig</pre>
<p> or
<pre># make xconfig</pre>
<p> and so on. </p>
<p>After you will finished. Run :</p>
<pre># make-kpkg clean
# fakeroot make-kpkg --revision=<em>kernel_name-version</em> kernel_image</pre>
<p>Where is <em>kernel_name-version</em> &#8211; kernel name and version(e.g.: custom-1.0).</p>
<p>If compilation done without errors. Go to the /usr/src and install new kernel over
<pre>dpkg</pre>
<p> tool:</p>
<pre># cd /usr/src
# dpkg -i kernel-image-2.6.30.2_custom-1.0_i386.deb</pre>
<p>Create ramdisk  from new kernel : </p>
<pre># cd /boot/
# mkinitramfs -o /boot/initrd.img-2.6.30 2.6.30</pre>
<p>Last one step is loader configuration. I will describe how to do this for two most popular(grub and lilo) loaders. If you have lilo loader just add new section into the /etc/lilo.conf and edit directive <em>default</em>. Like this: </p>
<pre>default=MYKERN
image=/vmlinuz
        label=MYKERN
        read-only
        initrd=/boot/initrd.img-2.6.30</pre>
<p>Now, install new loader at boot sector: </p>
<pre># lilo -c /etc/lilo.conf</pre>
<p>In case of GRUB loader. Put next section into the <em>/boot/grub/menu.lst</em> file: </p>
<pre>title           My Debian GNU/Linux, kernel 2.6.30
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.30 root=/dev/sda1 ro
initrd          /boot/initrd.img-2.6.30</pre>
<p>For GRUB loader no installs is require. </p>
<p>After loader section done well you have to restart you machine:</p>
<pre># reboot</pre>
<p>Check you current kernel version with <em>uname</em> if during your booting time no problems were occurred:
<pre>
# uname -r
2.6.30</pre>
<p>If it&#8217;s matched with you installed kernel version then you done everything right.   </p>
]]></content:encoded>
			<wfw:commentRss>http://andriigrytsenko.net/2009/07/linux-kernel-from-sources-for-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to compile VirtualBox module</title>
		<link>http://andriigrytsenko.net/2009/07/how-to-make-virtualbox-module/</link>
		<comments>http://andriigrytsenko.net/2009/07/how-to-make-virtualbox-module/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 08:59:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://andriigrytsenko.net/?p=271</guid>
		<description><![CDATA[In the event of you repository doesn&#8217;t consist VirtualBox&#8217;s kernel module for your current kernel version. In this post I will describe how to make it manually.

NOTICE: In my case distro is Debian.
My current kernel version is :
# uname -r
2.6.30-1-686
Let&#8217;s  have a look about virtualbox module :
# apt-cache search virtualbox &#124; grep [you_kernel_version]
# 
Nothing [...]]]></description>
			<content:encoded><![CDATA[<p>In the event of you repository doesn&#8217;t consist VirtualBox&#8217;s kernel module for your current kernel version. In this post I will describe how to make it manually.<br />
<span id="more-271"></span></p>
<p>NOTICE: In my case distro is Debian.</p>
<p>My current kernel version is :</p>
<pre># uname -r
2.6.30-1-686</pre>
<p>Let&#8217;s  have a look about virtualbox module :</p>
<pre># apt-cache search virtualbox | grep [you_kernel_version]
# </pre>
<p>Nothing was found. </p>
<p>First of all we have to get kernel sources: </p>
<pre># apt-get install linux-source-[you_kernel_version]</pre>
<p>Go to /usr/src and delete symbolic link <em>linux</em> if it exist: </p>
<pre># cd /usr/src
# rm linux </pre>
<p>extract files from archive and make new one linx:</p>
<pre># tar -xjvf linux-source-2.6.30.tar.bz2
# ln -s linux-source-2.6.30 linux</pre>
<p>Now go to sources and set current configuration:</p>
<pre># cd linux
# make oldconfig &#038;&#038; make prepare</pre>
<p>After finished, run : </p>
<pre># /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module:done..
Recompiling VirtualBox kernel module:done..
Starting VirtualBox kernel module:done..</pre>
<p>Check is everything done right: </p>
<pre># lsmod | grep -i vbox</pre>
<p>It&#8217;s okay if you get something like this: </p>
<pre>vboxdrv                63936  0</pre>
<p>Now you are ready to run VirtualBox. </p>
]]></content:encoded>
			<wfw:commentRss>http://andriigrytsenko.net/2009/07/how-to-make-virtualbox-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
