<?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>BSDnexus</title>
	<atom:link href="http://www.bsdnexus.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bsdnexus.com/blog</link>
	<description>&#34;UBER&#34; means I don&#039;t drink the coffee ... I chew the beans instead!!!</description>
	<lastBuildDate>Mon, 29 Aug 2011 13:27:03 +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>Generating SSL certificates</title>
		<link>http://www.bsdnexus.com/blog/articles/generating-ssl-certificates</link>
		<comments>http://www.bsdnexus.com/blog/articles/generating-ssl-certificates#comments</comments>
		<pubDate>Mon, 29 Aug 2011 13:27:03 +0000</pubDate>
		<dc:creator>wintellect</dc:creator>
				<category><![CDATA[Guide]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[csr]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.bsdnexus.com/blog/?p=284</guid>
		<description><![CDATA[Generate server private key The first task is to create a server private key. In this example, a key of<a href="http://www.bsdnexus.com/blog/articles/generating-ssl-certificates" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<h2>Generate server private key</h2>
<p>The first task is to create a server private key. In this example, a key of 1024 bits is created and the passphrase is encrypted using tripple DES:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">openssl genrsa <span style="color: #660033;">-des3</span> <span style="color: #660033;">-out</span> server.key <span style="color: #000000;">1024</span></pre></div></div>

<p>To create a  key without a passphrase (so there is no need to enter a passphrase when the Apache server starts for example):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">openssl genrsa <span style="color: #660033;">-out</span> server.key <span style="color: #000000;">1024</span></pre></div></div>

<p>or to remove a passphrase in an already existent file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">openssl rsa <span style="color: #660033;">-in</span> server.key <span style="color: #660033;">-out</span> server.key.insecure
<span style="color: #c20cb9; font-weight: bold;">mv</span> server.key server.key.secure
<span style="color: #c20cb9; font-weight: bold;">mv</span> server.key.insecure server.key</pre></div></div>

<h2>Generate certificate signed request (CSR)</h2>
<p>The CSR is the file required by the certificate issuer to sign and issue a certificate and is generated as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">openssl req <span style="color: #660033;">-new</span> <span style="color: #660033;">-key</span> server.key <span style="color: #660033;">-out</span> server.csr</pre></div></div>

<p>This requires certain bits of data to be entered:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Country Name <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span> letter code<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>AU<span style="color: #7a0874; font-weight: bold;">&#93;</span>: GB
State or Province Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>full name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Some-State<span style="color: #7a0874; font-weight: bold;">&#93;</span>: Yorks
Locality Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>eg, city<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: York
Organization Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>eg, company<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>Internet Widgits Pty Ltd<span style="color: #7a0874; font-weight: bold;">&#93;</span>: BSDnexus
Organizational Unit Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>eg, section<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: IT
Common Name <span style="color: #7a0874; font-weight: bold;">&#40;</span>eg, YOUR name<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: www.bsdnexus.com
Email Address <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>:</pre></div></div>

<p>The completed file server.csr is ascii based and can be submitted to the CA in a variety of forms who will then issue the server.crt file</p>
<h2>Self signed certificate</h2>
<p>If the website is a private one, it is possible to self-sign a certificate, however, this leads to browsers complaining until an exception is applied. Currently, the following pages are displayed by two well known browsers:</p>
<div id="attachment_290" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.bsdnexus.com/blog/wp-content/uploads/2011/08/FF_cert_issue.jpg"><img class="size-medium wp-image-290" title="FF_cert_issue" src="http://www.bsdnexus.com/blog/wp-content/uploads/2011/08/FF_cert_issue-300x183.jpg" alt="Firefox indicating an SSL certificate issue" width="300" height="183" /></a><p class="wp-caption-text">Firefox and SSL cert issue</p></div>
<div id="attachment_291" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.bsdnexus.com/blog/wp-content/uploads/2011/08/IE_cert_issue.jpg"><img class="size-medium wp-image-291 " title="IE_cert_issue" src="http://www.bsdnexus.com/blog/wp-content/uploads/2011/08/IE_cert_issue-300x135.jpg" alt="Firefox indicating an SSL certificate issue" width="300" height="135" /></a><p class="wp-caption-text">IE and SSL cert issue</p></div>
<p>SHould you still wish to sign your own CSR to generate the server.crt file, the following command can be used:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">openssl x509 <span style="color: #660033;">-req</span> <span style="color: #660033;">-days</span> <span style="color: #000000;">365</span> <span style="color: #660033;">-in</span> server.csr <span style="color: #660033;">-signkey</span> server.key <span style="color: #660033;">-out</span> server.crt</pre></div></div>

<h2>Install certificates</h2>
<p>The files can be stored anywhere on the system, however, under /etc/ssl seems customary. Ensure the files are only readable by root. If a CA has signed your CSR they will provide two files (names may be slightly different) &#8220;server.crt&#8221; and &#8220;server.ca-bundle&#8221;. If you have self-signed, merely omit the reference to the .ca-bundle file.</p>
<p>For apache a virtual host entry could look as follows (notice the references to the files):</p>

<div class="wp_syntax"><div class="code"><pre class="" style="font-family:monospace;">&lt;VirtualHost _default_:<span style="">443</span>&gt;
  ServerAdmin webmaster@bsdnexus.com
  DocumentRoot /usr/local/apache/share/htdocs
  ServerName www.bsdnexus.com
  SSLEngine on
  SSLCertificateKeyFile /etc/ssl/bsdnexus/server.key
  SSLCertificateFile /etc/ssl/bsdnexus/server.crt
  SSLCertificateChainFile /etc/ssl/bsdnexus/server.ca-bundle
&lt;/VirtualHost&gt;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bsdnexus.com/blog/articles/generating-ssl-certificates/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Files without comments</title>
		<link>http://www.bsdnexus.com/blog/articles/files-without-comments</link>
		<comments>http://www.bsdnexus.com/blog/articles/files-without-comments#comments</comments>
		<pubDate>Mon, 22 Aug 2011 07:15:01 +0000</pubDate>
		<dc:creator>wintellect</dc:creator>
				<category><![CDATA[Oneliner]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.bsdnexus.com/blog/?p=276</guid>
		<description><![CDATA[Use *awk to remove comment lines that start with a &#8216;#&#8217; making it easier to view the actual configurations/settings cat<a href="http://www.bsdnexus.com/blog/articles/files-without-comments" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Use *awk to remove comment lines that start with a &#8216;#&#8217; making it easier to view the actual configurations/settings</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'!/^#/ {print $0}'</span></pre></div></div>

<p><strong>[Edit]</strong></p>
<p>To remove the blank lines as well as the comments, alter the awk command to</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'!/^#|^$/ {print $0}'</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bsdnexus.com/blog/articles/files-without-comments/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch convert audio files</title>
		<link>http://www.bsdnexus.com/blog/articles/batch-convert-audio-files</link>
		<comments>http://www.bsdnexus.com/blog/articles/batch-convert-audio-files#comments</comments>
		<pubDate>Wed, 10 Aug 2011 07:47:42 +0000</pubDate>
		<dc:creator>wintellect</dc:creator>
				<category><![CDATA[Oneliner]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.bsdnexus.com/blog/?p=272</guid>
		<description><![CDATA[Simple one-liner to batch convert one type of audio file to another using ffmpeg. The example converts .ogg to .mp3<a href="http://www.bsdnexus.com/blog/articles/batch-convert-audio-files" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Simple one-liner to batch convert one type of audio file to another using ffmpeg. The example converts .ogg to .mp3 files:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> x <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">*</span>.ogg; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$x</span>&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`basename &quot;$x&quot; .ogg`</span>.mp3&quot;</span>; <span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bsdnexus.com/blog/articles/batch-convert-audio-files/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>dpkg tips</title>
		<link>http://www.bsdnexus.com/blog/articles/dpkg-tips</link>
		<comments>http://www.bsdnexus.com/blog/articles/dpkg-tips#comments</comments>
		<pubDate>Fri, 05 Aug 2011 07:32:39 +0000</pubDate>
		<dc:creator>wintellect</dc:creator>
				<category><![CDATA[Guide]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bsdnexus.com/blog/?p=256</guid>
		<description><![CDATA[dpkg is package manager for Debian, and found in most of its derivatives. Programs such as apt and aptitude are<a href="http://www.bsdnexus.com/blog/articles/dpkg-tips" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>dpkg is package manager for Debian, and found in most of its derivatives. Programs such as apt and aptitude are front-ends to dpkg. Following are some handy to know dpkg commands.</p>
<h2>Package Listing</h2>
<p>To display all currently installed packages (including version numbers) or a specfic package:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-l</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>package_name<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<h2>Package Querying</h2>
<p>To show details about a specific package:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-p</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>package_name<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>To find out which files are installed by a package:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-L</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>package_name<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>To find out which package installs a particular file:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-S</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">|</span> part_of_filename<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<h2>Package Removal</h2>
<p>To remove a package but retain the configuration files:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-r</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>package_name<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>To remove a package <em>including</em> the configuration files:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-P</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>package_name<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bsdnexus.com/blog/articles/dpkg-tips/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AcerAspireOne Touchpad on Debian</title>
		<link>http://www.bsdnexus.com/blog/articles/aceraspireone-touchpad-on-debian</link>
		<comments>http://www.bsdnexus.com/blog/articles/aceraspireone-touchpad-on-debian#comments</comments>
		<pubDate>Sun, 10 Jul 2011 22:01:37 +0000</pubDate>
		<dc:creator>wintellect</dc:creator>
				<category><![CDATA[Guide]]></category>
		<category><![CDATA[aceraspireone]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[touchpad]]></category>

		<guid isPermaLink="false">http://www.bsdnexus.com/blog/?p=241</guid>
		<description><![CDATA[When installing Debian &#8220;Testing&#8221; on the AcerAspireOne the touchpad does not register a single tap of the pad as a<a href="http://www.bsdnexus.com/blog/articles/aceraspireone-touchpad-on-debian" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>When installing Debian &#8220;Testing&#8221; on the AcerAspireOne the touchpad does not register a single tap of the pad as a left mouse click. To rectify this add the following line to the file /etc/modprobe.d/psmouse.conf</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">options psmouse <span style="color: #007800;">proto</span>=imps</pre></div></div>

<p>According to <a href="http://ubuntuforums.org/archive/index.php/t-1472195.html">this Ubuntu source</a>, some setups may be better with exps instead of imps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bsdnexus.com/blog/articles/aceraspireone-touchpad-on-debian/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>apt autoclean</title>
		<link>http://www.bsdnexus.com/blog/articles/apt-autoclean</link>
		<comments>http://www.bsdnexus.com/blog/articles/apt-autoclean#comments</comments>
		<pubDate>Tue, 05 Jul 2011 08:27:16 +0000</pubDate>
		<dc:creator>wintellect</dc:creator>
				<category><![CDATA[Guide]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bsdnexus.com/blog/?p=234</guid>
		<description><![CDATA[To have apt-get/aptitude auto-clean all the downloaded .deb files after running an &#8220;update&#8221; (to keep as much free space as<a href="http://www.bsdnexus.com/blog/articles/apt-autoclean" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>To have apt-get/aptitude auto-clean all the downloaded .deb files after running an &#8220;update&#8221; (to keep as much free space as possible) simply add the following to /etc/apt/apt.conf.d/00autoclean</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Aptitude::Autoclean-After-Update;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bsdnexus.com/blog/articles/apt-autoclean/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ownCloud private web storage</title>
		<link>http://www.bsdnexus.com/blog/articles/owncloud-private-web-storage</link>
		<comments>http://www.bsdnexus.com/blog/articles/owncloud-private-web-storage#comments</comments>
		<pubDate>Tue, 07 Jun 2011 20:04:22 +0000</pubDate>
		<dc:creator>wintellect</dc:creator>
				<category><![CDATA[Guide]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[owncloud]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bsdnexus.com/blog/?p=161</guid>
		<description><![CDATA[ownCloud is a webdav based application allowing you to store files on your own personal server on the Internet and<a href="http://www.bsdnexus.com/blog/articles/owncloud-private-web-storage" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p><a title="ownCloud – web services under your control" href="http://www.owncloud.org/">ownCloud</a> is a webdav based application allowing you to store files on your own personal server on the Internet and access them via http or webdav. Installation is as follows:</p>
<p>Ensure apache2, php and mysql are installed</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2 php5 mysql-server php5-mysql sqlite php5-sqlite</pre></div></div>

<p>Download the latest stable (or the experimental version via git if preferred). At time of writing, the latest stable version is <a title="http://owncloud.org/releases/owncloud-1.2.tar.bz2" rel="nofollow" href="http://owncloud.org/releases/owncloud-1.2.tar.bz2">stable version 1.2</a> and install to the webserver directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #ff0000;">'http://owncloud.org/releases/owncloud-1.2.tar.bz2'</span>
$ <span style="color: #c20cb9; font-weight: bold;">bunzip2</span> owncloud-<span style="color: #000000;">1.2</span>.tar.bz2
$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xvf owncloud-<span style="color: #000000;">1.2</span>.tar
$ <span style="color: #c20cb9; font-weight: bold;">mv</span> owncloud <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Appropriate permissions need to be set so that the webserver has full control of the directory. On debian or ubuntu this is:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> www-data:www-data <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>owncloud</pre></div></div>

<p>Next you need to decide upon the database used, the administrator user and password. This is done through the &#8220;first run wizard&#8221; which will appear the first time the owncloud directory is browsed. Sqlite requires no configuration, while selecting MySQL will require additional information to build the tables.</p>
<div id="attachment_167" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_01.png"><img class="size-medium wp-image-167" title="owncloud_01" src="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_01-300x246.png" alt="ownCloud first run wizard" width="300" height="246" /></a><p class="wp-caption-text">ownCloud first run wizard</p></div>
<p>After configuration, the standard login will be presented:</p>
<div id="attachment_173" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_02.png"><img class="size-medium wp-image-173" title="owncloud_02" src="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_02-300x246.png" alt="ownCloud login page" width="300" height="246" /></a><p class="wp-caption-text">ownCloud login page</p></div>
<p>once logged in files are displayed and options to upload or create directories are available under &#8220;More Actions&#8221;:</p>
<div id="attachment_176" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_03.png"><img class="size-medium wp-image-176" title="owncloud_03" src="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_03-300x246.png" alt="ownCloud file listing" width="300" height="246" /></a><p class="wp-caption-text">ownCloud file listing</p></div>
<p>The web interface is now functioning as well as access via webdav. Since KDE supports webdav it is possible to configure access to the server storage space via the &#8220;Network&#8221; place as follows:</p>
<div id="attachment_177" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_04.png"><img class="size-medium wp-image-177" title="owncloud_04" src="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_04-300x205.png" alt="Select &quot;Add Network Folder&quot;" width="300" height="205" /></a><p class="wp-caption-text">Select &quot;Add Network Folder&quot;</p></div>
<p>Select the &#8220;webdav&#8221;access method:</p>
<div id="attachment_178" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_05.png"><img class="size-medium wp-image-178" title="owncloud_05" src="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_05-300x217.png" alt="Select WebFolder (webdav)" width="300" height="217" /></a><p class="wp-caption-text">Select WebFolder (webdav)</p></div>
<p>fill in the details, notice that the folder field is set to &#8220;/owncloud/webdav/owncloud.php&#8221; (this assumes the installation was to /var/www/owncloud on a debian or ubuntu system)</p>
<div id="attachment_179" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_06.png"><img class="size-medium wp-image-179" title="owncloud_06" src="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_06-300x217.png" alt="Enter configuration details" width="300" height="217" /></a><p class="wp-caption-text">Enter configuration details</p></div>
<p>Upon saving the details a prompt for the password will appear and an option to &#8220;Remember password&#8221; so you don&#8217;t have to re-enter it whenever accessing the folder:</p>
<div id="attachment_180" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_07.png"><img class="size-medium wp-image-180" title="owncloud_07" src="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_07-300x178.png" alt="Enter password" width="300" height="178" /></a><p class="wp-caption-text">Enter password</p></div>
<p>The share will now appear in the &#8220;Network&#8221; places:</p>
<div id="attachment_181" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_08.png"><img class="size-medium wp-image-181" title="owncloud_08" src="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_08-300x205.png" alt="ownCloud in Network places" width="300" height="205" /></a><p class="wp-caption-text">ownCloud in Network places</p></div>
<p>And can be used like any other folder on the system within KDE:</p>
<div id="attachment_182" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_09.png"><img class="size-medium wp-image-182" title="owncloud_09" src="http://www.bsdnexus.com/blog/wp-content/uploads/2011/06/owncloud_09-300x205.png" alt="ownCloud access via webdav in KDE " width="300" height="205" /></a><p class="wp-caption-text">ownCloud access via webdav in KDE</p></div>
<p>The files themselves are stored in a per-user directory in a sub-folder of the owncloud directory entitled &#8220;data&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bsdnexus.com/blog/articles/owncloud-private-web-storage/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GRUB2 splash image</title>
		<link>http://www.bsdnexus.com/blog/articles/grub2-splash-image</link>
		<comments>http://www.bsdnexus.com/blog/articles/grub2-splash-image#comments</comments>
		<pubDate>Sat, 28 May 2011 21:41:56 +0000</pubDate>
		<dc:creator>wintellect</dc:creator>
				<category><![CDATA[Guide]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bsdnexus.com/blog/?p=155</guid>
		<description><![CDATA[GRUB2 supports background images being displayed during the selection phase of the boot process. A wide variety of formats are<a href="http://www.bsdnexus.com/blog/articles/grub2-splash-image" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>GRUB2 supports background images being displayed during the selection phase of the boot process. A wide variety of formats are supported, including jpg, png and tga. The image size should be 640&#215;480 pixels.</p>
<p>Place the image in /boot/grub and run the command update-grub, looking for the indication that the image was found:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ update-grub
Generating grub.cfg ...
Found background image: splashimg.png</pre></div></div>

<p>The next time the system is boot the custom image will be displayed. My example image can be found below</p>
<div id="attachment_154" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.bsdnexus.com/blog/wp-content/uploads/2011/05/splashimg.png"><img class="size-medium wp-image-154" title="splashimg.png" src="http://www.bsdnexus.com/blog/wp-content/uploads/2011/05/splashimg-300x225.png" alt="Sample GRUB splash image" width="300" height="225" /></a><p class="wp-caption-text">Sample GRUB splash image</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.bsdnexus.com/blog/articles/grub2-splash-image/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian and libdvdread</title>
		<link>http://www.bsdnexus.com/blog/articles/debian-and-libdvdread</link>
		<comments>http://www.bsdnexus.com/blog/articles/debian-and-libdvdread#comments</comments>
		<pubDate>Tue, 17 May 2011 22:19:53 +0000</pubDate>
		<dc:creator>wintellect</dc:creator>
				<category><![CDATA[Guide]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[libdvdread]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.bsdnexus.com/blog/?p=136</guid>
		<description><![CDATA[In order to watch all DVDs on Debian, the libdvdcss needs to be installed. This is not distributed with Debian<a href="http://www.bsdnexus.com/blog/articles/debian-and-libdvdread" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>In order to watch all DVDs on Debian, the libdvdcss needs to be installed. This is not distributed with Debian due to certain restrictions, however, if the restrictions do not apply to you then the following correctly installs the necessary files. First is the installation of libdvdread itself</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libdvdread4</pre></div></div>

<p>In order to install the CSS codings it is necessary to manually obtain them. /usr/share/doc/libdvdread4/README.Debian directs downloads from <a href="http://unofficial.debian-maintainers.org/">http://unofficial.debian-maintainers.org/</a> which then has a link to <a href="http://archive.debian-maintainers.org/unofficial/packages/libdvdcss/">http://archive.debian-maintainers.org/unofficial/packages/libdvdcss/</a> from here is a directory entitled &#8220;current_i386&#8243; (among others) and inside is the deb file required for download. At time of writing the full path is: <a href="http://archive.debian-maintainers.org/unofficial/packages/libdvdcss/current_i386/libdvdcss2_1.2.10-1_i386.deb">http://archive.debian-maintainers.org/unofficial/packages/libdvdcss/current_i386/libdvdcss2_1.2.10-1_i386.deb</a> (note that the dev and dbg based deb files are not required for playing DVDs)</p>
<p>Once downloaded the CSS must be manually installed with dpkg</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> libdvdcss2_1.2.10-<span style="color: #000000;">1</span>_i386.deb</pre></div></div>

<p>No further configuration is required</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bsdnexus.com/blog/articles/debian-and-libdvdread/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iFrames and cookies</title>
		<link>http://www.bsdnexus.com/blog/articles/iframes-and-cookies</link>
		<comments>http://www.bsdnexus.com/blog/articles/iframes-and-cookies#comments</comments>
		<pubDate>Wed, 27 Apr 2011 12:15:33 +0000</pubDate>
		<dc:creator>wintellect</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[p3p]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.bsdnexus.com/blog/?p=130</guid>
		<description><![CDATA[While developing something for facebook I noticed that the PHP session of my code was vanishing &#8211; but only in<a href="http://www.bsdnexus.com/blog/articles/iframes-and-cookies" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>While developing something for facebook I noticed that the PHP session of my code was vanishing &#8211; but <em>only</em> in InternetExplorer. After searching, it seemed the issue was to do with iFrames (as facebook opens the code in an iFrame). If the domain of the website inside the iFrame doesn&#8217;t match the domain of the browser (esentially the site hosting the iFrame), then all cookies from that website are declined as they are seen as third party and potentially dangerous.</p>
<p>At present it appears that IE is the only browser to act in this manner, implementing <a title="The Platform for Privacy Preferences Project (P3P) enables Websites to express their privacy practices in a standard format that can be retrieved automatically and interpreted easily by user agents. " href="http://www.w3.org/P3P/">Platform for Privacy Preferences (P3P) Project</a>. However, there are two ways to resolve the issue. The first is to reduce the security settings of the browser, which is not very practical for the developer; and the second is to implement a P3P header with specific tokens set to allow the cookies. For PHP, this would be:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'P3P: CP=&quot;CAO PSA OUR&quot;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>These tokens are better explained <a title="The value CP=&quot;CAO PSA OUR&quot; describes a compact policy with the tokens..." href="http://stackoverflow.com/questions/5257983/what-is-headerp3p-cp-cao-psa-our/5258105#5258105">here</a>. I have since also found a facebook developers discussion on this issue <a title="iframe Applications and P3P HTTP Headers" href="http://forum.developers.facebook.net/viewtopic.php?id=452">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bsdnexus.com/blog/articles/iframes-and-cookies/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

