<?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>10ninox blog &#187; linux</title>
	<atom:link href="http://blog.10ninox.com/category/software/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.10ninox.com</link>
	<description>where night is much more fun than a day</description>
	<lastBuildDate>Wed, 25 Jan 2012 21:20:15 +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>afpd on Debian</title>
		<link>http://blog.10ninox.com/2012/01/afpd-on-debian/</link>
		<comments>http://blog.10ninox.com/2012/01/afpd-on-debian/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 21:20:15 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=967</guid>
		<description><![CDATA[When you are on #OSX regularly, CIFS/SMB is not that good option. What you would need to do so is installing afpd and bonjour. Obviously, they won&#8217;t name as they are in Apple product. Their package names are netatalk and avahi &#8230; <a href="http://blog.10ninox.com/2012/01/afpd-on-debian/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-968" title="afp share" src="http://blog.10ninox.com/wp-content/uploads/2012/01/Screen-Shot-2012-01-26-at-4.01.47-AM.png" alt="afp share" width="244" height="279" /></p>
<p>When you are on #OSX regularly, CIFS/SMB is not that good option. What you would need to do so is installing afpd and bonjour. Obviously, they won&#8217;t name as they are in Apple product. Their package names are <span style="color: #993300;"><em>netatalk</em></span> and <span style="color: #993300;"><em>avahi</em></span> consecutively. Installation is as easy as one regular apt-get.</p>
<p>Setting up both at the same time, then we would configure later.</p>
<p><code># apt-get install netatalk avahi-daemon libnss-mdns</code></p>
<p>After installation, we need to configure a bit for both service.</p>
<p><strong>afpd</strong> &#8212; what we are going to do now is to disable legacy Apple File protocol back in pre #OSX time which we don&#8217;t need.<br />
<span style="color: #ff99cc;"><code># vim /etc/default/netatalk</code></span></p>
<pre><code></code> <code><span style="color: #999999;"><em># enable new service</em></span></code>
<code>CNID_METAD_RUN=yes </code>
<code>AFPD_RUN=yes </code>
<code><span style="color: #999999;"><em># disable legacy service</em></span> </code>
<code>TIMELORD_RUN=no</code>
<code>A2BOOT_RUN=no</code>
<code>ATALKD_RUN=no</code>
<code>PAPD_RUN=no</code></pre>
<p>All you need to do is making sure if these values are assigned correctly. Next, we have to declare sharepoint. You can append to these new settings to the end of this file.<br />
<span style="color: #ff99cc;"><code># vim /etc/netatalk/AppleVolumes.default</code></span></p>
<pre><code>/your/path VolumeName allow:@groupname options:usedots,upriv</code></pre>
<p><span style="color: #00ccff;"><em>Example:</em></span><br />
You can do a share by username.</p>
<pre><code>~/ "$u" allow:myusername options:usedots,upriv</code></pre>
<p>For Time Machine, you can do this; it might be a good idea to limit volume size before Time Machine takes over the whole drive by using volsizelimit:100000 in MB; 100000 = 100GB</p>
<pre><code>/home/username/TimeMachine "TimeMachine" allow:myusername options:usedots volsizelimit:100000</code></pre>
<p>Restart netatalk to see the change<br />
<code># /etc/init.d/netatalk restart</code></p>
<p>For more info: <a href="http://linux.die.net/man/5/applevolumes.default" title="applevolumes.default(5) - Linux man page" target="_blank">http://linux.die.net/man/5/applevolumes.default</a></p>
<p><strong>Avahi (Bonjour)</strong><br />
Next, we need to do help setting up bonjour or avahi. A setting file is <span style="color: #ff99cc;"><code>/etc/nsswitch.conf</code></span> which is belong to mDNS (mDNS comes helping hostname resolution.) we need to enable mdns module by add &#8220;mdns&#8221; to hosts: line as following:</p>
<pre><code>hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 mdns</code></pre>
<p>Last but not least, we customize how any device see afpd. Create a new file named <span style="color: #ff99cc;"><code>/etc/avahi/services/afpd.service</code></span> and paste this in.</p>
<pre>&lt;?xml version="1.0" standalone='no'?&gt;&lt;!--*-nxml-*--&gt;
&lt;!DOCTYPE service-group SYSTEM "avahi-service.dtd"&gt;
&lt;service-group&gt;
 &lt;name replace-wildcards="yes"&gt;%h&lt;/name&gt;
 &lt;service&gt;
 &lt;type&gt;_afpovertcp._tcp&lt;/type&gt;
 &lt;port&gt;548&lt;/port&gt;
 &lt;/service&gt;
 &lt;service&gt;
 &lt;type&gt;_device-info._tcp&lt;/type&gt;
 &lt;port&gt;0&lt;/port&gt;
 &lt;txt-record&gt;model=MacPro&lt;/txt-record&gt;
 &lt;/service&gt;
&lt;/service-group&gt;</pre>
<p>You can change model to something else which change icon you will see on #OSX client side. <code>AppleTV, iMac, MacPro, Xserve, MacBook, MacBookPro, MacBookAir, Macmini</code>, etc.</p>
<p>Restart avahi-daemon to see the change</p>
<p><code># /etc/init.d/avahi-daemon restart</code></p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=967&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2012/01/afpd-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Colorizing VIM</title>
		<link>http://blog.10ninox.com/2011/03/colorizing-vim/</link>
		<comments>http://blog.10ninox.com/2011/03/colorizing-vim/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 08:09:39 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=805</guid>
		<description><![CDATA[The more you use vim, the further you are from all other text editors. However, when you get your new box ready, vim is likely not to enable syntax color by default. You can choose to do that individually or &#8230; <a href="http://blog.10ninox.com/2011/03/colorizing-vim/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The more you use vim, the further you are from all other text editors. However, when you get your new box ready, vim is likely not to enable syntax color by default. You can choose to do that individually or for everyone. If you decide to let other manage this on their own, you can just create <code>~/.vimrc</code> or you can opt for system wide setting in <code>/etc/vim/vimrc</code>.</p>
<p>in <code>/etc/vim/vimrc</code>, you will find:-</p>
<p><code>" syntax</code></p>
<p>on which mean it&#8217;s commented out. What you have to do is uncomment it, save, and try. For <code>~/.vimrc</code>, you can just touch that file and type <code>syntax on</code> or you can just do:</p>
<p><code>$ echo 'syntax on' &gt; ~/.vimrc</code></p>
<p>That should do it.</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=805&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2011/03/colorizing-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better Firefox toolbar in Linux</title>
		<link>http://blog.10ninox.com/2010/10/better-firefox-toolbar-in-linux/</link>
		<comments>http://blog.10ninox.com/2010/10/better-firefox-toolbar-in-linux/#comments</comments>
		<pubDate>Sat, 30 Oct 2010 09:24:09 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tweak]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=763</guid>
		<description><![CDATA[While it looks just right in Windows, default toolbar in Linux just looks way too bulky: gap &#38; padding for buttons are just too big. However, none can&#8217;t be customized. Here is what I configure mine. For Firefox, it will &#8230; <a href="http://blog.10ninox.com/2010/10/better-firefox-toolbar-in-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While it looks just right in Windows, default toolbar in Linux just looks way too bulky: gap &amp; padding for buttons are just too big. However, none can&#8217;t be customized. Here is what I configure mine.</p>
<p>For Firefox, it will read <code>userChrome.css</code> for custom UI. It&#8217;s located in <code>/home/&lt;user-name&gt;/.mozilla/firefox/&lt;random&gt;.default/chrome/</code> You can just create one.</p>
<pre>/* Menu Bar - Shrink and Fade Text */
#navigator-toolbox .menubar-text {
	font-size: 70% !important;
	color: #999 !important;
	}

/* URL Bar and Search Bar - Shrink and Fade Text*/
#urlbar, #searchbar{
	font-size: 85% !important;
	color: #333 !important;
	}

/* Tabs - Shrink Font and Height*/
.tabbrowser-tabs {
	font-size: 80% !important;
	height: 20px !important;
	}
.tabbrowser-strip {
	height: 22px !important;
	}

/* Bookmarks Toolbar - Shrink Font and Size*/
#PersonalToolbar {
	font-size: 90% !important;
	padding: 0px !important;
	margin: 0px !important;
	max-height: 20px !important;
	}
	/* Seperators - Remove */
	#PersonalToolbar toolbarseparator {
		display: none !important;
		}
	/* Toolbar Buttons - Reduce Margins */
	#PersonalToolbar toolbarbutton {
		margin: 0 -5px 0 -1px !important;
		}
	/* Toolbar Icons - Shrink and Reduce Margins */
	#PersonalToolbar .toolbarbutton-icon {
		max-width: 12px !important;
		max-height: 12px !important;
		margin: 0px 2px 0px 0px !important;
		}
