<?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>Debian &#8211; Harry Jackson</title>
	<atom:link href="http://127.0.0.1:8090/category/debian/feed" rel="self" type="application/rss+xml" />
	<link>http://127.0.0.1:8090</link>
	<description>Parent, Painter, Programmer</description>
	<lastBuildDate>Sun, 04 Mar 2012 15:38:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>qemu bridged networking</title>
		<link>http://127.0.0.1:8090/qemu_bridget_networking.htm</link>
					<comments>http://127.0.0.1:8090/qemu_bridget_networking.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Sun, 04 Mar 2012 15:38:45 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux Kernel]]></category>
		<category><![CDATA[Technical]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=404</guid>

					<description><![CDATA[My final /etc/networking/interfaces file looks like (this is for Debian)auto lo eth0 tap0 br0iface lo inet loopbackiface br0 inet dhcp bridge_ports eth0 tap0 bridge_maxwait 0iface eth0 inet manualiface tap0 inet manual pre-up tunctl -b -u &#60;my_user_name&#62; -t tap0 pre-up ifconfig tap0 up post-down tunctl -d tap0 I stole this from the following site joost.damad.be Beware &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/qemu_bridget_networking.htm" class="more-link">Continue reading<span class="screen-reader-text"> "qemu bridged networking"</span></a></p>]]></description>
										<content:encoded><![CDATA[<pre>My final /etc/networking/interfaces file looks like (this is for Debian)<br /><br /><b>auto lo eth0 tap0 br0<br /><br />iface lo inet loopback<br /><br />iface br0 inet dhcp<br />        bridge_ports eth0 tap0<br />        bridge_maxwait 0<br /><br />iface eth0 inet manual<br /><br />iface tap0 inet manual<br />        pre-up tunctl -b -u <strike><u><i>&lt;my_user_name&gt;</i></u></strike> -t tap0<br />        pre-up ifconfig tap0 up<br />        post-down tunctl -d tap0</b></pre>
<p>I stole this from the following site <a href="http://joost.damad.be/2007/04/debian-in-kvm-mini-howto.html">joost.damad.be</a></p>
<p>Beware the username enttry above needs to be changed to your username&#8230; You will also need to install uml-utilities. Once I had this running I could start my image as follows:</p>
<p><b>qemu -net nic -net tap,ifname=tap0,script=no -hda debian.img</b></p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/qemu_bridget_networking.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Mount You must specify the filesystem type</title>
		<link>http://127.0.0.1:8090/mount_you_must_specify_the_filesystem_type.htm</link>
					<comments>http://127.0.0.1:8090/mount_you_must_specify_the_filesystem_type.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Sat, 03 Mar 2012 07:00:32 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Kernel]]></category>
		<category><![CDATA[Technical]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=403</guid>

					<description><![CDATA[I encountered this error while trying to mount an image created using qemu. The command from the docs says to run the following command to mount it on the loopback device. mount -o loop,offset=32256 debian.img ./mntpoint This is completely wrong because the data start is not 32kb into the image file. To figure out where &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/mount_you_must_specify_the_filesystem_type.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Mount You must specify the filesystem type"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I encountered this error while trying to mount an image created using qemu. The command from the docs says to run the following command to mount it on the loopback device.</p>
<p></p>
<pre><b>mount -o loop,offset=32256 debian.img ./mntpoint</b><br /><br /></pre>
<p>This is completely wrong because the data start is not 32kb into the image file. To figure out where it starts you need to use the following commands:<br /><b><i><br />]$ fdisk -ul debian.img</i><br />you must set cylinders.<br />You can do this from the extra functions menu.</p>
<p>Disk debian.img: 0 MB, 0 bytes<br />255 heads, 63 sectors/track, 0 cylinders, total 0 sectors<br />Units = sectors of 1 * 512 = 512 bytes<br />Sector size (logical/physical): 512 bytes / 512 bytes<br />I/O size (minimum/optimal): 512 bytes / 512 bytes<br />Disk identifier: 0x00077ccb</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Blocks&nbsp;&nbsp; Id&nbsp; System<br />debian.img1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2048&nbsp;&nbsp;&nbsp;&nbsp; 5785599&nbsp;&nbsp;&nbsp;&nbsp; 2891776&nbsp;&nbsp; 83&nbsp; Linux<br />Partition 1 does not end on cylinder boundary.<br />debian.img2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5787646&nbsp;&nbsp;&nbsp;&nbsp; 6141951&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 177153&nbsp;&nbsp;&nbsp; 5&nbsp; Extended<br />Partition 2 does not end on cylinder boundary.<br />debian.img5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5787648&nbsp;&nbsp;&nbsp;&nbsp; 6141951&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 177152&nbsp;&nbsp; 82&nbsp; Linux swap / Solaris</p>
<p></b>Once you have this output you can see that the data starts at sector 2048 and since sector size is 512 on my image I need to set the offset to 512*2048. So the final working command is<b>:</p>
<p>mount -o loop,offset=$((512*2048)) -t ext3 ./debian.img ./mntpoint</p>
<p></b>and we now have a mounted image file.<b><br /></b></p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/mount_you_must_specify_the_filesystem_type.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Exim4 Unrouteable Address</title>
		<link>http://127.0.0.1:8090/exim4_unrouteable_address.htm</link>
					<comments>http://127.0.0.1:8090/exim4_unrouteable_address.htm#comments</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Sun, 19 Jul 2009 19:17:36 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Exim]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=389</guid>

					<description><![CDATA[I have no idea when or why this started happening for me but I started getting Unrouteable address appearing for any external address. I&#8217;m a huge fan of Debian but there are some things that really piss me off. One is the way they have completely screwed the exim4 configuration. Exim4, if you are not &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/exim4_unrouteable_address.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Exim4 Unrouteable Address"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I have no idea when or why this started happening for me but I started getting <b>Unrouteable address</b> appearing for any external address.</p>
<p>I&#8217;m a huge fan of Debian but there are some things that really piss me off. One is the way they have completely screwed the exim4 configuration. Exim4, if you are not an administrator or mail guru is not the simplest thing in the world to configure, it&#8217;s config file is fairly involved and you can do anything in it. Add DEBCONF variables to this and you have a complete nightmare configuration.I spent two days tracking this error down to the following:</p>
<p>DCconfig_internet=1</p>
<p>That was all I had to add to /etc/exim4/exim4.conf.template</p>
<p>Why this changed I have no idea. The setting I am using in /etc/exim4/update-exim4.conf.conf is</p>
<p>dc_eximconfig_configtype=&#8217;internet&#8217;</p>
<p>I really cannot make head nor tail out of this at all. I sometimes wish I had started learning Postfix instead of Exim but part of me thinks that it&#8217;s not Exim but rather the way it has been packaged up thats compicated.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/exim4_unrouteable_address.htm/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Cannot open your terminal &#8216;/dev/pts/0&#8217; &#8211; please check.</title>
		<link>http://127.0.0.1:8090/cannot-open-your-terminal-dev-pts-please-check.htm</link>
					<comments>http://127.0.0.1:8090/cannot-open-your-terminal-dev-pts-please-check.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Sun, 30 Nov 2008 00:47:29 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Screen Linux]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=374</guid>

					<description><![CDATA[I always get this error when I am working i a chroot trying to use screen. In the past I have fixed it using the following command. mount -t devpts devpts /usr/CHROOT/dev/pts When this fails another alternative is the following: script /dev/null screen Its a bit of a hack but it gets the job done.]]></description>
										<content:encoded><![CDATA[<p>I always get this error when I am working i a chroot trying to use screen. In the past I have fixed it using the following command.</p>
<pre>mount -t devpts devpts /usr/CHROOT/dev/pts<br /></pre>
<p>When this fails another alternative is the following:</p>
<pre>script /dev/null
screen<br />
</pre>
<p>Its a bit of a hack but it gets the job done.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/cannot-open-your-terminal-dev-pts-please-check.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SSH stdin is not a tty</title>
		<link>http://127.0.0.1:8090/ssh-stdin-is-not-a-tty.htm</link>
					<comments>http://127.0.0.1:8090/ssh-stdin-is-not-a-tty.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Sun, 19 Oct 2008 00:22:55 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Debian SSH Chroot]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=370</guid>

					<description><![CDATA[I started getting the following error when trying to ssh into a chroot on a debian machine. stdin: is not a tty I fixed it using the following entry in /etc/fstab devpts /dev/pts devpts mode=0620,gid=5 0 0 I&#8217;m positive this is not the way I should have fixed it but it works!]]></description>
										<content:encoded><![CDATA[<p>I started getting the following error when trying to ssh into a chroot on a debian machine.</p>
<p><b>stdin: is not a tty</b></p>
<p>I fixed it using the following entry in <b>/etc/fstab</b></p>
<p><b>devpts /dev/pts devpts mode=0620,gid=5 0 0</b></p>
<p>I&#8217;m positive this is not the way I should have fixed it but it works!</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/ssh-stdin-is-not-a-tty.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Debian alternatives and Java</title>
		<link>http://127.0.0.1:8090/debian-alternatives-and-java.htm</link>
					<comments>http://127.0.0.1:8090/debian-alternatives-and-java.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Wed, 03 Sep 2008 04:18:12 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Tomcat Debian Java]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=369</guid>

					<description><![CDATA[The alternaitives system in Debian is a pain in the arse! It&#8217;s one of those things that when you need to use it you spend twenty minutes trying to figure out why various paths etc have changed and then you need to figure out the syntax to change to the path that was working before &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/debian-alternatives-and-java.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Debian alternatives and Java"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>The alternaitives system in Debian is a pain in the arse! It&#8217;s one of those things that when you need to use it you spend twenty minutes trying to figure out why various paths etc have changed and then you need to figure out the syntax to change to the path that was working before you installed Tomcat or some other related system that downloads a bunch of stuff and sets itself up as default for the rest of the system. It&#8217;s a tad irritating. </p>
<p>I am not saying I know a better way to do it but it still pisses me off. Anyway to use a sane version of java I had to run the following command to get eclipse working again.</p>
<p>$:~# update-alternatives &#8211;install /usr/bin/java java /usr/local/sdk-5_05/jdk 1<br />$:~# update-alternatives &#8211;list java<br />/usr/lib/jvm/java-gcj/jre/bin/java<br />/usr/local/sdk-5_05/jdk<br />$:~# update-alternatives &#8211;remove java /usr/lib/jvm/java-gcj/jre/bin/java</p>
<p>I now have eclipse working again and tomcat installed. I was going to use jetty6 over tomcat but because Debian comes bundled with a binary tomcat distribution I have decided&nbsp; to use it. This decision may cost me dearly later.</p>
<p></p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/debian-alternatives-and-java.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Debian netinst and a Dell Vostro 400</title>
		<link>http://127.0.0.1:8090/debian_netinst_and_a_dell_vostro_400.htm</link>
					<comments>http://127.0.0.1:8090/debian_netinst_and_a_dell_vostro_400.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Mon, 07 Jan 2008 04:30:10 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Debian netinst Dell Vostro 400 e1000e Intel]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=355</guid>

					<description><![CDATA[I got a new Dell Vostro 400 this week and have been trying to get Debian Etch stable on it. This has proved a bit of a pain.The following facts might help. Dell are using a new Intel Ethernet Controller They are also using a modern SATA controller The stock Debian netinst cd does not &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/debian_netinst_and_a_dell_vostro_400.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Debian netinst and a Dell Vostro 400"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I got a new Dell Vostro 400 this week and have been trying to get Debian Etch stable on it. This has proved a bit of a pain.<br /><span class="mt-enclosure mt-enclosure-image"><a href="http://www.hjackson.org/blog/debian-logo.png"><img fetchpriority="high" decoding="async" alt="debian-logo.png" src="http://www.hjackson.org/blog/debian-logo-thumb-275x234.png" class="mt-image-right" style="margin: 0pt 0pt 20px 20px;float: right" height="234" width="275" /></a></span><br />The following facts might help.</p>
<ul>
<li>Dell are using a new Intel Ethernet Controller</li>
<li>They are also using a modern SATA controller</li>
<li>The stock Debian netinst cd does not have the correct drivers for these.</li>
</ul>
<p>To get it all to work you will need to get the <a href="http://kmuto.jp/debian/d-i/">Backported Images</a>. The point to note for etch is the addition of the E1000E Intel Ethernet Driver. This is not currently in the latest kernel (2.6.23.12) so no point going to <a href="http://kernel.org/">kernel.org</a> to get the latest kernel, this may be fixed by the time you read this.</p>
<p>Thanks to <a href="http://kmuto.jp/">Kenshi Muto</a> I was able to get Debian installed but this is where it all went bad. </p>
<p>My next job was to get Gnome running on the machine. I have a Nvidia card installed so I went to the <a href="http://www.nvidia.com/object/unix.html">Nvidia Unix Driver Page</a> and got the latest driver. I tried to install this but it is incompatible with the rivafb and nvidifb modules so if I stick with Kenshi&#8217;s kernel I cannot have a desktop but if I install a new kernel I cannot have networking.</p>
<p>At this point you are probably hoping there is some smart fix for this problem. Unfortunately I didn&#8217;t find one. I ended up installing a separate network card to get the system running. I would imagine in the near future that the Linux Kernel will have support for E1000E and when it does I will recompile the kernel.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/debian_netinst_and_a_dell_vostro_400.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Upgrading Woody to Sarge</title>
		<link>http://127.0.0.1:8090/upgrading_woody_to_sarge.htm</link>
					<comments>http://127.0.0.1:8090/upgrading_woody_to_sarge.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Sat, 11 Jun 2005 06:06:04 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Install]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=273</guid>

					<description><![CDATA[Debian have just released sarge as the new stable distribution which means I need to start upgrading my machines. Before I upgraded the main machine though I decided to run through it on a UML machine first to see where the gotchas are. Things to watch out for 1. The sshd config file gets an &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/upgrading_woody_to_sarge.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Upgrading Woody to Sarge"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>Debian have just released sarge as the new stable distribution which means I need to start upgrading my machines. Before I upgraded the main machine though I decided to run through it on a UML machine first to see where the gotchas are.<br />
Things to watch out for<br />
1. The sshd config file gets an extra parameter added to it ie.<br />
UsePAM yes<br />
When I tested ssh after the upgrade I was unable to log into the machine and I found that I had to remove this option or set it to &#8220;no&#8221; to get ssh to work. This surprised me because I was not expecting Debian to modify config file without my knowledge.<br />
2. The <b>RECORD</b> option is no longer valid<br />
xinetd[5691]: Bad log_on_failure flag: RECORD [file=/etc/xinetd.conf] [line=13]<br />
xinetd[5691]: A fatal error was encountered while parsing the default section. xinetd will exit.<br />
xinetd[5691]: Exiting&#8230;<br />
this prevents xinetd from starting up. This was also noticed while testing the machine after the upgrade.<br />
What follows is roughly the files the upgrade offered to update to new versions. Since I had modified most of these I selected the default option which is &#8220;N&#8221; ie do not upgrade to the maintainers version. This may have been the reason the ssh upgrade wasn&#8217;t too smooth. However I would not recommend taking the maintainers version if you have customized the files.<br />
Configuration file `/etc/pam.d/login&#8217;<br />
Configuration file `/etc/securetty&#8217;<br />
Configuration file `/etc/pam.d/passwd&#8217;<br />
Configuration file `/etc/bash.bashrc&#8217;<br />
Configuration file `/etc/init.d/sysklogd&#8217;<br />
Configuration file `/etc/services&#8217;<br />
Configuration file `/etc/init.d/bind9&#8242;<br />
Configuration file `/etc/bind/named.conf&#8217;<br />
Configuration file `/etc/bind/db.root&#8217;<br />
Configuration file `/etc/init.d/xinetd&#8217;<br />
Configuration file `/etc/xinetd.conf&#8217;<br />
During the upgrade you may also be asked to add any users and groups that are<br />
missing from the default debian lot. The following bits are just the output of some other configurations options and warnings of things that have changed between the woody and sarge.<br />
Configuring ssh<br />
Environment options on keys have been deprecated This version of OpenSSH<br />
disables the environment option for public keys by default, in order to avoid<br />
certain attacks (for example, LD_PRELOAD). If you are using this option in an<br />
authorized_keys file, beware that the keys in question will no longer work<br />
until the option is removed. To re-enable this option, set<br />
&#8220;PermitUserEnvironment yes&#8221; in /etc/ssh/sshd_config after the upgrade is<br />
complete, taking note of the warning in the sshd_config(5) manual page.</p>
<p>Configuring man-db<br />
This version of man-db is incompatible with your existing database of manual<br />
page descriptions, so that database needs to be x rebuilt. This may take some<br />
time, depending on how many pages you have installed; it will happen in the<br />
background, possibly slowing down the installation of other packages. If you do<br />
not build the database now, it will be built the next time<br />
/etc/cron.weekly/mandb runs, or you can do it yourself using &#8216;mandb -c&#8217; as user<br />
&#8216;man&#8217;. In the meantime, the &#8216;whatis&#8217; and &#8216;apropos&#8217; commands will not be able to<br />
display any output. Incompatible changes like this should happen rarely. Should<br />
mandb build its database now?</p>
<p>So far I have upgraded two machines and had the same trouble with ssh and xinetd both times. If I encounter any mmore trouble I will add more here.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/upgrading_woody_to_sarge.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
