<?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>Martin Bálint</title>
	<atom:link href="http://martin.balint.cz/feed/" rel="self" type="application/rss+xml" />
	<link>http://martin.balint.cz</link>
	<description>Personal blog of IT professional</description>
	<lastBuildDate>Tue, 14 Feb 2012 13:38:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Install VMware Tools on Centos 6</title>
		<link>http://martin.balint.cz/post/install-vmware-tools-on-centos-6/</link>
		<comments>http://martin.balint.cz/post/install-vmware-tools-on-centos-6/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 13:38:47 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://martin.balint.cz/?p=103</guid>
		<description><![CDATA[To install VMware Tools on Centos 6 simply run following commands as root: yum install gcc kernel-devel perl reboot mount /dev/cdrom /mnt tar -C /tmp -zxvf /mnt/VMwareTools-*.tar.gz umount /mnt cd /tmp/vmware-tools-distrib/ ./vmware-install.pl default]]></description>
			<content:encoded><![CDATA[<p>To install VMware Tools on Centos 6 simply run following commands as root:</p>
<pre>yum install gcc kernel-devel perl
reboot

mount /dev/cdrom /mnt
tar -C /tmp -zxvf /mnt/VMwareTools-*.tar.gz
umount /mnt
cd /tmp/vmware-tools-distrib/
./vmware-install.pl default</pre>
]]></content:encoded>
			<wfw:commentRss>http://martin.balint.cz/post/install-vmware-tools-on-centos-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centos 6 netinstall url</title>
		<link>http://martin.balint.cz/post/centos-6-netinstall/</link>
		<comments>http://martin.balint.cz/post/centos-6-netinstall/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 12:32:40 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://martin.balint.cz/?p=97</guid>
		<description><![CDATA[In Centos 6, netinstall method changed URL to installation image. You can use: 32 bit: http://mirror.centos.org/centos/6/os/i386/ 64 bit: http://mirror.centos.org/centos/6/os/x86_64/ &#160;]]></description>
			<content:encoded><![CDATA[<p>In Centos 6, netinstall method changed URL to installation image.</p>
<p>You can use:</p>
<pre>32 bit: http://mirror.centos.org/centos/6/os/i386/
64 bit: http://mirror.centos.org/centos/6/os/x86_64/</pre>
<p><span id="more-97"></span></p>
<p><a href="http://martin.balint.cz/wp-content/uploads/2012/02/centos6_netinstall.png"><img class="alignnone size-full wp-image-98" title="centos6_netinstall" src="http://martin.balint.cz/wp-content/uploads/2012/02/centos6_netinstall.png" alt="" width="724" height="400" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://martin.balint.cz/post/centos-6-netinstall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse headless on Centos 6</title>
		<link>http://martin.balint.cz/post/eclipse-headless-on-centos-6/</link>
		<comments>http://martin.balint.cz/post/eclipse-headless-on-centos-6/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 16:51:18 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://martin.balint.cz/?p=75</guid>
		<description><![CDATA[When I was looking for tools, which would help me with editing of RPM spec files, I decided to use Eclipse + Linux tools plugin. I found, it is unusable on my Windows desktop for 2 reasons: there is no rpmlint on Windows, making Linux tools load one cpu core to 100% i needed to [...]]]></description>
			<content:encoded><![CDATA[<p>When I was looking for tools, which would help me with editing of RPM spec files, I decided to use Eclipse + Linux tools plugin. I found, it is unusable on my Windows desktop for 2 reasons:</p>
<ul>
<li>there is no rpmlint on Windows, making Linux tools load one cpu core to 100%</li>
<li>i needed to transfer every change to linux machine and run rpm build</li>
</ul>
<p>So I decided to create a dedicated virtual machine for rpm builds, on OpenVZ, running Eclipse and all needed plugins (git and Linux tools).<br />
<span id="more-75"></span></p>
<p>To install Eclipse dependencies do:</p>
<pre>yum install xorg-x11-xauth gtk2 libXtst dejavu-sans-fonts dejavu-sans-mono-fonts dejavu-serif-fonts</pre>
<p>Then you need Java (download JDK6 from <a href="java.oracle.com">http://java.oracle.com</a>) and Eclipse (download from <a href="http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a>).</p>
<p>Unpack Eclipse in /opt</p>
<p>Make sure you have this in /etc/ssh/sshd_config</p>
<pre>X11Forwarding yes</pre>
<p>I am using <a href="http://mobaxterm.mobatek.net/">MobaXterm</a> as Windows X server and putty to start Eclipse.</p>
<p>Start Putty, set Connection &gt; SSH &gt; X11 &gt; Enable X11 forwarding, login to linux machine, type /opt/eclipse/eclipse and you should see Eclipse running.</p>
]]></content:encoded>
			<wfw:commentRss>http://martin.balint.cz/post/eclipse-headless-on-centos-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How I migrated my Centos staff from XEN to KVM</title>
		<link>http://martin.balint.cz/post/how-i-migrated-my-centos-staff-from-xen-to-kvm/</link>
		<comments>http://martin.balint.cz/post/how-i-migrated-my-centos-staff-from-xen-to-kvm/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 10:49:48 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://martin.balint.cz/?p=39</guid>
		<description><![CDATA[A quick recapitulation of XEN to KVM migration on my Centos 5.4. It was suprisingly easy. Finally. Centos 5.4 with KVM support was released. I was really looking forward to upgrade my XEN guests to KVM guests. For several reasons. Mostly for curiosity, and better integration of KVM with linux kernel. Upgrade from Centos 5.3 [...]]]></description>
			<content:encoded><![CDATA[<p>A quick recapitulation of XEN to KVM migration on my Centos 5.4. It was suprisingly easy.</p>
<p><span id="more-39"></span>Finally. Centos 5.4 with KVM support was released. I was really looking forward to upgrade my XEN guests to KVM guests. For several reasons. Mostly for curiosity, and better integration of KVM with linux kernel.</p>
<p>Upgrade from Centos 5.3 to 5.4 went smoothly, after reading <a href="http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.4">Release Notes</a>, I upgraded all XEN guests and host. Important to mention, I was running XEN 3.4.1 from Gitco repo, which complicated migration to KVM a little bit.</p>
<p>OK, so how did i do that. First of all, I installed non-xen kernel on all XEN guests and host.</p>
<pre>yum install kernel</pre>
<p>In this step, I could set grub&#8217;s menu.lst to run non-xen kernel by default, but I didn&#8217;t want to. I wanted to return to XEN quickly, if migration goes bad.</p>
<p>Next, I dumped XML configuration of all XEN guests.</p>
<pre>virsh dumpxml  &gt; /root/.xml</pre>
<p>We will convert those configurations to KVM later.</p>
<p>Now, I installed KVM support on host system. Here I had a problem, that binaries from Base repo were conflicting with Gitco&#8217;s binaries. I solved this by uninstalling Gitco&#8217;s binaries.</p>
<pre>yum install kvm kmod-kvm
yum install qemu
modprobe kvm-intel</pre>
<p>If all went well, we are ready to reboot host to non-xen kernel.</p>
<p>And now, the most interesting part came. I copied one XML configration dumped earlier to /etc/libvirt/qemu/.</p>
<table border="0">
<tbody>
<tr>
<td>XEN</td>
<td>KVM</td>
</tr>
<tr>
<td valign="top">
<pre>&lt;domain type='xen' id='10'&gt;
 &lt;name&gt;webdevel&lt;/name&gt;
 &lt;uuid&gt;13d5035a-6c13-4f90-a1f3-68f4d0f90988&lt;/uuid&gt;
 &lt;memory&gt;524288&lt;/memory&gt;
 &lt;currentMemory&gt;524288&lt;/currentMemory&gt;
 &lt;vcpu&gt;1&lt;/vcpu&gt;
 &lt;bootloader&gt;/usr/bin/pygrub&lt;/bootloader&gt;
 &lt;bootloader_args&gt;-q&lt;/bootloader_args&gt;
 &lt;os&gt;
 &lt;type&gt;linux&lt;/type&gt;
 &lt;/os&gt;
 &lt;clock offset='utc'/&gt;
 &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;
 &lt;on_reboot&gt;restart&lt;/on_reboot&gt;
 &lt;on_crash&gt;restart&lt;/on_crash&gt;
 &lt;devices&gt;
 &lt;disk type='block' device='disk'&gt;
 &lt;driver name='phy'/&gt;
 &lt;source dev='/dev/vg01/webdevel-disk'/&gt;
 &lt;target dev='xvda' bus='xen'/&gt;
 &lt;/disk&gt;
 &lt;interface type='bridge'&gt;
 &lt;mac address='00:16:3e:33:07:06'/&gt;
 &lt;source bridge='xenbr0'/&gt;
 &lt;script path='/etc/xen/scripts/vif-bridge'/&gt;
 &lt;target dev='vif10.0'/&gt;
 &lt;/interface&gt;
 &lt;console type='pty' tty='/dev/pts/3'&gt;
 &lt;source path='/dev/pts/3'/&gt;
 &lt;target port='0'/&gt;
 &lt;/console&gt;
 &lt;/devices&gt;
&lt;/domain&gt;</pre>
</td>
<td valign="top">
<pre>&lt;domain type='kvm'&gt;
 &lt;name&gt;webdevel&lt;/name&gt;
 &lt;uuid&gt;13d5035a-6c13-4f90-a1f3-68f4d0f90988&lt;/uuid&gt;
 &lt;memory&gt;524288&lt;/memory&gt;
 &lt;currentMemory&gt;524288&lt;/currentMemory&gt;
 &lt;vcpu&gt;1&lt;/vcpu&gt;
 &lt;os&gt;
 &lt;type&gt;hvm&lt;/type&gt;
 &lt;boot dev='hd'/&gt;
 &lt;/os&gt;
 &lt;clock offset='utc'/&gt;
 &lt;on_poweroff&gt;destroy&lt;/on_poweroff&gt;
 &lt;on_reboot&gt;restart&lt;/on_reboot&gt;
 &lt;on_crash&gt;restart&lt;/on_crash&gt;
 &lt;devices&gt;
 &lt;disk type='block' device='disk'&gt;
 &lt;source dev='/dev/vg01/webdevel-disk'/&gt;
 &lt;target dev='hda' bus='ide'/&gt;
 &lt;/disk&gt;
 &lt;interface type='bridge'&gt;
 &lt;mac address='00:16:3e:33:07:06'/&gt;
 &lt;source bridge='br0'/&gt;
 &lt;/interface&gt;
 &lt;input type='mouse' bus='ps2'/&gt;
 &lt;graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'/&gt;
 &lt;/devices&gt;
&lt;/domain&gt;</pre>
</td>
</tr>
</tbody>
</table>
<p>Main changes:</p>
<ul>
<li>domain type</li>
<li>&lt;bootloader&gt; lines removed</li>
<li>&lt;os&gt; type changes to hvm and &lt;boot&gt; device is added</li>
<li>&lt;disk&gt; section is changed, KVM emulated IDE bus with disks hda, hdb, hdc, hdd</li>
<li>network interface changed from xenbr0 to br0 &#8211; I had to create it, as it didn&#8217;t exist</li>
</ul>
<p>And now, I could define configuration into the KVM hypervisor and start it.</p>
<pre>virsh define &lt;domain&gt;.xml
virsh start &lt;domain&gt;</pre>
<p>I did some typos at first, so I had to fix configuration and run</p>
<pre>virsh define &lt;domain&gt;</pre>
<p>again to load it.</p>
<p>Now I connected to concole using VNC, and could see guest&#8217;s GRUB waiting for kernel choose. I have chosen the non-xen kernel, and after a while I could log into the guest host.</p>
<p>I checked that networking is working, and modified grub&#8217;s menu.lst to non-xen kernel by default.</p>
<p>Beacuse I wanted to have this guest started then machine starts, I did</p>
<pre>virsh autostart &lt;domain&gt;</pre>
<p><strong>Some experiences I gained during migration</strong></p>
<ul>
<li>virsh shutdown doesn&#8217;t shut guests gracefully, it just aborts them</li>
<li>qemu-0.9.0-4 in Centos 5.4 seems to support only IDE bus, so not more than 4 disk drives can be connected. This is a problem for one of my guests, which has 6 disks attached. I have got &#8220;qemu: too many IDE bus&#8221; during start. I detached 2 drives, until I find solution. SCSI bus seems to be unsupported in this qemu version.</li>
</ul>
<p><strong>Reference</strong></p>
<ul>
<li><a href="http://docs.google.com/Doc?id=drjq7vn_0ctn8k3dd">Google doc: HOWTO: Migrate Hypervisor from CentOS/RHEL Xen to Ubuntu Hardy KVM</a></li>
<li><a href="http://wiki.centos.org/HowTos/KVM">Centos: A Quick Guide to Using KVM with CentOS-5</a></li>
<li><a href="http://www.howtoforge.com/virtualization-with-kvm-on-a-centos-5.2-server">HowtoForge: Virtualization With KVM On A CentOS 5.2 Server</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://martin.balint.cz/post/how-i-migrated-my-centos-staff-from-xen-to-kvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Video mode not supported&#8221; while installing Centos 5.2</title>
		<link>http://martin.balint.cz/post/video-mode-not-supported-while-installing-centos-52/</link>
		<comments>http://martin.balint.cz/post/video-mode-not-supported-while-installing-centos-52/#comments</comments>
		<pubDate>Thu, 25 Dec 2008 13:45:10 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://martin.balint.cz/?p=28</guid>
		<description><![CDATA[While reinstalling my Centos server, I was not able to get into Anacoda installer GUI. My LCD monitor said &#8220;Video mode not supported&#8221;. Centos default video resolution is 800&#215;600 and 24bit depth. My video card is: 05:00.0 VGA compatible controller: S3 Inc. 86c764/765 [Trio32/64/64V+] (rev 53) Well, I found a simple workaround. Just boot Centos [...]]]></description>
			<content:encoded><![CDATA[<p>While reinstalling my Centos server, I was not able to get into Anacoda installer GUI. My LCD monitor said &#8220;Video mode not supported&#8221;. Centos default video resolution is 800&#215;600 and 24bit depth.</p>
<p><span id="more-28"></span>My video card is:<br />
<code><br />
05:00.0 VGA compatible controller: S3 Inc. 86c764/765 [Trio32/64/64V+] (rev 53)</code></p>
<p>Well, I found a simple workaround. Just boot Centos installer with parameters</p>
<p><code>linux vesa=1024x768 depth=16</code></p>
<p>I heard that this also helps to run Centos installer in Microsoft Virtual PC, but didn&#8217;t tried it myself.<br />
I could use text installer, but I needed to set up LVM, and this is not available in text mode yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://martin.balint.cz/post/video-mode-not-supported-while-installing-centos-52/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Tomcat6 on Centos 5.2</title>
		<link>http://martin.balint.cz/post/installing-tomcat6-on-centos-52/</link>
		<comments>http://martin.balint.cz/post/installing-tomcat6-on-centos-52/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 20:32:25 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://martin.balint.cz/?p=7</guid>
		<description><![CDATA[Step by step instructions on how to install Tomcat 6 on Centos 5.2. I did a fresh installation of Centos 5.2 in Xen, following by yum update reboot Next, download JDK from java.sun.com (current jdk-6u7-linux-x64-rpm.bin) and install. chmod o+x jdk-6u7-linux-x64-rpm.bin ./jdk-6u7-linux-x64-rpm.bin Edit /etc/profile and add to the nearly end of file export JAVA_HOME=/usr/java/default export PATH=$PATH:$JAVA_HOME/bin [...]]]></description>
			<content:encoded><![CDATA[<p>Step by step instructions on how to install Tomcat 6 on Centos 5.2.</p>
<p><span id="more-7"></span>I did a fresh installation of Centos 5.2 in Xen, following by</p>
<p><code>yum update<br />
reboot</code></p>
<p>Next, download JDK from java.sun.com (current jdk-6u7-linux-x64-rpm.bin) and install.</p>
<p><code>chmod o+x jdk-6u7-linux-x64-rpm.bin<br />
./jdk-6u7-linux-x64-rpm.bin</code></p>
<p>Edit /etc/profile and add to the nearly end of file</p>
<p><code>export JAVA_HOME=/usr/java/default<br />
export PATH=$PATH:$JAVA_HOME/bin<br />
export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar</code></p>
<p>and run</p>
<p><code>. /etc/profile</code></p>
<p>to export new settings.</p>
<p><strong>Installing Tomcat 6</strong></p>
<p><code>cd /tmp<br />
wget http://ftp.sh.cvut.cz/MIRRORS/apache/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz<br />
tar xvzf apache-tomcat-6.0.18.tar.gz<br />
mv -f apache-tomcat-6.0.18 /opt/tomcat6</code></p>
<p>Next, create user tomcat and set permissions of /opt/tomcat6<br />
<code>useradd -d /opt/tomcat6 -s /sbin/nologin tomcat<br />
chown -R tomcat /opt/tomcat6</code></p>
<p>Next, create init script, edit /etc/init.d/tomcat6 and fill it with:</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Startup script for jakarta tomcat</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># chkconfig: - 85 20</span>
<span style="color: #666666; font-style: italic;"># description: Tomcat running</span>
<span style="color: #666666; font-style: italic;"># processname: tomcat</span>
<span style="color: #666666; font-style: italic;"># pidfile: /var/run/tomcat.pid # config:# Source function library.</span>
. <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>functions
<span style="color: #666666; font-style: italic;"># Source networking configuration.</span>
. <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>sysconfig<span style="color: #000000; font-weight: bold;">/</span>network
<span style="color: #666666; font-style: italic;"># Check that networking is up.</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #800000;">${NETWORKING}</span> = <span style="color: #ff0000;">&quot;no&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span><span style="color: #666666; font-style: italic;"># Set Tomcat environment.</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">JAVA_HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>java<span style="color: #000000; font-weight: bold;">/</span>default
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CLASSPATH</span>=.:<span style="color: #007800;">$JAVA_HOME</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>dt.jar:<span style="color: #007800;">$JAVA_HOME</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>tools.jar:<span style="color: #007800;">$CATALINA_HOME</span><span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>servlet-api.jar
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CATALINA_HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>tomcat6
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">CATALINA_OPTS</span>=<span style="color: #ff0000;">&quot;-Dbuild.compiler.emacs=true&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$JAVA_HOME</span><span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #007800;">$PATH</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>tomcat6<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>startup.sh <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>tomcat6<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>shutdown.sh <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #666666; font-style: italic;"># See how we were called.</span>
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
start<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #666666; font-style: italic;"># Start daemon.</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Starting Tomcat: &quot;</span>
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>tomcat6<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>startup.sh
<span style="color: #007800;">RETVAL</span>=<span style="color: #007800;">$?</span>
<span style="color: #7a0874; font-weight: bold;">echo</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$RETVAL</span> = <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lock<span style="color: #000000; font-weight: bold;">/</span>subsys<span style="color: #000000; font-weight: bold;">/</span>tomcat <span style="color: #000000; font-weight: bold;">;;</span>
stop<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #666666; font-style: italic;"># Stop daemons.</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Shutting down Tomcat: &quot;</span>
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>tomcat6<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>shutdown.sh
<span style="color: #007800;">RETVAL</span>=<span style="color: #007800;">$?</span>
<span style="color: #7a0874; font-weight: bold;">echo</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$RETVAL</span> = <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lock<span style="color: #000000; font-weight: bold;">/</span>subsys<span style="color: #000000; font-weight: bold;">/</span>tomcat <span style="color: #000000; font-weight: bold;">;;</span>
restart<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">$0</span> stop
<span style="color: #007800;">$0</span> start
<span style="color: #000000; font-weight: bold;">;;</span>
condrestart<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-e</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lock<span style="color: #000000; font-weight: bold;">/</span>subsys<span style="color: #000000; font-weight: bold;">/</span>tomcat6 <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #007800;">$0</span> restart <span style="color: #000000; font-weight: bold;">;;</span>
status<span style="color: #7a0874; font-weight: bold;">&#41;</span>
status tomcat
<span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: $0 {start|stop|restart|status}&quot;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">esac</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre>
</div>
</div>
<p>Set executable flag and ensure it starts on machine boot<br />
<code>chmod +x /etc/init.d/tomcat6<br />
chkconfig tomcat6 on</code></p>
<p>edit /opt/tomcat6/conf/tomcat-users.xml and modify line</p>
<p><code>&lt;user username="tomcat" password="tomcat" roles="manager,admin"/&gt;</code></p>
<p>Now, you should be able to start tomcat and access http://server_ip:8080/</p>
<p><code>/etc/init.d/tomcat6 start</code></p>
]]></content:encoded>
			<wfw:commentRss>http://martin.balint.cz/post/installing-tomcat6-on-centos-52/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Installing JIRA on Centos 5.2</title>
		<link>http://martin.balint.cz/post/installing-jira-on-centos52/</link>
		<comments>http://martin.balint.cz/post/installing-jira-on-centos52/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 20:31:30 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[atlassian]]></category>
		<category><![CDATA[jira]]></category>

		<guid isPermaLink="false">http://martin.balint.cz/?p=8</guid>
		<description><![CDATA[Step by step how I installed Atlassian Jira on Centos 5.2. Download JIRA Enterprise (current version 3.12.3) cd /tmp wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-3.12.3.tar.gz useradd --create-home -c "Jira role account" jira mkdir -p /opt/jira cd /opt/jira/ tar xvfz /tmp/atlassian-jira-enterprise-3.12.3-standalone.tar.gz ln -s atlassian-jira-enterprise-3.12.3-standalone/ current chown -R jira: /opt/jira Create file /etc/init.d/jira chmod +x /etc/init.d/jira chkconfig --add jira chkconfig jira [...]]]></description>
			<content:encoded><![CDATA[<p>Step by step how I installed Atlassian Jira on Centos 5.2.</p>
<p><span id="more-8"></span>Download JIRA Enterprise (current version 3.12.3)</p>
<pre>cd /tmp
wget http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-enterprise-3.12.3.tar.gz
useradd --create-home -c "Jira role account" jira
mkdir -p /opt/jira
cd /opt/jira/
tar xvfz /tmp/atlassian-jira-enterprise-3.12.3-standalone.tar.gz
ln -s atlassian-jira-enterprise-3.12.3-standalone/ current
chown -R jira: /opt/jira</pre>
<p>Create file /etc/init.d/jira</p>
<pre>chmod +x /etc/init.d/jira
chkconfig --add jira
chkconfig jira on</pre>
<p>Check ports in current/conf/server.xml<br />
I changed Server port=&#8221;8002&#8243; and Connector port=&#8221;8082&#8243;</p>
<p>Start Jira now and check log file</p>
<pre>/etc/init.d/jira start
less /opt/jira/current/logs/catalina.out</pre>
<p>If everything went all right, you should see Setup Wizard on http://serverip:8082</p>
<h2>Setup mysql database</h2>
<p>If you don&#8217;t have Mysql server installed, do it now.</p>
<pre>yum install mysql-server
/etc/init.d/mysqld start
chkconfig mysqld on</pre>
<p>Next, create database user for jira</p>
<pre>mysql -u root -p
create database jiradb character set utf8;
grant all privileges on jiradb.* to jirauser@localhost identified by 'mypassword' with grant option;
flush privileges;
quit</pre>
<p>Next, get MySQL/J JDBC driver and install it</p>
<pre>cd /tmp
wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/http://mysql.linux.cz/
tar xvfz mysql-connector-java-5.1.6.tar.gz
cp mysql-connector-java-5.1.6/mysql-connector-java-5.1.6-bin.jar /opt/jira/current/common/lib/</pre>
<p>Now we need to edit some configuration files to get MySQL working.</p>
<p>Edit /opt/jira/current/conf/server.xml and set</p>
<pre>&lt;Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false"&gt;
  &lt;Resource name="jdbc/JiraDS" auth="Container" type="javax.sql.DataSource"
    username="jirauser"
    password="ji123ra"
    driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost/jiradb?autoReconnect=true&amp;amp;useUnicode=true&amp;amp;characterEncoding=UTF8"/&gt;</pre>
<p>Next, edit /opt/jira/current/atlassian-jira/WEB-INF/classes/entityengine.xml and set</p>
<pre>    &lt;datasource name="defaultDS" field-type-name="<strong>mysql</strong>"
      helper-class="org.ofbiz.core.entity.GenericHelperDAO"
      check-on-start="true"
      use-foreign-keys="false"
      use-foreign-key-indices="false"
      check-fks-on-start="false"
      check-fk-indices-on-start="false"
      add-missing-on-start="true"
      check-indices-on-start="true"&gt;</pre>
<p>Now, restart JIRA and return back to JIRA Setup Wizzard at http://server_ip:8082</p>
]]></content:encoded>
			<wfw:commentRss>http://martin.balint.cz/post/installing-jira-on-centos52/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Confluence on Centos 5.2</title>
		<link>http://martin.balint.cz/post/installing-confluence-on-centos-52/</link>
		<comments>http://martin.balint.cz/post/installing-confluence-on-centos-52/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 20:30:38 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[atlassian]]></category>
		<category><![CDATA[confluence]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://martin.balint.cz/?p=9</guid>
		<description><![CDATA[Today, I installed Atlassian Confluence into one of my XEN virtual machines. Download Linux Standalone version of Confluence at http://www.atlassian.com/software/confluence/ConfluenceDownloadCenter.jspa. cd /tmp wget http://www.atlassian.com/software/confluence/downloads/binary/confluence-2.9-std.tar.gz useradd --create-home -c "Confluence role account" confluence mkdir -p /opt/confluence cd /opt/confluence/ tar xvzf /tmp/confluence-2.9-std.tar.gz ln -s confluence-2.9-std/ current chown -R confluence: /opt/confluence Edit current/confluence/WEB-INF/classes/confluence-init.properties and set confluence.home=/opt/confluence/home Create file /etc/init.d/confluence [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I installed Atlassian Confluence into one of my XEN virtual machines.</p>
<p><span id="more-9"></span>Download Linux Standalone version of Confluence at <a href="http://www.atlassian.com/software/confluence/ConfluenceDownloadCenter.jspa?os=linux" target="_blank">http://www.atlassian.com/software/confluence/ConfluenceDownloadCenter.jspa</a>.</p>
<pre>cd /tmp
wget http://www.atlassian.com/software/confluence/downloads/binary/confluence-2.9-std.tar.gz
useradd --create-home -c "Confluence role account" confluence
mkdir -p /opt/confluence
cd /opt/confluence/
tar xvzf /tmp/confluence-2.9-std.tar.gz
ln -s confluence-2.9-std/ current
chown -R confluence: /opt/confluence</pre>
<p>Edit current/confluence/WEB-INF/classes/confluence-init.properties and set</p>
<pre>confluence.home=/opt/confluence/home</pre>
<p>Create file /etc/init.d/confluence</p>
<pre>chmod +x /etc/init.d/confluence
chkconfig --add confluence
chkconfig confluence on</pre>
<p>Check ports in current/conf/server.xml<br />
I changed Server port=&#8221;8001&#8243; and Connector port=&#8221;8081&#8243;</p>
<p>Start Confluence now and check log file</p>
<pre>/etc/init.d/confluence start
less /opt/confluence/current/logs/catalina.out</pre>
<p>If everything went all right, you should see Setup Wizard on http://serverip:8081</p>
<h2>Setup mysql database</h2>
<p>If you don&#8217;t have Mysql server installed, do it now.</p>
<pre>yum install mysql-server
/etc/init.d/mysqld start
chkconfig mysqld on</pre>
<p>Next, create database user for confluence</p>
<p>mysql -u root -p</p>
<pre>create database confluencedb character set utf8;
grant all privileges on confluencedb.* to confluenceuser@localhost identified by 'mypassword' with grant option;
flush privileges;
quit</pre>
<p>Next, get MySQL/J JDBC driver and install it</p>
<pre>cd /tmp
wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/http://mysql.linux.cz/
tar xvfz mysql-connector-java-5.1.6.tar.gz
cp mysql-connector-java-5.1.6/mysql-connector-java-5.1.6-bin.jar /opt/confluence/current/confluence/WEB-INF/lib/</pre>
<p>Restart Confluence</p>
<pre>/etc/init.d/confluence restart</pre>
<p>Navigate to Setup wizard at http://serverip:8081<br />
Enter Licence key and click on Custom Installation<br />
Select MySQL and click on External Database button<br />
On the next page, click on Direct JDBC button<br />
Change the database URL to</p>
<pre>jdbc:mysql://localhost/confluencedb?autoReconnect=true</pre>
<p>Enter <em>confluenceuser </em>to User Name and your <em>password </em>to Password field.<br />
Click on Next, after a while you should see Load Content screen. You can choose how to continue here.</p>
]]></content:encoded>
			<wfw:commentRss>http://martin.balint.cz/post/installing-confluence-on-centos-52/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian etch on Alix 2C3 board</title>
		<link>http://martin.balint.cz/post/debian-etch-on-alix-2c3-board/</link>
		<comments>http://martin.balint.cz/post/debian-etch-on-alix-2c3-board/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 20:27:43 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[alix]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://martin.balint.cz/?p=6</guid>
		<description><![CDATA[I have got a new board &#8211; Alix 2C3 &#8211; for my home router. I decided to build my favorite linux distribution Debian on it. Debian is installed on to a 1GB Compact Flash card. Installation was made using Debian LiveCD on a WMware Workstation, with no hard-drive defined and Compact Flash card in a [...]]]></description>
			<content:encoded><![CDATA[<p>I have got a new board &#8211; Alix 2C3 &#8211; for my home router. I decided to build my favorite linux distribution Debian on it.</p>
<p><span id="more-6"></span>Debian is installed on to a 1GB Compact Flash card. Installation was made using Debian LiveCD on a WMware Workstation, with no hard-drive defined and Compact Flash card in a card reader connected via USB.</p>
<p>I used Debian Etch LiveCD http://debian-live.alioth.debian.org/ <a href="http://live.debian.net/cdimage/etch-builds/current/i386/iso-cd/debian-live-etch-i386-standard.iso">debian-live-etch-i386-standard.iso</a></p>
<p>Boot the Live CD and make sure your CF/microdrive is attached as /dev/sda.</p>
<p>Switch to root</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-s</span></pre>
</div>
</div>
<p>Update etch, there may be some questions about aborting configuration, just say No</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;do_initrd = Yes&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>kernel-img.conf
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> update <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #660033;">-V</span> dist-upgrade</pre>
</div>
</div>
<p>Set partitions of CF card, I created 2 partitions, 32MB and 512MB.</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;">fdisk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda</pre>
</div>
</div>
<p>Mine configuration &#8211; 1 bootable partition</p>
<pre lang>Disk /dev/sda: 2500 MB, 2500485120 bytes
77 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 4774 * 512 = 2444288 bytes
Device    Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          14        33387  83  Linux
/dev/sda2              15         224       501270  83  Linux</pre>
<p>Now we format CF card to ext2, chroot to new router environment and debootstrap debian etch into in</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;">mkfs.ext2 <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1
mkfs.ext2 <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda2
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> debootstrap binutils
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda2 <span style="color: #000000; font-weight: bold;">/</span>mnt
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>boot
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1 <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>boot
debootstrap <span style="color: #660033;">--verbose</span> <span style="color: #660033;">--arch</span> i386 etch <span style="color: #000000; font-weight: bold;">/</span>mnt http:<span style="color: #000000; font-weight: bold;">//</span>ftp.cz.debian.org<span style="color: #000000; font-weight: bold;">/</span>debian
<span style="color: #c20cb9; font-weight: bold;">chroot</span> <span style="color: #000000; font-weight: bold;">/</span>mnt <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;do_initrd = Yes&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>kernel-img.conf
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-t</span> proc proc <span style="color: #000000; font-weight: bold;">/</span>proc
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-t</span> devpts devpts <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>pts
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> update
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> locales
dpkg-reconfigure locales
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> linux-image-<span style="color: #000000;">2.6</span>-<span style="color: #000000;">486</span> openssh-server grub
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>i386-pc<span style="color: #000000; font-weight: bold;">/*</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub</pre>
</div>
</div>
<p>Now we configure new installation &#8211; we need to configure grub and enable console on a serial port</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>menu.lst</pre>
</div>
</div>
<p>Mine looks like this:</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;">serial <span style="color: #660033;">--speed</span>=<span style="color: #000000;">115200</span>
terminal serial
timeout <span style="color: #000000;">5</span>
default <span style="color: #000000;">0</span>
title Debian router
root <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
kernel <span style="color: #000000; font-weight: bold;">/</span>vmlinuz-2.6.18-<span style="color: #000000;">6</span>-<span style="color: #000000;">486</span> <span style="color: #007800;">root</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda2 <span style="color: #007800;">console</span>=ttyS0,115200n8
initrd <span style="color: #000000; font-weight: bold;">/</span>initrd.img-2.6.18-<span style="color: #000000;">6</span>-<span style="color: #000000;">486</span></pre>
</div>
</div>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>inittab</pre>
</div>
</div>
<p>Comment out (add # at lines beginning) block of</p>
<pre>*:*:respawn:/sbin/getty 38400 tty*</pre>
<p>Uncomment and modify T0 line to</p>
<pre>T0:23:respawn:/sbin/getty -L ttyS0 115200</pre>
<p>Edit /etc/fstab:</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;">proc <span style="color: #000000; font-weight: bold;">/</span>proc proc defaults <span style="color: #000000;">0</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda2 <span style="color: #000000; font-weight: bold;">/</span> ext2 noatime,<span style="color: #007800;">errors</span>=remount-ro <span style="color: #000000;">0</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda1 <span style="color: #000000; font-weight: bold;">/</span>boot ext2 defaults <span style="color: #000000;">0</span> <span style="color: #000000;">1</span></pre>
</div>
</div>
<p>We are done in chrooted environment, now we exit to LiveCD and install grub to boot from CF card.</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>proc
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>pts
<span style="color: #7a0874; font-weight: bold;">exit</span>
<span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> grub
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'(hd0)  /dev/sda'</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>device.map
grub-install <span style="color: #660033;">--root-directory</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda</pre>
</div>
</div>
<p>Now, unmount CF disk, remove it from card reader and try to boot your alix device, and login with root and no password, configure /etc/network/interfaces and so on&#8230;</p>
<div class="wp_syntax">
<div class="code">
<pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>boot
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt</pre>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://martin.balint.cz/post/debian-etch-on-alix-2c3-board/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

