<?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>:: TechBlog :: &#187; fedora</title>
	<atom:link href="http://techblog.touchbasic.com/html/tag/fedora/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.touchbasic.com/html</link>
	<description>Techblog is collection of articles covering a wide variety of tech related topics including: Linux, Microsoft, Google, web development, web design, open source, wordpress, security, and more.</description>
	<lastBuildDate>Fri, 06 May 2011 00:58:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Setting up a Minimal Samba Server in Fedora Core 12</title>
		<link>http://techblog.touchbasic.com/html/setting-up-a-minimal-samba-server-in-fedora-core-12/</link>
		<comments>http://techblog.touchbasic.com/html/setting-up-a-minimal-samba-server-in-fedora-core-12/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 04:58:47 +0000</pubDate>
		<dc:creator>elran</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Fedora Code]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://techblog.touchbasic.com/html/?p=505</guid>
		<description><![CDATA[Goal: Minimal FC12 Samba install with low RAM usage, high security, and least amount of configuration. Why? Quickly turn an older machine into a modern Fedora Core 12 file server compatible with linux and windows clients. Less software installed means less setup, less maintenance, less updates, and less chance of human error somewhere along the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Goal:</strong><br />
Minimal FC12 <a href="http://www.samba.org/">Samba</a> install with low RAM usage, high security, and least amount of configuration.</p>
<p><strong>Why?</strong><br />
Quickly turn an older machine into a modern Fedora Core 12 file server compatible with linux and windows clients. Less software installed means less setup, less maintenance, less updates, and less chance of human error somewhere along the way. The theory here is, the system starts out relatively secure and (if kept up-to-date) should remains so over time.</p>
<p><strong>Side Note:</strong><br />
There are definitely many other ways to go about setting up a Samba server, much of which depends on your networking environment and overall requirements / constraints. This article is meant more as a guide &#8211; my notes which describe the method i happen to use &#8211; so that if i have to, i can do it all again.</p>
<p><strong>Assumptions:</strong><br />
- Comfortable with install and use of Fedora Core Linux OS (command line)<br />
- Basic understanding of networking concepts (setting up a static IP)<br />
- Some experience with editing the smb.conf file</p>
<p><strong>Features:</strong><br />
- No GUI / Desktop Environment<br />
- Low RAM usage: boots up @ ~80MB with smbd and nmbd running<br />
- SELinux and iptables firewall enabled / configured for use with Samba<br />
- Samba Security level = User</p>
<p><strong>System Resources:</strong><br />
CPU: AMD @ 700MHz<br />
RAM: 192MB</p>
<p><strong>Steps Involved:</strong></p>
<ol>
<li><a href="http://fedoraproject.org/en/get-fedora-all">Download</a> and burn the Fedora-12-i386-DVD.iso file to dvd</li>
<li>Boot from the disc and go through install process (with less that 200MB RAM it defaults to text mode install &#8211; you can also force a text mode install at the boot: prompt by typing: linux text)</li>
<li>Once install is completed and system is rebooted, login as root</li>
<li>Check that networking is up<br />
- type:
<pre>ifconfig</pre>
<p> (see if you have an IP address)<br />
- type:
<pre>dhclient eth0</pre>
<p> (to use dhcp for now)</li>
<li>Bring the system up to date<br />
- type:
<pre>yum check-update</pre>
<p> (to check for updates first)<br />
- type:
<pre>yum update</pre>
<p> (say &#8220;yes&#8221; to install the updates)</li>
<p>- type:
<pre>yum list installed</pre>
<p> (to see a list of all installed packages)</p>
<li>Check to see what package &#8220;groups&#8221; got installed by default<br />
- type:
<pre>yum grouplist > grouplist.txt</pre>
<p>- type:
<pre>cat grouplist.txt | more</pre>
</li>
<li>Remove any unwanted package groups<br />
- type:
<pre>yum groupremove "Mail Server"</pre>
</li>
<li>Add the Samba package group<br />
- type:
<pre>yum groupinstall "Windows File Server"</pre>
</li>
<li>Configure Samba by editing /etc/samba/smb.conf<br />
- Note, for Vista support (in the Global section) add:
<pre>client NTLMv2 auth = yes</pre>
<p>- Note, to hide unreadable files like /lost+found/ (in the Global section) add:
<pre>hide unreadable = yes</pre>
<p>- type:
<pre>testparm</pre>
<p> (confirm output has no errors in it)</li>
<li>Deal with SELinux security policies (see default smb.conf file for details)<br />
- type:
<pre>setsebool -P samba_domain_controller on</pre>
<p>- type:
<pre>setsebool -P samba_enable_home_dirs on</pre>
<p>- type:
<pre>chcon -t samba_share_t /path-to-mounted-directories</pre>
<p> (remember to mount any/all directories first)<br />
- type:
<pre>ls -ldZ /path-to-mounted-directories</pre>
<p> (to confirm it worked)<br />
- Note, for existing shares, to make sure this affects all files and folders recursively add:
<pre>chcon -R -t samba_share_t /path-to-existing-mounted-directories</pre>
<p>- Note: to completely disable SELinux protection for smbd daemon (not recommended) type:
<pre>setsebool -P smbd_disable_trans 1</pre>
<p>- Note: you can temporarily disable SELinux by putting it into permissive mode &#8211; type:
<pre>getenforce</pre>
<p> to find out whether SELinux is in permissive [0], enforcing [1], or disabled [2] mode.<br />
- Note: to put SELinux into permissive mode (for testing purposes but not recommended) type:
<pre>setenforce 0</pre>
</li>
<li>Add samba users<br />
- type:
<pre>useradd john</pre>
<p>- type:
<pre>smbpasswd -a john</pre>
</li>
<li>Configure the firewall to accept samba connections<br />
- type:
<pre>system-config-firewall-tui</pre>
<p> (add an asterix next to the line: &#8220;Samba&#8221;)</li>
<li>Configure the network to use static IP/netmask/gateway/DNS info<br />
- type:
<pre>system-config-network-tui</pre>
<p>- select: [Edit a Device Params] and remove the asterix from the line: &#8220;Use DHCP&#8221;. then, and add static info</li>
<li>Configure the network to use a static Hostname and DNS address (note: DNS settings may not be required)<br />
- type:
<pre>system-config-network-tui</pre>
<p>- select: [Edit DNS configuration] then, and add static hostname and dns info</li>
<li>Get the network, smb, and nmb to start automatically next time you reboot<br />
- type:
<pre>chkconfig --level 3 network on</pre>
<p>- type:
<pre>chkconfig --level 3 smb on</pre>
<p>- type:
<pre>chkconfig --level 3 nmb on</pre>
<p>- type:
<pre>chkconfig --list network</pre>
<p> (or smb, or nmb to confirm it worked. you can also leave out the servicename to see a list of all services)</li>
</ol>
<p><strong>Reboot.</strong><br />
Use another computer to check that everything went well.</p>
<p><strong>Optionally:</strong><br />
1. Install NTFS support.<br />
- type:
<pre>yum install ntfs-3g</pre>
<p>2. Once it&#8217;s done downloading/installing, figure out which device it is (for me it was /dev/sde1) and mount it.<br />
- type:
<pre>mount -t ntfs /dev/[your-usb-device] /media/</pre>
<p>3. Deal with selinux and ntfs support<br />
- type:
<pre>setsebool -P samba_share_fusefs 1</pre>
]]></content:encoded>
			<wfw:commentRss>http://techblog.touchbasic.com/html/setting-up-a-minimal-samba-server-in-fedora-core-12/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to increase the size of a VMware vmdk file formatted as linux lvm</title>
		<link>http://techblog.touchbasic.com/html/how-to-increase-the-size-of-a-vmware-vmdk-file-formatted-as-linux-lvm/</link>
		<comments>http://techblog.touchbasic.com/html/how-to-increase-the-size-of-a-vmware-vmdk-file-formatted-as-linux-lvm/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 05:03:33 +0000</pubDate>
		<dc:creator>elran</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Everything]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[virtual disk]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[vmdk]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://techblog.touchbasic.com/html/?p=293</guid>
		<description><![CDATA[VMware can run many cool operating systems on a single host computer. But, having run the software for an extended amount of time, i eventually always run out of space on my guest OSes. This happened a few times before, but it wasn&#8217;t until my VM really froze up on me that i figured it [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vmware.com">VMware</a> can run many cool operating systems on a single host computer. But, having run the software for an extended amount of time, i eventually always run out of space on my guest OSes. This happened a few times before, but it wasn&#8217;t until my VM really froze up on me that i figured it was time to look into extending or expanding the current virtual disk i had in use.</p>
<p><strong>Have you ever tried increasing the size of a vmdk file / virtual hard disk ?</strong><br />
<em>It&#8217;s not that easy.. and it&#8217;s kind of confusing.</em></p>
<p>So, once i finally figured out how to do it, i thought it would be useful to write it down so that i wouldn&#8217;t forget next time this happened. Here goes..</p>
<p><strong>In my example i have: </strong><br />
- a Windows Vista host OS running a <a href="http://fedoraproject.org/">Fedora Core</a> guest OS<br />
- an 8GB vmdk file (formatted as Linux LVM &#8211; fedora fs) on the guest OS which i have backed up before attempting anything here !!! </p>
<p><strong>I want to:</strong><br />
- increase the 8GB vmdk file to 16GB<br />
- not lose any data saved on the vmdk file<br />
- not move any data off/on the vmdk file</p>
<h2>Follow these Steps:</h2>
<ol>
<li>Download and Install: <a href="http://downloads.vmware.com/d/details/workstation_6_5_3_for_windows/dHdiZHdodGJAJXQ=">VMware Workstation for Windows</a> (trial)</li>
<li>Note the location of the VMware Workstation folder (after install) &#8211; in my case it&#8217;s &#8220;C:\Program Files\VMware\VMware Workstation&#8221;</li>
<li>Open a Windows Command Prompt and navigate to the folder where your vmdk file resides and execute the following command:<br /><code>"C:\Program Files\VMware\VMware Workstation\vmware-vdiskmanager.exe" -x 16GB "Name of Your Virtual Disk File.vmdk"</code><br />Ok, now you just made the disk twice as big but you can&#8217;t use the space yet because it&#8217;s inactive, unpartitioned, unformatted, and still utterly useless to us. (but not for long)</li>
<li>Next, boot up the guest OS and log in as root. Verify that there is in fact a large amount of unallocated space/sectors by typing the command: <code>fdisk -l</code></li>
<li>Then we&#8217;ll partition and format the new portion of the disk. First select the disk: <code>fdisk /dev/sda</code></li>
<li>Type &#8220;n&#8221; at the fdisk menu to create a new partition</li>
<li>Type &#8220;p&#8221; for primary partition, and then select the appropriate partition number, as well as first and last cylinders to set how large to make the new partition (defaults &#8211; ie: use all the free space &#8211; worked well for me here)</li>
<li>Type &#8220;t&#8221; to change the partition&#8217;s system id, then type &#8220;8e&#8221; to switch it to Linux LVM </li>
<li>Type &#8220;w&#8221; to write the table to disk and exit fdisk. You might get a warning about needing to reboot for changes to take effect &#8211; either way, reboot your guest OS just to be safe.</li>
<li>Once rebooted, log in as root again and verify  the new partition exists. Type &#8220;fdisk -l&#8221; to see a list of partitions. In my case, the new partition is: /dev/sda3</li>
<li>Now comes the confusing part. We&#8217;re going to merge the new partition into the current Volume Group (which is just what fedora calls it&#8217;s own virtual disks that are made up of a bunch of virtual LVM partitions). So, first, to &#8220;create&#8221; the necessary &#8220;physical volume&#8221; from our newly created disk partition (/dev/sda3) first type: <code>pvcreate /dev/sda3</code></li>
<li>You need to find out the name of the Volume Group before you can extend it to include the newly created physical volume. Type: <code>vgdisplay</code> and look for the first line, &#8220;VG Name&#8221; &#8211; in this case it was VolGroup00 [<a href="http://techblog.touchbasic.com/html/how-to-increase-the-size-of-a-vmware-vmdk-file-formatted-as-linux-lvm/#comment-36074">thanks agm</a>]</li>
<li>Next, you need to extend the Volume Group to include the newly created physical volume. Type: <code>vgextend VolGroup00 /dev/sda3</code></li>
<li>Then, type: <code>pvscan</code> You should see the new partition (/1dev/sda3) in the list of partitions and the total should read approximately 16GB (the amount we set earlier). In my example, it said 15.75GB</li>
<li>Now type: <code>lvextend -L+8GB /dev/VolGroup00/LogVol00</code> to increase / extend the Logical Volume by 8GB (to a total of 16GB).</li>
<li>Finally, to resize the filing system type: <code>resize2fs /dev/VolGroup00/LogVol00</code></li>
</ol>
<p>Now your fedora guest OS should have twice the amount of space and your VM should be running smoothly.<br />
Repeat this process if / when the vmdk file gets filled up again and runs out of space ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.touchbasic.com/html/how-to-increase-the-size-of-a-vmware-vmdk-file-formatted-as-linux-lvm/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