</pre>
<p><img border="0" title="Default UI's Linux Firefox" src="http://blog.10ninox.com/wp-content/uploads/2010/10/Screenshot.png" alt="" width="278" height="33" /><br />
<br /><img border="0" title="Custom UI in Linux Firefox" src="http://blog.10ninox.com/wp-content/uploads/2010/10/custom.png" alt="" width="295" height="25" /><br />
This will reduce button size into what it should be. Surely you can adjust suiting your preference easily with a bit knowledge of CSS.</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=763&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2010/10/better-firefox-toolbar-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 101: file structure/hierarchy</title>
		<link>http://blog.10ninox.com/2009/04/linux-101-file-structurehierarchy/</link>
		<comments>http://blog.10ninox.com/2009/04/linux-101-file-structurehierarchy/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 09:05:11 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[101]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/2009/04/02/linux-101-file-structurehierarchy/</guid>
		<description><![CDATA[File structure is the basic things people get confuse when start using Linux. Most people nowadays are likely to stick with Windows’ idea, e.g.C:\Windows\ or C:\Program files\ or C:\Users\xxxx. That’s pretty easy to understand. *nix file structure was confusing at &#8230; <a href="http://blog.10ninox.com/2009/04/linux-101-file-structurehierarchy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>File structure is the basic things people get confuse when start using Linux. Most people nowadays are likely to stick with Windows’ idea, e.g.C:\Windows\ or C:\Program files\ or C:\Users\xxxx. That’s pretty easy to understand. *nix file structure was confusing at first, but it’s not that hard to understand. In order to learn using it, then you have to know where things are first.</p>
<p>In *nix system, everything is a file. Whatever they are, they are represented in file format. There is no extension to distinguish any type of file, but utility called <em>file</em> can identify it. directory is also one kind of file. Process is also represented in file. We’ll talk about ‘file’ in detail later. Ok, I got to start with what each of directory in *nix is for.</p>
<table border="0" cellspacing="1" cellpadding="1" width="500">
<tbody style="background:#fff6e1;font-size: 0.95em" id="spec">
<tr>
<td valign="top" width="121">/</td>
<td valign="top">Every tree needs root, file structure is also the same.</td>
</tr>
<tr class="odd">
<td valign="top" width="121">/boot</td>
<td valign="top">This is for boot loader files, e.g. GRUB, KERNEL, SYSTEM.MAP, VMLINUZ, INITRD, …</td>
</tr>
<tr>
<td valign="top">/bin</td>
<td valign="top">bin == binary; it contains commands stuff and /bin is for essential ones only.</td>
</tr>
<tr class="odd">
<td valign="top" width="121">/etc</td>
<td valign="top">This is for any system configuration; if you ever need to adjust things, this is likely to be the place to go.</td>
</tr>
<tr>
<td valign="top">/sbin</td>
<td valign="top">it doesn’t differ to /bin that much, but it contains system utilities that don’t need that much speed.</td>
</tr>
<tr class="odd">
<td valign="top" width="121">/home</td>
<td valign="top">This is the same as c:\users in Windows’ sense. Just contain any thing of each user in /home/&lt;usr&gt; commonly.</td>
</tr>
<tr>
<td valign="top">/usr</td>
<td valign="top">This is not where users store file, but it has hierarchy like / too. /usr/bin, /usr/lib, /usr/local/share, /usr/share, for example. What difference between /usr/bin and /bin is /bin usually contains kernel command while /usr/bin contains user commands that are not related to kernel/OS At first, /bin was designed to use in different disk (faster one) and the rest will be in /usr/bin or /usr/local/bin.</td>
</tr>
<tr class="odd">
<td valign="top" width="121">/usr/bin          <br /><em>vs</em> /usr/local/bin</td>
<td valign="top">The difference is /usr/bin stored user commands while /usr/local/bin stored local software</td>
</tr>
<tr>
<td valign="top">/opt</td>
<td valign="top">That’s for application software, such as Thunderbird and such.</td>
</tr>
<tr class="odd">
<td valign="top" width="121">/root</td>
<td valign="top">This is home for root =)</td>
</tr>
<tr>
<td valign="top">/tmp</td>
<td valign="top">tmp == temporary; it uses as its name.</td>
</tr>
<tr class="odd">
<td valign="top" width="121">/var</td>
<td valign="top">var == variable. It uses to store configuration, logging and application information</td>
</tr>
<tr class="odd">
<td valign="top" width="121">/mnt</td>
<td valign="top">mnt == mount point; some distros use this, some don’t, some even use /Windows or /media instead of this</td>
</tr>
</tbody>
</table>
<p style="font-size: 0.9em"><em><u>note</u></em>: basically each of these will be in different partition/disk as well, so there is another factor involved, speed. That’s why it has commands in all over the place. Some utilities are just more important than others.</p>
<p>Above matrix should cover basic filesystem structure. As usual, different distribution might have a bit of different point of view, but they all share the same idea =) After knowing each of these files are for, then you will know where to expect particular files or things you need. Have fun with *nix experience.</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=558&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2009/04/linux-101-file-structurehierarchy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add fonts in Linux manually</title>
		<link>http://blog.10ninox.com/2009/04/how-to-add-fonts-in-linux-manually/</link>
		<comments>http://blog.10ninox.com/2009/04/how-to-add-fonts-in-linux-manually/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 07:56:50 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/2009/04/02/how-to-add-fonts-in-linux-manually/</guid>
		<description><![CDATA[Well, fonts are the weakest link in Linux in my opinion. Sharpness, crispness, or smoothness are just not right. That’s most likely to be the reason why Linux never gains that much user like Windows or even Mac in desktop &#8230; <a href="http://blog.10ninox.com/2009/04/how-to-add-fonts-in-linux-manually/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well, fonts are the weakest link in Linux in my opinion. Sharpness, crispness, or smoothness are just not right. That’s most likely to be the reason why Linux never gains that much user like Windows or even Mac in desktop environment.</p>
<p>Besides using package manager which is truly find and click, when you are going to add fonts in Linux by yourself, you should put in <em>fontpath</em>. They are in /usr/share/fonts or /usr/local/share/fonts or ~/.fonts/ then what you have to do is copying.</p>
<p class="codebox">$ cp *.ttf ~/.fonts/</p>
<p>At this point, it will not notice the change yet. New fonts will not be visible. You have to run command, to update and rebuild its of fonts first.</p>
<p class="codebox">$ fc-cache</p>
<p>That would be it. However, if you decide to put fonts in somewhere else, you have to edit ‘fonts.conf’ to add font directory in the list as well.</p>
<p class="codebox">$ vi /etc/fonts/fonts.conf</p>
<p>Where &lt;!&#8212; font directory list –&gt; is by adding</p>
<p class="codebox">&lt;dir&gt;/opt/fonts/xxxx&lt;/dir&gt;</p>
<p>Then rebuild the list and restart x (easiest way is Ctrl + Alt + Backspace). At this point, all fonts will be available to use =) Anyway, I still don’t think font smoothing or crispness in Linux is good enough so far. If that day comes, I bet Linux will outpace Mac and Windows in desktop environment surely.</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=555&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2009/04/how-to-add-fonts-in-linux-manually/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 101: grub recovery</title>
		<link>http://blog.10ninox.com/2009/03/linux-101-grub-recovery/</link>
		<comments>http://blog.10ninox.com/2009/03/linux-101-grub-recovery/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 19:41:40 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[101]]></category>
		<category><![CDATA[grub]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/2009/03/18/linux-101-grub-recovery/</guid>
		<description><![CDATA[When you messed with many OSs, boot strap loader might point to somewhere you don’t want it to be. grub considering the best – easiest? – to deal with many OSs and of course, it’s easy to tweak or&#160; adjust &#8230; <a href="http://blog.10ninox.com/2009/03/linux-101-grub-recovery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When you messed with many OSs, boot strap loader might point to somewhere you don’t want it to be. grub considering the best – easiest? – to deal with many OSs and of course, it’s easy to tweak or&#160; adjust as well.</p>
<p>Firstly get into any sort of shell. There are basically 2 parts needed to be done: set active partition and set MBR back to point at grub again. The first part is fdisk, there is ‘m’ for help. All you have to do is set the partition where grub is to active. Others are not. </p>
</p>
<p>The second part: set MBR point back to grub. That’s easy via grub command shell </p>
</p>
<p> <img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="grub-shell" border="0" alt="grub-shell" src="http://blog.10ninox.com/wp-content/uploads/2009/03/grubshell.png" width="523" height="396" />
<p>The easiest way to find partition referenced by grub is to find it</p>
<p class="codebox">find /boot/grub/menu.lst</p>
<p>Then you have to set toot and setup the hard drive. Then you are all set. For grub menu, Linux needs</p>
<p class="codebox">Title XXX    <br />&#160;&#160; root (hd0,0)     <br />&#160;&#160; kernal /boot/vmlinuz root=/dev/…bla bla bla     <br />&#160;&#160; initrd /boot/initrd</p>
<p>For Windows, you just need to link to Windows boot loader again.</p>
<p class="codebox">Title Windows XX    <br />&#160;&#160; rootnoverify (hd0,0)     <br />&#160;&#160; chainloader (hd0,1)+1 # this is Windows partition.</p>
<p>That’s all you have to do. pretty easy, right?</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=518&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2009/03/linux-101-grub-recovery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to configure ftpd &#8212; proftpd</title>
		<link>http://blog.10ninox.com/2008/11/how-to-configure-ftpd-proftpd/</link>
		<comments>http://blog.10ninox.com/2008/11/how-to-configure-ftpd-proftpd/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 01:37:03 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/2008/11/23/how-to-configure-ftpd-proftpd/</guid>
		<description><![CDATA[I&#8217;m planing to write Unix 101 &#8212; beginner for beginner. Since I started getting into shell much more than GUI, I liked how simple Unix is. However, I&#8217;m no pro as Unix user; Thus, I probably have an idea what &#8230; <a href="http://blog.10ninox.com/2008/11/how-to-configure-ftpd-proftpd/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m planing to write Unix 101 &#8212; beginner for beginner. Since I started getting into shell much more than GUI, I liked how simple Unix is. However, I&#8217;m no pro as Unix user; Thus, I probably have an idea what Unix 101 should be like much more than reading through Unix manual indeed.</p>
<p>By the way, after trying Windows Server 2008 standard for a month or so, I found that there were too many hassles involved. It was good to have GUI or wizard to walk through but sometimes it just gave us more confuse. Believe it or not, I can&#8217;t even get FTP server on IIS work properly <img src='http://blog.10ninox.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  Although the alternative, like FileZilla server, works flawlessly, it&#8217;s just not right using 3rd party while using server edition and that&#8217;s already equipped with FTP server. It&#8217;s just like using Apache HTTPd on Windows server; why just use IIS or just change to Linux box for good =)</p>
<p>So I choose to have less complicated way&#8211;Ubuntu. Well, the reason why I choose Ubuntu is nothing but easiest. In Ubuntu server 8.10, there is no ftpd by default for whatever reason. So adding one of them is a must. Because There are many many choices, I don&#8217;t know what is good too. I just choose <em>proftpd</em> and I find that&#8217;s easy to configure. That&#8217;s simple.</p>
<p>Firstly, install it! &#8212; remember this is Ubuntu&#8211;it&#8217;s debian. Your distro might use something else, but that differs when installing only.</p>
<p class="codebox">$ sudo apt-get install proftpd</p>
<p>Done with ftpd installation. That&#8217;s easy, isn&#8217;t it? Then we have to do configuration, briefly we have to:-</p>
<ol>
<li>manage user</li>
<li>edit proftpd.conf</li>
<li>start/restart proftpd</li>
</ol>
<p>For managing user, you might use the same account in OS, so that you don&#8217;t have to do a thing in this step, but if you want to use isolated user for extra security (?!?), go for it.</p>
<p class="codebox">useradd [ -u uid ][ -g gid ][ -G gid [,gid,.. ]][ -d dir ][ -m ][ -s shell ][ -c comment ] loginname</p>
<p>You could just have only parameter you want, then the rest would be default value</p>
<p class="codebox">$ sudo useradd -d /home/ftp ftpuser</p>
<p>$ sudo passwd ftpuser //for creating password for ftpuser</p>
<p>For configuring our ftpd, here is  the most important part&#8211;editing /etc/proftpd/proftpd.conf. In my case, I have login thru ssh, so no GUI no gedit no mousepad, nano is my first choice of text-editor here. You guys might us different one as you like.</p>
<p class="codebox">$ sudo nano /etc/proftpd/proftpd.conf</p>
<p>what you need to configure basicly are the following:-</p>
<pre name="code" class="c-sharp">
ServerName&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;10nas&quot;
  ServerType&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; standalone
  # Set the user &#038; group server
  # normally runs at.
  User&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; nobody
  Group&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; nogroup
  # Set default root as a NAS
  DefaultRoot /mnt/nas
  # This is for keeping FTP user
  # inside DefaultRoot only!
  DefaultRoot ~
  # Valid Logins
  &lt;Limit LOGIN&gt;
  AllowUser x1
  AllowUser x2
  AllowUser x3
 AllowUser x4
  DenyALL
  &lt;/Limit&gt;
  MaxLoginAttempts 3
  # well, &lt;Directory&gt; /mnt/nas&gt; looks weird,
  # but it's not a typo!
  &lt;Directory&gt; /mnt/nas/&gt;
  # This is basic security for initial
  # file permission
  Umask 022 022
  AllowOverwrite on
  &#160;&#160;&#160; &lt;Limit ALL&gt;
  &#160;&#160;&#160; Order Allow,Deny
  &#160;&#160;&#160; AllowUser x1
  &#160;&#160;&#160; AllowUser x2
  &#160;&#160;&#160; AllowUser x3
  &#160;&#160;&#160; AllowUser x4
  &#160;&#160;&#160; Deny ALL
  &#160;&#160;&#160; &lt;/Limit&gt;
  &lt;/Directory&gt;
</pre>
<p>Commands to start/stop/restart the service is similar to any service</p>
<p class="codebox">$ sudo /etc/init.d/proftpd start<br />
$ sudo /etc/init.d/proftpd stop<br />
$ sudo /etc/init.d/proftpd restart</p>
<p>Well, this should be enough for setting up basic FTP server securely. =)</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=337&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2008/11/how-to-configure-ftpd-proftpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Thai input in Eee PC</title>
		<link>http://blog.10ninox.com/2007/12/how-to-install-thai-input-in-eee-pc/</link>
		<comments>http://blog.10ninox.com/2007/12/how-to-install-thai-input-in-eee-pc/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 14:44:28 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[Eee PC]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=59</guid>
		<description><![CDATA[I don&#8217;t know if this is useful, but I found many sites mentioned that Eee (Xandros) is not capable of handling Thai&#8211;only for input, I guess. So this could help somebody who passes by and is finding how to add &#8230; <a href="http://blog.10ninox.com/2007/12/how-to-install-thai-input-in-eee-pc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know if this is useful, but I found many sites mentioned that Eee (Xandros) is not capable of handling Thai&#8211;only for input, I guess. So this could help somebody who passes by and is finding how to add Thai as an input language.</p>
<p>Originally, Eee PC comes with English and Chinese, of course. Thus, it needs something to switch between those languages already. Luckily it is <em><strong>SCIM </strong>- Smart Commom Input Method Platform</em>. If you are familiar with another linux distro and using other language besides English, you will know it well. This is all you have to know in order to add Thai or any language as a keyboard input.</p>
<p><img src="http://blog.10ninox.com/wp-content/uploads/2007/12/image.png" alt="image" style="border-width: 0px" border="0" height="253" width="410" /></p>
<p><em><u>source</u>: screenshot of openSUSE 10.3</em></p>
<p>Basically, SCIM has 2 parts which are core programs and tables (.bin &amp; .png) for any languages. Usually, when you install SCIM, it will bundle tons of table for you to choose, but unfortunately Eee does have only English and Chinese. So, what you have to do is copying the table for the language you need into SCIM directory. That&#8217;s it!</p>
<p>I upload all non-CJK tables for SCIM in <a href="http://cid-72ebb4cbca348eaa.skydrive.live.com/self.aspx/Public/scim.zip" target="_blank">Sky Drive here</a>, it&#8217;s only 110kB, so you may add all that or just choose what you want.</p>
<p>After you got the file, you have to extract and put them in</p>
<p class="codebox">/usr/share/scim/</p>
<p>or if you want to add only Thai language, you have to copy <em>Thai.png</em> in icons folder to /usr/share/scim/icons and Thai.bin in tables folder to /usr/share/scim/tables. (you have to gain root privilege in order to do so)</p>
<p><img src="http://blog.10ninox.com/wp-content/uploads/2007/12/image2.png" alt="image" style="border: 0px none " border="0" height="330" width="425" /></p>
<p>Then you have to set for a hotkey for switch the language a bit. You might not use grave accent though since grave button is not on the right place as usual keyboard. I found that Ctrl+space is very comfortable way to switch, but it&#8217;s just my way.</p>
<p><u>Step-by-Step: how to add thai for eee pc:</u></p>
<p>1. download SCIM table from my <a href="http://cid-72ebb4cbca348eaa.skydrive.live.com/self.aspx/Public/scim.zip" target="_blank">Sky Drive here</a><br />
2. Extract to where you want, assume /home/user<br />
3. get into <em>Terminal</em> (Ctrl + Alt + T)<br />
4. gain root privilege</p>
<p class="codebox">sudo -i</p>
<p>5. copy 2 files needed for a lauguage you want</p>
<p class="codebox">cp /home/user/scim/icons/Thai.png /usr/share/scim/icons/<br />
cp /home/user/scim/Tables/Thai.bin /usr/share/scim/tables/</p>
<p>6. right-click on SCIM and set for a hotkey<br />
7. you are now able to type Thai on Eee PC, congratulation!</p>
<p>#&#8212;&#8211;added on 2007-12-25&#8212;- การลงภาษาไทยใน eee pc &#8212;&#8212;&#8211;#<br />
<font color="#ff6600"><u><strong>Additional part for you guys who prefer Pattachote keyboard layout</strong></u></font> (ปัตตะโชติ บน eee pc) <font color="#ffffff">pattachote on Eee; ปัตตโชติ บน eee </font></p>
<p>First of all, you don&#8217;t have to follow the step above. You have to do something a bit different which is adding scim-thai repository.<br />
1. Get into terminal by ctrl+alt+t<br />
2. add repository that has scim-thai (one I know is from linux.thai.net)</p>
<p class="codebox">sudo kwrite /etc/apt/sources.list</p>
<p>add the following line into the file, then save and exit.</p>
<p class="codebox">deb http://linux.thai.net/apt ./</p>
<p>3. update the repositories and install <em>scim-thai</em> in terminal</p>
<p class="codebox">sudo apt-get update</p>
<p>You may have to try several times until you haven&#8217;t seen an error. Then:-</p>
<p class="codebox">sudo apt-get install scim-thai</p>
<p><img src="http://blog.10ninox.com/wp-content/uploads/2007/12/terminal.jpg" alt="apt-get_scim-thai" /><br />
4. once you finished installation; restart once&#8211;I don&#8217;t think it needs to but scim sometimes confuses about adding new stuffs.<br />
<img src="http://blog.10ninox.com/wp-content/uploads/2007/12/choose_layout.jpg" alt="choose_layout_in_scim-thai" /><br />
5. After you get back; setting in SCIM then you all set!<br />
<img src="http://blog.10ninox.com/wp-content/uploads/2007/12/test-kb.jpg" alt="test_keyboard_on_eee" /></p>
<p>Happy New Year! I hope you find some fun with your Eee PC!</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=59&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2007/12/how-to-install-thai-input-in-eee-pc/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>how to config Samba server and user</title>
		<link>http://blog.10ninox.com/2007/08/how-to-config-samba-server-and-user/</link>
		<comments>http://blog.10ninox.com/2007/08/how-to-config-samba-server-and-user/#comments</comments>
		<pubDate>Thu, 23 Aug 2007 07:35:52 +0000</pubDate>
		<dc:creator>sipp11</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://blog.10ninox.com/?p=6</guid>
		<description><![CDATA[First, I was switching from all time Windows user to Linux user, more specifically Ubuntu&#8211;first Linux that I can use regularly. I was wondering if I can share files over the network with Windows as well. I know that there &#8230; <a href="http://blog.10ninox.com/2007/08/how-to-config-samba-server-and-user/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>First, I was switching from all time Windows user to Linux user, more specifically Ubuntu&#8211;first Linux that I can use regularly. I was wondering if I can share files over the network with Windows as well. I know that there is Samba service out there but I don&#8217;t know how to configure it properly. I messed things up as usual; all I knew to make it work is editing /etc/samba/smb.conf as <em>security=share</em>. Then I could get in there easily but no protection at all. Now I know, so I think it might be a good idea to explain in my ways instead of reading any-distro-docs which sometimes is too complex for novice users.</p>
<p>First of all, you have to install Samba server. I won&#8217;t go through this process because if you don&#8217;t know about this, you have to find out and get used to Linux first. My recommendation is trying with Debian, such as Ubuntu. It&#8217;s really easy to understand.</p>
<p>Second, we have to configure the smb.conf file. This time you have to be as &#8220;root&#8221; to make a share folder. You have 2 choices here, GUI or editing the file. I found that GUI is easy to understand but I can&#8217;t get it work for some reasons, thus I choose the traditional way <img src='http://blog.10ninox.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
<p>After we already created share folders, we have to create a user for Samba too. This the point I misunderstood for a while; I thought that Samba will use the user from the system; however, it&#8217;s not and system and Samba user are not the same as well.</p>
<p>These 3 steps are all you have to do to make it work perfectly. I brief all the processes first so you can imagine what we are doing in each step.</p>
<p>for editing Samba configuration file (smb.conf) you have to get in there</p>
<p class="codebox"> sudo gedit /etc/samba/smb.conf</p>
<p>once you get in there you will find a lot of comments and samples; you may go through the file for more understanding of each. However, we will pay attention to how to set share folder.</p>
<p class="codebox">[share-name]<br />
path = /media/hdax/xxx/<br />
comment = whatever you want<br />
available = yes<br />
browsable = yes<br />
public = yes<br />
writable = yes/no</p>
<p>This is what you have to insert at the end of the file. After you put the proper value, you will be able to see this share from another Windows PCs. However, you can&#8217;t browse the file right now because of login window. Whatever user and password you fill are not working <img src='http://blog.10ninox.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' />  Don&#8217;t be surprise, that&#8217;s normal. You still have to know 2 more values which are</p>
<p class="codebox">valid user = user-name<br />
guest ok = yes/no</p>
<p>the first one, valid user, is which user you give permission to read and/or write. Another one, guest ok, is to enable guest user which is read-only user.</p>
<p>After this step, if you enable guest user, you will be able to see the share folder without any problem. If not, you still have to go on setting user.</p>
<p>For creating user, you will run the smbpasswd utility to create user and password</p>
<p class="codebox">sudo smbpasswd -a user-name</p>
<p>Then you have to add that user to smbusers file</p>
<p class="codebox">sudo gedit /etc/samba/smbusers</p>
<p>What you have to put in there is this form</p>
<p class="codebox">system-user-name = &#8220;smb-user-name&#8221;</p>
<p>As you see, you may use Samba username (is what you add in <em>smbpasswd</em>) that differs from your username in the system depending on choice of preference.</p>
<p>All these methods above, you will be able to make many share folders with many conditions as you wish <img src='http://blog.10ninox.com/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
<p><u><strong>Note:</strong></u> If you just want to share all share folders without any restricts, you may change the line <em>security = user</em> in <em>smb.conf</em> to <em>security = share</em> and that&#8217;s all set.</p>
<img src="http://blog.10ninox.com/?ak_action=api_record_view&id=6&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.10ninox.com/2007/08/how-to-config-samba-server-and-user/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

