<?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>Meandering thoughts &#187; Computer tricks</title>
	<atom:link href="http://magpie.sytes.net/jesperhogstrom/category/computer-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://magpie.sytes.net/jesperhogstrom</link>
	<description>Words are flying out like endless rain into a paper cup.</description>
	<lastBuildDate>Fri, 16 Oct 2009 23:06:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Reinstalling computer</title>
		<link>http://magpie.sytes.net/jesperhogstrom/2009/10/reinstalling-computer/</link>
		<comments>http://magpie.sytes.net/jesperhogstrom/2009/10/reinstalling-computer/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 23:06:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer tricks]]></category>
		<category><![CDATA[Leisure]]></category>

		<guid isPermaLink="false">http://magpie.sytes.net/jesperhogstrom/?p=220</guid>
		<description><![CDATA[I &#8211; or should I say my ol&#8217; faithful lappy &#8211; finally caved in. It&#8217;s something about windows installations that makes them age with time. Sure, I&#8217;m not free of blame, having installed thisses and thattes, but I have ran antivirus software and disk defragmenters and even uninstalled apps I don&#8217;t need and shut down [...]]]></description>
			<content:encoded><![CDATA[<p>I &#8211; or should I say my ol&#8217; faithful lappy &#8211; finally caved in. It&#8217;s something about windows installations that makes them age with time. Sure, I&#8217;m not free of blame, having installed thisses and thattes, but I have ran antivirus software and disk defragmenters and even uninstalled apps I don&#8217;t need and shut down servives that I seriously do not need. Whatever.</p>
<p>Here we are, 2009, and a new 2.5&#8243; IDE hdd of 320GB is less than 1kkr. I got one and after some deliberation I opted for windows7 with Fedore Core as a close runner up.</p>
<p>So what did I install before the computer got productive?</p>
<p>The puropse of my machine is to connect to work, deveop some hobby projects of my own, write documents and such. Nothing out of the oedinary, really.</p>
<p>Work related:</p>
<p>* <a href="http://office.microsoft.com/sv-se/products/HA101741481053.aspx">MS Office</a> &#8211; Commercial word processor etc.<br />
* <a href="http://msdn.microsoft.com/en-us/library/52f3sw5c.aspx" target="_blank">Visual Studio</a> &#8211; Commercial development environment.<br />
* <a href="http://www.microsoft.com/Sqlserver/2008/en/us/express.aspx">SqlServer Express 2008</a> &#8211; Database backend<br />
* <a href="http://tortoisesvn.tigris.org/">Tortoise </a>-[free] Splendid windows explorer integrated client to <a href="http://subversion.tigris.org/" target="_blank">subversion</a><br />
* CCTray &#8211; Client monitor for <a href="http://confluence.public.thoughtworks.org/display/CCNET/Welcome+to+CruiseControl.NET" target="_blank">CruiseControl.Net</a><br />
* <a href="http://www.scootersoftware.com/moreinfo.php" target="_blank">BeyondCompare</a> &#8211; [commercial]File comparison tool.</p>
<p>Neat utilities:</p>
<p>* <a href="http://notepad-plus.sourceforge.net/uk/download.php" target="_blank">Notepad++</a> &#8211; Free excellent text editor with color coding for lots of syntaxes.<br />
*<a href="http://www.foxitsoftware.com/pdf/reader/" target="_blank">Foxit Reader</a> &#8211; Free fast PDF-reader.<br />
* <a href="http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx" target="_blank">Process Explorer</a> &#8211; Free task manager replacement.<br />
* <a href="http://www.7-zip.org/download.html" target="_blank">7Zip</a> &#8211; Free multi format compression handler.<br />
* <a href="http://www.imgburn.com/index.php?act=download" target="_blank">ImgBurn</a> &#8211; Free CD/DVD burner with ISO support.<br />
Internet</p>
<p>* <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">Putty</a> &#8211; Free ssh client.<br />
* <a href="http://sv-se.www.mozilla.com" target="_blank">Firefox</a> &#8211; Free internet browser<br />
* <a href="http://www.google.com/chrome/" target="_blank">Chrome</a> &#8211; Free internet browser<br />
* <a href="http://www.skype.com/intl/en/download/skype/windows/downloading/">Skype </a>- Free chat and phone client.</p>
<p>Just for fun</p>
<p>* <a href="http://spotify.com/en/download/windows/" target="_blank">Spotify</a> &#8211; Excellent music client.<br />
* Flash &#8211; For games and stuff in the browser.<br />
* <a href="http://www.videolan.org/vlc/download-windows.html" target="_blank">VLC</a> &#8211; Free media player, supports most formats.<br />
* <a href="http://filezilla-project.org/download.php" target="_blank">Filezilla</a> &#8211; Free graphical ftp client.</p>
<p>That&#8217;s most of the  initial cut of installations.</p>
<p>There are a few things left to install:</p>
<p>* <a href="http://www.jpsoft.com/download.htm" target="_blank">4Dos</a> &#8211; The command shell microsoft never made.<br />
* <a href="http://cdexos.sourceforge.net/?q=download" target="_blank">CdEx</a> &#8211; Free audio ripper.<br />
* <a href="http://www.cygwin.com/" target="_blank">CygWin</a> &#8211; Free Linux utils for windows,</p>
<p>Have fun. Let me know if you think I missed any useful tool!</p>
<p>&#8211;Jesper</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fmagpie.sytes.net%2Fjesperhogstrom%2F2009%2F10%2Freinstalling-computer%2F&amp;linkname=Reinstalling%20computer"><img src="http://magpie.sytes.net/jesperhogstrom/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://magpie.sytes.net/jesperhogstrom/2009/10/reinstalling-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crowdsourcing internet site status</title>
		<link>http://magpie.sytes.net/jesperhogstrom/2009/09/crowdsourcing-internet-site-status/</link>
		<comments>http://magpie.sytes.net/jesperhogstrom/2009/09/crowdsourcing-internet-site-status/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 21:15:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer tricks]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://magpie.sytes.net/jesperhogstrom/?p=208</guid>
		<description><![CDATA[There I was, checking my email and writing the odd mail I should have written long ago when all of a sudden gmail tells me it can&#8217;t connect and presumptuously suggests my internet connection is down.
Twitter to the rescue&#8230; http://search.twitter.com/search?q=gmail+down and you&#8217;ll get the basic idea. I&#8217;m fairly sure it can be used to check [...]]]></description>
			<content:encoded><![CDATA[<p>There I was, checking my email and writing the odd mail I should have written long ago when all of a sudden gmail tells me it can&#8217;t connect and presumptuously suggests my internet connection is down.</p>
<p>Twitter to the rescue&#8230; <a href="http://search.twitter.com/search?q=gmail+down" target="_blank">http://search.twitter.com/search?q=gmail+down</a> and you&#8217;ll get the basic idea. I&#8217;m fairly sure it can be used to check other new items too.</p>
<p>I also stumbled upon <a href="http://downforeveryoneorjustme.com/gmail.com" target="_blank">http://downforeveryoneorjustme.com/gmail.com</a> and just as gmail served me a 502 server error, the aforementioned site said that &#8220;it&#8217;s not just you&#8221;&#8230;</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fmagpie.sytes.net%2Fjesperhogstrom%2F2009%2F09%2Fcrowdsourcing-internet-site-status%2F&amp;linkname=Crowdsourcing%20internet%20site%20status"><img src="http://magpie.sytes.net/jesperhogstrom/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://magpie.sytes.net/jesperhogstrom/2009/09/crowdsourcing-internet-site-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switching ISPs</title>
		<link>http://magpie.sytes.net/jesperhogstrom/2009/05/switching-isps/</link>
		<comments>http://magpie.sytes.net/jesperhogstrom/2009/05/switching-isps/#comments</comments>
		<pubDate>Wed, 06 May 2009 21:22:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer tricks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[personligt]]></category>

		<guid isPermaLink="false">http://magpie.sytes.net/jesperhogstrom/?p=192</guid>
		<description><![CDATA[After several years of rather satisfying service from Telia I decided &#8211; on a whim &#8211; to switch to Tele2.
Actually, there were a few things that annoyed me on Telia. One was that I didn&#8217;t manage to change the machine that was connected to the ADSL connection. I followed all instructions I could find and [...]]]></description>
			<content:encoded><![CDATA[<p>After several years of rather satisfying service from Telia I decided &#8211; on a whim &#8211; to switch to Tele2.</p>
<p>Actually, there were a few things that annoyed me on Telia. One was that I didn&#8217;t manage to change the machine that was connected to the ADSL connection. I followed all instructions I could find and even called support. All I had to do was switch off the modem for 20 minutes and turn it back on with a new box plugged in. Never worked. Three hours. Still no new IP. Of course, it may have been just me, but that has never stopped anyone from being annoyed before.</p>
<p>The other thing was that I upgraded to 24Mbit/s, paid more, but they didn&#8217;t send me a new modem. I also had a feeling that new customers got better deals than me.</p>
<p>So, I switched. The switch was surprisingly painless. The target date was April 30th, and I expected all connections to go down and I&#8217;d have to install the new shiny modem I received from Tele2. Nothing of the kind! All of a sudden my dhcp address changed and that was it!</p>
<p>Then my wife started complaining about her mail not reaching her friends. My first suspicion was user error, but then I realized I had set up my qmail mail server to route via Telia&#8217;s smtp-server. Doh. I can&#8217;t blame Telia for not routing mail from Tele2 customers.</p>
<p>The neat thing about my linux servers is that they never crave any attention. That&#8217;s also a bad thing. While documentation is fun of the highest degree, my own network is slightly less than 6 sigma standard in that regard. Luckily I remembered that all I had to do was change the server name in the /var/qmail/control/smtproutes file.</p>
<p>Unfortunately Tele2 have blocked all outbound traffic on port 25. Instead they require mail clients to use port 587 and also to authenticate.</p>
<p>I had received a paper with a user name and password. I also set up a mail account with a new password. Furthermore I spent significant time researching how to shove that into the smtproutes file.</p>
<p>All to no avail. Support closes at 8 pm, but then I&#8217;ll try to explain my problem. The support site mentions very little about how to configure an smtp-server, though it does mention a lot about configuring mail clients. They also have a robot help desk service named Sara, where you can presumably ask questions in natural language. She claims to answer questions about internet, broad band and so on. I asked &#8220;How can I relay from my smtp server?&#8221; and got the reply &#8220;Server&#8230; Not my thing really. I don&#8217;t know much about hardware&#8221;.</p>
<p>Tomorrow I&#8217;ll bother tech support. That&#8217;ll be fun&#8230;</p>
<p>&#8211;Jesper</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fmagpie.sytes.net%2Fjesperhogstrom%2F2009%2F05%2Fswitching-isps%2F&amp;linkname=Switching%20ISPs"><img src="http://magpie.sytes.net/jesperhogstrom/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://magpie.sytes.net/jesperhogstrom/2009/05/switching-isps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gain ssh access to ReadyNAS</title>
		<link>http://magpie.sytes.net/jesperhogstrom/2009/01/hacking-the-readynas/</link>
		<comments>http://magpie.sytes.net/jesperhogstrom/2009/01/hacking-the-readynas/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 19:56:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer tricks]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://magpie.sytes.net/jesperhogstrom/?p=162</guid>
		<description><![CDATA[In my server closet I run a Netgear ReadyNAS+ with 1.5TB of effective storage. It&#8217;s a really neat box with support for various access methods, like nfs, ftp, http and cifs and a few more.
My latest informational reorg included an idea to publish sound and video on a share that the kids could access. All [...]]]></description>
			<content:encoded><![CDATA[<p>In my server closet I run a <a href="http://www.readynas.com/">Netgear ReadyNAS+</a> with 1.5TB of effective storage. It&#8217;s a really neat box with support for various access methods, like nfs, ftp, http and cifs and a few more.</p>
<p>My latest informational reorg included an idea to publish sound and video on a share that the kids could access. All that stuff used to sit on a share deep in a structure from a previous box I used to run.</p>
<p>Easy thing to figure out what to do; simply create a new share, call it Media and allow all the internal network read-access.  Mount it on a linux box with root access, then move everything from the old jesper/backup/jesper/bigdrive/private/media to that directory.</p>
<p>The only thing is that it&#8217;s not possible to simply rewrite the inodes when moving things from one nfs-mounted volume to another nfs-mounted volume. Every single bit needs to be copied.</p>
<p>It was a somewhat lengthy procedure to move everything onto the NAS, but at that time I had a gigabit card (still have it but it is not recognized by vmware esxi) and data was only going one way &#8211; from one box onto the NAS. This time, I was stuck with a 100MBit nic and data had to travel from the NAS, to the computer and then back to the NAS. Admittedly I didn&#8217;t have to watch, but I figured it would take me days to shuffle all of that data.</p>
<p>As the ReadyNAS runs a linux distro behind the scenes I figured the solution would be to gain terminal access to the NAS using ssh. Unfortunately that wasn&#8217;t on by default. I googled and found several solutions to fix the problem, ranging from <a href="http://chapados.org/2006/11/23/infrant-readynas-shell-access">opening the NAS and mounting the disks on another computer</a> to <a href="http://chapados.org/2007/5/6/readynas-shell-access-redux">using some odd &#8220;feature&#8221; in Apple File Protocol and hacking the crontab file</a>.</p>
<p>Eventually I found a much simpler solution: Installing the official &#8216;enable ssh access&#8217; patches. <img src='http://magpie.sytes.net/jesperhogstrom/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>On <a href="http://www.readynas.com/?page_id=94">http://www.readynas.com/?page_id=94</a> you&#8217;ll find &#8211; at the bottom of the page &#8211; two patches; <a href="http://www.readynas.com/download/addons/4.00/ToggleSSH_1.0.bin">ToggleSSH</a> and <a href="http://www.readynas.com/download/addons/4.00/EnableRootSSH_1.0.bin">EnableRootSSH</a>. Both need to be installed, and the NAS wants to reboot after each one.</p>
<p>ssh into the nas. Log in as root with your existing admin password. Voila! you&#8217;re in!</p>
<p>Now moving the remaining data was a few keystrokes away and obviously lightning fast using the good ol&#8217; mv command.</p>
<p>Happy hacking!</p>
<p>&#8211;Jesper Hogstrom</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fmagpie.sytes.net%2Fjesperhogstrom%2F2009%2F01%2Fhacking-the-readynas%2F&amp;linkname=Gain%20ssh%20access%20to%20ReadyNAS"><img src="http://magpie.sytes.net/jesperhogstrom/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://magpie.sytes.net/jesperhogstrom/2009/01/hacking-the-readynas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic firewalls</title>
		<link>http://magpie.sytes.net/jesperhogstrom/2008/12/dynamic-firewalls/</link>
		<comments>http://magpie.sytes.net/jesperhogstrom/2008/12/dynamic-firewalls/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 21:11:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer tricks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[internet media]]></category>

		<guid isPermaLink="false">http://magpie.sytes.net/jesperhogstrom/?p=123</guid>
		<description><![CDATA[On my way home today I thought abut all the intrusion attacks and pondered the possibilities to update the firewall automatically.
I get logs mailed from my various systems on a daily basis. Several times a week they are filled with failed attempts to pick up mail from adam, annie, alonzo, bert, bill, caesar, daniel, david&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>On my way home today I thought abut all the intrusion attacks and pondered the possibilities to update the firewall automatically.</p>
<p>I get logs mailed from my various systems on a daily basis. Several times a week they are filled with failed attempts to pick up mail from adam, annie, alonzo, bert, bill, caesar, daniel, david&#8230; as well as requests for /phpadmin/index.php /phpdbadmin/index.php, /phpsqladmin/index.php and so on.</p>
<p>The idea I dreamed up was fairly simple; either hook onto an existing intrusion detection system (IDS) like <a href="http://www.snort.org/">snort</a> or write some other simple rules, maybe by analyzing log files from apache; &#8220;if an ip# requested 10 non-existing pages in 5 seconds, drop all packets from that source&#8221;.</p>
<p>I didn&#8217;t get very far in my thinking, before I realized someone else may have already done this. <a href="http://www.google.com/search?q=dynamic+firewall+linux">My first search</a> yielded quite a few hits, including some stating it&#8217;s a bad idea to auto-block ip# based on IDS rules, mainly because of the many false positives.</p>
<p>However, one guy was right along my thinking with a <a href="http://www.subspacefield.org/security/dfd/">Dynamic Firewall Daemon</a>. The specs matched much of what I would eventually have set up myself (he said humbly). Other applications in the same area include <a href="http://www.cipherdyne.org/fwsnort/">fwsnort</a>.</p>
<p>On the other hand, <a href="http://www.linuxsecurity.com/content/view/117370/49/">this article from linuxsecurity.com</a> states &#8220;intrusion prevention is still at its early stage and there is no out-of-the-box product that will perfectly fits your requirements.&#8221; &#8211; though that was written ages ago (2006 I would guess based on the date of the first comment).</p>
<p><a href="http://www.ibm.com/developerworks/linux/library/l-fw/index.html?dwzone=linux%3fopen&amp;l=758,t=gr,p=Fwalls">An insightful article from IBM</a> gives some handy scripts, but not quite automation.</p>
<p>I readily admit to not being an expert in package filtering, but I do run firewalls, IDS and open only the ports required. What worries me a bit is that the majority of people out there are unaware of even the most basic facts about how to protect themselves from attacks. And <a href="http://www.chicagotribune.com/news/nationworld/chi-cyberattack_bdnov30,0,1811402,print.story">even Pentagon have a problem</a> securing their perimeter&#8230;</p>
<p>Before I completely take off on something else, I recommend <a href="http://www.onpointradio.org/shows/2008/12/cyber-warfare/">the OnPoint Radio show on Cyber warfare</a>. Much more high level than mere firewall scripts, but very eye-opening.</p>
<p>Anyway, if you have any experience on dynamic firewalls, open source or commercial, please feel free to share!</p>
<p>&#8211;Jesper Högström</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fmagpie.sytes.net%2Fjesperhogstrom%2F2008%2F12%2Fdynamic-firewalls%2F&amp;linkname=Dynamic%20firewalls"><img src="http://magpie.sytes.net/jesperhogstrom/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://magpie.sytes.net/jesperhogstrom/2008/12/dynamic-firewalls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Streaming audio over FM</title>
		<link>http://magpie.sytes.net/jesperhogstrom/2008/12/streaming-audio-over-fm/</link>
		<comments>http://magpie.sytes.net/jesperhogstrom/2008/12/streaming-audio-over-fm/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 20:47:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer tricks]]></category>
		<category><![CDATA[mp3]]></category>

		<guid isPermaLink="false">http://magpie.sytes.net/jesperhogstrom/?p=117</guid>
		<description><![CDATA[I assume you&#8217;ve heard of Spotify &#8211; a completely massive music database for streaming with a lightning fast client; find your fav music in milliseconds.
Anyway, I got myself an account but rather quickly decided my laptop speaker did not make the music selection justice (and really, no matter the selection, the lap top speaker would [...]]]></description>
			<content:encoded><![CDATA[<p>I assume you&#8217;ve heard of <a href="http://www.spotify.com/en/">Spotify</a> &#8211; a completely massive music database for streaming with a lightning fast client; find your fav music in milliseconds.</p>
<p>Anyway, I got myself an account but rather quickly decided my laptop speaker did not make the music selection justice (and really, no matter the selection, the lap top speaker would be a joy killer), so I decided to put one of the old boxes to use and plug it into the stereo.</p>
<p>Said and done, I grabbed an old lappy with a broken screen I previously thought would be my video player, but it lacked the CPU power to do better than 50% frame drop rate. I guess it had an old Fedora 6 installation on it.</p>
<p>I should also mention that while I have ran cables to some places in the house, the corner of the stereo is unwired.</p>
<p>Thus, I spent more time than I really had learning about wireless under linux. Then I formatted the harddisk and installed FC9 on it. It accepted the wlan card without a problem, but I still couldn&#8217;t connect to the network. A few hours later I moved myself and the machine to a place where I knew for sure the wlan waves actually reached. Doh. The material in my house eats radio waves like pop corn.</p>
<p>At this point I was ready to install Spotify. On the minus side there is no linux client available. On the plus side <a href="http://www.spotify.com/en/help/faq/wine/">it worked like a charm using Wine</a>. Yehaa! For several minutes this worked out well. Using <a href="http://www.realvnc.com/">VNC</a> I could easily remote to the &#8220;jukebox&#8221; to control the spotify client and it poured out the lovely tunes of my choice.</p>
<p>Then it lost the network connection, and I had to restart the Spotify client and then it played on and on for a few more minutes. Not satisfied!</p>
<p>I finally gave up on the project and bought <a href="http://www.webhallen.com/prod.php?id=76325">one of those FM transmitters</a> usually used to get the mp3 player to send audio to the car stereo.</p>
<p>Now I have Spotify running on my trustworthy ol&#8217; lappy, the FM transmitter just beside me and music coming from my stereo tuned into FM 98.3MHz. If it hand&#8217;t been for the complete radio proof house I live in my neighbours could also enjoy the ride <img src='http://magpie.sytes.net/jesperhogstrom/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#8211;Jesper Hogstrom</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fmagpie.sytes.net%2Fjesperhogstrom%2F2008%2F12%2Fstreaming-audio-over-fm%2F&amp;linkname=Streaming%20audio%20over%20FM"><img src="http://magpie.sytes.net/jesperhogstrom/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://magpie.sytes.net/jesperhogstrom/2008/12/streaming-audio-over-fm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade failed, black screen of grub, MBR busted</title>
		<link>http://magpie.sytes.net/jesperhogstrom/2008/11/upgrade-failed-black-screen-of-grub-mbr-busted/</link>
		<comments>http://magpie.sytes.net/jesperhogstrom/2008/11/upgrade-failed-black-screen-of-grub-mbr-busted/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 18:08:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer tricks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[development infrastructure]]></category>

		<guid isPermaLink="false">http://magpie.sytes.net/jesperhogstrom/?p=113</guid>
		<description><![CDATA[There I was, having a pretty good time. To me, that means having spent most of the weekend playing table tennis with my son, and finalizing the movement of all my VMs to the shiny new ESXi server.
To make things perfect, I wanted all the machines to run VMWare tools. On some machines that was [...]]]></description>
			<content:encoded><![CDATA[<p>There I was, having a pretty good time. To me, that means having spent most of the weekend playing table tennis with my son, and finalizing the movement of all my VMs to the shiny new ESXi server.</p>
<p>To make things perfect, I wanted all the machines to run VMWare tools. On some machines that was as simple as selecting the appropriate menu item.</p>
<p><a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/install_vmwaretools.png"><img class="alignnone size-full wp-image-114" title="install_vmwaretools" src="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/install_vmwaretools.png" alt="" width="282" height="292" /></a></p>
<p>However, in some other cases it was simply not that simple. I needed to do the whole thing manually. For now, I&#8217;ll skip over the details of that and cut to the chase.</p>
<p>I tried to upgrade my kernel so I could recompile some vmware tools drivers when something went terribly wrong.</p>
<p>When I rebooted, all I had was a black screen saying &#8220;GRUB _&#8221; and it didn&#8217;t accept a single key stroke.</p>
<p>Luckily, it wasn&#8217;t the most important machine, but still &#8211; things didn&#8217;t look too good.</p>
<p>After spending some time on google, I found that others had had the same problem, and it seemed to having to do with the MBR (Master Boot Record) being messed up. It made kind of sense, but what then?</p>
<p>A <a href="http://ubuntuforums.org/showthread.php?t=790886">thread I found on an Ubuntu site</a> mentioned something called the Super Grub Disk. I downloaded it from <a href="http://www.supergrubdisk.org/">http://www.supergrubdisk.org/</a> and uploaded it to the ESXi data storage.</p>
<p>Add a CD to the VM and point it to the ISO image.</p>
<p>Next &#8211; how to get the VM to change boot sequence?</p>
<p>Shut down the VM, edit settings and check the little box.</p>
<p><a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/bios_next_boot.png"><img class="alignnone size-full wp-image-115" title="bios_next_boot" src="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/bios_next_boot.png" alt="" width="500" height="201" /></a></p>
<p>Save and reboot.</p>
<p>The interface is somewhat different &#8211; but plain menu driven! For me, it worked to simply select the menu options with help, select language, opt for Gnu/Linux and then &#8220;Fix boot of Gnu/Linux (GRUB)&#8221;. 0.1 seconds later I got an OK message, shut down the machine and switched back the boot order.</p>
<p>It just worked, The machine is back online. Now it&#8217;s time to beat the next generation in table tennis one more time before I install the VMWare tools.</p>
<p>A piece of advice: Take snapshots before you upgrade the kernel!</p>
<p>&#8211;Jesper Hogstrom</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fmagpie.sytes.net%2Fjesperhogstrom%2F2008%2F11%2Fupgrade-failed-black-screen-of-grub-mbr-busted%2F&amp;linkname=Upgrade%20failed%2C%20black%20screen%20of%20grub%2C%20MBR%20busted"><img src="http://magpie.sytes.net/jesperhogstrom/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://magpie.sytes.net/jesperhogstrom/2008/11/upgrade-failed-black-screen-of-grub-mbr-busted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting vmware disks from IDE to SCSI</title>
		<link>http://magpie.sytes.net/jesperhogstrom/2008/11/converting-vmware-disks-from-ide-to-scsi/</link>
		<comments>http://magpie.sytes.net/jesperhogstrom/2008/11/converting-vmware-disks-from-ide-to-scsi/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 22:23:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer tricks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[development infrastructure]]></category>

		<guid isPermaLink="false">http://magpie.sytes.net/jesperhogstrom/?p=101</guid>
		<description><![CDATA[In the process of moving from VMWare Server to VMWare ESXi I realized I must change the layout of my disks. ESXi doesn&#8217;t like growing disks, nor does it like IDE disks.
I alluded to my initial conversion issues in this post. While I learned more than I asked for, it seems it wasn&#8217;t quite necessary [...]]]></description>
			<content:encoded><![CDATA[<p>In the process of moving from <a href="http://www.vmware.com/download/server/">VMWare Server</a> to <a href="https://www.vmware.com/tryvmware/?p=esxi">VMWare ESXi</a> I realized I must change the layout of my disks. ESXi doesn&#8217;t like growing disks, nor does it like IDE disks.</p>
<p>I alluded to my initial conversion issues in <a href="http://magpie.sytes.net/jesperhogstrom/2008/11/creating-floppy-boot-disks-under-vmware/">this post</a>. While I learned more than I asked for, it seems it wasn&#8217;t quite necessary to use the lsilogic adapter. Buslogic worked just as fine&#8230;</p>
<p>First, credit where credit is due. I gathered all my information from <a href="http://hamed.dk/home/53-vm-ide2scsi">http://hamed.dk/home/53-vm-ide2scsi </a>and <a href="http://blog.creonfx.com/linux/howto-convert-vmware-windows-xp-ide-disk-to-lsilogic-scsi">http://blog.creonfx.com/linux/howto-convert-vmware-windows-xp-ide-disk-to-lsilogic-scsi</a>.</p>
<p>Having converted a couple of disks, I felt obliged to add the minor details I managed to add to the process.</p>
<p>Not that I&#8217;m a sissy, but one never knows. Close the virtual machine and backup!</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">cd /VMs
</div>
</li>
<li class="li1">
<div class="de1">$ mkdir backup
</div>
</li>
<li class="li1">
<div class="de1">$ cp -v virtualmach1/* backup</div>
</li>
</ol>
</div>
<p>My disks hadn&#8217;t been defragmented in a while &#8211; as I didn&#8217;t even know that was possible, so lets start doing that:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">$ cd /VMs/virtualmach1
</div>
</li>
<li class="li1">
<div class="de1">$ vmware-vdiskmanager -d Windows\ XP\ Professional-cl1-000001-cl1.vmdk
</div>
</li>
<li class="li1">
<div class="de1">Using log file /tmp/vmware-root/vdiskmanager.log
</div>
</li>
<li class="li1">
<div class="de1">Defragment: 100% done.
</div>
</li>
<li class="li2">
<div class="de2">Defragmentation completed successfully.</div>
</li>
</ol>
</div>
<p>When I read the other posts, I was quite worried about not having a &#8220;small vmdk-file&#8221; that contained the disk description. Fear not! It will magically appear after the next step: Disk conversion. While we&#8217;re at it, give the disk a better name. Delete the old disk. We have a backup, remember?</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">$ vmware-vdiskmanager -r Windows\ XP\ Professional-cl1-000001-cl1.vmdk -t 2 virtualmachine1.vmdk
</div>
</li>
<li class="li1">
<div class="de1">Using log file /tmp/vmware-root/vdiskmanager.log
</div>
</li>
<li class="li1">
<div class="de1">Creating monolithic preallocated disk &#8216;virtualmachine1.vmdk&#8217;
</div>
</li>
<li class="li1">
<div class="de1">&nbsp; Convert: 100% done.
</div>
</li>
<li class="li2">
<div class="de2">Virtual disk conversion successful.
</div>
</li>
<li class="li1">
<div class="de1">$ ls *.vmdk
</div>
</li>
<li class="li1">
<div class="de1">virtualmachine1-flat.vmdk &nbsp;virtualmachine1.vmdk Windows XP Professional-cl1-000001-cl1.vmdk
</div>
</li>
<li class="li1">
<div class="de1">$ rm &quot;Windows XP Professional-cl1-000001-cl1.vmdk&quot;</div>
</li>
</ol>
</div>
<p>The virtual physical layout of the disks will change when we convert it to a SCSI disk, but the number of sectors remain the same. Check the number of sectors you have now:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">$ &nbsp;cat virtualmachine1.vmdk|grep RW| awk &nbsp;&#8217;{print $2}&#8217;
</div>
</li>
<li class="li1">
<div class="de1">25165824</div>
</li>
</ol>
</div>
<p>The number 25165824 will be used to create a dummy SCSI disk. YOUR NUMBER WILL NOT BE THE SAME!</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">$ vmware-vdiskmanager -c -s 25165824 -a buslogic -t 1 scsi.vmdk</div>
</li>
</ol>
</div>
<p>If you&#8217;re like me and prefer to copy entire lines and avoid remembering numbers between screens, here goes:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">$ vmware-vdiskmanager -c -s `cat virtualmachine1.vmdk|grep RW| awk &nbsp;&#8217;{print $2}&#8217;` -a buslogic -t 1 scsi.vmdk</div>
</li>
</ol>
</div>
<p>Either way, look at the scsi.vmdk file and copy the lines the look similar to</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">ddb.geometry.<span class="re1">cylinders </span>= <span class="st0">&quot;1566&quot;</span></div>
</li>
<li class="li1">
<div class="de1">ddb.geometry.<span class="re1">heads </span>= <span class="st0">&quot;255&quot;</span></div>
</li>
<li class="li1">
<div class="de1">ddb.geometry.<span class="re1">sectors </span>= <span class="st0">&quot;63&quot;</span></div>
</li>
<li class="li1">
<div class="de1">ddb.<span class="re1">adapterType </span>= <span class="st0">&quot;buslogic&quot;</span></div>
</li>
</ol>
</div>
<p>Open virtualmachine1.vmdk and replace the lines that have the same keys.</p>
<p>Now we need to make some changes to the vmx-file. The vmx-files don&#8217;t seem to care about the order of values. My file was hard to navigate in, as keys were not collated. To the rescue:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">$ cat winxppro.vmx | grep &nbsp;&quot;\#\!&quot; &nbsp;&gt; w.vmx
</div>
</li>
<li class="li1">
<div class="de1">$ cat winxppro.vmx | grep &nbsp;-v &quot;\#\!&quot; | grep -v &quot;^$&quot; | sort &gt;&gt; w.vmx
</div>
</li>
<li class="li1">
<div class="de1">$ chmod w.vmx &#8211;reference=winxppro.vmx
</div>
</li>
<li class="li1">
<div class="de1">$ rm winxppro.vmx
</div>
</li>
<li class="li2">
<div class="de2">$ mv w.vmx winxppro.vmx</div>
</li>
</ol>
</div>
<p>Edit the vmx-file and remove/comment out  the ide0:0* keys.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">#ide0:<span class="nu0">0</span>.<span class="re1">fileName </span>= <span class="st0">&quot;Windows XP Professional-cl1-000001-cl1.vmdk&quot;</span></div>
</li>
<li class="li1">
<div class="de1">#ide0:<span class="nu0">0</span>.<span class="re1">present </span>= <span class="st0">&quot;TRUE&quot;</span></div>
</li>
<li class="li1">
<div class="de1">#ide0:<span class="nu0">0</span>.<span class="re1">redo </span>= <span class="st0">&quot;&quot;</span></div>
</li>
</ol>
</div>
<p>Find the section mentioning scsi, or place it in the correct alphabetical place:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">scsi0.<span class="re1">present </span>= <span class="st0">&quot;TRUE&quot;</span></div>
</li>
<li class="li1">
<div class="de1">scsi0.<span class="re1">virtualDev </span>= <span class="st0">&quot;buslogic&quot;</span></div>
</li>
<li class="li1">
<div class="de1">scsi0:<span class="nu0">0</span>.<span class="re1">present </span>= <span class="st0">&quot;TRUE&quot;</span></div>
</li>
<li class="li1">
<div class="de1">scsi0:<span class="nu0">0</span>.<span class="re1">fileName </span>= <span class="st0">&quot;virtualmachine1.vmdk&quot;</span></div>
</li>
<li class="li2">
<div class="de2">scsi0:<span class="nu0">0</span>.<span class="re1">mode </span>= <span class="st0">&quot;independent-persistent&quot;</span></div>
</li>
</ol>
</div>
<p>I already had the key &#8217;scsi0.present = &#8220;TRUE&#8221;&#8216; present. Having the key twice prevents the machine from starting!</p>
<p>If you changed names on the vmx-file, remove the old machine from the inventory in VMWare server console. Open the new vmx-file. Start it.</p>
<p>Important: If you did rename the files, you will get a question if you want to keep or replace the identifier. Most likely you want to KEEP the identifier. After all it is the same machine.</p>
<p>If everything worked as expected, delete the backup directory. You can also delete scsi.* from your VM directory. If it didn&#8217;t work out &#8211; restore the directory, start from top of page and read more carefully.</p>
<p>&#8211;Jesper Hogstrom</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fmagpie.sytes.net%2Fjesperhogstrom%2F2008%2F11%2Fconverting-vmware-disks-from-ide-to-scsi%2F&amp;linkname=Converting%20vmware%20disks%20from%20IDE%20to%20SCSI"><img src="http://magpie.sytes.net/jesperhogstrom/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://magpie.sytes.net/jesperhogstrom/2008/11/converting-vmware-disks-from-ide-to-scsi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating floppy boot disks under VMWare</title>
		<link>http://magpie.sytes.net/jesperhogstrom/2008/11/creating-floppy-boot-disks-under-vmware/</link>
		<comments>http://magpie.sytes.net/jesperhogstrom/2008/11/creating-floppy-boot-disks-under-vmware/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 21:43:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer tricks]]></category>
		<category><![CDATA[development infrastructure]]></category>

		<guid isPermaLink="false">http://magpie.sytes.net/jesperhogstrom/?p=85</guid>
		<description><![CDATA[I am in the process of shifting my server from running Fedora Core + VMWare server into VMWare ESXi.
I&#8217;ll cover the gory details of that in another post. At this point, all you need to know is that ESXi doesn&#8217;t support IDE disks, only SCSI disks. Most of my VMs have IDE disks. Sigh.
After crawling [...]]]></description>
			<content:encoded><![CDATA[<p>I am in the process of shifting my server from running <a href="http://fedoraproject.org/">Fedora Core</a> + <a href="http://www.vmware.com/download/server/">VMWare server</a> into <a href="https://www.vmware.com/tryvmware/?p=esxi">VMWare ESXi</a>.</p>
<p>I&#8217;ll cover the gory details of that in another post. At this point, all you need to know is that ESXi doesn&#8217;t support IDE disks, only SCSI disks. Most of my VMs have IDE disks. Sigh.</p>
<p>After crawling the net for a while I found some extremely useful posts covering what needs to be done:</p>
<p><a href="http://hamed.dk/home/53-vm-ide2scsi">http://hamed.dk/home/53-vm-ide2scsi</a> and <a href="http://blog.creonfx.com/linux/howto-convert-vmware-windows-xp-ide-disk-to-lsilogic-scsi.">http://blog.creonfx.com/linux/howto-convert-vmware-windows-xp-ide-disk-to-lsilogic-scsi</a>.</p>
<p>One of the first things that must be done is to install the <a href="http://www.lsi.com/storage_home/products_home/host_bus_adapters/scsi_hbas/lsi20320r/index.html">LsiLogic driver</a>. I opted for the <a href="http://www.lsi.com/DistributionSystem/AssetDocument/files/support/ssp/whql/LSI20320-R_xp_50700_01034132IT_1201800_1005239.zip">WHQL 1.20.18.00</a>.</p>
<p>The problem then is to upgrade the BIOS. I must admit I am not exactly sure if that is a required step, but I did it anyway. Why is it a problem? Well, a set of files need to be placed on a bootable floppy drive. And my lappy doesn&#8217;t have a floppy slot.</p>
<p>Luckily there is a way. Open the settings for the machine.<br />
<a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/vm_settings1.png"><img class="alignnone size-full wp-image-88" title="vm_settings1" src="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/vm_settings1.png" alt="" width="264" height="445" /></a><a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/vm_settings.png"><br />
</a></p>
<p>Add a Floppy. Make sure you select to create a blank floppy image.</p>
<p><a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/add_floppy.png"><img class="alignnone size-full wp-image-87" title="add_floppy" src="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/add_floppy.png" alt="" width="350" height="388" /></a></p>
<p>Specify a filename and do NOT connect at power on.</p>
<p><a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/floppy_filename.png"><img class="alignnone size-full wp-image-89" title="floppy_filename" src="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/floppy_filename.png" alt="" width="276" height="262" /></a></p>
<p>Start the VM. Once booted, connect the disk.</p>
<p><a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/connect_floppy.png"><img class="alignnone size-full wp-image-91" title="connect_floppy" src="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/connect_floppy.png" alt="" width="414" height="135" /></a></p>
<p>Open windows explorer, right-click the A: disk and select Format</p>
<p><a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/select_format.png"><img class="alignnone size-full wp-image-90" title="select_format" src="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/select_format.png" alt="" width="195" height="211" /></a></p>
<p>Make sure to create a startup disk.</p>
<p><a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/format_bootable.png"><img class="alignnone size-full wp-image-92" title="format_bootable" src="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/format_bootable.png" alt="" width="261" height="404" /></a></p>
<p>Click start and the process is over in a few seconds.</p>
<p>Now you can put the files from the LsiLogic BIOS package on the disk. If you are running VMWare Workstation you can simply drag them from the host machine into the VM. Note that you should NOT copy LSI&#8217;s command.com. It simply didn&#8217;t work well for me; something about a corrupt image. Just take all the other files.</p>
<p>Shut down the VM, open settings, select the floppy and have it connect on power on.</p>
<p><a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/connect_floppy_at_boot.png"><img class="alignnone size-full wp-image-93" title="connect_floppy_at_boot" src="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/connect_floppy_at_boot.png" alt="" width="498" height="203" /></a></p>
<p>Start the VM again. It will now boot from the floppy assuming your VM BIOS is set like mine. Press F2 during booting and make sure:</p>
<p><a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/bios_boot_order.png"><img class="alignnone size-full wp-image-94" title="bios_boot_order" src="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/bios_boot_order.png" alt="" width="440" height="256" /></a></p>
<p>If you made any changes, exit and save changes.</p>
<p>A familiar screen&#8230;</p>
<p><a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/dos_screen.png"><img class="alignnone size-full wp-image-95" title="dos_screen" src="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/dos_screen.png" alt="" width="254" height="174" /></a></p>
<p>Run the install-command and ponder which option suits you. I chose (a).</p>
<p><a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/lsi_install.png"><img class="alignnone size-full wp-image-96" title="lsi_install" src="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/lsi_install.png" alt="" width="500" height="201" /></a></p>
<p>On the next screen, I chose (t)</p>
<p><a href="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/lsi_options.png"><img class="alignnone size-full wp-image-97" title="lsi_options" src="http://magpie.sytes.net/jesperhogstrom/wp-content/uploads/2008/11/lsi_options.png" alt="" width="500" height="176" /></a></p>
<p>Then quit your way out.</p>
<p>To be quite honest I don&#8217;t think this worked as well as I hoped. At least when I do it again and again I manage to see something about &#8220;base address not found&#8221;. Maybe it works only once? Or maybe this step isn&#8217;t required.</p>
<p>At any rate, I thought it was a nifty way to solve the problem with creating a boot disk under vmware when I needed one. Or at least thought I did.</p>
<p>&#8211;Jesper Högström</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fmagpie.sytes.net%2Fjesperhogstrom%2F2008%2F11%2Fcreating-floppy-boot-disks-under-vmware%2F&amp;linkname=Creating%20floppy%20boot%20disks%20under%20VMWare"><img src="http://magpie.sytes.net/jesperhogstrom/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://magpie.sytes.net/jesperhogstrom/2008/11/creating-floppy-boot-disks-under-vmware/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing qmail/supervise under fc9</title>
		<link>http://magpie.sytes.net/jesperhogstrom/2008/10/installing-qmailsupervise-under-fc9/</link>
		<comments>http://magpie.sytes.net/jesperhogstrom/2008/10/installing-qmailsupervise-under-fc9/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 15:17:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer tricks]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://magpie.sytes.net/jesperhogstrom/?p=80</guid>
		<description><![CDATA[I&#8217;ve spent the evenings of the last few days trying to upgrade a few Fedora Core 8 (fc8) boxes to fc9. I&#8217;ll get into the gory details of it all in some other post; at this point, suffice it to say my mailserver, running qmail, caused me big grievances. Reason? The supervise script as specified [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent the evenings of the last few days trying to upgrade a few Fedora Core 8 (fc8) boxes to fc9. I&#8217;ll get into the gory details of it all in some other post; at this point, suffice it to say my mailserver, running qmail, caused me big grievances. Reason? The supervise script as specified in /etc/inittab didn&#8217;t start.</p>
<p>Looking at the file everything looked fine. The line</p>
<pre>SV:123456:respawn:/command/svscanboot</pre>
<p>was indeed present, but &#8220;qmailctl stat&#8221; kindly informed me the services weren&#8217;t running.</p>
<pre># qmailctl stat
/service/qmail-send: supervise not running
/service/qmail-send/log: supervise not running
/service/qmail-smtpd: supervise not running
/service/qmail-smtpd/log: supervise not running
/service/qmail-pop3d: supervise not running
/service/qmail-pop3d/log: supervise not running
messages in queue: 0
messages in queue but not yet preprocessed: 0</pre>
<p>Finally I found <a href="http://www.secureconsulting.net/2008/09/fedora_9_upgrade_snaffus.html">a blog entry</a> that pointed me in the right direction. It also included a pointer to <a href="http://blog.blinkenlights.nl/2006/10/29/daemontools-with-upstart/">this blog entry</a>.<br />
In short, it seems fc9 uses another boot sequence than fc8 and earlier versions. Note too that the two scripts in the above mentioned links look slightly different.<br />
You probably want to read up on things by investigating</p>
<pre>man events
man initctl</pre>
<p><a href="http://upstart.ubuntu.com/getting-started.html">This guide</a> also contains some useful information.<br />
After some experimenting I got the script right, and it looks like</p>
<pre># svscan - daemontools
#
# This service starts daemontools from the point the system is
# started until it is shut down again.

start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5

stop on shutdown

respawn
exec /command/svscanboot</pre>
<p>Put this in /etc/event.d/svscan and reboot &#8211; or simply test it by &#8220;start svscan&#8221;. Verify by invoking initctl list.</p>
<pre>
# initctl list
control-alt-delete (stop) waiting
logd (stop) waiting
prefdm (stop) waiting
rc0 (stop) waiting
rc1 (stop) waiting
rc2 (stop) waiting
rc3 (stop) waiting
rc4 (stop) waiting
rc5 (stop) waiting
rc6 (stop) waiting
rcS (stop) waiting
rcS-sulogin (stop) waiting
serial (instance)
sulogin (stop) waiting
svscan (start) running, process 1862
tty1 (start) running, process 1749
tty2 (start) running, process 1745
tty3 (start) running, process 1747
tty4 (start) running, process 1738
tty5 (start) running, process 1743
tty6 (start) running, process 1751
vpnc-cleanup (stop) waiting</pre>
<p>&#8211;Jesper Högström</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fmagpie.sytes.net%2Fjesperhogstrom%2F2008%2F10%2Finstalling-qmailsupervise-under-fc9%2F&amp;linkname=Installing%20qmail%2Fsupervise%20under%20fc9"><img src="http://magpie.sytes.net/jesperhogstrom/wp-content/plugins/add-to-any/share_save_171_16.gif" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://magpie.sytes.net/jesperhogstrom/2008/10/installing-qmailsupervise-under-fc9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
