<?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>cluefire.com</title>
	<atom:link href="http://www.cluefire.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cluefire.com</link>
	<description></description>
	<lastBuildDate>Thu, 07 Oct 2010 01:08:46 +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>Simple Shell Script to Create Quicklink in Home Folder</title>
		<link>http://www.cluefire.com/simple-shell-script-to-create-quicklink-in-home-folder/</link>
		<comments>http://www.cluefire.com/simple-shell-script-to-create-quicklink-in-home-folder/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 05:19:05 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Linux admin]]></category>

		<guid isPermaLink="false">http://www.cluefire.com/?p=38</guid>
		<description><![CDATA[Lately I&#8217;ve been finding myself working predominantly in and around a particular directory for a day or two, and then moving somewhere else. I like a lot of organization in my file system, but the downside to that is a lot of times, the project I&#8217;m working on is buried many levels deep in my [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I&#8217;ve been finding myself working predominantly in and around a particular directory for a day or two, and then moving somewhere else. I like a lot of organization in my file system, but the downside to that is a lot of times, the project I&#8217;m working on is buried many levels deep in my folder structure, and I start to spend a lot of time typing out change directory commands (okay, not <em>a lot</em>, but definitely enough to be annoying!). Today I wrote a script to do something about it. Now all I have to do is type <code>set-current</code> from any directory, and a link to the current directory titled <em>current</em> will be placed in my home folder. Here&#8217;s the script:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;"># set-current</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-e</span> <span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>current <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;Overwrite <span style="color: #007800;">$HOME</span>/current? (y or n)&quot;</span>
    <span style="color: #c20cb9; font-weight: bold;">read</span> answer
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$answer</span> = y <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>current
        <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #007800;">$PWD</span> <span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>current
    <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">else</span>
    <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #007800;">$PWD</span> <span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>current
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>Place set-current in /usr/local/bin, or any other place you wish in your PATH and that&#8217;s it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cluefire.com/simple-shell-script-to-create-quicklink-in-home-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samba &#8211; Setting up Public and Private Shares</title>
		<link>http://www.cluefire.com/samba-setting-up-public-and-private-shares/</link>
		<comments>http://www.cluefire.com/samba-setting-up-public-and-private-shares/#comments</comments>
		<pubDate>Sat, 11 Sep 2010 19:14:05 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Linux admin]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://www.cluefire.com/?p=13</guid>
		<description><![CDATA[The smb.conf shown will create two shares, a public share named PublicShareName located at /path/to/public/share which is available to everyone read only, and a private share named PrivateShareName located at /path/to/private/share invisible to all except USER, who has full access.]]></description>
			<content:encoded><![CDATA[<h3>smb.conf:</h3>
<p><code><br />
[global]<br />
security = user<br />
encrypt passwords = true<br />
map to guest = bad user<br />
guest account = nobody<br />
create mask = 0644<br />
directory mask = 0755<br />
</code><code><br />
[PrivateShareName]<br />
comment = File Server<br />
path = /path/to/private/share<br />
browseable = no<br />
read only = no<br />
valid users = USER<br />
</code><code><br />
[PublicShareName]<br />
comment = Media Drive<br />
path =  /path/to/public/share<br />
read only = yes<br />
guest only = yes<br />
guest ok = yes<br />
</code></p>
<p>Be sure to add USER to the samba password database by executing the following on the samba server:<br />
<code>$ smbpasswd -a USER</code></p>
<p>The smb.conf shown above will create two shares, a public share named PublicShareName located at /path/to/public/share which is available to everyone read only, and a private share named PrivateShareName located at /path/to/private/share invisible to all except USER, who has full access.</p>
<h3></h3>
<h3></h3>
<h3>Attribute Explanations:</h3>
<h3></h3>
<p><code>security = user</code><br />
A user must present a valid username and password to access the share.</p>
<p><code>map to guest = bad user</code><br />
Logon attempts with an invalid username/password combo will be rejected, unless the username doesn&#8217;t exist on the server, then the user will be treated as guest.</p>
<p><code>create mask = 0644</code><br />
This is a mask which is logically ANDed with the permissions on the client file system. The easy way to think about it is the max permissions a file stored on the share from the client can have. 0644 gives read access to all, write access to the file&#8217;s owner, and execute access to none.</p>
<p><code>directory mask = 0755</code><br />
Same as create mask, but for directories. 0755 is the same as 0644, but with execute permission given to all. This is necessary for directories.</p>
<p><code>browseable = no</code><br />
This prevents the share from being viewable on the network&#8217;s list of available shares.</p>
<h3></h3>
<p>For further information, see the <a href="http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html">smb.conf man page</a> at <a href="http://www.samba.org">samba.org</a> or the free ebook, <a href="http://www.samba.org/samba/docs/using_samba/toc.html">Using Samba, 2nd Edition</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cluefire.com/samba-setting-up-public-and-private-shares/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cluefire.com beta</title>
		<link>http://www.cluefire.com/cluefire-com-beta/</link>
		<comments>http://www.cluefire.com/cluefire-com-beta/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 23:46:24 +0000</pubDate>
		<dc:creator>dan</dc:creator>
				<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://www.cluefire.com/?p=6</guid>
		<description><![CDATA[Welcome. This site was just installed today, so you&#8217;ll find that the shelves are all empty. In time, they&#8217;ll be stocked with information I&#8217;ve found useful and notes on projects I&#8217;m working on or have worked on. My hope and belief is that if I&#8217;ve found a particular piece of information useful, then someone else [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome.</p>
<p>This site was just installed today, so you&#8217;ll find that the shelves are all empty. In time, they&#8217;ll be stocked with information I&#8217;ve found useful and notes on projects I&#8217;m working on or have worked on. My hope and belief is that if I&#8217;ve found a particular piece of information useful, then someone else probably will also. Now for some SEO so folks actually have a chance at coming across this info!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cluefire.com/cluefire-com-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

