<?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>waltervos.com &#187; Ubuntu</title>
	<atom:link href="http://www.waltervos.com/news/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.waltervos.com</link>
	<description>wordpress plugins, free music and more</description>
	<lastBuildDate>Fri, 16 Apr 2010 10:39:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Using shared personal folders among Vista and Ubuntu &#8211; Fixing the permissions problem</title>
		<link>http://www.waltervos.com/news/shared-personal-folders-vista-ubuntu-permissions/</link>
		<comments>http://www.waltervos.com/news/shared-personal-folders-vista-ubuntu-permissions/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 11:52:21 +0000</pubDate>
		<dc:creator>Walter Vos</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[FAT32]]></category>
		<category><![CDATA[file permissions]]></category>
		<category><![CDATA[personal folders]]></category>
		<category><![CDATA[sharing folders]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://www.waltervos.com/?p=25</guid>
		<description><![CDATA[Read here about a problem I had with file permissions on FAT32 (or vfat) partitions in Ubuntu and how I fixed it.]]></description>
			<content:encoded><![CDATA[<p>Since about a week or so I&#8217;ve been running Ubuntu and Windows Vista in dual boot. I&#8217;ve had Windows Vista for a longer time already and after trying Ubuntu from the LiveCD I decided it was time to install it for real. When doing this stuff you really need to plan how you&#8217;re going to use your available hard disk space. What I wanted to achieve was to be able to access all my personal files from both Ubuntu as well as Vista. By personal files I mean the files that are stored in Documents, Music, Videos, Pictures, etcetera. Both Vista and Ubuntu have these folders built in.</p>
<p>I decided to create a FAT32 partition to hold these personal folders. I knew I could then change the location of the personal folders in Vista to this FAT32 partition and create symbolic links to these folders in Ubuntu. This way it looks like you&#8217;re just browsing your Documents folder while you&#8217;re actually on the Documents folder on the FAT32 partition. This all seemed to work out great. I had my personal folders in my &#8216;/home&#8217; folder on Ubuntu and in Vista I could reach them via Username -&gt; Documents.</p>
<p><img class="alignright size-full wp-image-70" title="Vista and Ubuntu" src="http://www.waltervos.com/wp-content/uploads/2008/08/vista-ubtunulogos.jpg" alt="" width="234" height="136" />But ofcourse things can never be as easy as they seem. After doing this I didn&#8217;t have write access to some of my personal folders in Ubuntu. The folders that were linked to personal folder in Vista were read only, all the other folders on the FAT32 partition adhered to rules I had set in /etc/fstab. I participated in a <a title="A thread started by me about this problem" href="http://ubuntuforums.org/showthread.php?t=863323" target="_blank">couple of</a> <a title="Another thread about the same thing" href="http://ubuntuforums.org/showthread.php?t=617481" target="_blank">forum threads</a> about this, but nobody ever seemed to be able to provide a solution. I still don&#8217;t really know what&#8217;s causing this problem but I have found a way to fix it. The answer is really quite simple but it&#8217;s not something you&#8217;d expect.</p>
<p>We&#8217;ll start off by linking Vista&#8217;s personal folders to the ones on the data partition. You can do this by right clicking on of the personal folders, going to the tab that says &#8216;Location&#8217; and change the location listed there. In my case I&#8217;m pointing my Documents folder to &#8216;E:\Walter\Documenten&#8217; as you can see in the following image:</p>
<p><a href="http://www.waltervos.com/wp-content/uploads/2008/08/documents-link.png" rel="lightbox[25]"><img class="aligncenter size-medium wp-image-33" title="documents-link" src="http://www.waltervos.com/wp-content/uploads/2008/08/documents-link-300x226.png" alt="" width="300" height="226" /></a></p>
<p>There are also folders that Vista doesn&#8217;t have natively while I do want them in my Personal folder. In my case for instance that&#8217;s a &#8216;Webs&#8217; folder. It&#8217;s the one where all my web development projects are in. To have it show up in your personal folder you can just make a new shortcut to it. You can even pick a nice icons for it. See below:</p>
<p><a href="http://www.waltervos.com/wp-content/uploads/2008/08/webs-link.png" rel="lightbox[25]"><img class="aligncenter size-medium wp-image-45" title="webs-link" src="http://www.waltervos.com/wp-content/uploads/2008/08/webs-link-300x226.png" alt="" width="300" height="226" /></a></p>
<p>Here&#8217;s what my data partition looks like in Vista after changing the location of my personal folders to it. The folders actually get the same icons:</p>
<p><a href="http://www.waltervos.com/wp-content/uploads/2008/08/data-partition.png" rel="lightbox[25]"><img class="aligncenter size-medium wp-image-58" title="data-partition" src="http://www.waltervos.com/wp-content/uploads/2008/08/data-partition-300x44.png" alt="" width="300" height="44" /></a></p>
<p>If I reboot into Ubuntu now and go to my data partition (I&#8217;m assuming you already <a title="Read about how to mount a Windows partition in Ubuntu" href="http://www.cyberciti.biz/faq/mounting-windows-partition-onto-ubuntu-linux/" target="_blank">mounted your FAT32 partition correctly)</a> I&#8217;m seeing something really odd. The folders that have been linked to from my personal folders in Vista are locked. The non Vista native folders like the &#8216;Webs&#8217; folders aren&#8217;t. See the two images below:</p>
<p><a href="http://www.waltervos.com/wp-content/uploads/2008/08/data-locks.png" rel="lightbox[25]"><img class="aligncenter size-medium wp-image-46" title="data-locks" src="http://www.waltervos.com/wp-content/uploads/2008/08/data-locks-300x89.png" alt="" width="300" height="89" /></a></p>
<p><a href="http://www.waltervos.com/wp-content/uploads/2008/08/data-waltervos.png" rel="lightbox[25]"><img class="aligncenter size-medium wp-image-48" title="data-waltervos" src="http://www.waltervos.com/wp-content/uploads/2008/08/data-waltervos-300x226.png" alt="" width="300" height="226" /></a></p>
<p>If we type the &#8216;ls -al&#8217; command in the terminal for the folder that you mounted your data partition to (in my case it&#8217;s located at &#8216;/data&#8217;) we can see what the locks mean:</p>
<p><a href="http://www.waltervos.com/wp-content/uploads/2008/08/terminal-shot.png" rel="lightbox[25]"><img class="aligncenter size-medium wp-image-57" title="terminal-shot" src="http://www.waltervos.com/wp-content/uploads/2008/08/terminal-shot-300x226.png" alt="" width="300" height="226" /></a></p>
<p>The folders appear to be read only. This wasn&#8217;t the case before we did our thing in Vista. As a matter of fact it&#8217;s not supposed to be possible since FAT32 partitions don&#8217;t support file and folder permissions and so should be mounted according the rules you set in &#8216;/etc/fstab&#8217;. We&#8217;ll fix this strange behaviour later. First we&#8217;ll set up symbolic links to these folders from our &#8216;/home&#8217; folder. To be able to do that we&#8217;ll first delete Ubuntu&#8217;s native personal folders that have similar names. In my case I needed to delete &#8216;Pictures&#8217;, &#8216;Documents&#8217;, &#8216;Videos&#8217; and &#8216;Downloads&#8217;. See the two images below for a before and after shot of my &#8216;/home&#8217; folder (/home/waltervos in my case).</p>
<p><a href="http://www.waltervos.com/wp-content/uploads/2008/08/delete-folders.png" rel="lightbox[25]"><img class="aligncenter size-medium wp-image-49" title="delete-folders" src="http://www.waltervos.com/wp-content/uploads/2008/08/delete-folders-300x89.png" alt="" width="300" height="89" /></a></p>
<p><a href="http://www.waltervos.com/wp-content/uploads/2008/08/folders-deleted.png" rel="lightbox[25]"><img class="aligncenter size-medium wp-image-50" title="folders-deleted" src="http://www.waltervos.com/wp-content/uploads/2008/08/folders-deleted-300x91.png" alt="" width="300" height="91" /></a></p>
<p>Now we&#8217;ll set up the symbolic links. First off open up a terminal as root: press ALT + F2 and type &#8216;gksu gnome-terminal&#8217;. You&#8217;llÂ  be prompted to enter your password. The syntax for symbolic links that we&#8217;llÂ  be using is &#8216;ln -s [TARGET] [LINK FOLDER]&#8216;. In my case, to make a link to my &#8216;Downloads&#8217; folder I had to enter the following: &#8216;ln -s /data/Video /home/waltervos/&#8217;. This creates a link to &#8216;/data/Video&#8217; in the &#8216;/home/waltervos&#8217; folder with the same name as the target folder. See the image below for all the commands I used:</p>
<p><a href="http://www.waltervos.com/wp-content/uploads/2008/08/make-softlinks.png" rel="lightbox[25]"><img class="aligncenter size-medium wp-image-56" title="make-softlinks" src="http://www.waltervos.com/wp-content/uploads/2008/08/make-softlinks-300x226.png" alt="" width="300" height="226" /></a></p>
<p>This made my &#8216;/home&#8217; folder look like so:</p>
<p><a href="http://www.waltervos.com/wp-content/uploads/2008/08/folders-linked-locked.png" rel="lightbox[25]"><img class="aligncenter size-medium wp-image-51" title="folders-linked-locked" src="http://www.waltervos.com/wp-content/uploads/2008/08/folders-linked-locked-300x89.png" alt="" width="300" height="89" /></a></p>
<p>Unfortunately the file permissions remain the same. We still can&#8217;t write to some of the folders. To fix this strange bug (feature?), all you really need to do is chmod the misbehaving folders in their original location like so (execute these in a terminal as root as we did when creating symbolic links earlier):</p>
<blockquote><p>chmod 0775 -R /data/Documents<br />
chmod 0775 -R /data/Pictures<br />
chmod 0775 -R /data/Video<br />
chmod 0775 -R /data/Music</p></blockquote>
<p>Do this for every misbehaving folder and the problem is solved. Once again, what&#8217;s strange about this is that FAT32 partitions aren&#8217;t supposed to support file and folder permissions. The above commands aren&#8217;t supposed to work! See the image below for a before and after shot:</p>
<p><a href="http://www.waltervos.com/wp-content/uploads/2008/08/list-data-folders.png" rel="lightbox[25]"><img class="aligncenter size-medium wp-image-54" title="list-data-folders" src="http://www.waltervos.com/wp-content/uploads/2008/08/list-data-folders-300x226.png" alt="" width="300" height="226" /></a></p>
<p>If we reboot into Vista now we&#8217;ll see that some things have changed. We lost the icons on the personal folders that Vista and Ubuntu have in common now, and there is a double Documents folder now. You can delete the one that&#8217;s empty.</p>
<p><a href="http://www.waltervos.com/wp-content/uploads/2008/08/double-folders.png" rel="lightbox[25]"><img class="aligncenter size-medium wp-image-34" title="double-folders" src="http://www.waltervos.com/wp-content/uploads/2008/08/double-folders-300x226.png" alt="" width="300" height="226" /></a></p>
<p>This is what you&#8217;ll end up with. Your personal folders are now accessible under Ubuntu and Vista in their default location. Unfortunately you have lost the pretty icons in Vista because of this and I haven&#8217;t found a way to do something about that yet. It&#8217;s really not that big of a deal I think.</p>
<p><a href="http://www.waltervos.com/wp-content/uploads/2008/08/end-result.png" rel="lightbox[25]"><img class="aligncenter size-medium wp-image-35" title="end-result" src="http://www.waltervos.com/wp-content/uploads/2008/08/end-result-300x226.png" alt="" width="300" height="226" /></a></p>
<p>Please do post your thoughts on this article in the comments. Do you know why this is happening? Did this walkthrough help you out?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waltervos.com/news/shared-personal-folders-vista-ubuntu-permissions/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>Working quicker in Ubuntu by using bash scripts</title>
		<link>http://www.waltervos.com/news/working-quicker-in-ubuntu-by-using-bash-scripts/</link>
		<comments>http://www.waltervos.com/news/working-quicker-in-ubuntu-by-using-bash-scripts/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 12:10:08 +0000</pubDate>
		<dc:creator>Walter Vos</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shortcut]]></category>

		<guid isPermaLink="false">http://www.waltervos.com/?p=27</guid>
		<description><![CDATA[Looking to work a little faster in Ubuntu? This post shows some cool ways to do so.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure that there are a couple of commands you use on a regular basis when working in Ubuntu. I for instance often open the file browser by pressing ALT+F2 and entering &#8216;gksu nautilus&#8217; which opens the file browser as root. The same goes for the &#8216;gksu gnome-terminal&#8217; command. Entering commands with ALT+F2 is cool and all but when the commands start to leave a lot of room for typo&#8217;s it can be annoying.</p>
<p>I knew that I could make bash scripts in Linux to execute certain commands so I figured I&#8217;d simply make some bash scripts for these commands. The way to do that is like so:</p>
<p>Press ALT+F2 and enter &#8216;gksu gedit /usr/local/bin/sunau&#8217;. This opens the text editor with new file called &#8216;sunau&#8217; in the location /usr/local/bin. We&#8217;ll make a script in this file that opens the file browser as root. Enter the following into the empty file:</p>
<pre>#!/bin/bash
gksu nautilus</pre>
<p>Now save the script and close the editor. The only thing left now is to make the script executable. Press ALT+F2 again and enter &#8216;sudo chmod +x /usr/local/bin/sunau&#8217;. After this you can call your script by pressing ALT+F2 and entering &#8216;sunau&#8217;. This will start the file browser as root. By changing the contents of the file you can execute all kinds of commands with bash scripts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waltervos.com/news/working-quicker-in-ubuntu-by-using-bash-scripts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
