<?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>Function13.net &#187; server</title>
	<atom:link href="http://www.function13.net/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.function13.net</link>
	<description>A blog about technology and code.</description>
	<lastBuildDate>Tue, 23 Feb 2010 07:37:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Set Up a Samba Server in Ubuntu</title>
		<link>http://www.function13.net/2009/12/18/how-to-set-up-a-samba-server-in-ubuntu/</link>
		<comments>http://www.function13.net/2009/12/18/how-to-set-up-a-samba-server-in-ubuntu/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 21:52:22 +0000</pubDate>
		<dc:creator>lijamez</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.function13.net/?p=614</guid>
		<description><![CDATA[
So you have a Linux desktop or server and want to share files and/or printers to your Windows PCs or Macs. Luckily, all three operating systems support SMB so let&#8217;s use that. With Samba you can share files and printers on your home network and protect your shares with a username and password.

Install
First, fire up [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-615" title="Samba" src="http://www.function13.net/wp-content/Samba.jpg" alt="Samba" width="498" height="155" /></p>
<p>So you have a Linux desktop or server and want to share files and/or printers to your Windows PCs or Macs. Luckily, all three operating systems support SMB so let&#8217;s use that. With Samba you can share files and printers on your home network and protect your shares with a username and password.</p>
<p><span id="more-614"></span></p>
<h2>Install</h2>
<p>First, fire up a terminal window and install the Samba server and GUI Configuration Tool:</p>
<pre>sudo apt-get install samba system-config-samba</pre>
<p>Once finished the configuration tool can be found under System &gt; Administration &gt; Samba</p>
<h2>Settings</h2>
<div id="attachment_622" class="wp-caption alignleft" style="width: 130px"><a href="http://www.function13.net/wp-content/samba-newuser.PNG"><img class="size-thumbnail wp-image-622 " title="samba-newuser" src="http://www.function13.net/wp-content/samba-newuser-150x150.PNG" alt="samba-newuser" width="120" height="120" /></a>
<p class="wp-caption-text">Adding a new user.</p>
</div>
<p>Make sure the workgroup matches that of your Windows PCs by going to Preferences &gt; Server Settings. If you are using Windows 7 or Vista, it&#8217;s &#8220;workgroup&#8221; (and Samba should already be set to that). If XP, it&#8217;s usually &#8220;mshome&#8221;.</p>
<p>Create a username and password to secure the shares by going to Preferences &gt; Samba Users and click on &#8220;Add User.&#8221; Add as many users as you need.</p>
<p><strong>Unix Username:</strong> Pick the linux user account<br />
<strong>Windows Username / Samba Password:</strong> The Windows username and samba password will be used for authentication when accessing the share.</p>
<h2>Shares</h2>
<p style="text-align: left;">Time to add a share. Click the &#8220;+&#8221; button.</p>
<p style="text-align: left;">
<div id="attachment_624" class="wp-caption alignright" style="width: 154px"><a href="http://www.function13.net/wp-content/samba-share1.PNG"><img class="size-medium wp-image-624 " title="samba-share1" src="http://www.function13.net/wp-content/samba-share1-300x222.PNG" alt="Adding a new share." width="144" height="106" /></a>
<p class="wp-caption-text">Adding a new share.</p>
</div>
<p><strong>Directory:</strong> This is the directory which you want to share.<br />
<strong>Share Name:</strong> The share name will be the name that will appear when you browse the server.<br />
<strong>Description:</strong> This will not be shown over the network and is just for organization.<br />
<strong>Writable:</strong> Check if you want to be able to write to the folder.<br />
<strong>Visible: </strong>When checked, the share will be visible to users who browse the server. If unchecked, it will not be visible but is still accessible explicitly.</p>
<p>In the Access tab, set permissions by checking the users who may access this share.</p>
<h2>Accessing the Share</h2>
<p>Back in Windows, access the samba server by opening an Explorer window and entering in the address bar:</p>
<pre>\\[ip address of the samba server]</pre>
<p>To access a hidden share:</p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">\\[ip address of the samba server]\[hidden share name]</pre>
<p>When opening a share for the first time, Windows may prompt for a username and password. Just enter the username and password created earlier.</p>
<p>And now you have a fully functioning Samba server. <img src='http://www.function13.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>Note: </strong>The GUI config tool is pretty basic. More advanced options can be set in the /etc/samba/smb.conf file. If this is edited, you can restart Samba server without rebooting:</p>
<pre>sudo /etc/init.d/samba restart</pre>
<p><!-- Begin SexyBookmarks Menu Code --></p>
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced">
<ul class="socials">
<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.function13.net/2009/12/18/how-to-set-up-a-samba-server-in-ubuntu/&amp;title=How+To+Set+Up+a+Samba+Server+in+Ubuntu" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.function13.net/2009/12/18/how-to-set-up-a-samba-server-in-ubuntu/&amp;title=How+To+Set+Up+a+Samba+Server+in+Ubuntu" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.function13.net/2009/12/18/how-to-set-up-a-samba-server-in-ubuntu/&amp;title=How+To+Set+Up+a+Samba+Server+in+Ubuntu" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.function13.net/2009/12/18/how-to-set-up-a-samba-server-in-ubuntu/&amp;title=How+To+Set+Up+a+Samba+Server+in+Ubuntu" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.function13.net/2009/12/18/how-to-set-up-a-samba-server-in-ubuntu/&amp;t=How+To+Set+Up+a+Samba+Server+in+Ubuntu" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.function13.net/2009/12/18/how-to-set-up-a-samba-server-in-ubuntu/&amp;title=How+To+Set+Up+a+Samba+Server+in+Ubuntu&amp;summary=%0D%0A%0D%0ASo%20you%20have%20a%20Linux%20desktop%20or%20server%20and%20want%20to%20share%20files%20and%2For%20printers%20to%20your%20Windows%20PCs%20or%20Macs.%20Luckily%2C%20all%20three%20operating%20systems%20support%20SMB%20so%20let%27s%20use%20that.%20With%20Samba%20you%20can%20share%20files%20and%20printers%20on%20your%20home%20network%20and%20protect%20your%20shares%20with%20a%20username%20and%20password.%0D%0A%0D&amp;source=Function13.net" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
<li class="sexy-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.function13.net/2009/12/18/how-to-set-up-a-samba-server-in-ubuntu/&amp;title=How+To+Set+Up+a+Samba+Server+in+Ubuntu" rel="nofollow" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.function13.net/2009/12/18/how-to-set-up-a-samba-server-in-ubuntu/&amp;n=How+To+Set+Up+a+Samba+Server+in+Ubuntu&amp;pli=1" rel="nofollow" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<p><!-- End SexyBookmarks Menu Code --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.function13.net/2009/12/18/how-to-set-up-a-samba-server-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lighting up LAMP in Ubuntu 8.04 Hardy Heron</title>
		<link>http://www.function13.net/2008/06/02/lighting-up-lamp/</link>
		<comments>http://www.function13.net/2008/06/02/lighting-up-lamp/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 08:06:58 +0000</pubDate>
		<dc:creator>lijamez</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://lijamez.wordpress.com/?p=4</guid>
		<description><![CDATA[This guide will help newbies set up a fully working LAMP (Linux, Apache, MySQL, PHP) server using on Ubuntu 8.04 Hardy Heron. Doing do will allow you to use various PHP applications such as the popular phpBB forums and Wordpress blog in addition to the basic HTML pages and files. I write this based on [...]]]></description>
			<content:encoded><![CDATA[<p>This guide will help newbies set up a fully working LAMP (Linux, Apache, MySQL, PHP) server using on <a href="http://www.ubuntu.com/">Ubuntu</a> 8.04 Hardy Heron. Doing do will allow you to use various PHP applications such as the popular phpBB forums and Wordpress blog in addition to the basic HTML pages and files. I write this based on an &#8220;out of the box&#8221; Ubuntu.</p>
<p>Let&#8217;s begin&#8230;</p>
<p><span id="more-4"></span></p>
<h3><strong>Install Packages</strong></h3>
<p>First, install the required packages by typing the following into the terminal:</p>
<blockquote>
<p class="command">sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin</p>
</blockquote>
<p class="command">This will install <a href="http://www.apache.org/">Apache</a>, <a href="http://www.php.net/">PHP</a>, <a href="http://www.mysql.com/">MySQL</a>, their respective modules, and <a href="http://www.phpmyadmin.net/home_page/index.php">phpMyAdmin</a>. Enter your preferred root password for mySQL when prompted and choose apache2 to be automatically configured.</p>
<p class="command">If you&#8217;d like, you can test whether if Apache is working properly by going to http://localhost/ in your web browser.</p>
<p class="command"><strong>Letting Other Computers on the Same Network Connect (Optional)</strong></p>
<p class="command">Optionally, if you want computers on the same network to connect to the server you may want to edit /etc/mysql/my.cnf by invoking the command:</p>
<blockquote>
<p class="command">sudo gedit /etc/mysql/my.cnf</p>
</blockquote>
<p class="command">Then, replace the following line with <a href="http://www.whatismyip.com">your own IP address</a>.</p>
<blockquote>
<p class="command">bind-address = 127.0.0.1</p>
</blockquote>
<h3 class="command"><strong>Configuring</strong></h3>
<p class="command">To enable PHP and MySQL to work together, edit the php.ini file:</p>
<blockquote>
<p class="command">sudo gedit /etc/php5/apache2/php.ini</p>
</blockquote>
<p class="command">Then un-comment the following line. Save and close the file.</p>
<blockquote>
<p class="command">;extension = mysql.so</p>
</blockquote>
<h3 class="command"><strong>Accessing PHPMyAdmin</strong></h3>
<p class="command">Edit the Apache configuration file:</p>
<blockquote>
<p class="command">sudo gedit /etc/apache2/apache2.conf</p>
</blockquote>
<p class="command">Add the following line to the bottom of the file. Save and close.</p>
<blockquote>
<p class="command">Include /etc/phpmyadmin/apache.conf</p>
</blockquote>
<p class="command">Restart Apache.</p>
<blockquote>
<p class="command">sudo /etc/init.d/apache2 restart</p>
</blockquote>
<h3 class="command"><strong>Testing PHP<br />
</strong></h3>
<p class="command">Create and edit a file called testphp.php in your /var/www/ folder:</p>
<blockquote>
<p class="command">sudo gedit /var/www/testphp.php</p>
</blockquote>
<p class="command">Insert the following text inside that file and save:</p>
<blockquote>
<p class="command">&lt;?php phpinfo(); ?&gt;</p>
</blockquote>
<p class="command">Go back to your web browser and navigate to:</p>
<blockquote>
<p class="command">http://localhost/testphp.php</p>
</blockquote>
<p class="command">The PHP page should display. If a download window appears instead, something went wrong. Try reinstalling php5 and libapache2-mod-php5.</p>
<h3 class="command"><strong>Testing phpMyAdmin</strong></h3>
<p class="command">Navigate your web browser to:</p>
<blockquote>
<p class="command">http://localhost/phpmyadmin/</p>
</blockquote>
<p class="command">If the phpMyAdmin login page displays, then&#8230;</p>
<p class="command"><strong>You are done. That wasn&#8217;t so hard.</strong></p>
<p class="command">Now that you have LAMP running, why not <a href="http://www.function13.net/?p=8">try some applications</a>? To manage your server remotely, it would probably be a good idea to <a href="http://www.function13.net/?p=34">install SSH</a>.</p>
<p class="command">Note: The root directory of your web server is /var/www/</p>
<p class="command">
<p class="command">
<p class="command">
<p class="command">
<p class="command">Source: <a href="http://www.howtoforge.com/ubuntu_lamp_for_newbies">HowtoForge</a>, <a href="http://www.blog.highub.com/linux/install-and-configure-phpmyadmin-on-ubuntu-lamp/">Highub </a></p>
<p class="command">
<p><!-- Begin SexyBookmarks Menu Code --></p>
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced">
<ul class="socials">
<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://www.function13.net/2008/06/02/lighting-up-lamp/&amp;title=Lighting+up+LAMP+in+Ubuntu+8.04+Hardy+Heron" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.function13.net/2008/06/02/lighting-up-lamp/&amp;title=Lighting+up+LAMP+in+Ubuntu+8.04+Hardy+Heron" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.function13.net/2008/06/02/lighting-up-lamp/&amp;title=Lighting+up+LAMP+in+Ubuntu+8.04+Hardy+Heron" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.function13.net/2008/06/02/lighting-up-lamp/&amp;title=Lighting+up+LAMP+in+Ubuntu+8.04+Hardy+Heron" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.function13.net/2008/06/02/lighting-up-lamp/&amp;t=Lighting+up+LAMP+in+Ubuntu+8.04+Hardy+Heron" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
<li class="sexy-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.function13.net/2008/06/02/lighting-up-lamp/&amp;title=Lighting+up+LAMP+in+Ubuntu+8.04+Hardy+Heron&amp;summary=This%20guide%20will%20help%20newbies%20set%20up%20a%20fully%20working%20LAMP%20%28Linux%2C%20Apache%2C%20MySQL%2C%20PHP%29%20server%20using%20on%20Ubuntu%208.04%20Hardy%20Heron.%20Doing%20do%20will%20allow%20you%20to%20use%20various%20PHP%20applications%20such%20as%20the%20popular%20phpBB%20forums%20and%20Wordpress%20blog%20in%20addition%20to%20the%20basic%20HTML%20pages%20and%20files.%20I%20write%20this%20based%20&amp;source=Function13.net" rel="nofollow" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
<li class="sexy-google">
			<a href="" rel="nofollow" title=""></a>
		</li>
<li class="sexy-slashdot">
			<a href="http://slashdot.org/bookmark.pl?url=http://www.function13.net/2008/06/02/lighting-up-lamp/&amp;title=Lighting+up+LAMP+in+Ubuntu+8.04+Hardy+Heron" rel="nofollow" title="Submit this to SlashDot">Submit this to SlashDot</a>
		</li>
<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://www.function13.net/2008/06/02/lighting-up-lamp/&amp;n=Lighting+up+LAMP+in+Ubuntu+8.04+Hardy+Heron&amp;pli=1" rel="nofollow" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<p><!-- End SexyBookmarks Menu Code --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.function13.net/2008/06/02/lighting-up-lamp/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>
