<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>G-Loaded Journal &#187; Windows</title>
	<atom:link href="http://www.g-loaded.eu/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.g-loaded.eu</link>
	<description>An open-source software and technology related journal</description>
	<lastBuildDate>Thu, 14 Feb 2013 07:36:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
		<item>
		<title>Locale in Windows</title>
		<link>http://www.g-loaded.eu/2011/02/27/locale-windows/</link>
		<comments>http://www.g-loaded.eu/2011/02/27/locale-windows/#comments</comments>
		<pubDate>Sun, 27 Feb 2011 09:29:03 +0000</pubDate>
		<dc:creator>George Notaras</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Command-Line]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://www.g-loaded.eu/?p=2122</guid>
		<description><![CDATA[The other day I was experimenting with PostgreSQL under Windows and I was very confused setting a locale in the command line when initializing the database cluster. If I didn&#8217;t specify a locale in the --locale option of initdb, then the locale that was used was: Greek_Greece.1253. Well, I needed to initialize the cluster with [...]]]></description>
				<content:encoded><![CDATA[<p>The other day I was experimenting with <a href="http://postgresql.org">PostgreSQL</a> under <a href="http://www.microsoft.com/windows/">Windows</a> and I was very confused setting a locale in the command line when initializing the database cluster. If I didn&#8217;t specify a locale in the <code>--locale</code> option of <code>initdb</code>, then the locale that was used was: <em>Greek_Greece.1253</em>. Well, I needed to initialize the cluster with <code>en_US.UTF-8</code>, but it would not be accepted. After some experimentation, I realized that no matter what name I tried, for example <em>en_US.UTF-8</em>, <em>el_GR.UTF-8</em> etc, it did not work out! This led me to the conclusion that Windows uses different names than those I used in Linux for the same task.<br />
<span id="more-2122"></span><br />
At this point, I should note that I didn&#8217;t use the <a href="http://www.enterprisedb.com/products-services-training/pgdownload#windows">PostgreSQL Windows Installer</a> package, which would have probably taken care of the locale setting automatically or provide me with an option to customize it, but, as the advanced computer guru that I am, I preferred the bare <a href="http://www.enterprisedb.com/products-services-training/pgbindownload">Windows binaries</a> package instead.</p>
<p>After several unsuccessful attempts, I thought of using the <a href="http://docs.python.org/library/locale.html#module-locale">locale Python module</a> and see if it could help me get a list of locale names that Windows supports. I managed to get a list of locales, but it turned out that those would not be accepted by initdb either.</p>
<p>As a last resort, I decided to dig into <a href="http://msdn.microsoft.com/">MSDN</a> for an answer. My experience with that place is minimal, so it took me a while before familiarizing myself and making progress with my research. But finally, I managed to locate the needed information. So, Windows uses the same pattern for locale names:</p>
<pre class="codesnp">
language_territory.codeset
</pre>
<p>But the names for the <em>language</em> and <em>territory</em> parts are different. To get a proper name it is required to combine information from the following three pages:</p>
<ol>
<li><strong>language</strong>: <a href="http://msdn.microsoft.com/en-us/library/39cwe7zf.aspx">Language Strings</a></li>
<li><strong>territory</strong>: <a href="http://msdn.microsoft.com/en-us/library/cdax410z.aspx">Country/Region Strings</a></li>
<li><strong>codeset</strong>: <a href="http://msdn.microsoft.com/en-us/goglobal/bb964654.aspx">Code Pages Supported by Windows</a></li>
</ol>
<p>So, for instance, if you want to set the &#8220;<strong>en_US.UTF-8</strong>&#8221; locale in Windows, you have to use &#8220;<strong>american_usa</strong>&#8220;. It is a bit frustrating that locale names are not common among the various operating systems. I needed to do a very simple thing and this has added a lot of overhead. I am very disappointed.</p>
<p>As an example, I post the command line options I finally used with <strong>initdb</strong> in order to initialize the <em>PostgreSQL database cluster</em>:</p>
<pre class="console">
initdb.exe --auth=md5 --locale=american_usa --encoding=UTF8 --pgdata=G:\PostgreSQL\data --xlogdir=G:\PostgreSQL\xlogs  -U postgres -W
</pre>
<p>As a general conclusion, I would say it would be a lot better if we spent our time doing more creative things than trying to match the locale names between various operating systems. I am quite sure that both Linux and Windows use names based on some kind of standard, but why can&#8217;t they be based on a single standard?</p>
<p class="cc-block"><em><a href="http://www.g-loaded.eu/2011/02/27/locale-windows/">Locale in Windows</a></em>, unless otherwise expressly stated, is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.</p><div class='yarpp-related-rss'>

<h4>Related Articles</h4>

<ul><li><a href="http://www.g-loaded.eu/2009/05/07/microsoft-releases-windows-7-rc-to-the-public/" rel="bookmark">Microsoft Releases Windows 7 RC to the Public</a></li>
<li><a href="http://www.g-loaded.eu/2009/03/05/checking-on-windows-vista/" rel="bookmark">Checking on Windows Vista</a></li>
<li><a href="http://www.g-loaded.eu/2010/04/08/started-using-rdiff-backup-on-windows/" rel="bookmark">Started using rdiff-backup on Windows</a></li>
<li><a href="http://www.g-loaded.eu/2007/11/05/howto-run-vmware-on-a-physical-windows-partition/" rel="bookmark">Howto: Run VMWare on a Physical Windows Partition</a></li>
<li><a href="http://www.g-loaded.eu/2009/04/10/windows-7-opensolaris-put-to-the-test/" rel="bookmark">Windows 7, OpenSolaris &#8211; put to the test</a></li></ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.g-loaded.eu/2011/02/27/locale-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Started using rdiff-backup on Windows</title>
		<link>http://www.g-loaded.eu/2010/04/08/started-using-rdiff-backup-on-windows/</link>
		<comments>http://www.g-loaded.eu/2010/04/08/started-using-rdiff-backup-on-windows/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 15:08:14 +0000</pubDate>
		<dc:creator>George Notaras</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Backup]]></category>

		<guid isPermaLink="false">http://www.g-loaded.eu/?p=1732</guid>
		<description><![CDATA[rdiff-backup is my favorite tool for keeping backups on Linux systems. Today, I started using it on a Windows 7 desktop as well. At first, I used rdiff-backup from the cygwin project, but I soon noticed that, if I did anything else that required moderate hard disk access on the computer on which the cygwin [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://rdiff-backup.nongnu.org/">rdiff-backup</a> is my favorite tool for keeping backups on Linux systems. Today, I started using it on a Windows 7 desktop as well. At first, I used rdiff-backup from the <a href="http://www.cygwin.com/">cygwin</a> project, but I soon noticed that, if I did anything else that required moderate hard disk access on the computer on which the cygwin rdiff-backup version was already running, my system suffered from random lockups. For example, if I tried to open Thunderbird, my computer froze for several minutes. I finally decided to try the native Windows release of rdiff-backup and all this strange behavior is now gone. My computer experiences no lock-ups and is usable while rdiff-backup is backing up some subdirectories of my homedir. I am not really sure what is the problem with the cygwin version. However, I intend to investigate this when I have the time, because I use cygwin for several tasks and I&#8217;d like to know about any possible incompatibility issues with current Windows versions.</p>
<p class="cc-block"><em><a href="http://www.g-loaded.eu/2010/04/08/started-using-rdiff-backup-on-windows/">Started using rdiff-backup on Windows</a></em>, unless otherwise expressly stated, is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.</p><div class='yarpp-related-rss'>

<h4>Related Articles</h4>

<ul><li><a href="http://www.g-loaded.eu/2009/05/07/microsoft-releases-windows-7-rc-to-the-public/" rel="bookmark">Microsoft Releases Windows 7 RC to the Public</a></li>
<li><a href="http://www.g-loaded.eu/2006/04/08/filesystem-backup-again/" rel="bookmark">Filesystem Backup Again</a></li>
<li><a href="http://www.g-loaded.eu/2009/03/05/checking-on-windows-vista/" rel="bookmark">Checking on Windows Vista</a></li>
<li><a href="http://www.g-loaded.eu/2007/04/25/how-to-create-a-windows-bootable-cd-with-mkisofs/" rel="bookmark">How to create a Windows bootable CD with mkisofs</a></li>
<li><a href="http://www.g-loaded.eu/2011/02/27/locale-windows/" rel="bookmark">Locale in Windows</a></li></ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.g-loaded.eu/2010/04/08/started-using-rdiff-backup-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Microsoft Releases Windows 7 RC to the Public</title>
		<link>http://www.g-loaded.eu/2009/05/07/microsoft-releases-windows-7-rc-to-the-public/</link>
		<comments>http://www.g-loaded.eu/2009/05/07/microsoft-releases-windows-7-rc-to-the-public/#comments</comments>
		<pubDate>Thu, 07 May 2009 16:38:04 +0000</pubDate>
		<dc:creator>George Notaras</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.g-loaded.eu/?p=1131</guid>
		<description><![CDATA[Seems like Microsoft has come up with a formula to distribute legally and for free the development version of their upcoming operating system (Windows 7) to those who deserve an operating system at no cost; the computer geeks that is. It first started with the general availability of Windows 7 Beta a few months ago [...]]]></description>
				<content:encoded><![CDATA[<p>Seems like Microsoft has come up with a formula to <a href="http://www.microsoft.com/windows/windows-7/download.aspx">distribute</a> legally and for free the development version of their upcoming operating system (Windows 7) to those who deserve an operating system at no cost; the computer geeks that is. It first started with the general availability of Windows 7 Beta a few months ago and now goes on with the availability of Windows 7 RC. The RC will expire on June 1 2010, but, practically, the operating system will start to automatically shutdown itself every two hours starting on March 1 2010, which will most probably render the OS unusable from that date onwards.</p>
<p>Windows 7 Beta is already installed in my triple-boot (<em>CentOS</em>, <em>OpenSolaris</em>, <em>Windows</em>) system, but I hadn&#8217;t had enough free time to spend on it during the last weeks. Anyhow, I&#8217;ve downloaded the RC version and intend to install it soon. Just a <strong>quick tip</strong>: although you can upgrade a Windows Vista installation to the Windows 7 RC version, upgrading a Windows 7 Beta system to the RC version is not supported.</p>
<p class="cc-block"><em><a href="http://www.g-loaded.eu/2009/05/07/microsoft-releases-windows-7-rc-to-the-public/">Microsoft Releases Windows 7 RC to the Public</a></em>, unless otherwise expressly stated, is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.</p><div class='yarpp-related-rss'>

<h4>Related Articles</h4>

<ul><li><a href="http://www.g-loaded.eu/2009/01/31/microsoft-releases-part-of-web-sandbox-code-under-the-apache-license/" rel="bookmark">Microsoft releases part of Web Sandbox code under the Apache License</a></li>
<li><a href="http://www.g-loaded.eu/2009/03/05/checking-on-windows-vista/" rel="bookmark">Checking on Windows Vista</a></li>
<li><a href="http://www.g-loaded.eu/2009/04/10/windows-7-opensolaris-put-to-the-test/" rel="bookmark">Windows 7, OpenSolaris &#8211; put to the test</a></li>
<li><a href="http://www.g-loaded.eu/2010/04/08/started-using-rdiff-backup-on-windows/" rel="bookmark">Started using rdiff-backup on Windows</a></li>
<li><a href="http://www.g-loaded.eu/2007/11/05/howto-run-vmware-on-a-physical-windows-partition/" rel="bookmark">Howto: Run VMWare on a Physical Windows Partition</a></li></ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.g-loaded.eu/2009/05/07/microsoft-releases-windows-7-rc-to-the-public/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Windows 7, OpenSolaris &#8211; put to the test</title>
		<link>http://www.g-loaded.eu/2009/04/10/windows-7-opensolaris-put-to-the-test/</link>
		<comments>http://www.g-loaded.eu/2009/04/10/windows-7-opensolaris-put-to-the-test/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 18:12:34 +0000</pubDate>
		<dc:creator>George Notaras</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Opinion]]></category>

		<guid isPermaLink="false">http://www.g-loaded.eu/?p=1035</guid>
		<description><![CDATA[Since a long time ago I wanted to install Windows 7 and OpenSolaris on a physical partition and use them a bit, so to form an opinion about them. Although it is a bit early for a review, I decided to post a few thoughts about them. I installed Microsoft Windows 7 Ultimate Build 7000. [...]]]></description>
				<content:encoded><![CDATA[<p>Since a long time ago I wanted to install <a href="http://www.microsoft.com/windows/windows-7/">Windows 7</a> and <a href="http://opensolaris.org">OpenSolaris</a> on a physical partition and use them a bit, so to form an opinion about them. Although it is a bit early for a review, I decided to post a few thoughts about them.<br />
<span id="more-1035"></span><br />
I installed <strong>Microsoft Windows 7 Ultimate Build 7000</strong>. I had downloaded this beta version a few weeks ago (or months ago, cannot recall). This is a beta version of the upcoming Windows 7, which was officially released by Microsoft and was probably the last beta version that was made available as a free download before MS ceased to offer beta versions of their operating system to the public. I don&#8217;t know how much it is going to change until the final version, but at this point it seems more like a reworked version of <em>Windows Vista</em> than a new operating system. Of course there are many bugs and rough edges here and there. I wouldn&#8217;t rate such a system as reliable to work with, but, this is a beta, so this is normal. One thing though that caught my attention is the new way of grouping the application windows in the taskbar. It does not differ much from the old grouping method, but now it is much more functional, user-friendly and appealing to the eye, that even an old-school user like me wouldn&#8217;t mind using. Another innovative feature exists in the start menu, at the section where the most frequently used programs are pinned. Next to the application entry there is a list of the recent documents that were opened by that application, so that the user can open one of them directly from the start menu, instead of opening the application and going to the &#8220;File&#8221; menu, then &#8220;Recent Documents&#8221; etc. I kinda like such features and I seriously expect them to be adopted by other desktops. Of course there many other features that I need to explore. The one-month trial of Windows Vista was not enough, but I think I will have the opportunity to do so using the Windows 7 beta release. Although the beta&#8217;s performance s*cked, I guess the first experience of Windows 7 was a positive one.</p>
<p>I also installed <strong>OpenSolaris 2008.11</strong>. I had to make some room for a primary partition as OpenSolaris does not recognize/manage extended or logical partitions (even mentioning LVM is unnecessary). I used the <a href="http://gparted.sourceforge.net/livecd.php">GParted LiveCD</a> for this purpose and all was perfectly done. Due to the fact that OpenSolaris cannot read logical partitions, my <a href="http://centos.org">CentOS</a> installation was inaccessible from the GRUB menu, but that was something I fixed easily later using CentOS in rescue mode, so that <em>triple booting</em> <strike>would be flawless</strike> well, not exactly flawless at the moment, but will work on that. Before performing the install, I did some research about the different installation methods (local or across the network), but I was a bit disappointed by the fact that the OpenSolaris installer is not very flexible or user-friendly. It would be a joke to even compare it to the RHEL/CentOS/Fedora installer; <strong>anaconda</strong> that is.</p>
<p>As usual, my onboard gigabit ethernet card (<em>Attansic L1</em>) was not recognized. I downloaded a 3rd party driver, but it was only after a few hours before I started enjoying network connectivity. At first, I had not realized that the driver distribution also included binaries. I spent most of the time trying to install the <strong>gcc</strong> compiler in order to compile the driver. What puzzled me the most was the fact that, not only the compiler was not available in the installation medium, but also the fact that there was no way to download the relevant package (<em>SUNWgcc</em> and its dependencies) and manually install it using pkgadd. SUN&#8217;s Image Packaging System (<em>IPS</em>) has reached a point that the entity of a package, as we know it, does not exist! This was unbelievable at first&#8230; Anyway, some hours later I was told that the driver&#8217;s distribution (atge) included binaries that I could use to get my network adapter up. So, that was what I did. I had a few more problems with <em>NWAM</em>, <em>Network Auto Magic</em> (the Opensolaris equivalent of <em>Network Manager</em>), but soon I managed to disable the automatic network configuration and bring the interface up manually.</p>
<p>Believe me, after all the trouble with the network connectivity, I did not want to like OpenSolaris. But the truth is I really did like it. There are some bugs here and there, some parts of the operating system are not user-friendly at all, and also some graphical system administration utilities are not really useful at the moment. But, the more someone uses OpenSolaris the more he gets the impression that there is some serious professionalism behind this project. It is being built in order to be useful and do things right. Also a quick tour around OpenSolaris.org and its relative web-sites reveals that the effort, both SUN&#8217;s and the effort of the community, behind this operating system is much more coordinated compared to the development of Linux distributions. So, it was not a surprise for me the fact that Firefox with Adobe&#8217;s Flash player performed way better (IMHO) than in Linux. Also, despite the fact that a few months ago there was no Solaris compatible Adobe Reader, now Solaris/OpenSolaris users enjoy the latest version of Adobe Reader (9.1 at the moment of writing), while Linux users still use <strike>the 8.X version</strike> &#8212; <em>note</em>: just checked and Adobe Reader 9.1 is available for Linux too. Well, if Adobe has to create an application that has to run on all the major Linux distributions which use different versions of libraries, the above seems reasonable and we, Linux users, should not complain at all about it. Well, Skype has not been ported yet. Finally, it should be noted that there is plenty of software available for OpenSolaris users from official and third party package repositories.</p>
<p>Hmm, when I was starting writing this document I wouldn&#8217;t expect it to be that long. Anyway, time permitting, I&#8217;ll test the above operating systems some more in the upcoming weeks. I had tried <a href="http://www.g-loaded.eu/2008/12/11/centos-debian-freebsd-opensolaris/">OpenSolaris on Virtualbox</a>, but it had not performed well in virtualized mode on my computer. Now, that I have installed it on a physical partition things are very different.</p>
<p class="cc-block"><em><a href="http://www.g-loaded.eu/2009/04/10/windows-7-opensolaris-put-to-the-test/">Windows 7, OpenSolaris &#8211; put to the test</a></em>, unless otherwise expressly stated, is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.</p><div class='yarpp-related-rss'>

<h4>Related Articles</h4>

<ul><li><a href="http://www.g-loaded.eu/2009/05/07/some-more-useful-opensolaris-links/" rel="bookmark">Some More Useful OpenSolaris Links</a></li>
<li><a href="http://www.g-loaded.eu/2009/05/07/microsoft-releases-windows-7-rc-to-the-public/" rel="bookmark">Microsoft Releases Windows 7 RC to the Public</a></li>
<li><a href="http://www.g-loaded.eu/2009/04/12/opensolaris-zfs-screencasts-and-documentation-links/" rel="bookmark">OpenSolaris ZFS Screencasts and Documentation Links</a></li>
<li><a href="http://www.g-loaded.eu/2008/12/11/centos-debian-freebsd-opensolaris/" rel="bookmark">CentOS, Debian, FreeBSD, OpenSolaris</a></li>
<li><a href="http://www.g-loaded.eu/2009/04/11/minimal-opensolaris-installation-ovf-image/" rel="bookmark">Minimal OpenSolaris Installation &#8211; OVF Image</a></li></ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.g-loaded.eu/2009/04/10/windows-7-opensolaris-put-to-the-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Checking on Windows Vista</title>
		<link>http://www.g-loaded.eu/2009/03/05/checking-on-windows-vista/</link>
		<comments>http://www.g-loaded.eu/2009/03/05/checking-on-windows-vista/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 14:55:12 +0000</pubDate>
		<dc:creator>George Notaras</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.g-loaded.eu/?p=950</guid>
		<description><![CDATA[During the last couple of weeks I&#8217;ve been checking on Windows Vista Home Basic edition. I intend to buy a license for this edition of Windows to use on one of my computers and I decided to run it in trial mode for a while before actually purchasing it together with some other software I [...]]]></description>
				<content:encoded><![CDATA[<p>During the last couple of weeks I&#8217;ve been checking on Windows Vista Home Basic edition. I intend to buy a license for this edition of Windows to use on one of my computers and I decided to run it in trial mode for a while before actually purchasing it together with some other software I will need. This is the first time I use Windows Vista and the first time during the 4+ years with the Linux Desktop that I spend more than one hour being logged into Windows.<br />
<span id="more-950"></span><br />
I guess I have changed a lot regarding how I see computers during the last years. At this moment, all I care about is to accomplish several tasks and that will require me being focused on those tasks rather than on the operating system. Quite frankly, I do not care if the operating system is called linux, windows, solaris or &#8220;jack&#8217;s operating system&#8221;. All I need is stability, reliability, performance and being able to install and use even the rarest piece of software with ease in a few seconds without having to deal with stupid naming schemes, forbidden items, license incompatibilities. I definitely do not need any pimping regarding the software I use on my desktop.</p>
<p>The Linux desktop&#8217;s progress in terms of stability, reliability and performance has been extremely slow. This is not the developers&#8217; fault or the users-testers&#8217; fault. I believe the problem lies in the huge number of linux distributions which result in a tremendous waste of time and effort. Moreover, I believe that people spend way too much time and effort in organising the communities that surround the linux distributions instead of spending time to improve the software, which is the actual goal after all.</p>
<p>So far, I am impressed with windows Vista and with the other software I am checking out. Time will show what I will finally use on my primary desktop.</p>
<p class="cc-block"><em><a href="http://www.g-loaded.eu/2009/03/05/checking-on-windows-vista/">Checking on Windows Vista</a></em>, unless otherwise expressly stated, is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.</p><div class='yarpp-related-rss'>

<h4>Related Articles</h4>

<ul><li><a href="http://www.g-loaded.eu/2009/05/07/microsoft-releases-windows-7-rc-to-the-public/" rel="bookmark">Microsoft Releases Windows 7 RC to the Public</a></li>
<li><a href="http://www.g-loaded.eu/2009/04/10/windows-7-opensolaris-put-to-the-test/" rel="bookmark">Windows 7, OpenSolaris &#8211; put to the test</a></li>
<li><a href="http://www.g-loaded.eu/2007/11/05/howto-run-vmware-on-a-physical-windows-partition/" rel="bookmark">Howto: Run VMWare on a Physical Windows Partition</a></li>
<li><a href="http://www.g-loaded.eu/2010/04/08/started-using-rdiff-backup-on-windows/" rel="bookmark">Started using rdiff-backup on Windows</a></li>
<li><a href="http://www.g-loaded.eu/2011/02/27/locale-windows/" rel="bookmark">Locale in Windows</a></li></ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.g-loaded.eu/2009/03/05/checking-on-windows-vista/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Burning a DVD still an adventure on GNU/Linux</title>
		<link>http://www.g-loaded.eu/2009/03/03/burning-a-dvd-still-an-adventure-on-gnulinux/</link>
		<comments>http://www.g-loaded.eu/2009/03/03/burning-a-dvd-still-an-adventure-on-gnulinux/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 12:42:01 +0000</pubDate>
		<dc:creator>George Notaras</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Productivity]]></category>

		<guid isPermaLink="false">http://www.g-loaded.eu/?p=933</guid>
		<description><![CDATA[Recently, I needed to burn several GBs of data, located on a SAMBA-based fileserver, to DVDs. The Nautilus&#8217; CD/DVD burning extension simply could not burn the data over the network. I decided to try brasero, since it is said to be the most actively developed CD/DVD burning frontend for the GNOME desktop. Despite the fact [...]]]></description>
				<content:encoded><![CDATA[<p>Recently, I needed to burn several GBs of data, located on a SAMBA-based fileserver, to DVDs. The Nautilus&#8217; CD/DVD burning extension simply could not burn the data over the network. I decided to try brasero, since it is said to be the most actively developed CD/DVD burning frontend for the GNOME desktop. Despite the fact that it needed to transfer the data locally before burning it, which (taking into account the 40-50 GBs of data I needed to burn) resulted in a significant amount of wasted time, I decided to give it a chance to finish the job. Everything seemed to be running smoothly, until the very last moment of the burning procedure, at which brasero spat one of those error messages I never wish to see: &#8220;<em>Error while burning. An unknown error has occured.</em>&#8220;. The session log was not helpful either.<br />
<span id="more-933"></span><br />
As soon as I read that message, I (at the speed of light) booted to an installation of Windows and desperately searched the web for a free DVD burning application that would be able to accomplish the job it is advertised for; that is burning a simple data DVD. Soon, I came across <a href="http://www.imgburn.com/">Imgburn</a>, which turned out to be <strong>one of the highest quality applications</strong> (including commercial solutions like the Nero Burning Rom suite I used to own before switching to the Linux desktop) I have ever used to burn optical media. To be more specific, I couldn&#8217;t believe that an application of such quality was released as freeware. I guess I shouldn&#8217;t mention that it burned and verified the data across the network without a single error!</p>
<p>My primary desktop has been running GNU/Linux exclusively for 4+ years. During that time, I had the opportunity to use every FOSS graphical CD/DVD burning frontend that has ever been released, but I always ended to the good old command-line tools (<strong>mkisofs</strong> &#8211; now <strong>genisoimage</strong>-, <strong>dvd+rw-tools</strong>) to do the job.</p>
<p>Making an exception for K3B, I wouldn&#8217;t rate all other FOSS graphical CD/DVD burning frontends higher than &#8220;<em>crapware</em>&#8220;.</p>
<p>Of course, things would have been better if all those FOSS devs joined forces, had a plan and assembled a team of volunteer beta testers (I would have loved to participate). I am sure that the result would have been an awesome burning application. But, unfortunately, each of those selfish geniuses decided to torture the world by delivering his own version of crap to our desktop, dammit!</p>
<p class="cc-block"><em><a href="http://www.g-loaded.eu/2009/03/03/burning-a-dvd-still-an-adventure-on-gnulinux/">Burning a DVD still an adventure on GNU/Linux</a></em>, unless otherwise expressly stated, is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.</p><div class='yarpp-related-rss'>

<h4>Related Articles</h4>

<ul><li><a href="http://www.g-loaded.eu/2006/10/07/verify-a-burned-cddvd-image-on-linux/" rel="bookmark">Verify a burned CD/DVD image on Linux</a></li>
<li><a href="http://www.g-loaded.eu/2007/12/07/email-notifications-from-a-linux-system/" rel="bookmark">Email Notifications from a Linux System</a></li>
<li><a href="http://www.g-loaded.eu/2005/10/30/creative-pc-cam-750/" rel="bookmark">Creative PC-CAM Series webcams in linux</a></li>
<li><a href="http://www.g-loaded.eu/2007/05/15/blanking-a-rewritable-cddvd-in-gnome/" rel="bookmark">Blanking a rewritable CD/DVD in GNOME</a></li>
<li><a href="http://www.g-loaded.eu/2008/11/27/updated-to-fedora-10/" rel="bookmark">Updated to Fedora 10</a></li></ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.g-loaded.eu/2009/03/03/burning-a-dvd-still-an-adventure-on-gnulinux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Howto: Run VMWare on a Physical Windows Partition</title>
		<link>http://www.g-loaded.eu/2007/11/05/howto-run-vmware-on-a-physical-windows-partition/</link>
		<comments>http://www.g-loaded.eu/2007/11/05/howto-run-vmware-on-a-physical-windows-partition/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 06:31:17 +0000</pubDate>
		<dc:creator>George Notaras</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.g-loaded.eu/2007/11/05/howto-run-vmware-on-a-physical-windows-partition/</guid>
		<description><![CDATA[Although I do not intend to run VMWare directly on a physical partition containing Windows any time soon, a recent discussion on a greek linux users group about the implications of such an experiment made me write a post about an article I stumbled upon today. The article author notes: VMWare is an incredibly useful [...]]]></description>
				<content:encoded><![CDATA[<p>Although I do not intend to run <a href="http://vmware.com/">VMWare</a> directly on a physical partition containing Windows any time soon, a recent discussion on a greek linux users group about the implications of such an experiment made me write a post about an article I stumbled upon today. The article author notes:</p>
<blockquote><p>
VMWare is an incredibly useful piece of software. Problem is, it feels like it&#8217;s perched on the tip of an eggshell. Any change to its environment tends to cause it to fall over, isolating all your data in the VM until you can find the time to get it working again. It&#8217;s not fun to trust important data to such a brittle environment.
</p></blockquote>
<p>Apart from the concern about the stability of the environment that hosts the guest operating system I can think of 1 or 2 more reasons why someone would want to run VMWare on a pre-existing installation of Windows on a physical volume. The first would be &#8220;<em>convenience</em>&#8221; and the other would be just &#8220;<em>fun</em>&#8220;.</p>
<p><a href="http://news.u32.net/articles/2006/07/18/running-vmware-on-a-physical-partition/">Read the entire article &raquo;</a></p>
<p class="cc-block"><em><a href="http://www.g-loaded.eu/2007/11/05/howto-run-vmware-on-a-physical-windows-partition/">Howto: Run VMWare on a Physical Windows Partition</a></em>, unless otherwise expressly stated, is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.</p><div class='yarpp-related-rss'>

<h4>Related Articles</h4>

<ul><li><a href="http://www.g-loaded.eu/2009/12/18/high-cpu-usage-centos-guest-virtualbox-vmware/" rel="bookmark">High CPU usage while running CentOS as guest on Virtualbox or VMware</a></li>
<li><a href="http://www.g-loaded.eu/2010/03/29/partition-misalignment-slows-4096-byte-sector-hard-drives/" rel="bookmark">Partition Misalignment Slows Down 4096-Byte Sector Hard Disks</a></li>
<li><a href="http://www.g-loaded.eu/2007/02/21/chroot-environment-howto/" rel="bookmark">chroot Environment Howto</a></li>
<li><a href="http://www.g-loaded.eu/2006/09/05/ldap-howto/" rel="bookmark">LDAP HOWTO</a></li>
<li><a href="http://www.g-loaded.eu/2009/04/10/windows-7-opensolaris-put-to-the-test/" rel="bookmark">Windows 7, OpenSolaris &#8211; put to the test</a></li></ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.g-loaded.eu/2007/11/05/howto-run-vmware-on-a-physical-windows-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Dual-booting again after 30 months</title>
		<link>http://www.g-loaded.eu/2007/10/18/dual-booting-again-after-30-months/</link>
		<comments>http://www.g-loaded.eu/2007/10/18/dual-booting-again-after-30-months/#comments</comments>
		<pubDate>Thu, 18 Oct 2007 14:52:28 +0000</pubDate>
		<dc:creator>George Notaras</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[System]]></category>

		<guid isPermaLink="false">http://www.g-loaded.eu/2007/10/18/dual-booting-again-after-30-months/</guid>
		<description><![CDATA[After 30 months of exclusive use of Linux as my desktop environment, I decided that it was about time to refresh my knowledge of Microsoft Windows and Office. This is not about switching back to Windows. Actually, having used open-source software exclusively for such a long time, I&#8217;d say it would be quite impossible to [...]]]></description>
				<content:encoded><![CDATA[<p>After 30 months of exclusive use of Linux as my desktop environment, I decided that it was about time to refresh my knowledge of Microsoft Windows and Office. This is not about switching back to Windows. Actually, having used open-source software exclusively for such a long time, I&#8217;d say it would be quite impossible to go back to a closed-source operating system. It is a matter of trust and control.</p>
<p>Why I decided to do this is quite simple:</p>
<ul>
<li>Refreshing the knowledge of MS Windows and MS Office is the primary goal. Don&#8217;t forget that Windows is <strong>still</strong> the most popular <strong>desktop OS</strong> worldwide and, sincerely, I do not see how this situation could possibly change in the near future. This is <strong>not</strong> a flamebait, but rather a strong belief of mine after thorough and objective evaluation of the Linux Desktop and many of the companies/organizations/people surrounding it during the last 30 months. Obviously, this statement does <strong>not</strong> involve <strong>Linux Servers</strong>, whose popularity, security and quality are undisputed.</li>
<li>Before using Linux as a desktop OS, I was using lots of open source software under Windows. The secondary goal is to check how much the quality of that software has increased and how it can be used in order to secure the Windows environment more effectively than in the past.</li>
</ul>
<p>So, my OEM version of Windows XP Home is currently the second desktop operating system in my PC. [<em>editor's note: Do not underestimate home editions. They become quite powerful when combined with software like <a href="http://www.cygwin.com/">cygwin</a></em>] I have also downloaded a 60-day trial version of MS Office 2007 to check out and a bunch of software from Sourceforge and other sources.</p>
<p>I hope I find enough time to test all these things. Also, time-permitting in the following weeks, I will try to publish 2-3 articles about how one can <strong>effectively</strong> secure Windows with open-source software. This, of course, is entirely possible and I hope this info will be useful to all those who have to use Microsoft Windows.</p>
<p class="cc-block"><em><a href="http://www.g-loaded.eu/2007/10/18/dual-booting-again-after-30-months/">Dual-booting again after 30 months</a></em>, unless otherwise expressly stated, is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.</p><div class='yarpp-related-rss'>

<h4>Related Articles</h4>

<ul><li><a href="http://www.g-loaded.eu/2009/03/05/checking-on-windows-vista/" rel="bookmark">Checking on Windows Vista</a></li></ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.g-loaded.eu/2007/10/18/dual-booting-again-after-30-months/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>Use wget or curl to download from RapidShare Premium</title>
		<link>http://www.g-loaded.eu/2007/09/15/use-wget-or-curl-to-download-from-rapidshare-premium/</link>
		<comments>http://www.g-loaded.eu/2007/09/15/use-wget-or-curl-to-download-from-rapidshare-premium/#comments</comments>
		<pubDate>Sat, 15 Sep 2007 08:55:17 +0000</pubDate>
		<dc:creator>George Notaras</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[BASH]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Snippet]]></category>

		<guid isPermaLink="false">http://www.g-loaded.eu/2007/09/15/use-wget-or-curl-to-download-from-rapidshare-premium/</guid>
		<description><![CDATA[This article describes how to use the command line download managers wget and curl in order to download files from your Rapidshare Premium account.]]></description>
				<content:encoded><![CDATA[<p>The last days I needed to download a bunch of medical videos which have been uploaded to RapidShare by many other people. Although RapidShare (and all the other 1-click file-hosting services) is very convenient, it has some strict rules for free accounts, for example a guest has to wait for 120 seconds per 1 MB of downloaded data and &#8211; to make it worse &#8211; no download managers are allowed. Since &#8220;waiting&#8221; is not a game I like and since I intended to use either <a href="http://www.gnu.org/software/wget/">wget</a> or <a href="http://curl.haxx.se/">curl</a> to download the files, I decided to sign up for a <a href="http://www.rapidshare.com/">RapidShare</a> Premium account and then figure out how to use the aforementioned tools. Fortunately, registered users are permitted to use download managers and, as you will read in the following article, the Linux command line downloaders work flawlessly with a Premier account.<br />
<span id="more-443"></span></p>
<h4>Theory</h4>
<p>Rapidshare uses cookie-based authentication. This means that every time you log into the service, a cookie containing information which identifies you as a registered user is stored in your browser&#8217;s cookie cache. Both <code>wget</code> and <code>curl</code> support saving and loading cookies, so before using them to download any files, you should save such a cookie. Having done this, then the only required action in order download from RapidShare is to load the cookie, so that wget or curl can use it to authenticate you on the RapidShare server. This is pretty much the same you would do with a graphical download manager. The difference now is that you do it on the command line.</p>
<p>Below you will find examples about how to perform these actions using both wget and curl.</p>
<p><strong>IMPORTANT</strong>: Please note that in order to use these command-line utilities or any other download managers with RapidShare, you will have to check the <strong>Direct Downloads option</strong> in your account&#8217;s <strong>options page</strong>.</p>
<h4>Save your RapidShare Premium Account Cookie</h4>
<p>Saving your RapidShare cookie is a procedure that needs to be done <strong>once</strong>.</p>
<p>The login page is located at:</p>
<pre class="codesnp">https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi</pre>
<p>The login form requires two fields: <strong>login</strong> and <strong>password</strong>. These are pretty self-explanatory.</p>
<p>In the following examples, the RapidShare username is shown as <strong>USERNAME</strong> and the password as <strong>PASSWORD</strong>.</p>
<h5>Using wget</h5>
<p>In order to save your cookie using wget, run the following:</p>
<pre class="console">
wget \
    --save-cookies ~/.cookies/rapidshare \
    --post-data "login=USERNAME&#038;password=PASSWORD" \
    -O - \
    https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi \
    > /dev/null
</pre>
<p><strong>&#8211;save-cookies</strong> : Saves the cookie to a file called <code>rapidshare</code> under the <code>~/.cookies</code> directory (let&#8217;s assume that you store your cookies there)<br />
<strong>&#8211;post-data</strong> : is the POST payload of the request. In other words it contains the data you would enter in the login form.<br />
<strong>-O -</strong> : downloads the HTML data to the standard output. Since the above command is run only in order to obtain the cookie, this option prints the HTML data to stdout (Standard Output) and then discards it by redirecting stdout to <code>/dev/null</code>. If you don&#8217;t do this, wget will save the HTML data in a file called <code>premiumzone.cgi</code> in the current directory. This is just the Rapidshare HTML page, which is absolutely not needed.</p>
<h5>Using curl</h5>
<p>In order to save your cookie using curl, run the following:</p>
<pre class="console">
curl \
    --cookie-jar ~/.cookies/rapidshare \
    --data "login=USERNAME&#038;password=PASSWORD" \
    https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi \
    > /dev/null
</pre>
<p><strong>&#8211;cookie-jar</strong> : Saves the cookie to a file called <code>rapidshare</code> under the <code>~/.cookies</code> directory (it has been assumed previously that cookies are stored there)<br />
<strong>&#8211;data</strong> : contains the data you would enter in the login form.<br />
Curl prints the downloaded page data to stdout by default. This is discarded by sending it to <code>/dev/null</code>.</p>
<h4>Download files using your RapidShare Premium Account Cookie</h4>
<p>Having saved your cookie, downloading files from RapidShare is as easy as telling wget/curl to load the cookie everytime you use them to download a file.</p>
<h5>Downloading with wget</h5>
<p>In order to download a file with wget, run the following:</p>
<pre class="console">
wget -c --load-cookies ~/.cookies/rapidshare &lt;URL&gt;
</pre>
<p><strong>-c </strong>: this is used in order to resume downloading of the file if it already exists in the current directory and is incomplete.<br />
<strong>&#8211;load-cookies</strong> : loads your cookie.</p>
<h5>Downloading with curl</h5>
<p>In the same manner, in order to download a file with curl, run the following:</p>
<pre class="console">
curl -L -O --cookie ~/.cookies/rapidshare &lt;URL&gt;
</pre>
<p><strong>-L</strong> : Follows all redirections until the final destination page is found. This switch is almost always required as curl won&#8217;t follow redirects by default (read about how to check the server <a href="http://www.g-loaded.eu/2006/10/06/check-server-http-headers-with-curl/">http headers</a> with curl).<br />
<strong>-O</strong> : By using this switch you instruct curl to save the downloaded data to a file in the current directory. The filename of the remote file is used. This switch is also required or else curl will print the data to stdout, which is something you won&#8217;t probably like.<br />
<strong>&#8211;cookie</strong> : loads your Rapidshare account&#8217;s cookie.</p>
<h4>Setting up a Download Server</h4>
<p>Although most users would be satisfied with the above, I wouldn&#8217;t be surprised if you would want to go a bit further and try to setup a little service for your downloading pleasure. Here is a very primitive implementation of such a service. All you will need is standard command line tools.</p>
<p>This primitive server consists of the following:</p>
<ol>
<li>A <a href="http://en.wikipedia.org/wiki/Named_pipe">named pipe</a>, called &#8220;<strong>dlbasket</strong>&#8220;. You will feed the server with URLs through this pipe. Another approach would be to use a listening TCP socket with <a href="http://www.g-loaded.eu/2006/11/06/netcat-a-couple-of-useful-examples/">NetCat</a>.</li>
<li>A script, which, among others, contains the main server loop. This loop reads one URL at a time from dlbasket and starts a wget/curl process in order to download the file. If dlbasket is empty, the server should just stay there waiting.</li>
</ol>
<p>So, in short, the service would be the following:</p>
<pre class="codesnp">
cat &lt;&gt; dlbasket | ( while ... done )
</pre>
<p>All credit for the &#8220;<strong>cat &lt;&gt; dlbasket |</strong>&#8221; magic goes to <strong><em>Zart</em></strong>, who kindly helped me out at the #fedora IRC channel.</p>
<p>So, let&#8217;s create that service. The following assume that a user named &#8220;<strong>downloader</strong>&#8221; exists in the system and the home directory is <code>/var/lib/downloader/</code>. Of course you can set this up as you like, but make sure you adjust the following commands and the script&#8217;s configuration options accordingly.</p>
<p>First, create the named pipe:</p>
<pre class="console">
mkfifo -m 0700 /var/lib/downloader/dlbasket
</pre>
<p>If it does not exist, create a <code>bin</code> directory in the user&#8217;s home:</p>
<pre class="console">
mkdir -p /var/lib/downloader/bin
</pre>
<p>Also, create a directory where the downloaded files will be saved:</p>
<pre class="console">
mkdir -p /var/lib/downloader/downloads
</pre>
<p>The following is a quick and dirty script I wrote which actually implements the service. Save it as <strong>rsgetd.sh</strong> inside the user&#8217;s <code>bin</code> directory:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#! /usr/bin/env bash  </span>
&nbsp;
<span style="color: #666666; font-style: italic;">#  rsgetd.sh - Download Service</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#  Version 0.3</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#  Copyright (C) 2007 George Notaras (http://www.g-loaded.eu/)</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#  This program is free software; you can redistribute it and/or modify</span>
<span style="color: #666666; font-style: italic;">#  it under the terms of the GNU General Public License version 2 as</span>
<span style="color: #666666; font-style: italic;">#  published by the Free Software Foundation.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;">#  This program is distributed in the hope that it will be useful,</span>
<span style="color: #666666; font-style: italic;">#  but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<span style="color: #666666; font-style: italic;">#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<span style="color: #666666; font-style: italic;">#  GNU General Public License for more details.</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Special thanks to 'Zart' from the #fedora channel on FreeNode</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># v0.3 - Oct 31 2009:</span>
<span style="color: #666666; font-style: italic;"># - corrected error: &quot;./bin/rsgetd.sh: line 37: [: argument expected&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># CONFIG START </span>
<span style="color: #007800;">HOMEDIR</span>=<span style="color: #ff0000;">&quot;/var/lib/downloader&quot;</span>
<span style="color: #007800;">DLBASKET</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOMEDIR</span>/dlbasket&quot;</span>
<span style="color: #007800;">DLDIR</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOMEDIR</span>/downloads/&quot;</span>
<span style="color: #007800;">LOGFILE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOMEDIR</span>/.downloads_log&quot;</span>
<span style="color: #007800;">CACHEFILE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOMEDIR</span>/.downloads_cache&quot;</span>
<span style="color: #007800;">LIMIT</span>=<span style="color: #ff0000;">&quot;25k&quot;</span>
<span style="color: #007800;">WGETBIN</span>=<span style="color: #ff0000;">&quot;/usr/bin/wget&quot;</span>
<span style="color: #666666; font-style: italic;"># Rapidshare Login Cookie  </span>
<span style="color: #007800;">RSCOOKIE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOMEDIR</span>/cookies/.rapidshare&quot;</span>
<span style="color: #666666; font-style: italic;"># CONFIG END</span>
&nbsp;
<span style="color: #007800;">DATETIME</span>=<span style="color: #ff0000;">&quot;<span style="color: #780078;">`date '+%Y-%m-%d %H:%M:%S'`</span>&quot;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$DLBASKET</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>
        <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> url ; <span style="color: #000000; font-weight: bold;">do</span>
                <span style="color: #666666; font-style: italic;"># First, check the cache if the file has been already downloaded</span>
                <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$CACHEFILE</span>&quot;</span> <span style="color: #660033;">-a</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$(grep -i $(basename $url)</span> <span style="color: #007800;">$CACHEFILE</span>)&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
                       <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DATETIME</span> File exists in cache. Already downloaded - Skipping: <span style="color: #007800;">$url</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOGFILE</span>
                <span style="color: #000000; font-weight: bold;">else</span>
                        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DATETIME</span> Starting with rate <span style="color: #007800;">$LIMIT</span>/s: <span style="color: #007800;">$url</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOGFILE</span>
                        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">expr</span> match <span style="color: #ff0000;">&quot;<span style="color: #007800;">$url</span>&quot;</span> <span style="color: #ff0000;">'[rapidshare.com]'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> = <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span>
                                <span style="color: #666666; font-style: italic;"># If it is a Rapidshare.com link, load the RS cookie </span>
                                <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;RAPIDSHARE LINK&quot;</span>
                                <span style="color: #007800;">$WGETBIN</span> <span style="color: #660033;">-c</span> <span style="color: #660033;">--limit-rate</span>=<span style="color: #007800;">$LIMIT</span> <span style="color: #660033;">--directory-prefix</span>=<span style="color: #007800;">$DLDIR</span> <span style="color: #660033;">--load-cookies</span> <span style="color: #007800;">$RSCOOKIE</span> <span style="color: #007800;">$url</span>
                        <span style="color: #000000; font-weight: bold;">else</span>
                                <span style="color: #007800;">$WGETBIN</span> <span style="color: #660033;">-c</span> <span style="color: #660033;">--limit-rate</span>=<span style="color: #007800;">$LIMIT</span> <span style="color: #660033;">--directory-prefix</span>=<span style="color: #007800;">$DLDIR</span> <span style="color: #007800;">$url</span>
                        <span style="color: #000000; font-weight: bold;">fi</span>
                        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DATETIME</span> Finished: <span style="color: #007800;">$url</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$LOGFILE</span>
                        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$url</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$CACHEFILE</span>
                <span style="color: #000000; font-weight: bold;">fi</span>
        <span style="color: #000000; font-weight: bold;">done</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></td></tr></table></div>

<p>As you might have already noticed, two extra files are created inside the home directory: <code>.downloads_cache</code> and <code>.downloads_log</code>. The first contains a list of all the urls that have been downloaded. Each new download is checked against this list, so that the particular URL is not processed if the file has already been downloaded. The latter file is a usual logfile stating the start and end times of each download. Feel free to adjust the script to your needs.</p>
<p>Here is some info about how you should start the service:</p>
<p><strong>-1-</strong> You can simply start the script as a background process and then feed URLs to it. For example:</p>
<pre class="console">
rsgetd.sh &#038;
echo "&lt;URL&gt;" &gt; /var/lib/downloader/dlbasket
</pre>
<p><strong>-2-</strong> Use <a href="http://www.gnu.org/software/screen/">screen</a> in order to run the script in the background but still be able to see its output by connecting to a screen session. Although this is not a screen howto, here is an example:</p>
<p>Create a new screen session and attach to it:</p>
<pre class="console">
screen -S rs_downloads
</pre>
<p>While being in the session, run rsgetd.sh</p>
<pre class="console">
rsgetd.sh
</pre>
<p>From another terminal feed the download basket (dlbasket) with urls:</p>
<pre class="console">
echo "&lt;URL&gt;" &gt; /var/lib/downloader/dlbasket
cat url_list.txt &gt; /var/lib/downloader/dlbasket 
</pre>
<p>Watch the files in the screen window as they are being downloaded.</p>
<p>Detach from the screen session by hitting the following:</p>
<pre class="codesnp">
Ctrl-a   d
</pre>
<p>Re-attach to the session by running:</p>
<pre class="console">
screen -r
</pre>
<p>Note that you do not need to be attached to the screen session in order to add URLs.</p>
<h5>Feeding the basket with URLs remotely</h5>
<p>Assuming that a SSH server is running on the machine that runs rsgetd.sh, you can feed URLs to it by running the following from a remote machine:</p>
<pre class="console">
ssh downloader@server.example.org cat \&gt; /var/lib/downloader/dlbasket
</pre>
<p>Note that the <strong>&gt;</strong> needs to be escaped so that it is considered as part of the command that will be executed on the remote server.</p>
<p>Now, feel free to <strong>add</strong> as many <strong>URLs</strong> as you like. After you hit the <strong>[Enter]</strong> key the url will be added to the download queue. When you are finished, just press <strong>Ctrl-D</strong> to end the URL submission.</p>
<h4>Conclusion</h4>
<p>This article provides all the information you need in order to use wget or curl to download files from your RapidShare Premium account. Also, information on how to set up a service that will assist you in order to commence downloads on your home server from a remote location has been covered.</p>
<p>The same information applies in all cases that wget and curl need to be used with websites that use cookie-based authentication.</p>
<p class="cc-block"><em><a href="http://www.g-loaded.eu/2007/09/15/use-wget-or-curl-to-download-from-rapidshare-premium/">Use wget or curl to download from RapidShare Premium</a></em>, unless otherwise expressly stated, is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.</p><div class='yarpp-related-rss'>

<h4>Related Articles</h4>

<ul><li><a href="http://www.g-loaded.eu/2010/10/04/rsapiget-download-rapidshare-api/" rel="bookmark">rsapiget downloads files using the new Rapidshare API</a></li>
<li><a href="http://www.g-loaded.eu/2006/10/06/check-server-http-headers-with-curl/" rel="bookmark">Check Server HTTP Headers with CURL</a></li>
<li><a href="http://www.g-loaded.eu/2005/11/10/mass-download/" rel="bookmark">Mass download</a></li>
<li><a href="http://www.g-loaded.eu/2008/11/27/maxminds-geoip-dat-gz-location-change/" rel="bookmark">Maxmind&#8217;s GeoIP.dat.gz location change</a></li>
<li><a href="http://www.g-loaded.eu/2005/10/13/http-headers/" rel="bookmark">HTTP headers</a></li></ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.g-loaded.eu/2007/09/15/use-wget-or-curl-to-download-from-rapidshare-premium/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
		<item>
		<title>How to create a Windows bootable CD with mkisofs</title>
		<link>http://www.g-loaded.eu/2007/04/25/how-to-create-a-windows-bootable-cd-with-mkisofs/</link>
		<comments>http://www.g-loaded.eu/2007/04/25/how-to-create-a-windows-bootable-cd-with-mkisofs/#comments</comments>
		<pubDate>Wed, 25 Apr 2007 13:19:08 +0000</pubDate>
		<dc:creator>George Notaras</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.g-loaded.eu/2007/04/25/how-to-create-a-windows-bootable-cd-with-mkisofs/</guid>
		<description><![CDATA[Generally, the only reason for which you may need to create a bootable Windows CD is when you have updated the operating system installation files with the latest Service Pack (slipstream). Even in this case, chances are that most users will rather use standard windows software to create the bootable CDs than mkisofs under Linux, [...]]]></description>
				<content:encoded><![CDATA[<p>Generally, the only reason for which you may need to create a bootable Windows CD is when you have updated the operating system installation files with the latest Service Pack (slipstream). Even in this case, chances are that most users will rather use standard windows software to create the bootable CDs than <a href="http://cdrecord.berlios.de/old/private/mkisofs.html">mkisofs</a> under Linux, but, even for this extremely rare case, here is how to accomplish this task.<br />
<span id="more-389"></span><br />
For the following operation the <strong>Linux native mkisofs</strong> <em>version 2.01</em> (or <strong>genisoimage</strong>), which is shipped with Fedora (and with every other Linux distribution), was used.</p>
<p>The Windows port of <strong>mkisofs</strong> and, generally, the <strong>Win32 binaries</strong> of all the utilities included in the <a href="http://cdrecord.berlios.de/old/private/cdrecord.html">cdrtools</a> package can be found in the <a href="http://www.student.tugraz.at/thomas.plank/index_en.html">Cdrtools: Win32 Binaries</a> page. Please note that the page also includes a Win32 binary version of the latest (unstable) version of cdrtools. It is highly recommended to use the latest <strong>stable</strong> version.</p>
<p>So, <strong>change to the directory</strong> that contains the Windows installation files and issue the following command:</p>
<pre class="console">
mkisofs \
    -b cdboot/msboot.img -no-emul-boot -boot-load-seg 1984 -boot-load-size 4 \
    -iso-level 2 -J -l -D -N -joliet-long -relaxed-filenames \
    -V "WINSP" \
    -o ../winsp.iso .
</pre>
<p><strong>The above command ends with a dot (.)</strong>.</p>
<p>All of the above flags seem to be necessary in order to <strong>relax many of the ISO restrictions</strong>. For more information about each of them please refer to the mkisofs (or <strong>genisoimage</strong>) manual page (<code>man 8 mkisofs</code>).</p>
<p>This tip assumes that the boot image which is used in the Microsoft bootable CDs is available and that it has been placed in a <code>cdboot/</code> subdirectory under the windows installation files root dir:</p>
<pre class="codesnp">
.
    cdboot/msboot.img
    other_dir/some_other_file
    file1
    file2
</pre>
<p>I admit that this is a nasty workaround, but I didn&#8217;t have enough time to investigate why the <strong>-b</strong> option caused that much trouble. The path to the boot image which is supplied with the -b option is supposed to be a relative path to the path of the root directory of the windows files, which is our current directory, aka (<strong>.</strong>). But, everytime I placed the msboot.img outside the win files directory and used <code>-b ../msboot.img</code>, mkisofs complained with the following pesky error message:</p>
<pre class="codesnp">mkisofs: Uh oh, I cant find the boot image '../msboot.img' !</pre>
<p>It didn&#8217;t make any sense, so I did not bother any more with it. If you have any info on this or if I miss anything, which is rather possible since I have spent very little time with this, your feedback is appreciated.</p>
<p>The above command will produce an image of a bootable Windows CD, which will also contain the boot image. But, this should not be a problem in any case.</p>
<p>Note that the ISO image will be saved in the <strong>parent directory</strong> of the one that holds the Windows files.</p>
<p><strong>Note</strong>: How to integrate a service pack into a Windows OS is beyond the scope of this document. There are numerous guides out there that cover this topic in great detail.</p>
<p class="cc-block"><em><a href="http://www.g-loaded.eu/2007/04/25/how-to-create-a-windows-bootable-cd-with-mkisofs/">How to create a Windows bootable CD with mkisofs</a></em>, unless otherwise expressly stated, is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License</a>.</p><div class='yarpp-related-rss'>

<h4>Related Articles</h4>

<ul><li><a href="http://www.g-loaded.eu/2006/10/07/verify-a-burned-cddvd-image-on-linux/" rel="bookmark">Verify a burned CD/DVD image on Linux</a></li>
<li><a href="http://www.g-loaded.eu/2009/05/07/microsoft-releases-windows-7-rc-to-the-public/" rel="bookmark">Microsoft Releases Windows 7 RC to the Public</a></li>
<li><a href="http://www.g-loaded.eu/2010/04/08/started-using-rdiff-backup-on-windows/" rel="bookmark">Started using rdiff-backup on Windows</a></li>
<li><a href="http://www.g-loaded.eu/2007/11/05/howto-run-vmware-on-a-physical-windows-partition/" rel="bookmark">Howto: Run VMWare on a Physical Windows Partition</a></li>
<li><a href="http://www.g-loaded.eu/2006/04/08/linux-tips-pack-i/" rel="bookmark">Linux Tips &#8211; Pack I</a></li></ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.g-loaded.eu/2007/04/25/how-to-create-a-windows-bootable-cd-with-mkisofs/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license>
	</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 1489/1613 objects using apc

Served from: www.g-loaded.eu @ 2013-06-17 21:42:35 -->