<?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>{Complexity} &#187; Config</title>
	<atom:link href="http://technote.wsjoung.com/tag/config/feed/" rel="self" type="application/rss+xml" />
	<link>http://technote.wsjoung.com</link>
	<description>simple note</description>
	<lastBuildDate>Fri, 06 Aug 2010 19:03:03 +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>Mount LVM disk</title>
		<link>http://technote.wsjoung.com/2009/09/01/mount-lvm-disk/</link>
		<comments>http://technote.wsjoung.com/2009/09/01/mount-lvm-disk/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 19:03:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://technote.wsjoung.com/?p=107</guid>
		<description><![CDATA[#apt-get install lvm2 #pvscan PV /dev/sdb1 VG server-roma lvm2 [136.49 GB / 0 free] Total: 1 [136.49 GB] / in use: 1 [136.49 GB] / in no VG: 0 [0 ] #vgscan Reading all physical volumes. This may take a while&#8230; Found volume group &#8220;server-roma&#8221; using metadata type lvm2 #vgchange -a y 2 logical volume(s) [...]]]></description>
			<content:encoded><![CDATA[<p>#apt-get install lvm2</p>
<p>#pvscan<br />
PV /dev/sdb1   VG server-roma   lvm2 [136.49 GB / 0    free]<br />
Total: 1 [136.49 GB] / in use: 1 [136.49 GB] / in no VG: 0 [0   ]</p>
<p>#vgscan<br />
Reading all physical volumes.  This may take a while&#8230;<br />
Found volume group &#8220;server-roma&#8221; using metadata type lvm2</p>
<p>#<a href="http://linux.about.com/library/cmd/blcmdl8_vgchange.htm" target="_blank">vgchange -a y</a><br />
2 logical volume(s) in volume group &#8220;server-roma&#8221; now active</p>
<p>#lvscan<br />
ACTIVE            &#8216;/dev/server-roma/root&#8217; [130.91 GB] inherit<br />
ACTIVE            &#8216;/dev/server-roma/swap_1&#8242; [5.58 GB] inherit</p>
<p>#mount /dev/server-roma/root /mnt</p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2009/09/01/mount-lvm-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu server 9.04 grub menu.lst</title>
		<link>http://technote.wsjoung.com/2009/09/01/ubuntu-server-9-04-grub-menu-lst/</link>
		<comments>http://technote.wsjoung.com/2009/09/01/ubuntu-server-9-04-grub-menu-lst/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 18:43:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://technote.wsjoung.com/?p=104</guid>
		<description><![CDATA[title           Ubuntu 9.04, kernel 2.6.28-15-server uuid            18173536-b479-4e5f-80f6-a363503b55e1 kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro quiet splash initrd          /boot/initrd.img-2.6.28-15-server quiet title           Ubuntu 9.04, kernel 2.6.28-15-server (recovery mode) uuid            18173536-b479-4e5f-80f6-a363503b55e1 kernel   [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, kernel 2.6.28-15-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro quiet splash</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">initrd          /boot/initrd.img-2.6.28-15-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">quiet</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, kernel 2.6.28-15-server (recovery mode)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro  single</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">initrd          /boot/initrd.img-2.6.28-15-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, kernel 2.6.28-11-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/vmlinuz-2.6.28-11-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro quiet splash</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">initrd          /boot/initrd.img-2.6.28-11-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">quiet</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, kernel 2.6.28-11-server (recovery mode)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/vmlinuz-2.6.28-11-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro  single</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">initrd          /boot/initrd.img-2.6.28-11-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, memtest86+</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/memtest86+.bin</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">quiet</div>
<p>/boot/grub/menu.lst</p>
<p>title           Ubuntu 9.04, kernel 2.6.28-15-server<br />
uuid            18173536-b479-4e5f-80f6-a363503b55e1<br />
kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro quiet splash<br />
initrd          /boot/initrd.img-2.6.28-15-server<br />
quiet</p>
<p>title           Ubuntu 9.04, kernel 2.6.28-15-server (recovery mode)<br />
uuid            18173536-b479-4e5f-80f6-a363503b55e1<br />
kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro  single<br />
initrd          /boot/initrd.img-2.6.28-15-server</p>
<p>title           Ubuntu 9.04, memtest86+<br />
uuid            18173536-b479-4e5f-80f6-a363503b55e1<br />
kernel          /boot/memtest86+.bin<br />
quiet</p>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2009/09/01/ubuntu-server-9-04-grub-menu-lst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to attach a new hard disk to ubuntu linux</title>
		<link>http://technote.wsjoung.com/2008/05/08/how-to-attach-a-new-hard-disk-to-ubuntu-linux/</link>
		<comments>http://technote.wsjoung.com/2008/05/08/how-to-attach-a-new-hard-disk-to-ubuntu-linux/#comments</comments>
		<pubDate>Thu, 08 May 2008 14:31:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/?p=91</guid>
		<description><![CDATA[root@server-tribeca:/etc# fdisk -l Disk /dev/sda: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x9dc96e9e Device Boot Start End Blocks Id System /dev/sda1 * 1 4689 37664361 83 Linux /dev/sda2 4690 4865 1413720 5 Extended /dev/sda5 4690 4865 1413688+ 82 Linux swap [...]]]></description>
			<content:encoded><![CDATA[<p><strong>root@server-tribeca:/etc# fdisk -l</strong></p>
<p>Disk /dev/sda: 40.0 GB, 40020664320 bytes<br />
255 heads, 63 sectors/track, 4865 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Disk identifier: 0x9dc96e9e</p>
<p>Device Boot      Start         End      Blocks   Id  System<br />
/dev/sda1   *           1        4689    37664361   83  Linux<br />
/dev/sda2            4690        4865     1413720    5  Extended<br />
/dev/sda5            4690        4865     1413688+  82  Linux swap / Solaris</p>
<p>Disk /dev/sdb: 120.0 GB, 120034123776 bytes<br />
255 heads, 63 sectors/track, 14593 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Disk identifier: 0x00a080f4</p>
<p>Device Boot      Start         End      Blocks   Id  System<br />
/dev/sdb1   *           1          13      104391   83  Linux<br />
/dev/sdb2              14       14471   116133885   83  Linux<br />
/dev/sdb3           14472       14593      979965   82  Linux swap / Solaris</p>
<p><strong>root@server-tribeca:/etc# fdisk /dev/sdb</strong></p>
<p>The number of cylinders for this disk is set to 14593.<br />
There is nothing wrong with that, but this is larger than 1024,<br />
and could in certain setups cause problems with:<br />
1) software that runs at boot time (e.g., old versions of LILO)<br />
2) booting and partitioning software from other OSs<br />
(e.g., DOS FDISK, OS/2 FDISK)</p>
<p>Command (m for help): <strong>d</strong><br />
Partition number (1-4): <strong>1</strong></p>
<p>Command (m for help): <strong>d</strong><br />
Partition number (1-4): <strong>2</strong></p>
<p>Command (m for help): <strong>d</strong><br />
Selected partition 3</p>
<p>Command (m for help): <strong>d</strong><br />
No partition is defined yet!</p>
<p>Command (m for help): <strong>n</strong><br />
Command action<br />
e   extended<br />
p   primary partition (1-4)<br />
<strong> p</strong><br />
Partition number (1-4): <strong>1</strong><br />
First cylinder (1-14593, default 1): <strong>1</strong><br />
Last cylinder or +size or +sizeM or +sizeK (1-14593, default 14593):<br />
Using default value 14593</p>
<p>Command (m for help): <strong>w</strong><br />
The partition table has been altered!</p>
<p>Calling ioctl() to re-read partition table.<br />
Syncing disks.</p>
<p><strong>root@server-tribeca:/etc# mkfs.ext3 /dev/sdb1</strong><br />
mke2fs 1.40.8 (13-Mar-2008)<br />
Filesystem label=<br />
OS type: Linux<br />
Block size=4096 (log=2)<br />
Fragment size=4096 (log=2)<br />
7331840 inodes, 29304560 blocks<br />
1465228 blocks (5.00%) reserved for the super user<br />
First data block=0<br />
Maximum filesystem blocks=0<br />
895 block groups<br />
32768 blocks per group, 32768 fragments per group<br />
8192 inodes per group<br />
Superblock backups stored on blocks:<br />
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,<br />
4096000, 7962624, 11239424, 20480000, 23887872</p>
<p>Writing inode tables: done<br />
Creating journal (32768 blocks): done<br />
Writing superblocks and filesystem accounting information: done</p>
<p>This filesystem will be automatically checked every 22 mounts or<br />
180 days, whichever comes first.  Use tune2fs -c or -i to override.</p>
<p><strong>root@server-tribeca:/etc# ls /dev/disk/by-uuid -alh</strong><br />
lrwxrwxrwx 1 root root  10 2008-05-07 17:58 753a86d9-6228-4725-a9ae-6f457c2b1824 -&gt; ../../sdb1<br />
lrwxrwxrwx 1 root root  10 2008-05-07 17:58 dbd44197-c1c5-427d-9a34-40f652b92f42 -&gt; ../../sda1<br />
lrwxrwxrwx 1 root root  10 2008-05-07 17:58 e15f5c2c-fc1f-414d-8c67-99c567f44d6a -&gt; ../../sda5</p>
<p><strong>root@server-tribeca:/etc# mkdir /disk1</strong></p>
<p><strong>root@server-tribeca:/etc# vi /etc/fstab</strong><br />
# /etc/fstab: static file system information.<br />
#<br />
# &lt;file system&gt; &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt;<br />
proc            /proc           proc    defaults        0       0<br />
# /dev/sda1<br />
UUID=dbd44197-c1c5-427d-9a34-40f652b92f42 /               ext3    relatime,errors=remount-ro 0       1<br />
# /dev/sda5<br />
UUID=e15f5c2c-fc1f-414d-8c67-99c567f44d6a none            swap    sw              0       0<br />
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0<br />
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0<br />
<strong> UUID=753a86d9-6228-4725-a9ae-6f457c2b1824 /disk1          ext3    defaults,errors=remount-ro 0       1</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2008/05/08/how-to-attach-a-new-hard-disk-to-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing Timezon and NTP On Ubuntu server</title>
		<link>http://technote.wsjoung.com/2008/05/05/changing-timezon-and-ntp-on-ubuntu-server/</link>
		<comments>http://technote.wsjoung.com/2008/05/05/changing-timezon-and-ntp-on-ubuntu-server/#comments</comments>
		<pubDate>Mon, 05 May 2008 22:06:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/?p=90</guid>
		<description><![CDATA[Timezon Config dpkg-reconfigure tzdata Time Synchronisation with NTP as root, create a file /etc/cron.daily/ntpdate containing: ntpdate ntp.ubuntu.com The file /etc/cron.daily/ntpdate must also be executable sudo chmod 755 /etc/cron.daily/ntpdate]]></description>
			<content:encoded><![CDATA[<p><em><strong>Timezon Config</strong></em></p>
<p>dpkg-reconfigure tzdata</p>
<p><em><strong>Time Synchronisation with NTP</strong></em></p>
<p>as root, create a file /etc/cron.daily/ntpdate  containing:<br />
ntpdate ntp.ubuntu.com<br />
The file <code>/etc/cron.daily/ntpdate</code> must also be executable<br />
sudo chmod 755 /etc/cron.daily/ntpdate</p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2008/05/05/changing-timezon-and-ntp-on-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pure-ftpd-mysql, [ERROR] Home directory not available &#8211; aborting</title>
		<link>http://technote.wsjoung.com/2008/04/15/pure-ftpd-mysql-error-home-directory-not-available-aborting/</link>
		<comments>http://technote.wsjoung.com/2008/04/15/pure-ftpd-mysql-error-home-directory-not-available-aborting/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 15:49:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/?p=80</guid>
		<description><![CDATA[groupadd -g 2001 ftpgroup useradd -u 2001 -s /bin/false -d /bin/null -c &#8220;pureftpd user&#8221; -g ftpgroup ftpuser Instead of this dummy ftpuser account setting when they want to create real linux account. they may get this error &#8220;Home directory not available &#8211; abort&#8221; even if they set CreateHomeDir to yes. Solution: the last existing in [...]]]></description>
			<content:encoded><![CDATA[<p>groupadd -g 2001 ftpgroup<br />
useradd -u 2001 -s /bin/false -d /bin/null -c &#8220;pureftpd user&#8221; -g ftpgroup ftpuser</p>
<p>Instead of this dummy ftpuser account setting when they want to create real linux account.<br />
they may get this error &#8220;Home directory not available &#8211; abort&#8221; even if they set CreateHomeDir to yes.</p>
<p>Solution:<br />
the last existing in the home path should be own by root.<br />
for example, we want to create somebody&#8217;s home directory when he log in, /home/ftpuser/somebody<br />
then the last existing directory &#8216;ftpuer&#8217; may look like this,<br />
drwxr-xr-x 2 <strong>root</strong> ftpgroup 4096 2008-04-15 11:20 ftpuser</p>
<p><a href="http://ecartis.ausics.net/hypermail/pure-old/0171.html">[pure-ftpd] CreateHomeDir problem (&#8220;[ERROR] Home directory not available &#8211; aborting&#8221;)</a><br />
<a href="http://howtoforge.com/virtual-hosting-with-pureftpd-and-mysql-ubuntu-7.10">Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) On Ubuntu 7.10 (Gutsy Gibbon)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2008/04/15/pure-ftpd-mysql-error-home-directory-not-available-aborting/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>mod_rewrite: Apache URL Rewriting</title>
		<link>http://technote.wsjoung.com/2007/01/24/mod_rewrite-apache-url-rewriting/</link>
		<comments>http://technote.wsjoung.com/2007/01/24/mod_rewrite-apache-url-rewriting/#comments</comments>
		<pubDate>Wed, 24 Jan 2007 03:41:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/2007/01/24/mod_rewrite-apache-url-rewriting/</guid>
		<description><![CDATA[People loves to apply MVC model pretty much on their web application project. They likely put a controller which takes user input from the request and figures out what it means to the model. In this case, URL may looks like this, “index.php?category=sub”. It’s not pretty at all. If we can make this “category/sub”. it [...]]]></description>
			<content:encoded><![CDATA[<p class="snap_preview">People loves to apply MVC model pretty much on their web application project. They likely put a controller which takes user input from the request and figures out what it means to the model. In this case, URL may looks like this, “index.php?category=sub”. It’s not pretty at all. If we can make this “category/sub”. it would be much better for search engine and users; security reason as well.</p>
<p><a href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html">Module mod_rewrite URL Rewriting Engine</a><br />
<a href="http://www.workingwith.me.uk/articles/scripting/mod_rewrite">mod_rewrite, a beginner’s guide (with examples)</a><br />
<a href="http://www.sitepoint.com/print/guide-url-rewriting">mod_rewrite: A Beginner’s Guide to URL Rewriting</a><br />
<a href="http://www.ilovejackdaniels.com/apache/mod_rewrite-cheat-sheet/">mod_rewrite Cheat Sheet</a></p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2007/01/24/mod_rewrite-apache-url-rewriting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Samba Setting: Secure Read-Write File and Print Server</title>
		<link>http://technote.wsjoung.com/2006/11/17/samba-setting-secure-read-write-file-and-print-server/</link>
		<comments>http://technote.wsjoung.com/2006/11/17/samba-setting-secure-read-write-file-and-print-server/#comments</comments>
		<pubDate>Fri, 17 Nov 2006 00:51:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/2006/11/17/samba-setting-secure-read-write-file-and-print-server/</guid>
		<description><![CDATA[Secure Read-Write File and Print Server We progress now from simple systems to a server that is slightly more complex. Our new server will require a public data storage area in which only authenticated users (i.e., those with a local account) can store files, as well as a home directory. There will be one printer [...]]]></description>
			<content:encoded><![CDATA[<p>Secure Read-Write File and Print Server</p>
<p>We progress now from simple systems to a server that is slightly more complex.</p>
<p>Our new server will require a public data storage area in which only authenticated users (i.e., those with a local account) can store files, as well as a home directory. There will be one printer that should be available for everyone to use.</p>
<p>In this hypothetical environment (no espionage was conducted to obtain this data), the site is demanding a simple environment that is secure enough but not too difficult to use.</p>
<p>Site users will be Jack Baumbach, Mary Orville, and Amed Sehkah. Each will have a password (not shown in further examples). Mary will be the printer administrator and will own all files in the public share.</p>
<p>This configuration will be based on user-level security that is the default, and for which the default is to store Microsoft Windows-compatible encrypted passwords in a file called /etc/samba/smbpasswd. The default smb.conf entry that makes this happen is passdb backend = smbpasswd, guest. Since this is the default, it is not necessary to enter it into the configuration file. Note that the guest backend is added to the list of active passdb backends no matter whether it specified directly in Samba configuration file or not.</p>
<p>Procedure 2.2. Installing the Secure Office Server</p>
<p>Example 2.4. Secure Office Server smb.conf<br />
# Global parameters<br />
[global]<br />
workgroup = MIDEARTH<br />
netbios name = OLORIN<br />
printcap name = cups<br />
disable spoolss = Yes<br />
show add printer wizard = No<br />
printing = cups<br />
[homes]<br />
comment = Home Directories<br />
valid users = %S<br />
read only = No<br />
browseable = No<br />
[public]<br />
comment = Data<br />
path = /export<br />
force user = maryo<br />
force group = users<br />
guest ok = Yes<br />
read only = No<br />
[printers]<br />
comment = All Printers<br />
path = /var/spool/samba<br />
printer admin = root, maryo<br />
create mask = 0600<br />
guest ok = Yes<br />
printable = Yes<br />
use client driver = Yes<br />
browseable = No</p>
<p><strong>1. Add all users to the operating system:</strong><br />
root# useradd -c &#8220;Jack Baumbach&#8221; -m -g users -p m0r3pa1n jackb<br />
root# useradd -c &#8220;Mary Orville&#8221; -m -g users -p secret maryo<br />
root# useradd -c &#8220;Amed Sehkah&#8221; -m -g users -p secret ameds</p>
<p><strong>2. Configure the Samba smb.conf file as shown above</strong></p>
<p><strong>3. Initialize the Microsoft Windows password database with the new users:</strong><br />
root# smbpasswd -a root<br />
New SMB password: bigsecret<br />
Reenter smb password: bigsecret<br />
Added user root.</p>
<p>root# smbpasswd -a jackb<br />
New SMB password: m0r3pa1n<br />
Retype new SMB password: m0r3pa1n<br />
Added user jackb.</p>
<p>root# smbpasswd -a maryo<br />
New SMB password: secret<br />
Reenter smb password: secret<br />
Added user maryo.</p>
<p>root# smbpasswd -a ameds<br />
New SMB password: mysecret<br />
Reenter smb password: mysecret<br />
Added user ameds.</p>
<p><strong>4. Install printer using the CUPS Web interface. Make certain that all printers that will be shared with Microsoft Windows clients are installed as raw printing devices.</strong></p>
<p><strong>5. Start Samba using the operating system administrative interface. Alternately, this can be done manually by executing:</strong></p>
<p>root#  nmbd; smbd;</p>
<p>Both applications automatically execute as daemons. Those who are paranoid about maintaining control can add the -D flag to coerce them to start up in daemon mode.</p>
<p><strong>6. Configure the /export directory:</strong><br />
root# mkdir /export<br />
root# chown maryo.users /export<br />
root# chmod u=rwx,g=rwx,o-rwx /export</p>
<p><strong>7. Check that Samba is running correctly:</strong><br />
root# smbclient -L localhost -U%</p>
<p>The following error message indicates that Samba was not running:<br />
Error connecting to 192.168.1.40 (Connection refused)<br />
Connection to olorin failed</p>
<p><strong>8. Connect to OLORIN as maryo:</strong><br />
root# smbclient //olorin/maryo -Umaryo%secret<br />
OS=[UNIX] Server=[Samba-3.0.20]<br />
smb: \&gt; dir<br />
smb: \&gt; q</p>
<p>By now you should be getting the hang of configuration basics. Clearly, it is time to explore slightly more complex examples. For the remainder of this chapter we abbreviate instructions, since there are previous examples.</p>
<p><a href="http://us2.samba.org/samba/docs/man/Samba-HOWTO-Collection/index.html">The Official Samba-3 HOWTO and Reference Guide</a></p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2006/11/17/samba-setting-secure-read-write-file-and-print-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy installation of Struts</title>
		<link>http://technote.wsjoung.com/2006/11/11/easy-installation-of-struts/</link>
		<comments>http://technote.wsjoung.com/2006/11/11/easy-installation-of-struts/#comments</comments>
		<pubDate>Sat, 11 Nov 2006 04:07:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[J2EE]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Struts]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/2006/11/11/easy-installation-of-struts/</guid>
		<description><![CDATA[It seems like that Struts is a part of J2EE now, so I think it should be included in J2EE default package!! or maybe I should try JSF. Download Struts from http://struts.apache.org 1. Extract downloaded file 2. COPY war files which are under &#8220;&#60;Struts&#62;/webapps dir&#8221; INTO &#8220;&#60;Tomcat&#62;/webapps dir&#8221; 3. COPY jar files which are under [...]]]></description>
			<content:encoded><![CDATA[<p>It seems like that Struts is a part of J2EE now, so I think it should be included in J2EE default package!! or maybe I should try JSF.<br />
Download Struts from <a class="con_link" href="http://struts.apache.org/" target="_blank">http://struts.apache.org</a></p>
<p>1. Extract downloaded file</p>
<p>2. COPY war files which are under &#8220;&lt;Struts&gt;/webapps dir&#8221; INTO &#8220;&lt;Tomcat&gt;/webapps dir&#8221;</p>
<p>3. COPY jar files which are under &#8220;&lt;Struts&gt;/lib dir&#8221; INTO &#8220;&lt;J2SDK&gt;/jre/lib/ext dir&#8221;</p>
<p>4. Tomcat restart, That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2006/11/11/easy-installation-of-struts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
