<?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>Chris JeanChris Jean &#187; Windows</title>
	<atom:link href="http://chrisjean.com/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisjean.com</link>
	<description>Linux, WordPress, programming, anime, and other stuff</description>
	<lastBuildDate>Mon, 16 Jan 2012 15:22:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Convert DOS-Formatted Files to Unix-Format in Ubuntu and CentOS</title>
		<link>http://chrisjean.com/2009/03/08/convert-dos-formatted-files-to-unix-format-in-ubuntu-and-centos/</link>
		<comments>http://chrisjean.com/2009/03/08/convert-dos-formatted-files-to-unix-format-in-ubuntu-and-centos/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 06:00:37 +0000</pubDate>
		<dc:creator>Chris Jean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips 'n Tricks]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[DOS]]></category>
		<category><![CDATA[dos2unix]]></category>
		<category><![CDATA[Mastering The Command Line]]></category>
		<category><![CDATA[newline]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[unix2dos]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://gaarai.com/?p=1297</guid>
		<description><![CDATA[Have you ever seen a bunch of ^M characters in a text file? This odd character at the end of a line can also be represented as a Ctrl+M or &#60;CTRL&#62;M. You don&#8217;t know what it is, and you want it to go away. Today, I&#8217;ll help you understand what that odd ^M character is, [...]]]></description>
			<content:encoded><![CDATA[<!-- filtered -->
<p>Have you ever seen a bunch of ^M characters in a text file? This odd character at the end of a line can also be represented as a Ctrl+M or &lt;CTRL&gt;M. You don&#8217;t know what it is, and you want it to go away.</p>
<p>Today, I&#8217;ll help you understand what that odd ^M character is, why it is in some of your documents, and how to get rid of them.</p>
<p><span id="more-1297"></span></p>
<h3>All About the Newline</h3>
<p>In text documents, lines are separated by what is called a <a href="http://en.wikipedia.org/wiki/Newline" target="_blank">newlin</a>e (also known as a line break or end of line). Different operating systems have different character codes that represent this newline.</p>
<p>For example:</p>
<ul>
<li>DOS-based systems, including Windows, as well as a number of other, older non-Unix OSes use a carriage return (CR) character followed by a line feed (LF) character.</li>
<li>Commodore and the old Apple OSes before OS X used a CR character. Since OS X+ is based partly on BSD, which is in turn based on Unix, the new Apple OSes use the Unix newline method described below.</li>
<li>Unix and its derivatives (Linux, BSD, and others) all use the single LF character to represent a newline.</li>
</ul>
<p>So what does all of this mean to you? It means that text documents that come from a Windows system won&#8217;t always play nice in Linux. The converse is true however. If you create a text file in Linux, many programs will fail to recognize the single LF as a newline and will render the document without any line breaks.</p>
<h3>dos2unix and unix2dos to the Rescue</h3>
<p>Fortunately, there are a couple of very easy to use programs that make dealing with this file format mess much easier. They are dos2unix and unix2dos.</p>
<p>These programs basically do exactly what their name implies: dos2unix takes a file and converts all DOS-style newlines to Unix-style newlines. unix2dos takes a file and converts all Unix-style newlines to DOS-stlye newlines.</p>
<p>I put Ubuntu and CentOS in the title because I&#8217;m going to give instructions for installing these programs on each of these distros. Why just these two? They are the two that I work with most often and are representative of the lion&#8217;s share of what people are using these days. If you need help with a different distro, please let me know in a comment.</p>
<h3>Installing dos2unix and unix2dos in Ubuntu</h3>
<p>There aren&#8217;t any dos2unix or unix2dos packages that can be found in Synaptic; howver, there is a packages that will install them for you. Simply open up Synaptic and install the tofrodos package. If you are like me and prefer to do this from the command line, you can run the following command:</p>
<div class="code">sudo apt-get install tofrodos</div>
<p>That&#8217;s all there is to it. Not only will dos2unix and unix2dos install, but alias programs fromdos and todos will be installed as well. These additional programs work in the same manner, so it&#8217;s purely a matter of preference which ones you use.</p>
<h3>Installing dos2unix and unix2dos in CentOS</h3>
<p>I really thought that I had to install these in CentOS, but amazingly, the programs are already installed by default. I tested this in a Virtual Machine fresh install, and the programs were there on the first boot.</p>
<p>So, CentOS users, you&#8217;re already good to go.</p>
<h3>Using dos2unix</h3>
<p>Fortunately, using these programs couldn&#8217;t be easier.</p>
<p>Let&#8217;s say that you are in a Terminal (Applications &gt; Accessories &gt; Terminal) viewing text files. Maybe you just downloaded a new WordPress plugin and you are reading the readme.txt file. It doesn&#8217;t really matter. However, there is a problem. The readme.txt file has a bunch of ^M characters at the end of each line, and it&#8217;s really distracting.</p>
<p>Simply exit out of the editor you are currently in, since the file will be modified, and run the following command:</p>
<div class="code">dos2unix readme.txt</div>
<p>If there are multiple files, you can specify each one with a space separating each. For example:</p>
<div class="code">dos2unix readme.txt install.txt *.php</div>
<p>The program doesn&#8217;t produce any output. Simply reopen your text file and look at all the beautiful non-existant ^M&#8217;s.</p>
<h3>Using unix2dos</h3>
<p>The unix2dos program has the exact same syntax as dos2unix. However, I thought it might be helpful to describe a situation in which you might need to use it.</p>
<p>You&#8217;re working on a project. You&#8217;ve just sent out your batch of files, and another member on the project complains that you are being a jerk and remove all the newlines in your text files. This other member is most likely using a Windows application that doesn&#8217;t understand the Unix newline format. Rather than getting into a format war, it&#8217;s typically better and quicker to simply convert your text files to a DOS/Windows format.</p>
<p>If you have a folder full of files that all need to be converted, simply run:</p>
<div class="code">unix2dos *</div>
<p>Now you can send these new files to your project group and hopefully avoid any more unproductive drama.</p>
<h3>File Formats in Vi</h3>
<p>If you happen to use Vi, you can change Vi back and forth between DOS and Unix modes for newlines with a simple command. &#8220;:set ff=dos&#8221; sets the editor to use DOS newline encoding and will save the file in a DOS-encoded format. &#8220;:set ff=unix&#8221; sets the editor use Unix newlines and will save the file in a Unix format.</p>
<p>Note that changing the format to dos from unix will always work as expected. This is because any file that contains just LF characters for new lines will be converted to CRLF while lines that already end in CRLF will be left as is.</p>
<p>If your Vi config defaults to a unix format and you open a DOS file, you will see the ^M characters. You can either use the dos2unix conversion utility first or change Vi first to the dos format and then to unix.</p>
<p>If you&#8217;d like Vi to default to DOS or Unix formating each time you start a new Vi session, you can add the setting to your ~/.vimrc file. In that file, either add &#8220;set ff=dos&#8221; or &#8220;set ff=unix&#8221; depending on your needs. Note the lack of the colon, :, in the .vimrc entries.</p>
<p>For more information on the ff or fileformat setting in Vi, check out the <a href="http://www.vim.org/htmldoc/options.html#%27fileformat%27" target="_blank">official documentation</a>.</p>
<h3>Closing Thoughts</h3>
<p>Maybe one day we won&#8217;t have to worry about these types of things. For now however, it&#8217;s good to know the tools that make these problems easily manageable.</p>
<p>BTW, <a href="http://en.wikipedia.org/wiki/Daylight_saving_time" target="_blank">Happy Daylight Savings Day</a> everyone. I hope you enjoyed the loss of an hour of sleep. <img src='http://chrisjean.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjean.com/2009/03/08/convert-dos-formatted-files-to-unix-format-in-ubuntu-and-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Repartitioning Ubuntu and Mothballing Windows</title>
		<link>http://chrisjean.com/2009/02/11/repartitioning-ubuntu-and-mothballing-windows/</link>
		<comments>http://chrisjean.com/2009/02/11/repartitioning-ubuntu-and-mothballing-windows/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 06:00:31 +0000</pubDate>
		<dc:creator>Chris Jean</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips 'n Tricks]]></category>
		<category><![CDATA[GParted]]></category>
		<category><![CDATA[partitions]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://gaarai.com/?p=915</guid>
		<description><![CDATA[Since I have officially been using Ubuntu on my office laptop for more than a solid month without once booting into Windows, it&#8217;s time to mothball the Windows partition in order to give Linux more room to breathe. I seriously considered removing Windows entirely as I don&#8217;t believe that I&#8217;ll have any legitimate need for [...]]]></description>
			<content:encoded><![CDATA[<!-- filtered -->
<p>Since I have officially been using Ubuntu on my office laptop for more than a solid month without once booting into Windows, it&#8217;s time to mothball the Windows partition in order to give Linux more room to breathe.</p>
<p>I seriously considered removing Windows entirely as I don&#8217;t believe that I&#8217;ll have any legitimate need for it in the future. However, I think that I can get the Windows partition down to a manageable size  and then forget about it.</p>
<p><span id="more-915"></span></p>
<h3>Introduction</h3>
<p>My office laptop is a Dell Studio 17. It shipped with Windows Vista pre-installed. After many frustrations with Vista BSoDing once a day on average, I finally decided to switch over to Linux as my main work OS. I decided on Ubuntu as a good distro to cut my teeth on since I had never run Linux as my desktop solution other than just playing around with Live Distros.</p>
<p>I installed Ubuntu alongside Windows by giving Ubuntu its own partition. Ever since then, things have been peachy.</p>
<p>Now that I no longer use Windows, I started thinking up plans for how I could use the space. I decided that I wanted to be able to install multiple Linux distros so that I can try out different ones. I also wanted to do the shared /home partition so that these different distros could be used productively with very little setup beyond installing.</p>
<p>There are a couple of hurdles between me and this desired setup however: The Windows partition takes up the majority of the drive. The /home folder is on the / partition and not on its own.</p>
<p>So, before I can start installing all the distros I want to try out, I need to fix up my partitions. That brings me to my first step.</p>
<h3>Preparing Windows for Long-Term Storage</h3>
<p>In order to streamline Windows while still keeping it functional, I need to load it up for the first time in a month.</p>
<h4>Removing Data Files</h4>
<p>I hooked up an external hard drive and migrated all the data files to this drive. This included all the files in my User folder (Documents, Desktop, Pictures, Videos, etc).</p>
<p>I then went through all my application folders to check for any unique data files I might want to save. These were also moved over to the external drive.</p>
<h4>Removing Unneeded Programs</h4>
<p>The first thing I did was to remove all the programs that I wouldn&#8217;t have any use for. I only intend to use Windows in a pinch situation, so I only left programs that help me connect to servers and work with files. I also left all the pre-installed Dell stuff which I have no use for but decided should stay.</p>
<p>Doing this removed many gigs of disk usage.</p>
<h4>Removing Unneeded Files/Folders</h4>
<p>At this point, I systematically went through the entire C:, removing folders and files that were no longer needed. Some of these were remnants from removed applications that left files and folders behind. Some of the unneeded files were just random junk that weren&#8217;t worth moving to the external hard drive.</p>
<p>An easy way to determine whether it is worth going through a folder to remove items is to right-click it and select Properties. This brings up a window that will show how much space all the files and folders contained in that folder take up. If the folder takes less than a 100MB, move on to the next folder. Otherwise, dig into the folder and see what you can delete.</p>
<p>An important thing to keep in mind as you&#8217;re doing this is you want to keep Windows usable, so don&#8217;t go crazy and try to delete things in the Windows folder.</p>
<h4>Putting Windows on a Diet</h4>
<p>There are many files that Windows has all over the place that can be cleaned up.</p>
<p>Load up Explorer (Win+E), right-click your Windows drive (C:), and click Properties. Click &#8220;Disk Cleanup&#8221;. Check all the boxes and click OK. Note that if you select the hibernation file when you do the cleanup, not only with the hibernation file (which is the same size as your RAM) be removed but hibernation will also be disabled. This removed about 5GB of data from my drive.</p>
<p>This next step is optional. I reduced my page file (virtual memory) usage since the pagefile.sys file was taking 4GB of space. You can get to this by going to Start &gt; Control Panel &gt; System, clicking the Advanced tab, clicking the Performance &#8220;Settings&#8230;&#8221; button, selecting the Advanced tab, clicked &#8220;Change&#8230;&#8221;, and made modifications in the resulting dialog. Yes, it is so incredibly easy to get to this panel. I had made changes to this before, but it&#8217;s so hard to find, that I had to use Google to &#8220;remind&#8221; me how to get to it. Windows was set to automatically size my page file, so I removed the automatic option and limited the size to 512MB. After restarting, this cleared up an additional 3.5GB of storage.</p>
<h4>Finishing Up</h4>
<p>In order to make the process of resizing the partition as effective as possible, I then ran defrag on the drive to compact all the files on the drive. You can do this by loading up Explorer (Win+E), right-click your Windows drive (C:), select Properties, select the Tools tab, click &#8220;Defragment Now&#8230;&#8221;, and click &#8220;Degragement Now&#8230;&#8221; on the window that loads.</p>
<p>When I started, I had a 92GB partition which had 60GB used. I wanted to get down to the 10GB range so that I could reduce the partition to 15GB. I didn&#8217;t get down to 10GB, but I did get down to 14GB. I&#8217;m sure that I could have forced the size down to 10GB, but I wanted to keep things usable, and a 20GB partition with 14GB isn&#8217;t that large.</p>
<h3>Resizing the Windows Partition</h3>
<p>To resize the partition, I&#8217;m going to use GParted, the Gnome Partition Editor. I installed GParted on Ubuntu, but it refused to resize the partition. I booted the Linux Mint LiveCD, and its GParted didn&#8217;t have a problem with the NTFS partition, so I ended up using it instead.</p>
<p>I loaded up GParted by going to Menu &gt; Administration &gt; Partition Editor. When it loaded, I right-clicked my Windows partition, selected &#8220;Resize/Move&#8221;, dragged the right slider handle to the left enough to leave a 20GB partition, and clicked &#8220;Resize/Move&#8221;. After I double-checked what I had told GParted to do, I clicked the &#8220;Apply&#8221; button at the top of the window.</p>
<p>The resize process took around 25 minutes to complete, so I had plenty of time to load up Firefox and work on this post. <img src='http://chrisjean.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>After I did the resize, I rebooted to see if Windows still works. The first boot produced an automatic system repair that took about 45 minutes to finish. After another reboot, the &#8220;we need to scan your drive&#8221; thing happened. Yet another reboot later, Windows loaded up just fine.</p>
<h3>Moving /home to Its Own Partition</h3>
<p>Now it&#8217;s time for the fun part. This is a delicate process, so if you intend to do this, make sure you follow each step carefully.</p>
<p>I needed to be able to modify all the partitions, so I want to use a LiveCD so that all the partitions are unmounted and available to use in GParted. I had a Linux Mint 6 &#8220;Felicia&#8221; disk handy, so I booted it up.</p>
<p>Since we need to create a partition, it&#8217;s time to load up GParted again.</p>
<h4>Expanding the Extended Partition</h4>
<p>Here are my partitions currently:</p>
<ul>
<li>150MB Dell partition</li>
<li>10GB Dell recovery partition</li>
<li>20GB Windows partition</li>
<li>92GB unallocated space</li>
<li>Extended partition
<ul>
<li>90GB Ubuntu partition</li>
<li>15GB unallocated space</li>
<li>5GB swap</li>
</ul>
</li>
</ul>
<p>The first level of partitions are called primary partitions. The max number of primary partitions is four. Since I already have four (the extended partition counts as one), I need to move that new block of unallocated space into the extended partition to use it.</p>
<p>Looking at GParted, my extended partition is locked. This is because even LiveCDs will make use of available swap partitions. I right-click the swap partition and select &#8220;swapoff&#8221; which frees up both the swap partition and the extended partition for modification.</p>
<p>I right-clicked the extended partition, selected &#8220;Resize/Move&#8221;, dragged the left handle all the way to the left in order to add the unallocated space, and clicked the &#8220;Resize/Move&#8221; button. I then clicked the Apply button at the top of the GParted window, and let GParted do its thing.</p>
<h4>Creating /home Partition</h4>
<p>Now that I have my unallocated space inside the extended partition, we just need to set up a new partition with that space. I right-clicked the 92GB unallocated space, selected New, selected a Filesystem of &#8220;ext3&#8243;, and clicked the Add button. I then clicked Apply to have GParted create the partition.</p>
<p>After this process finished, I found that my new partition had a name of /dev/sda7. This is important to know in order to properly mount and use the new partition.</p>
<p><em>Note: I had previously looked at exactly how much space my /home folder took by running &#8220;sudo du -h &#8211;max-depth=0 /home&#8221; from Terminal. This gave me the information I needed to make sure that my new partition would be sufficiently large to hold my current /home folder. If the size of your /home folder is larger than the amount of available free space, use an external drive to remove some of the files first or resize other partitions to create enough space.</em></p>
<h4>Mounting the New /home Partition</h4>
<p>Before copying the current /home files to the new partition, I need access to it.</p>
<p>First, I create a place for the partition to mount by loading up Terminal (Applications &gt; Accessories &gt; Terminal) and running:</p>
<pre style="padding-left:20px;">sudo mkdir /mnt/home</pre>
<p>And then mount the new partition by running the following command in Terminal:</p>
<pre style="padding-left:20px;">sudo mount -t ext3 /dev/sda7 /mnt/home</pre>
<p><em>Note: I got the &#8220;/dev/sda7&#8243; name from looking at the name of the newly created partition after GParted created it.</em></p>
<p>Now the new partition is accessible at /mnt/home.</p>
<h4>Duplicating /home to /mnt/home</h4>
<p>The following instructions are if you have only have one user on your system. If you have more than one user, see the next set of instructions.</p>
<p>Before I start adding files to the new location, I need to allow my user, chris, to add files to the new partition. I did this by running the following command:</p>
<pre style="padding-left:20px;">sudo chown chris /mnt/home</pre>
<p><em>Note: If you do this, you will need to change &#8220;chris&#8221; in the previous command to your own user name.</em></p>
<p>While Terminal is still up, I ran:</p>
<pre style="padding-left:20px;">cd /home
find . -depth -print0 | cpio -–null –-sparse -pvd /mnt/home</pre>
<p>Depending on how large your /home folder is, this could take a while. Go grab a sandwich and wait for this process to finish.</p>
<p>Skip ahead to &#8220;Replacing Old /home With the New /home&#8221; if you have just one user on your system.</p>
<h3>Duplicating /home to /mnt/home With Multiple Users</h3>
<p>Special care must be taken to ensure that the ownership of the copied files are set up properly if you have multiple user accounts in the /home directory.</p>
<p>Load up Terminal and run the following commands:</p>
<pre style="padding-left:20px;">cd /home
find . -depth -print0 | sudo cpio -–null –-sparse -pvd /mnt/home</pre>
<p>This will copy all the files from the /home directory to the new /mnt/home partition. This could take a while, so go do some errands or chores while you wait.</p>
<p>Once the copy is done, you will have a duplicate of all the data on your /home partition in /mnt/home; however, none of the owner or group rights will be correct. You will need to manually reset all the owner and group settings for all the files for each user.</p>
<p>For example, let&#8217;s say that I have two users: chris (/home/chris) and anna (/home/anna). I will need to run the following two commands :</p>
<p><code style="padding-left:20px;">sudo chown -R <strong>chris</strong>:<strong>chris</strong> /mnt/home/<strong>chris</strong></code><br />
<code style="padding-left:20px;">sudo chown -R <strong>anna</strong>:<strong>anna</strong> /mnt/home/<strong>anna</strong></code></p>
<p>Notice the bold portions of each command. These bold portions should be replaced with your own usernames. To clarify, you need to run the following command for each user:</p>
<p><code style="padding-left:20px;">sudo chown -R <strong>username</strong>:<strong>username</strong> /mnt/home/<strong>username</strong></code></p>
<p>Time to actually shuffle the /home directories/partitions around.</p>
<h3>Replacing Old /home With the New /home</h3>
<p>First, unmount the new home partition:</p>
<pre style="padding-left:20px;">sudo umount /mnt/home</pre>
<p>We now need to move the existing /home directory to make room for the new mount point.</p>
<pre style="padding-left:20px;">sudo mv /home /old_home</pre>
<p>Now we need to create the new mount point and mount the new /home partition.</p>
<p><code style="padding-left:20px;">sudo mkdir /home</code><br />
<code style="padding-left:20px;">sudo mount <strong>/dev/sda7</strong> /home</code></p>
<p><em>Note: The bold partition location will vary depending on your setup remember to use the partition location when you created the new partition with GParted.</em></p>
<p>If you didn&#8217;t receive any errors after running these commands, your setup worked. Go ahead and load up some applications, play some music, and generally just use your files. Make sure that everything works as expected.</p>
<p>If any problems have occurred, you can easily revert back to the old /home folder data:</p>
<pre style="padding-left:20px;">sudo umount /home
sudo rmdir /home
sudo mv /old_home /home</pre>
<p>If everything worked properly, you now have your new /home partition mounted and operating. Time to make the change permanent.</p>
<h3>Adding New /home Partition to /etc/fstab</h3>
<p>The /etc/fstab file contains setup information about your partitions. We&#8217;re going to add an entry to make sure that the /home partition is automatically mounted and used when the system loads. Since I can&#8217;t assume you know how to use the command line editors, I&#8217;ll have you open the file in Gedit, a Gnome editor.</p>
<pre style="padding-left:20px;">gksu gedit /etc/fstab</pre>
<p>This will load /etc/fstab for editing in Gedit with root privileges.</p>
<p>We need to go to the bottom of the file and add the following line:</p>
<p><code style="padding-left:20px;"><strong>/dev/sda7</strong> /home ext3 nodev,nosuid 0 2</code></p>
<p><em>Note: Again, change the partition name to the one that matches your new partiton.</em></p>
<p>Now save the file and close Gedit. We can easily test if the new /etc/fstab entry is working by running the following:</p>
<pre style="padding-left:20px;">sudo umount /home
sudo mount /home</pre>
<p>If these commands ran without error and the /home directory is still functioning correctly, your system is good to go.</p>
<h3>Finishing</h3>
<p>Reboot your system a couple of times to ensure that everything is working correctly. Once you&#8217;ve confirmed that everything is working normally and have let the system run for at least an hour, it&#8217;s time to remove the old /home directory.</p>
<pre style="padding-left:20px;">sudo rm -r /old_home</pre>
<p>This will remove the /old_home directory and all of its contents.</p>
<h3>Final Thoughts</h3>
<p>The relative ease of this is a testament to the power of Linux. Not only was I able to completely reconfigure a very important directory that is integral to the operation of my distro, but I was able to do the most sensative part of it while actually running the OS being changed.</p>
<p>This nicely illustrates the power that Linux offers the user while also serving as a lesson to always be mindful of what you are doing while having root privileges. If you tell Linux to delete a very important file or directory and have root privileges when you do it, Linux will comply with no fuss. So, always be mindful of what you are doing when using the sudo command.</p>
<p>Now that I have /home as a separate partition, it&#8217;s a trivial matter to be able to <a href="http://chrisjean.com/2009/01/07/dual-boot-ubuntu-and-linux-mint-with-shared-home/" target="_blank">share this partition with other distros</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjean.com/2009/02/11/repartitioning-ubuntu-and-mothballing-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the Same Keyboard and Mouse for Multiple Computers</title>
		<link>http://chrisjean.com/2009/01/20/using-the-same-keyboard-and-mouse-for-multiple-computers/</link>
		<comments>http://chrisjean.com/2009/01/20/using-the-same-keyboard-and-mouse-for-multiple-computers/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 06:00:29 +0000</pubDate>
		<dc:creator>Chris Jean</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips 'n Tricks]]></category>
		<category><![CDATA[KVM]]></category>
		<category><![CDATA[Synergy]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://gaarai.com/?p=658</guid>
		<description><![CDATA[I have a large number of computers. At my desk at home, I have two computers, Lumiere and Samus. I&#8217;ll often set up my office laptop, Rommie, on my desk as well. I have a KVM hooked up between Lumiere and Samus, but I don&#8217;t use the video switching part as Lumiere has a dedicated [...]]]></description>
			<content:encoded><![CDATA[<!-- filtered -->
<p>I have a large number of computers. At my desk at home, I have two computers, Lumiere and Samus. I&#8217;ll often set up my office laptop, Rommie, on my desk as well.</p>
<p>I have a KVM hooked up between Lumiere and Samus, but I don&#8217;t use the video switching part as Lumiere has a dedicated 24&#8243; LCD and Samus has a dedicated 24&#8243; and 19&#8243; LCDs. So, I use the KVM to do nothing more than switch the keyboard and mouse back and forth.</p>
<p>Things get more complicated with the addition of the laptop. Now I have another keyboard and a trackpad instead of another mouse. Thus, I&#8217;m always switching the KVM over between the two systems as well as moving my hand from the keyboard and mouse to the laptop and back again. There has to be a better way. Fortunately, there is.</p>
<p><span id="more-658"></span></p>
<h3>Synergize Your Computers</h3>
<p><a href="http://synergy2.sourceforge.net/" target="_blank">Synergy</a> is the solution for sharing a single keyboard and mouse with multiple computers. My three LCDs monitors and laptop form a diamond arrangement of four screens. With Synergy, I can quickly shift the focus from one machine to another simply by moving my mouse to a specific screen. When a system has mouse focus, it also receives input from the keyboard.</p>
<p>This alone makes Synergy an amazing tool, but that&#8217;s only the beginning. Synergy doesn&#8217;t care what operating system your computers have, so you can share your mouse and keyboard between multiple flavors of Linux, Windows, and Mac at the same time.</p>
<p>Synergy isn&#8217;t limited to just sharing the keyboard and mouse however. It can also share the clipboards. Copy something in Windows and paste it in Linux. Synergy can also sync all the systems&#8217; screensavers so that a screen that has been idle doesn&#8217;t go to screensaver mode. If you have a password protecting access to your desktop when you go to disable the screensaver, Synergy can have that one login deactivate all the screensavers rather than just the one.</p>
<p>Since I&#8217;m running two Linux systems these days, Lumiere and Rommie, I wanted to test the middle-click function to paste highlighted text. I highlighted some text on Lumiere, moved the mouse to Rommie, and middle-clicked. Just as if it was the same system, the highlighted text was pasted on the other system. I thought this was great, so I decided to test it from Linux to Windows and Windows to Linux. Unfortunately, neither of these worked, which is to be expected since Windows has no support for this type of functionality.</p>
<p>Synergy also has a great ability to customize its functionality. I configured Synergy to send all media and volume key presses to Samus. This way I can play, pause, mute, and change volume no matter what system I&#8217;m controlling.</p>
<p>For an example of using it to control my machines, here&#8217;s a quick video I did. The entire time, I&#8217;m using the same keyboard and mouse to control each system.</p>
<p><a href="http://www.youtube.com/watch?v=TvsLxYnV0JE&#038;fmt=18">www.youtube.com/watch?v=TvsLxYnV0JE</a></p>
<p>The Samus wallpaper I&#8217;m using is artwork done by <a href="http://transfuse.deviantart.com/" target="_blank">Ivan Flores</a>. I&#8217;ve had the privilege of meeting Ivan a number of times at different cons and have some great art to show for it.</p>
<h3>Configuration</h3>
<p>The key to this is the synergy.conf file. Here&#8217;s mine:</p>
<div style="padding-left:20px;">
<pre>section: screens
        Lumiere:
        rommie:
        Samus:
end
section: links
        Lumiere:
                down(50,100) = rommie(1,50)
                right = Samus(43,100)
        rommie:
                up(0,50) = Lumiere(50,100)
                up(50,100) = Samus(0,50)
        Samus:
                left(43,100) = Lumiere
                down(0,50) = rommie(50,100)
end
section: options
        screenSaverSync = false
        keystroke(AudioPlay) = keystroke(AudioPlay,Samus)
        keystroke(AudioMute) = keystroke(AudioMute,Samus)
        keystroke(AudioDown) = keystroke(AudioDown,Samus)
        keystroke(AudioUp) = keystroke(AudioUp,Samus)
end</pre>
</div>
<p>Notice how I&#8217;ve set up portions of the screen to switch from one screen to another. This is due to the diamond arrangement of my screens. I&#8217;ve also disabled the screen saver sync since I don&#8217;t use screensavers and wanted to ensure that no problems would occur.</p>
<h3>Getting Synergized</h3>
<p>So, how can you get Synergy for yourself?</p>
<p>Installing Synergy on my Ubuntu systems was extremely easy. I simply loaded up a terminal and ran:</p>
<div style="padding-left:20px;"><code>sudo apt-get install synergy quicksynergy</code></div>
<p>This installed Synergy and the helpful <a href="http://quicksynergy.sourceforge.net/" target="_blank">QuickSynergy</a> which makes setting up Synergy a breeze.</p>
<p>To install Synergy on my Windows Vista system, I downloaded and ran the installer from the <a href="http://sourceforge.net/project/showfiles.php?group_id=59275&amp;release_id=406637" target="_blank">Latest Releases</a>. QuickSynergy isn&#8217;t needed for Windows since the Windows release comes with a GUI interface. In fact, there isn&#8217;t a Windows release of QuickSynergy.</p>
<p>I decided to use my primary home Ubuntu box, Lumiere, as my Synergy server. I ran QuickSynergy (Applications &gt; Accessories &gt; QuickSynergy). I then filled in Samus in the right spot and rommie on the bottom spot. These names match the hostname of each computer. In Ubuntu, you can find the hostname by running <strong><code>hostname</code></strong> in terminal.  In Windows, you can find the hostname by right-clicking Computer, clicking Properties, and looking at the &#8220;Computer name:&#8221; listing.</p>
<p>After setting this up on Lumiere, I clicked the &#8220;Start&#8221; button.</p>
<p>Next I went to each of the other two machines, loaded up Synergy/QuickSynergy, made sure that I was in &#8220;Use&#8221; mode, input the IP address for the server, and clicked &#8220;Start&#8221;. Everything looks good, but it could use some tweaking.</p>
<p>FYI: Here&#8217;s how you find a system&#8217;s network IP to use as the server IP. In Ubuntu, load terminal and run <strong><code>ifconfig</code></strong>. The listing &#8220;inet addr:&#8221; under eth0 will contain that system&#8217;s local area network IP. In Windows, click Start, click Run, type &#8220;cmd&#8221;, click &#8220;OK&#8221;, type <strong><code>ipconfig</code></strong>, press the Enter key, and look for a listing after &#8220;IPv4 Address&#8221;.</p>
<p>Once you&#8217;ve run QuickSynergy on the server, you can close it out and will find a file at ~/.quicksynergy/synergy.conf. This is the configuration file generated by QuickSynergy. I copied this file from ~/.quicksynergy/synergy.conf to ~/.synergy.conf. This way my settings file won&#8217;t be rewritten if I accidentally run QuickSynergy later.</p>
<p>After you make the necessary changes, you can run Synergy again by running the following in terminal:</p>
<div style="padding-left:20px;"><code>synergys -f --config ~/.synergy.conf --daemon</code></div>
<p>This runs Synergy in the background. To stop Synergy in order to change a config, run the following in terminal:</p>
<div style="padding-left:20px;"><code>killall synergys</code></div>
<div>&nbsp;</div>
<h3>Automatically Run Synergy</h3>
<p>After I got Synergy configured the way I wanted, I made sure that it would automatically start each time I logged in. I did this by adding the command line to run Synergy to Sessions:</p>
<ol>
<li>Click System &gt; Preferences &gt; Sessions</li>
<li>Click Add</li>
<li>Example settings:
<ol>
<li>Name: &#8220;Synergy Server&#8221;</li>
<li>Command: &#8220;synergys -f &#8211;config ~/.synergy.conf &#8211;daemon&#8221;</li>
<li>Comment: &#8220;Start Synergy server on login.&#8221;</li>
</ol>
</li>
<li>Click Add</li>
</ol>
<p>In a similar fashion, a client on Ubuntu can be set to automatically run upon login.</p>
<ol>
<li>Click System &gt; Preferences &gt; Sessions</li>
<li>Click Add</li>
<li>Example settings:
<ol>
<li>Name: &#8220;Synergy Client&#8221;</li>
<li>Command: &#8220;synergyc &#8211;daemon 192.168.1.4&#8243;</li>
<li>Comment: &#8220;Start Synergy client on login.&#8221;</li>
</ol>
</li>
<li>Click Add</li>
</ol>
<p>Setting up Windows to autoload is quite easy as you can just use the &#8220;AutoStart&#8230;&#8221; button to configure how you want it to automatically run.</p>
<p>Now it&#8217;s just time to tailor your setup to match exactly what you are looking for. You can find setup options on the <a href="http://synergy2.sourceforge.net/" target="_blank">Synergy site</a>.</p>
<p>Have fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjean.com/2009/01/20/using-the-same-keyboard-and-mouse-for-multiple-computers/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Cleaning a Computer: A Story of Smoke, Viruses, and Love</title>
		<link>http://chrisjean.com/2009/01/09/cleaning-a-computer-a-story-of-smoke-viruses-and-love/</link>
		<comments>http://chrisjean.com/2009/01/09/cleaning-a-computer-a-story-of-smoke-viruses-and-love/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 00:21:29 +0000</pubDate>
		<dc:creator>Chris Jean</dc:creator>
				<category><![CDATA[Random Ramblings]]></category>
		<category><![CDATA[Tips 'n Tricks]]></category>
		<category><![CDATA[computer problems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[operating system]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://gaarai.com/?p=537</guid>
		<description><![CDATA[image from New Life Service Co. I got an emergency call from a friend yesterday. His computer was totally eaten up by viruses and couldn&#8217;t function anymore. He&#8217;s a writer and doesn&#8217;t do backups, so he was naturally very afraid that he would lose the book drafts that he&#8217;s been working on. I brought him [...]]]></description>
			<content:encoded><![CDATA[<!-- filtered -->
<p style="text-align: right;">image from <a href="http://www.nlsco.com/content_cleaning.php" target="_blank">New Life Service Co.</a></p>
<p>I got an emergency call from a friend yesterday. His computer was totally eaten up by viruses and couldn&#8217;t function anymore. He&#8217;s a writer and doesn&#8217;t do backups, so he was naturally very afraid that he would lose the book drafts that he&#8217;s been working on.</p>
<p>I brought him and his ailing computer over to my place to give it some TLC and get it back in fighting condition. This system, Raine, is special to me as it was the second computer I built. That was way back in 2002, and when I cracked the case, horror itself greeted me. I could see that I had a long night ahead of me.</p>
<p><span id="more-537"></span></p>
<h2>Triage</h2>
<p>I really wish that I had taken pictures as the inside of Raine was disgusting. The picture on the post is actually a combination of before and after images from <a href="http://www.nlsco.com/content_cleaning.php" target="_blank">New Life Service Co</a> who specializes in cleaning homes and salvageable items after fire, water, or storm damage. The image gets the point across about what I was facing though.</p>
<p>There are some natural enemies to electronics: cigarette/incense smoke, coffee, and soda. These things typically don&#8217;t instantly kill a computer, but they act as a cancer that slowly grows and over time can break a crucial system of the computer, causing the entire machine to fail. In essence, these things work together to kill the respiratory system of a computer, the fans that cool off the machine, this can cause massive heat buildup which eventually causes a component, such as a processor or graphics card, to overheat. At first, this overheating will cause the system to turn itself off, reboot, or freeze. It does this as either the component glitches out or the system proactively tries to protect itself from the heat buildup.</p>
<p>Basically, the sludge that is carried in smoke and the sludge that is created from dried coffee and soda creates the problem. The entirety of the inside, and good portions of the outside, were coated in a layer of this congealed slime it had combined over the years with dust to create a viscous tar. This tar was clogged between heatsink fins, had coated all the fan blades, had filled all the cracks where air flows through, and had even coated many of the fans&#8217; shafts and magnets (causing the side intake fan to completely fail).</p>
<p>Raine had been in an environment with large amounts of cigarette smoke. My friend also indicated that coffee and soda could also have been involved. So, inside the case was a tragedy.</p>
<p>Now I know that the viruses and failed Windows install were the primary issues here, but it is like going to to the hospital because of a broken bone and they quickly discover a massive tumor. The broken bone is definitely a problem, but that tumor is a much bigger concern. So, before I was going to do anything to revive Windows, I needed to get that machine clean.</p>
<h2>Getting Clean by Getting Dirty</h2>
<p>Whenever I clean electronics, I usually do the same thing:</p>
<ul>
<li>Turn off, unplug, and remove any batteries from the electronics first. If it is a computer, turn the physical switch at the back of the power supply off (the &#8216;O&#8217; down is off; the &#8216;|&#8217; down is on) and remove the CMOS battery.</li>
<li>Blow, vacuum, or wipe off as much loose dirt and dust as possible first.</li>
<li>Break down the device into non-electrical components (casing, covers, screws, etc), electrical components (circuit boards, chips, cables, etc), and combination parts that can&#8217;t easily separated and then put back together (non-electrical parts that could be easily cleaned yet are mated via some kind of dark magic of manufacturing to one or more electrical components).</li>
<li>Spray off the non-electrical components with water and clean with soap or other detergent as necessary. Where I do this depends on the size. Very large items get the yard and hose, medium sized items get the shower, and small items get the sink.I find the shower with the hand-held shower head to be the most useful for most situations. The hot water helps break up gummy substances, the mess goes down the drain, I don&#8217;t have to get muddy in the yard, and the drain strainer keeps small parts from disappearing down the drain.I know some people will also use their dishwasher to clean such parts. I&#8217;ve never tried it myself as I fear that the temperatures that some dishwaters can get up to is hot enough to melt certain plastics. So, I play it safe and don&#8217;t use the dishwasher method. If you do try it, share your experiences.</li>
<li>I will then shake as much water off of each component as I can, dry it off with a combination of towels and paper towels, and then let them fully dry out for an hour or more before connecting anything back to it.</li>
<li>The upholstery attachment for vacuum cleaners makes a very good hand-held device to wipe the loose crud off of electrical components. The bristles have enough stiffness to push dirt off but are soft enough to not damage any of the components. I lightly brush all of the electrical components off with this and set them aside for the next step.</li>
<li>I will then get out a bottle of rubbing alcohol and pour some of the fluid into a small dish. Next I get some cotton swabs.I dip one end of the swab into the alcohol and let it soak up a small amount (don&#8217;t get the swab dripping wet, just damp). I then pick up one of the electrical components and gently clean any dirty areas. A gentle twisting action of the swab can help clean tough spots. I only do small areas at a time and then flip the swab over and dry off the dampened area with the dry end of the swab. Set each component aside for a few minutes to let any remaining alcohol evaporate before you try to reconnect it to anything.</li>
</ul>
<p>This process is useful for all kinds of electronics and not just computers.</p>
<p>Typically, you can disassemble an entire computer with nothing more than a medium-sized Phillip&#8217;s head screwdriver. I recommend placing all the removed screws into a container. The first few times you disassemble an electronic device, you will want to use multiple containers, one each for each type of screw, and label them so you know exactly what screw goes to what part. A trick that I use whenever I know that I&#8217;ll have difficulty remembering what part or screw goes where is to quickly snap a picture with my camera.</p>
<h2>Finishing the Job</h2>
<p>After about six hours of hard work, I had cleaned off the entire case, the hard drive, portions of the motherboard, the heatsink, all the fans, the DVD burner, and all the cables. I had spare parts around, so I actually gave Raine a slightly upgraded processor, doubled the memory, added an additional drive (this came in handy when reinstalling Windows), upgraded the video card, and replaced the power supply with a nice, relatively new Thermaltake PSU. Unfortunately I didn&#8217;t have a spare 80mm case fan lying around (I know, I have spare CPUs, memory chips, graphics cards, etc but not a spare case fan? Shame). However, I usually scavenge good parts from broken components, so I did have an 80mm PSU fan from a failed PSU. The connector wasn&#8217;t the correct one, but I was able to snip up an old molex connector and splice it onto the fan. It isn&#8217;t the prettiest thing, but that fan really blew a lot of air at a reasonable amount of noise, so it worked out well.</p>
<p>I powered up the system, and everything worked. Actually, I did many, many reboots. I pulled up the motherboard manual on the Biostar website and made sure that all the jumper settings and cable installations were optimal. I had to completely reconfigure the BIOS since I had removed the CMOS battery. Anyways, I now had a newly refurbished Raine ready to get a shiny new OS.</p>
<p>I booted up the computer using a <a href="http://linuxmint.com/" target="_blank">Linux Mint</a> disk that I had handy. The idea was to boot into a <a href="http://en.wikipedia.org/wiki/Live_CD" target="_blank">Live OS</a> environment, copy over the crucial files to another system to protect them from loss and then proceed with installing Windows again. Fortunately, this went extremely smoothly. Within about fifteen minutes, we had cherry picked specific folders to save to a safe location and had copied them there.</p>
<p>I had configured the new drive to be the primary drive as I wanted my friend to be able to pull off all the data he needed from the old drive before formatting it. I shut down Linux Mint and unplugged the power cable to the old drive. This wasn&#8217;t really necessary, but I wanted to make sure that the Windows installation wouldn&#8217;t in any way mess up the old data that we wanted to protect as much as possible. I then installed Windows onto the new drive, got Windows up and running, and installed all the necessary drivers.</p>
<p>I then powered down the system again, plugged the drive back in, and booted Windows once more. Now Raine is running smoothly, virus-free, and should have a longer lease on life.</p>
<p>So, even though I work at 8am, I was up past 2am working on the machine. I guess you can say that I&#8217;m a sucker for a computer in distress.</p>
<h2>Tips</h2>
<ol>
<li>Every couple of months you should clean out your machine. Turn it off, unplug it, let it sit for a few minutes, take off the side panels, and then use a can of air duster (one that is meant for electronics) to spray out all the dust and other nasties. This will go a long way to keeping your machine running well for years to come.</li>
<li>Always make backups of important documents. You can get <a href="http://www.newegg.com/Store/SubCategory.aspx?SubCategory=522&amp;name=USB-Flash-Drives" target="_blank">flash drives</a> that can easily hold all of our documents for $10-20 these days. Every week, copy new and modified documents to this drive and put it in a safe place.</li>
<li>If your OS crashes, you can use one of the Live Distros of Linux to boot up your machine and copy important data to your flash drive. <a href="http://ubuntu.com/" target="_blank">Ubuntu</a> and <a href="http://linuxmint.com/" target="_blank">Linux Mint</a> are really good choices for this task. Finding information on a Windows drive when you are used to a user or My Documents folder can be confusing, so I will probably do a post on how to do this at some time.</li>
<li>The best way to keep your system virus free isn&#8217;t an anti-virus scanner. A scanner cannot offer you 100% protection, nothing does honestly, and can&#8217;t always fix problems when they do happy. The best way to protect your system and keep it running smoothly is to follow these simple guidelines:
<ul>
<li>Don&#8217;t ever install or run any programs that came to you in an email. Even if it appears to be from a friend. If a friend sends you a program to install/run, ask them to send you a link to where you can download yourself. Also, if it appears to be an image or document attachment, but your client warns you about executing it, don&#8217;t say &#8220;Yes&#8221; or &#8220;Okay.&#8221; Say no. That is a program pretending to be an image or document.</li>
<li>Don&#8217;t install every free program you find on the internet. Not all of these programs are bad. Just having too many programs installed can cause problems and slow down your computer. Your computer is only capable of doing so much, and loading 100 freeware apps that sit in your system tray is going to kill any system.Some of these programs were available for download simply because they wanted to be able to secretely install other programs without you knowing, so pick which programs you install carefully. Do a qiuck Google search for the name of the program and &#8220;spyware&#8221; or &#8220;virus&#8221; and see what other people are saying about it.</li>
<li>Go through and uninstall old programs that you no longer need.</li>
</ul>
</li>
<li>If you are just a casual computer user or don&#8217;t have a specific need to run Windows, try running <a href="http://ubuntu.com/" target="_blank">Ubuntu</a>, <a href="http://ubuntu.com/" target="_blank">Linux Mint</a>, or one of the <a href="http://distrowatch.com/dwres.php?resource=major" target="_blank">many other Linux distros</a> some day. These desktop operating systems come with a ton of free software to do everything from making images to creating documents to browsing the web. It&#8217;s definitely not for everyone, but the odds of getting a virus or other nasty bit of software installed on your computer is extremely low with a Linux-based desktop as compared to a Windows-based one. Best of all, these operating systems are free and many can be run without installing them so you can easily try them.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://chrisjean.com/2009/01/09/cleaning-a-computer-a-story-of-smoke-viruses-and-love/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Time to Switch to Linux?</title>
		<link>http://chrisjean.com/2008/07/31/time-to-switch-to-linux/</link>
		<comments>http://chrisjean.com/2008/07/31/time-to-switch-to-linux/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 04:25:51 +0000</pubDate>
		<dc:creator>Chris Jean</dc:creator>
				<category><![CDATA[Random Ramblings]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://gaarai.com/?p=232</guid>
		<description><![CDATA[Over the past few years, I have developed a very strong desire to dump Windows entirely from my day to day computing. I tire of the obscure errors that no one has answers for yet are easily reproducible, the way that Microsoft is enforcing its &#8220;genuine Windows&#8221; initiative in ways that irritate paying customers while [...]]]></description>
			<content:encoded><![CDATA[<!-- filtered -->
<p>Over the past few years, I have developed a very strong desire to dump Windows entirely from my day to day computing. I tire of the obscure errors that no one has answers for yet are easily reproducible, the way that Microsoft is enforcing its &#8220;genuine Windows&#8221; initiative in ways that irritate paying customers while only mildly bothering pirates, and how Windows always has a black box model of operation which always keeps me, the user, out of the loop on what my own computer is doing. The final insult: User Account Control. I disabled that within minutes. Talk about a useless feature. People who know what they are doing will always click yes because they know what they are doing. People who don&#8217;t know what they are doing (the ones that were the primary focus for this feature) will quickly learn to always click yes because clicking no may prevent them from doing what they want.</p>
<p><span id="more-232"></span></p>
<h3>What&#8217;s the problem?</h3>
<p>I upgraded to Vista the same week it was released and have been using it at home ever since. At first, I really liked Vista. Over time, I realized that there really wasn&#8217;t anything that I truly liked about Vista above XP and discovered that I used my Vista machines at home more or less the same way I used my XP Pro machine at the office. Vista had simply given me a shiny new veneer over what is, to me, functionally no different than XP.</p>
<p>Now, there is one nice feature that Vista has that XP doesn&#8217;t. I do like the new sound subsystem which allows for controlling different sound sources individually. However, even that feature isn&#8217;t significant enough to make me want Vista on my office machine.</p>
<p>Going down the <a href="http://en.wikipedia.org/wiki/Windows_Vista#New_or_improved_features" target="_blank">list of features</a> that Vista added / improved upon, they all boil down to one of a few categories for me: just eye candy, unwanted process that wastes resources and can&#8217;t be turned off, unwanted or unused application, yet another tool that tells me something broke yet has very little to offer me in terms of solutions.</p>
<p>For example, I hate how when I navigate to a folder with lots of files in it that the entire system slows a bit and I hear the harddrive being read furiously. All I want to do is see a list of files and folders, but Vista insists on scanning all the files in order to create fancy thumbnails for me. Even after disabling every setting that controls thumbnail generation, browsing around folders with large amounts of content is slow. When I want to delete a file, I can&#8217;t just delete it right after selecting it. I have to give Windows a few seconds or more so that it can completely scan the file to give me &#8220;helpful&#8221; information in the status bar. If I try to delete the file right away, Windows complains that the file is in use. Well, yeah&#8230; You&#8217;re using it. I didn&#8217;t try to open it, you did. Now I have to wait for you to be done with it so that I can do what I want.</p>
<p>Another thing that I can&#8217;t stand is how so many processes created by Windows are cloaked in the mysterious svchost.exe processes. Looking in my process list now, I have a total of twelve svchost.exe processes consuming anywhere from a few hundred kB of memory to more than 50 megs each. Every so often, one of those processes will take an amazingly large chunk of processing time. Can I kill it? I don&#8217;t know. I have no idea what that process is doing, whether I want it to do what it&#8217;s doing, or whether the system will crash if I do try to kill it. So I end up leaving it alone and hope that it doesn&#8217;t slow down my productivity while it does who knows what in the background. Would implementing some type of screen or menu that allows me to see exactly what Windows is doing in the background and give me the option to tell it to stop so I can have my computer back be so hard?</p>
<p>The big thing that set me off was the annual reinstallation (Vista was getting too hinky and was begging for a fresh install) that I was performing last night. I hoped for a quick hour or two of installation, but it took over six hours. I ended up having to remove half of my RAM, disconnect all the drives except the one being installed to, turn off a staggering number of BIOS options, put a jumper in my drive to limit it to SATA I speeds, and burn an offering to Microsoft.</p>
<h3>What would I like to see from Windows?</h3>
<p>If I were able to have a discussion directly with the heads of the Windows division of Microsoft, I would describe my problem with Windows as such: An operating system&#8217;s fundamental core purpose is management of memory and file structures, providing methods for the hardware to communicate effectively, and enabling a user to make use of that management system to execute code and modify file data (copy, move, rename, delete, etc). For all the features that Microsoft has been heaping on top of Windows, I seldom see any features that are a true improvement of the core operating system functions. Rather than improving the speed at which I can be productive, most of these features have only managed to slow my machine and my productivity down.</p>
<p>Case in point with the basic OS functionality: why is copying files today the exact same as it was in 3.1? I would love to see a copy dialog that allows for files to be dropped on it. Have you ever had some large files copying from one place to another and you want some other files to go to that same location? As it is right now, you have two options: 1) you can wait for the original copy job to finish and then start another one or 2) you can start another one at the same time. The problem is that the first option makes you, the user, wait for the operating system which is a waste of time whereas the second option starts burdening the process causing inefficient copy jobs that can over-tax the system if you build up too many. Why can&#8217;t I just drop more files onto that copy dialog and have those files added to the queue to go to the same location? That way I have queued up instructions for the operating system to optimize the efficiency of the job and have freed myself up to continue doing other things. To me, that&#8217;s innovation, new, and improved productivity.</p>
<h3>Why haven&#8217;t I already dumped Windows?</h3>
<p>I&#8217;ve been dedicated to dumping Windows for at least the past two years now, so why am I still with it? I suppose my reasons aren&#8217;t unlike many other peoples&#8217;:</p>
<ul>
<li>Familiarity &#8211; It&#8217;s not that I don&#8217;t like Windows. Windows technically isn&#8217;t bad, I just don&#8217;t think any version of Windows offers the best of what I want combined with what is available. However, I&#8217;m used to working with Windows. If I have a problem happen, I have a much better chance of knowing how to fix it quickly than I would with any other operating system. Thus, I&#8217;ve stuck with the evil I know rather than exploring my options.</li>
<li>Utility &#8211; I have a lot of experience with Linux, and I know what it is capable of. I also know that there are some things that Linux just isn&#8217;t quite ready for (such as running most Windows games). While I don&#8217;t game much, there is still that little voice in my head reminding me that playing the games that I do like could easily become a chore on another operating system. This goes beyond just games as there are other software packages that just don&#8217;t work like I&#8217;m used to on Windows (such as codec packs and media players).</li>
<li>Time &#8211; Properly adjusting to a new operating system takes time. Often those time expenses take place when you don&#8217;t want to spend time chasing down a problem due to needing to work on something or just not having any time for it at that moment. I think this is my biggest fear: will a server emergency or client problem come up while I&#8217;m in the middle of trying to figure out how to get my system working again?</li>
</ul>
<h3>The Solution?</h3>
<p>Some of you may be thinking that I should jump on an Apple. I&#8217;m not going to white-wash it. I&#8217;ve never been a fan of the way Apple does stuff. I&#8217;m sure that they have a great product, I just don&#8217;t think that product is for me. The product that is for me is Linux.</p>
<p>I&#8217;ve been working with Linux servers for over six years now, and I absolutely love Linux. It has its problems, but they are relatively minor when compared to the constant frustrations that I&#8217;ve faced in the past with Windows. The biggest hurdle for me is going to be getting used to working with Linux as my primary operating system and working with the window managers of Linux.</p>
<p>Now it&#8217;s time to dig around <a href="http://distrowatch.com/" target="_blank">DistroWatch</a> again and start picking out which distros I&#8217;ll try first.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjean.com/2008/07/31/time-to-switch-to-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

