<?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>Miscellaneous</title>
	<atom:link href="http://vassie.name/feed" rel="self" type="application/rss+xml" />
	<link>http://vassie.name</link>
	<description>Just another WordPress site about not much in particular</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:53:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Installing Arch Linux with KDE</title>
		<link>http://vassie.name/installing-arch-linux-with-kde</link>
		<comments>http://vassie.name/installing-arch-linux-with-kde#comments</comments>
		<pubDate>Sun, 05 Feb 2012 19:33:03 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[arch]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://vassie.name/?p=180</guid>
		<description><![CDATA[I&#8217;ve always kept an interest in Linux and I normally check out the latest version of Ubuntu, however after hearing so many good things about Arch Linux I decided to download a copy and give it a try. The default &#8230; <a href="http://vassie.name/installing-arch-linux-with-kde">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always kept an interest in Linux and I normally check out the latest version of <a href="http://www.ubuntu.com/" target="_blank">Ubuntu</a>, however after hearing so many good things about <a href="http://www.archlinux.org/" target="_blank">Arch Linux</a> I decided to download a copy and give it a try.</p>
<p>The default desktop environment for Ubuntu has always been <a href="http://www.gnome.org/" target="_blank">GNOME</a>, so I decided to install <a href="http://www.kde.org/" target="_blank">KDE</a>, this guide will step through what I did to install Arch Linux and then install KDE on my system.</p>
<p>I have used KDE before via <a href="http://www.kubuntu.org/" target="_blank">Kubuntu</a>, however I thought I would try Arch Linux becasue as they say, it&#8217;s a lightweight distrobution that keeps things simple</p>
<blockquote><p>You&#8217;ve reached the website for <strong>Arch Linux</strong>, a lightweight and flexible Linux® distribution that tries to Keep It Simple.</p></blockquote>
<p>This means I can install a clean copy of KDE and install only the applications I want.</p>
<p><span id="more-180"></span>First off, grab yourself an ISO from your closest <a href="http://www.archlinux.org/download/" target="_blank">mirror</a></p>
<p>archlinux-2011.08.19-netinstall-dual.iso (latest at time of writing) is recommended, burn the ISO and then boot your system from the CD</p>
<p><strong>Please note</strong> that I have downloaded the netinstall ISO, this version requires your system to have a internet connection as everything will be pulled down from the internet during install, for offline installs, you will need to download archlinux-2011.08.19-core-dual.iso (latest version at time of writing)</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-45-26.png"><img class="aligncenter size-medium wp-image-283" title="2012-02-03_13-45-26" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-45-26-300x225.png" alt="" width="300" height="225" /></a></p>
<p>Boot from the CD and select the architecture that matches your system</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-45-44.png"><img class="aligncenter size-medium wp-image-284" title="2012-02-03_13-45-44" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-45-44-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Once booted you have the opportunity to change the keyboard layout, the default is English US, to do this, type km and select a new layout, once ready, start the Arch Linux installer</p>
<pre>/arch/setup</pre>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-46-18.png"><img class="aligncenter size-medium wp-image-286" title="2012-02-03_13-46-18" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-46-18-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Press enter to go to the main menu</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-46-26.png"><img class="aligncenter size-medium wp-image-287" title="2012-02-03_13-46-26" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-46-26-300x166.png" alt="" width="300" height="166" /></a></p>
<p>It is advisable to run though the step in order, to select an install source, highlight Select source and press enter</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-46-32.png"><img class="aligncenter size-medium wp-image-288" title="2012-02-03_13-46-32" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-46-32-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Select with repositories you want to enable, I accept the defaults and press enter</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-46-52.png"><img class="aligncenter size-medium wp-image-290" title="2012-02-03_13-46-52" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-46-52-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Select a mirror to install from, again, select the closest one to you</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-46-58.png"><img class="aligncenter size-medium wp-image-291" title="2012-02-03_13-46-58" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-46-58-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Before connecting, the install with bring up your network interface</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-47-12.png"><img class="aligncenter size-medium wp-image-293" title="2012-02-03_13-47-12" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-47-12-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Select the interface you wish to activate</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-47-16.png"><img class="aligncenter size-medium wp-image-294" title="2012-02-03_13-47-16" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-47-16-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Press enter to obtain an IP address via DHCP</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-47-28.png"><img class="aligncenter size-medium wp-image-296" title="2012-02-03_13-47-28" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-47-28-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Your connection should now be active</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-47-38.png"><img class="aligncenter size-medium wp-image-298" title="2012-02-03_13-47-38" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-47-38-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Back at the main menu, select an editor (Set editor) and choose nano (like it says, it&#8217;s the easiest one to use)</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-47-50.png"><img class="aligncenter size-medium wp-image-300" title="2012-02-03_13-47-50" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-47-50-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Set your clock from the Set clock menu using your region and location and also your time and date</p>
<p><span style="color: #000000;">Now it&#8217;s time to partition and format your hard drive, <strong>THIS WILL WIPE YOUR HARD DRIVE, PLEASE MAKE SURE YOU HAVE BACKED UP EVERYTHING YOU WISH TO KEEP</strong>, you will <strong>NOT</strong> be able to recover anything lost</span></p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-48-38.png"><img class="aligncenter size-medium wp-image-308" title="2012-02-03_13-48-38" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-48-38-300x166.png" alt="" width="300" height="166" /></a></p>
<p>From the Prepare hard drive(s) menu, select Auto-Prepare and accept all the defaults (my system only has one hard drive)</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-49-02.png"><img class="aligncenter size-medium wp-image-313" title="2012-02-03_13-49-02" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-49-02-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Select your filesystem of choice, I use Ext4</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-49-06.png"><img class="aligncenter size-medium wp-image-314" title="2012-02-03_13-49-06" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-49-06-300x166.png" alt="" width="300" height="166" /></a></p>
<p><span style="color: #000000;">Then select Yes to <strong>FORMAT AND COMPLETELY WIPE EVERYTHING FROM YOUR HARD DRIVE</strong></span></p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-49-36.png"><img class="aligncenter size-medium wp-image-319" title="2012-02-03_13-49-36" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-49-36-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Once you are back at the main menu, choose Select packages, accept all the defaults until you are once again back at the main menu</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-50-06.png"><img class="aligncenter size-medium wp-image-325" title="2012-02-03_13-50-06" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-50-06-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Select Install packages and your system will download and install all the packages your system needs</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-54-54.png"><img class="aligncenter size-medium wp-image-328" title="2012-02-03_13-54-54" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-54-54-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Once everything has been downloaded and installed, you will need to edit some configuration files, select Configure system and start of with System Config</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/test-2012-02-08-10-28-37.png"><img class="aligncenter size-medium wp-image-379" title="test-2012-02-08-10-28-37" src="http://vassie.name/wp-content/uploads/2012/02/test-2012-02-08-10-28-37-300x166.png" alt="" width="300" height="166" /></a></p>
<p>At this point, the only setting you really need to change is HOSTNAME, enter here what you would like your system to be called, to save and exit files in nano, hold Ctrl and press O to write the file, then Ctrl then X to exit nano</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-55-54.png"><img class="aligncenter size-medium wp-image-331" title="2012-02-03_13-55-54" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-55-54-300x166.png" alt="" width="300" height="166" /></a></p>
<p>From the Glibc Locales menu, remove the # from the beginning of all the locales you want your system to use, above I have enabled en_GB, save and exit the file</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/test-2012-02-08-10-29-26.png"><img class="aligncenter size-medium wp-image-380" title="test-2012-02-08-10-29-26" src="http://vassie.name/wp-content/uploads/2012/02/test-2012-02-08-10-29-26-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Edit the pacman.conf file and at the bottom add the following</p>
<pre>[archlinuxfr]
Server = http://repo.archlinux.fr/$arch</pre>
<p>This will enable the archlinuxfr repository, witch will come handy handy later</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-56-56.png"><img class="aligncenter size-medium wp-image-335" title="2012-02-03_13-56-56" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-56-56-300x166.png" alt="" width="300" height="166" /></a></p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-57-08.png"><img class="aligncenter size-medium wp-image-336" title="2012-02-03_13-57-08" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-57-08-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Edit the Pacman Mirror List and comment out the Mirror selected during installation, by putting a # before Server (not actually sure if that is needed)</p>
<p>Then, find your country and uncomment all the server beneath it</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-57-18.png"><img class="aligncenter size-medium wp-image-337" title="2012-02-03_13-57-18" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-57-18-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Create yourself a root password and then go back to the Main Menu</p>
<p>The initicpio images will be rebuilt at this point</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-58-20.png"><img class="aligncenter size-medium wp-image-342" title="2012-02-03_13-58-20" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-58-20-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Enter the Install bootloader menu and enter vga=773 at the end of each kernel line, this isn&#8217;t necessary, but it will configure your system to boot up with a nicer 1024&#215;768 resolution</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-58-26.png"><img class="aligncenter size-medium wp-image-343" title="2012-02-03_13-58-26" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-58-26-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Select the your boot device (you should only have one option if you have one hard drive)</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-58-50.png"><img class="aligncenter size-medium wp-image-346" title="2012-02-03_13-58-50" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-58-50-300x166.png" alt="" width="300" height="166" /></a></p>
<p>You can now exit the installer and reboot your system</p>
<pre>reboot</pre>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-59-22.png"><img class="aligncenter size-medium wp-image-347" title="2012-02-03_13-59-22" src="http://vassie.name/wp-content/uploads/2012/02/2012-02-03_13-59-22-300x166.png" alt="" width="300" height="166" /></a></p>
<p>Once rebooted you will now be able to log in with your root account</p>
<p>The first thing you will need to do is to create your own user account, running as root really isn&#8217;t a good idea</p>
<pre>adduser username</pre>
<p>Press enter to accept all the defaults apart from when asked for additional groups, here, enter the following</p>
<pre>audio,lp,optical,storage,video,games,power,scanner,wheel</pre>
<p>Press enter until you are asked for your password</p>
<p>While still logged in as root, install sudo, this will allow you to run root commands when logged in with your own account</p>
<p>When using pacman for the first time, you will need to tell it to synchronize its repository databases</p>
<pre>pacman -Syy</pre>
<p>Then you can install sudo</p>
<pre>pacman -S sudo</pre>
<p>Once installed you will need to allow the sudo group (wheel) to use sudo</p>
<pre>visudo</pre>
<p>Remove the # before the following line by moving the cursor down to the below line and pressing X to delete characters at the start of it</p>
<pre>%wheel ALL=(ALL) ALL</pre>
<p>Hold down Ctrl and press : then type wq! to save and exit the file</p>
<p>You can now log off as root and back in as your new user</p>
<p>Once logged in, it is time to start installing everything you need, first off is the X window system</p>
<pre>sudo pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils</pre>
<p>Then install 3D support</p>
<pre>sudo pacman -S mesa</pre>
<p>You will now need to install video drivers for X</p>
<pre>sudo pacman -S xf86-video-intel</pre>
<p>I have selected xf86-video-intel as my system has an Intel on board graphics chipset, for NVIDIA cards install xf86-video-nouveau and for ATI install xf86-video-ati</p>
<p>If you don’t have an Intel, NVIDIA or ATI graphics card, there is xf86-video-vesa which supports a large number of graphics cards, but does not have 2D and 3D acceleration.</p>
<p>If you are installing Arch Linux on a laptop, you will need to install input drivers for X</p>
<pre>sudo pacman -S xf86-input-synaptics</pre>
<p>Synaptics (and ALPS) touchpads found on most laptops</p>
<p>After installing X you will need to configure your system to boot it instead of the default bebahour of boot to a console, to do this you will need to edit you inittab file</p>
<pre>sudo nano /etc/inittab</pre>
<p>Add a comment to id:3 and remove the one from id:5, like below</p>
<pre>## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:</pre>
<p>While we’re there, we will tell the system to start the KDE login manager (KDM) after booting to X by adding a comment to the XDM line and removing the one before KDM</p>
<pre># Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim &gt;/dev/null 2&gt;&amp;1</pre>
<p>Save and close the file</p>
<p>Then install the D-Bus messaging system</p>
<pre>sudo pacman -S dbus</pre>
<p>Once you have installed all the system components, it is a good idea to edit your rc.conf file</p>
<pre>sudo nano /etc.rc.conf</pre>
<p>Start off by adding dbus to the [DAEMONS] sections, like below</p>
<pre>DAEMONS=(syslog-ng @network crond dbus)</pre>
<p>It is also a good idea to background the network daemon if you are installing Arch Linux on a laptop as you may not have a connection when booting, the wireless components in KDE (along with networkmanager) will take care of this once you log in, to do this add @ at the beginning of network.</p>
<p>Now it is time to start installing KDE. I like to install a minimal copy of KDE and then add the components I want after</p>
<pre>sudo pacma -S kdebase kde-l10n-en_gb phonon-gstreamer aspell-en</pre>
<p>Above I have installed the base KDE package with the English UK language pack and the GStreamer audio framework, I have also installed aspell-en for English UK spell checking support for KDE</p>
<p>After installing the GStreamer backend for KDE, its a good idea to install some plugins for audio and video playback support</p>
<pre>sudo pacman -S gstreamer0.10-plugins</pre>
<p>Audio is normally working out of the box after you install X, however I had to install alsa-utils to get it working on my laptop</p>
<pre>sudo pacman -S alsa-utils</pre>
<p>You will want to install some fonts, ttf-dejavu is required (system fonts will be pretty ugly with out it), I also like to install a few other font packs</p>
<pre>sudo pacman -S ttf-dejavu ttf-droid ttf-liberation</pre>
<p>Another set of fonts that are good for web rendering (making website look nice) are the Microsoft&#8217;s TrueType core fonts. These fonts are available from the <a href="https://wiki.archlinux.org/index.php/Arch_User_Repository" target="_blank">Arch User Repository</a> (AUR) and the archlinuxfr repository contains a handy tool called Yaourt that allows you to download and install packages straight from the AUR.</p>
<p>Before installing Yaourt you will need to install the base-devel group package as it contains tools required by Yaourt</p>
<pre>sudo pacman -S base-devel</pre>
<p>Once installed you can install Yaourt</p>
<pre>sudo pacman -S yaourt</pre>
<p>Now that Yaourt is insatlled, you can ask it to download, compile and install the MS fonts</p>
<pre>yaourt ttf-ms-fonts</pre>
<p>Yaourt will now search the AUR and present you with a list of packages</p>
<pre>1 aur/fontconfig-ms-fonts-zh 1.0-1 (0)
Font configuration using ttf-ms-fonts-zh
2 aur/ttf-ms-fonts 2.0-9 [installed] (1570)
Core TTF Fonts from Microsoft
3 aur/ttf-ms-fonts-zh 1.0-1 (2)
Chinese TTF fonts from latest microsoft windows installation
4 aur/ttf-ms-fonts-zh_cn 1.1-2 (46)
ms fonts
==&gt; Enter nÂ° of packages to be installed (ex: 1 2 3 or 1-3)
==&gt; --------------------------------------------------------
==&gt;</pre>
<p>The package we want is the second one, so type 2 and press enter</p>
<pre>==&gt; Edit PKGBUILD ? [Y/n] ("A" to abort)
==&gt; ------------------------------------
==&gt;</pre>
<p>I always say no here</p>
<pre>==&gt; Edit ttf-ms-fonts.install ? [Y/n] ("A" to abort)
==&gt; ------------------------------------------------
==&gt;</pre>
<p>Again, I say no</p>
<pre>==&gt; Continue building ttf-ms-fonts ? [Y/n]
==&gt; --------------------------------------
==&gt;</pre>
<p>Then yes, Yaourt will now download, compile and ask you to install the package</p>
<pre>==&gt; Continue installing ttf-ms-fonts ? [Y/n]
==&gt; [v]iew package contents [c]heck package with namcap
==&gt; ---------------------------------------------------
==&gt;</pre>
<p>Type Y and press enter, you may be asked for your password at this point</p>
<pre>Targets (1): ttf-ms-fonts-2.0-9

Total Installed Size:   5.46 MiB
Net Upgrade Size:       0.00 MiB

Proceed with installation? [Y/n]</pre>
<p>Type Y, press enter and the MS fonts will be installed</p>
<p>While we are on the subject of fonts and Yaourt, and this step is totally optional, you may want to use Yaourt to install ttf-raghu, again, totally optional, I won’t judge ಠ_ಠ</p>
<p>So, quick recap, X (with drivers) is installed and configured to boot up then run KDM at start up and KDE is installed, with your required language support. Before rebooting, and into KDE, there are some other packages I like to install.</p>
<p>KMix is application that allows you to control your sound card, it also comes with an applet. ffmpegthumbs to enable video thumbnail support in Dolphin (the default KDE file manager)</p>
<pre>sudo pacman -S kdemultimedia-kmix kdemultimedia-ffmpegthumbs</pre>
<p>For network management (including wireless support) the KNetworkManager front-end is available as a widget</p>
<pre>sudo pacman -S kdeplasma-appplets-networkmanaget</pre>
<p>KNetworkManager will also install the networkmanager package and you will need to start it when your PC boots, to do this, open your rc.conf file</p>
<pre>sudo nano /etc/rc.conf</pre>
<p>then add networkmanager to the [DAEMONS] sections</p>
<pre>DAEMONS=(syslog-ng @network crond dbus networkmanager)</pre>
<p>Also, becasue the the copy of KDE we have install is so minimal, it doesn&#8217;t come with any screensavers, to install the default ones you will need to install then</p>
<pre>sudo pacman -S kdeartwork-kscreensaver</pre>
<p>Save and close the file and you can now reboot your system</p>
<pre>sudo reboot</pre>
<p>After rebooting you should be presented with the KDE login manager, enter your username and password and enjoy your new system with KDE.</p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/test-2012-02-08-10-47-56.png"><img class="aligncenter size-medium wp-image-381" title="test-2012-02-08-10-47-56" src="http://vassie.name/wp-content/uploads/2012/02/test-2012-02-08-10-47-56-300x225.png" alt="" width="300" height="225" /></a></p>
<p><a href="http://vassie.name/wp-content/uploads/2012/02/test-2012-02-08-10-49-41.png"><img class="aligncenter size-medium wp-image-382" title="test-2012-02-08-10-49-41" src="http://vassie.name/wp-content/uploads/2012/02/test-2012-02-08-10-49-41-300x168.png" alt="" width="300" height="168" /></a></p>
<p>If you have any issues and you are keen to learn or improve your Linux skills, the Arch Linux <a href="https://wiki.archlinux.org/" target="_blank">Wiki</a> and <a href="https://bbs.archlinux.org/" target="_blank">forum</a> are an invaluable resource of guides, how to’s and end user support.</p>
<p>Once I have KDE up and running I always like to install my favourite web browser, Google Chrome</p>
<pre>yaourt google-chrome</pre>
<p>After installing Chrome, if you start it up you will notice that the look and feel of it’s menus and dialog boxes do not match that of your KDE desktop (as it uses GTK2), to fix this you can install an Oxygen (default KDE theme) GTK2 theme, you can also install a nice GUI tools to easily allow you to change what GTK2 theme KDE should use</p>
<pre>sudo pacman -S oxygen-gtk2 lxappearance</pre>
<p>To change your GTK2 theme, click the launcher menu and under Setting select Customize Look and Feel</p>
<p><a href="http://vassie.name/wp-content/uploads/2011/12/lxa.png"><img class="aligncenter size-medium wp-image-376" title="lxa" src="http://vassie.name/wp-content/uploads/2011/12/lxa-300x242.png" alt="" width="300" height="242" /></a></p>
<p>Installing Chrome is optional of course, <a href="http://rekonq.kde.org/" target="_blank">Rekonq</a> is the default web browser for KDE and is based on Webkit, the same as Chrome, however other popular browsers like <a href="https://wiki.archlinux.org/index.php/Firefox" target="_blank">Firefox</a> and <a href="https://wiki.archlinux.org/index.php/Opera" target="_blank">Opera</a> are also available and easy to install.</p>
<p>Other applications I recommend are <a href="http://www.videolan.org/vlc/" target="_blank">VLC</a> for playing video</p>
<pre>sudo pacman -S vlc</pre>
<p><a href="http://www.clementine-player.org/" target="_blank">Clemetine</a> for playing and managing music</p>
<pre>sudo pacman -S clementine</pre>
<p>and <a href="http://gwenview.sourceforge.net/" target="_blank">Gwenview</a> for managaing and viewing pictures</p>
<pre>sudo pacman -S kdegraphics-gwenview</pre>
<p>Keeping your system up to date is done via pacman</p>
<pre>sudo pacman -Syu</pre>
<p>Pacman is a very powerful tool, and it worth familiarizing yourself with it, the <a href="https://wiki.archlinux.org/index.php/Pacman" target="_blank">Wiki</a> entry is a good place to start.</p>
<p>I hope you find this guide useful, and would like to hear from you if you did.</p>
]]></content:encoded>
			<wfw:commentRss>http://vassie.name/installing-arch-linux-with-kde/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Waiting (patiently) for a Raspberry Pi</title>
		<link>http://vassie.name/waiting-patiently-for-a-raspberry-pi</link>
		<comments>http://vassie.name/waiting-patiently-for-a-raspberry-pi#comments</comments>
		<pubDate>Mon, 23 Jan 2012 10:02:51 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[raspberry pi]]></category>
		<category><![CDATA[xbmc]]></category>

		<guid isPermaLink="false">http://vassie.name/?p=258</guid>
		<description><![CDATA[I&#8217;ve been following the development of the Raspberry Pi pretty much since it was announced, and since then I have thought of numerous uses for a tiny, low powered, yet powerful and cheap (£16* without ethernet, £22* with) device. My main reason is to &#8230; <a href="http://vassie.name/waiting-patiently-for-a-raspberry-pi">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been following the development of the <a href="http://www.raspberrypi.org" target="_blank">Raspberry Pi</a> pretty much since it was announced, and since then I have thought of numerous uses for a tiny, low powered, yet powerful and cheap (£16* without ethernet, £22* with) device.</p>
<p>My main reason is to run one as a media box plugged into my TV via the Raspberry Pi&#8217;s HDMI port, and last week the <a href="http://xbmc.org" target="_blank">XBMC</a> team released a video of their software running on a Raspberry Pi.</p>
<span style="text-align:center; display: block;"><a href="http://vassie.name/waiting-patiently-for-a-raspberry-pi"><img src="http://img.youtube.com/vi/4NR57ELY28s/2.jpg" alt="" /></a></span>
<p>The Raspberry Pi is capable of decoding 1080p video and with it&#8217;s HDMI port make it a perfect media streamer.</p>
<blockquote><p>The SoC is a Broadcom BCM2835. This contains an ARM1176JZFS, with floating point, running at 700Mhz, and a Videocore 4 GPU. The GPU is capable of BluRay quality playback, using H.264 at 40MBits/s. It has a fast 3D core accessed using the supplied OpenGL ES2.0 and OpenVG libraries.</p></blockquote>
<p>Raspberry Pi&#8217;s should hopefully start shipping late Janusry, early Februrary 2012, and I cannot wait!</p>
<p>* Prices are an estimate based on current conversion rates.</p>
]]></content:encoded>
			<wfw:commentRss>http://vassie.name/waiting-patiently-for-a-raspberry-pi/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing MiniDLNA on Arch Linux</title>
		<link>http://vassie.name/installing-minidlna-on-arch-linux</link>
		<comments>http://vassie.name/installing-minidlna-on-arch-linux#comments</comments>
		<pubDate>Wed, 11 Jan 2012 15:08:46 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[arch]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[minidlna]]></category>

		<guid isPermaLink="false">http://vassie.name/?p=236</guid>
		<description><![CDATA[I&#8217;ve been moving round Linux distributions recently and currently find myself using (and rather enjoying) Arch Linux. As my article on installing MiniDLNA on Ubuntu is so far my post popular, I though I&#8217;d document how I installed and configured &#8230; <a href="http://vassie.name/installing-minidlna-on-arch-linux">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been moving round Linux distributions recently and currently find myself using (and rather enjoying) <a href="http://archlinux.org" target="_blank">Arch Linux</a>.</p>
<p>As my article on <a href="http://vassie.name/installing-minidlna-on-ubuntu-server">installing MiniDLNA on Ubuntu</a> is so far my post popular, I though I&#8217;d document how I installed and configured it on Arch.</p>
<p>There is a <a href="http://www.archlinux.org/packages/?sort=&amp;q=minidlna&amp;maintainer=&amp;last_update=&amp;flagged=&amp;limit=50" target="_blank">MiniDLNA package for Arch</a> in the community reposotory, meaning it can be installed very easily via Pacman (the following commands have been run as root, add sudo to the beginning of them if you have <a href="https://wiki.archlinux.org/index.php/Sudo#Installation" target="_blank">installed</a> and <a href="https://wiki.archlinux.org/index.php/Sudo#Configuration" target="_blank">configured</a> it)</p>
<pre>pacman -S minidlna</pre>
<p><span id="more-236"></span>Once installed, edit the MiniDLNA configuration file and enter the paths of the media you wish to share, and, if you wish, rename your server.</p>
<p>I prefer to edit text files with <a href="http://www.nano-editor.org/" target="_blank">nano</a>, however you can swap nano for your editor of choice</p>
<pre>nano /etc/minidlna.conf</pre>
<p>Once you have configuration file open for editing add the following, remembering to update the paths</p>
<pre>media_dir=A,/media/storage/Share/Music
media_dir=P,/media/storage/Share/Pictures
media_dir=V,/media/storage/Share/Videos</pre>
<p>You can rename the name of your server by removing the the # from friendly_name and changing its name, for example</p>
<pre>friendly_name=SERVER</pre>
<p>Save the file and you are done, you can control the service using the initscript in <strong>/etc/rc.d</strong>, and you start MiniDLNA at boot my adding <strong>minidlna</strong> to you list of daemons in <strong>/etc/rc.conf</strong></p>
<pre>DAEMONS=(syslog-ng network crond dbus gdm networkmanager minidlna)</pre>
<p>The <a href="https://wiki.archlinux.org/index.php/Minidlna" target="_blank">MiniDLNA ArchWiki entry</a> has an additional step that is optional which is to enable the MiniDLNA cache feature (a feature I do not use myself), this allows the database and album art to be cached.</p>
<pre>mkdir /var/{cache,log}/minidlna
chown nobody:nobody /var/{cache,log}/minidlna</pre>
<p>This will create the required directories and also set their permissions, once created you will need to add the paths to your minidlna.conf file</p>
<pre>db_dir=/var/cache/minidlna
log_dir=/var/log/minidlna</pre>
<p>Happy streaming.</p>
]]></content:encoded>
			<wfw:commentRss>http://vassie.name/installing-minidlna-on-arch-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing MiniDLNA on Ubuntu Server</title>
		<link>http://vassie.name/installing-minidlna-on-ubuntu-server</link>
		<comments>http://vassie.name/installing-minidlna-on-ubuntu-server#comments</comments>
		<pubDate>Tue, 13 Dec 2011 16:48:23 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[minidlna]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://vassie.name/?p=202</guid>
		<description><![CDATA[When setting up my Ubuntu server I wanted it to be able to stream my media via UPnP/DLNA, I looked at a few solutions including MediaTomb and uShare, however I decided to go with MiniDLNA based on the fact that it was &#8230; <a href="http://vassie.name/installing-minidlna-on-ubuntu-server">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When setting up my Ubuntu server I wanted it to be able to stream my media via <a href="http://en.wikipedia.org/wiki/Universal_Plug_and_Play#Media_server" target="_blank">UPnP</a>/<a href="http://en.wikipedia.org/wiki/Dlna" target="_blank">DLNA</a>, I looked at a few solutions including <a href="http://mediatomb.cc/" target="_blank">MediaTomb</a> and <a href="http://ushare.geexbox.org/" target="_blank">uShare</a>, however I decided to go with <a href="http://minidlna.sourceforge.net/" target="_blank">MiniDLNA</a> based on the fact that it was lightweight (my server isn&#8217;t the most powerful) and that I have a Western Digital TV Live which plays pretty much any file format meaning I didn&#8217;t need the server to transcode my media, MiniDLNA will quite happily however stream media to my other devices, like MP3&#8242;s and AVI&#8217;s (XviD/AC3) to my Xbox 360.</p>
<p>Installing MiniDLNA is available in the default repositories if you are running Ubuntu 11.10 and it can be installed by running the command</p>
<pre>sudo apt-get install minidlna</pre>
<p><span id="more-202"></span>If you are using a version of Ubuntu older than 11.10, you will need to add the stedy-minidlna PPA (view <a href="http://vassie.name/adding-personal-package-archives-ppa-to-ubuntu-server">this post</a> if the command below does not work)</p>
<pre>sudo add-apt-repository ppa:stedy6/stedy-minidna</pre>
<p>Then you can install MiniDLNA</p>
<pre>sudo apt-get update &amp;&amp; sudo apt-get install minidlna</pre>
<p>Once installed, all that is left is to edit the configuration file</p>
<pre>sudo nano /etc/minidlna.conf</pre>
<p>Add the following to your conf file, remembering to update the paths to your media</p>
<pre>media_dir=A,/media/storage/Share/Music
media_dir=P,/media/storage/Share/Pictures
media_dir=V,/media/storage/Share/Videos</pre>
<p>And finally, and this is totally optional, if you wish to rename your server, remove the # from the friendly_name line, and enter your chosen name, like below</p>
<pre>friendly_name=SERVER</pre>
<p>MiniDLNA is now configured to share your media, to force a database rescan run</p>
<pre>sudo minidlna -R</pre>
<p>You can also restart the service using the command</p>
<pre>sudo service minidlna restart</pre>
<p>For anyone interested, I have also published an Arch Linux version of this guide <a href="http://vassie.name/installing-minidlna-on-arch-linux">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://vassie.name/installing-minidlna-on-ubuntu-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Personal Package Archives (PPA) to Ubuntu Server</title>
		<link>http://vassie.name/adding-personal-package-archives-ppa-to-ubuntu-server</link>
		<comments>http://vassie.name/adding-personal-package-archives-ppa-to-ubuntu-server#comments</comments>
		<pubDate>Tue, 13 Dec 2011 16:46:23 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ppa]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://vassie.name/?p=205</guid>
		<description><![CDATA[Personal Package Archives (PPA) are an easy to install and upgrade software on Ubuntu Personal Package Archives (PPA) allow you to upload Ubuntu source packages to be built and published as an apt repository by Launchpad. It saves you having &#8230; <a href="http://vassie.name/adding-personal-package-archives-ppa-to-ubuntu-server">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Personal Package Archives (PPA) are an easy to install and upgrade software on Ubuntu</p>
<blockquote><p>Personal Package Archives (PPA) allow you to upload Ubuntu source packages to be built and published as an apt repository by Launchpad.</p></blockquote>
<p>It saves you having to download and compile software if it isn&#8217;t available from the default Ubuntu repositories, it will also allow you (in some cases) to update existing software.</p>
<p>To easlity add a PPA to your list of repositories on Ubuntu Server, firstly you will need to install python-software-properties</p>
<pre>sudo apt-get install python-software-properties</pre>
<p>You can now add PPA&#8217;s using the following command</p>
<pre>sudo add-apt-repository ppa:name-of-repository</pre>
]]></content:encoded>
			<wfw:commentRss>http://vassie.name/adding-personal-package-archives-ppa-to-ubuntu-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securing your Ubuntu Server with Fail2ban</title>
		<link>http://vassie.name/securing-your-ubuntu-server-with-fail2ban</link>
		<comments>http://vassie.name/securing-your-ubuntu-server-with-fail2ban#comments</comments>
		<pubDate>Fri, 09 Dec 2011 13:57:07 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[fail2ban]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://vassie.name/?p=184</guid>
		<description><![CDATA[If you are running ssh on your home server, I highly recommend you install Fail2ban. Fail2ban scans log files like /var/log/pwdfail or /var/log/apache/error_log and bans IP that makes too many password failures. It updates firewall rules to reject the IP &#8230; <a href="http://vassie.name/securing-your-ubuntu-server-with-fail2ban">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are running ssh on your home server, I highly recommend you install <a href="http://www.fail2ban.org/wiki/index.php/Main_Page" target="_blank">Fail2ban</a>.</p>
<blockquote><p>Fail2ban scans log files like /var/log/pwdfail or /var/log/apache/error_log and bans IP that makes too many password failures. It updates firewall rules to reject the IP address.</p></blockquote>
<p><span id="more-184"></span>To install Fail2ban, from the command like enter the following</p>
<pre>sudo apt-get install fail2ban</pre>
<p>Once installed, you will need to make a local copy of the configuration file, to do this change to the Fail2ban directory</p>
<pre>cd /etc/fail2ban</pre>
<p>Then copy the configuration file</p>
<pre>sudo cp jail.conf jail.local</pre>
<p>Finally, open jail.local</p>
<pre>sudo nano jail.local</pre>
<p>And configure the IP addresses you want Fail2ban to ignore (ignoreip), the ban time in minutes (bantime) and the maximum number of user attempts (maxretry).</p>
<pre># "ignoreip" can be an IP address, a CIDR mask or a DNS host
ignoreip = 127.0.0.1/8
bantime  = 600
maxretry = 3</pre>
<p>More information can be found in the <a href="https://help.ubuntu.com/community/Fail2ban" target="_blank">Fail2ban Ubuntu Documentation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://vassie.name/securing-your-ubuntu-server-with-fail2ban/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix the Ubuntu Extras GPG error</title>
		<link>http://vassie.name/how-to-fix-the-ubuntu-extras-gpg-error</link>
		<comments>http://vassie.name/how-to-fix-the-ubuntu-extras-gpg-error#comments</comments>
		<pubDate>Mon, 07 Nov 2011 10:00:34 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://vassie.name/?p=151</guid>
		<description><![CDATA[Just a quick one, if you receive a GPG error when running an apt-get update, just enter the following command to fix it sudo apt-get install --reinstall ubuntu-extras-keyring Then run another update and the errors should be gone.]]></description>
			<content:encoded><![CDATA[<p>Just a quick one, if you receive a GPG error when running an apt-get update, just enter the following command to fix it</p>
<pre>sudo apt-get install --reinstall ubuntu-extras-keyring</pre>
<p>Then run another update and the errors should be gone.</p>
]]></content:encoded>
			<wfw:commentRss>http://vassie.name/how-to-fix-the-ubuntu-extras-gpg-error/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a simple Samba share with Ubuntu</title>
		<link>http://vassie.name/setting-up-a-simple-samba-share-with-ubuntu</link>
		<comments>http://vassie.name/setting-up-a-simple-samba-share-with-ubuntu#comments</comments>
		<pubDate>Mon, 31 Oct 2011 16:37:47 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://vassie.name/?p=20</guid>
		<description><![CDATA[After the 1TB drive that was connected to my home server (running Windows XP) died, I decided to go for cheaper, more open source approach. My requirements for a home server are pretty simple, I would like it to function &#8230; <a href="http://vassie.name/setting-up-a-simple-samba-share-with-ubuntu">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After the 1TB drive that was connected to my home server (running Windows XP) died, I decided to go for cheaper, more open source approach.</p>
<p>My requirements for a home server are pretty simple, I would like it to function as a <a href="http://en.wikipedia.org/wiki/Seedbox" target="_blank">seedbox</a>, to be able to download from <a href="http://en.wikipedia.org/wiki/Usenet" target="_blank">Usenet</a>, stream my media using <a href="http://en.wikipedia.org/wiki/Digital_Living_Network_Alliance" target="_blank">DLNA</a>/<a href="http://en.wikipedia.org/wiki/UPnP_AV_media_server#UPnP_AV_media_server" target="_blank">UPnP</a> and more importantly to be accessible from my Windows 7 desktop and laptop for file storage.</p>
<p>After looking at my various options, including <a href="http://www.freenas.org/" target="_blank">FreeNAS</a> and <a href="http://www.amahi.org" target="_blank">Amahi</a>, I decided to go with <a href="http://www.ubuntu.com/business/server/overview" target="_blank">Ubuntu Server</a>.</p>
<p><span id="more-20"></span></p>
<p>After installing Ubuntu Server and setting up my new external hard drive, it was time to set up my Windows Share.</p>
<p>To quote the <a href="https://help.ubuntu.com/11.10/serverguide/C/samba-fileserver.html" target="_blank">Ubuntu Documentation</a></p>
<blockquote><p>One of the most common ways to network Ubuntu and Windows computers is to configure Samba as a File Server.</p></blockquote>
<p>If you did not install Samba whilst installing Ubuntu Server, you can install it by entering the following command</p>
<pre>sudo apt-get install samba</pre>
<p>The next step is to create a Samba user with the same name and password of your Windows account</p>
<pre>sudo smbpasswd -a Ben</pre>
<p>You will prompted to enter a password for your new Samba user, make sure this is the same as your Windows account, after doing this, enable the Samba user</p>
<pre>sudo smbpasswd -e Ben</pre>
<p>Then create a new file where you will map the two together</p>
<pre>sudo nano /etc/samba/smbusers</pre>
<p>Then map your Linux account to your Windows (Samba) account by adding</p>
<pre>ben = Ben</pre>
<p>Finally, save and close the file (hold Ctrl and press O to save the file then hold Ctrl and press X to exit nano)</p>
<p>The next step it to configure Samba and create your share, all the Samba configuration is stored in /etc/samba/smb.conf, open this file for editing</p>
<pre>sudo nano /etc/samba/smb.conf</pre>
<p>Look for the following line in the Authentication section</p>
<pre>#   security = user</pre>
<p>And replace it with</p>
<pre>security = user</pre>
<p>The sets Samba to use the user security mode which means that in order to access a share, the user must have an account on the server which can be mapped using the username map setting, to set this up, add the following line into the Authentication section of smb.conf</p>
<pre>username map = /etc/samba/smbusers</pre>
<p>Finally we now configure our share itself, go to the end of smb.conf and adding</p>
<pre>[Share]
    path = /media/storage/Share
    read only = yes
    write list = ben
    guest ok = no</pre>
<p><strong>[Share]</strong> is the name of the share and is what will be shown when you access your server using Windows Explorer.</p>
<p><strong>path</strong> is the path to the folder on the server you wish to share.<br />
<strong></strong></p>
<p><strong>read only</strong> makes the share read only.<br />
<strong></strong></p>
<p><strong>write list</strong> lists the users who have write access to the share, in this case it is my Linux account that is also mapped to the Samba user Ben, as I log onto my Windows desktop and laptop as Ben means we will have write access to the share.<br />
<strong></strong></p>
<p><strong>guest ok</strong> means that guests do no have access to the share, only logged in users from the write list.</p>
<p>And that&#8217;s it, restart the service by running</p>
<pre>sudo service smbd restart</pre>
<p>Your share should now be visible.</p>
<p>If you have any questions please check the <a href="http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/" target="_blank">Official Samba 3.5.x HOWTO and Reference Guide</a> or post them in the comments and I&#8217;ll try to help out where I can.</p>
]]></content:encoded>
			<wfw:commentRss>http://vassie.name/setting-up-a-simple-samba-share-with-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Streaming music via UPnP with foobar2000 and foo_upnp</title>
		<link>http://vassie.name/streaming-music-via-upnp-with-foobar2000-and-foo_upnp</link>
		<comments>http://vassie.name/streaming-music-via-upnp-with-foobar2000-and-foo_upnp#comments</comments>
		<pubDate>Fri, 25 Feb 2011 10:02:20 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[foobar2000]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[foo_upnp]]></category>

		<guid isPermaLink="false">http://vassie.name/?p=56</guid>
		<description><![CDATA[One of the many great features of foobar2000 is the ability for anyone to write plugins using the Software Development Kit (SDK). My most frequently used and favourite plugin is foo_upnp, this will turn foobar2000 into a UPnP/DLNA renderer, server and control point. &#8230; <a href="http://vassie.name/streaming-music-via-upnp-with-foobar2000-and-foo_upnp">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the many great features of foobar2000 is the ability for anyone to write plugins using the <a href="http://www.foobar2000.org/SDK" target="_blank">Software Development Kit</a> (SDK).</p>
<p>My most frequently used and favourite plugin is <a href="http://www.foobar2000.org/components/view/foo_upnp" target="_blank">foo_upnp</a>, this will turn foobar2000 into a UPnP/DLNA renderer, server and control point.</p>
<p>You will need to install foo_upnp on the PC you wish to stream music from (server) and also any PC&#8217;s you wish to stream to (client).</p>
<p><span id="more-56"></span>To get started you first need to download the plugin and save it somewhere on your PC, next open foobar2000 and open the &#8220;<strong>Preferences</strong>&#8221; window (either by clicking &#8220;<strong>File</strong>&#8221; then &#8220;<strong>Preferences</strong>&#8221; or by holding down &#8220;<strong>Ctrl</strong>&#8221; and pressing &#8220;<strong>P</strong>&#8220;), click on &#8220;<strong>Components</strong>&#8221; to show a list of the currently installed plugins.</p>
<div id="attachment_64" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_01.png"><img class="size-medium wp-image-64 " title="foo_upnp_01" src="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_01-300x219.png" alt="" width="300" height="219" /></a><p class="wp-caption-text">List of installed components.</p></div>
<p>Click &#8220;<strong>Install</strong>&#8221; and browse to where you saved foo_upnp.zip, double click on the zip file to return to the list of components and click OK.</p>
<div id="attachment_67" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_02.png"><img class="size-medium wp-image-67 " title="foo_upnp_02" src="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_02-300x168.png" alt="" width="300" height="168" /></a><p class="wp-caption-text">Select the new plugin to install.</p></div>
<p>You will then be prompted to restart foobar2000.</p>
<div id="attachment_72" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_03.png"><img class="size-medium wp-image-72 " title="foo_upnp_03" src="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_03-300x105.png" alt="" width="300" height="105" /></a><p class="wp-caption-text">Click OK to restart foobar2000.</p></div>
<p>Once you have installed foo_upnp on your server and clients, you will first need to configure your server. To do this, open the &#8220;<strong>Preferences</strong>&#8221; windows on your server PC and under &#8220;<strong>Tools</strong>&#8221; you will have a new entry called &#8220;<strong>UPnP</strong>&#8220;, click on this to expand the options.</p>
<p>The first two sections, &#8220;<strong>Browser</strong>&#8221; and &#8220;<strong>Controller&#8221;</strong> I leave as default. However, those sections allow you to control what information is shown when you display music from your foo_upnp server in foobar2000 (Browser) and when controlling foobar2000 remotely via foo_upnp (Controller).</p>
<p>The main configuration of the server is done under the &#8220;<strong>Server</strong>&#8221; section. Click on &#8220;<strong>Basic Settings</strong>&#8221; and rename the server to whatever you would like it show when you browse for UPnP devices, by default it will use the name of the account you are logged in as.</p>
<p>You can change the port the service runs on in the <strong>Port (HTTP)</strong> field.</p>
<p>Finally, under basic settings, you also have the option to capture an information for troubleshooting/debugging purposes.</p>
<div id="attachment_75" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_06.png"><img class="size-medium wp-image-75 " title="foo_upnp_06" src="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_06-300x217.png" alt="" width="300" height="217" /></a><p class="wp-caption-text">Renaming and controlling the server.</p></div>
<p>At this point you are ready to start streaming your music, however there are still a few more options available that will allow you to customize your server.</p>
<p>Under &#8220;<strong>Contents</strong>&#8221; you can select if you want the playlists you may have created on your server to shared by enabling &#8220;<strong>Show Playlists</strong>&#8220;.</p>
<div id="attachment_78" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/11/foo_upnp10.png"><img class="size-medium wp-image-78 " title="foo_upnp10" src="http://vassie.name/wp-content/uploads/2011/11/foo_upnp10-300x217.png" alt="" width="300" height="217" /></a><p class="wp-caption-text">foo_upnp “Contents”.</p></div>
<p>&#8220;<strong>Show Media Library</strong>&#8221; should be enabled, without this it will not show any music that you have added to the foobar2000 media library on your server.</p>
<p>You can also stream anything that is currently being played in foobar2000 by enabling &#8220;<strong>Show Playback Stream Capture</strong>&#8221; this is useful for streaming live audio feeds and streaming gapless albums.</p>
<p>&#8220;<strong>Allow album art streaming</strong>&#8221; will send any embedded or non-embedded (folder.jpg, cover.jpg etc) to your client and finally &#8220;<strong>Submit playback statistics</strong>&#8221; will collect and maintain statistics for played songs as long as you have <a href="http://www.foobar2000.org/components/view/foo_playcount" target="_blank">foo_playcount</a> installed on your server.</p>
<p>To transcode your streaming audio, allowing non-supported formats to be played on pretty much any device, click on &#8220;<strong>Streaming Profiles</strong>&#8220;, foo_upnp has preconfigured profiles for <a href="http://www.plugplayer.com/" target="_blank">PlugPlayer</a>, Windows Media Player, PlayStation 3, Xbox 360 and <a href="http://www.linn.co.uk/what_is_linn_ds" target="_blank">Linn DS</a>.</p>
<p>If you plan on streaming your music to an Android device, I highly recommend <a href="https://market.android.com/details?id=com.bubblesoft.android.bubbleupnp&amp;hl=en" target="_blank">BubbleUPnP</a>, it is excellent and was created by the developer of foo_upnp.</p>
<div id="attachment_81" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/11/foo_upnp11.png"><img class="size-medium wp-image-81 " title="foo_upnp11" src="http://vassie.name/wp-content/uploads/2011/11/foo_upnp11-300x217.png" alt="" width="300" height="217" /></a><p class="wp-caption-text">foo_upnp’s streaming profiles.</p></div>
<p>One very useful feature of foo_upnp is the ability to allow your audio to be streamed over the internet, under &#8220;<strong>Internet Access</strong>&#8221; enable &#8220;<strong>Allow Internet access</strong>&#8220;, enter your external IP address (or setup a <a href="http://www.dyndns.com/services/dns/dyndns/" target="_blank">DynDNS</a> account if your ISP does not give you a fixed IP) and enter a username and password.</p>
<p>Don&#8217;t forget to forward port 56923 to the internal IP address of your server.</p>
<div id="attachment_59" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/11/foo_upnp12.png"><img class="size-medium wp-image-59  " title="foo_upnp12" src="http://vassie.name/wp-content/uploads/2011/11/foo_upnp12-300x217.png" alt="" width="300" height="217" /></a><p class="wp-caption-text">Allowing internet access to foo_upnp.</p></div>
<p>Now that your server has been configured, you can now install and run foo_upnp on your client PC&#8217;s.</p>
<p>Follow the same installation procedure as above and stop the server under &#8220;<strong>Basic Settings</strong>&#8221; (unless you wish to stream audio from this PC too), click &#8220;<strong>View</strong>&#8221; on the main foobar2000 window, select &#8220;<strong>UPnP Browser</strong>&#8221; and you should see your server listed.</p>
<div id="attachment_84" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_07.png"><img class="size-medium wp-image-84 " title="foo_upnp_07" src="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_07-300x168.png" alt="" width="300" height="168" /></a><p class="wp-caption-text">List of your available UPnP servers.</p></div>
<p>You can browse your music library by clicking on your server then &#8220;<strong>Media Library</strong>&#8220;, once you have found an album you wish to listern to, click on the album title once, and the whole album will be added to your playlist.</p>
<div id="attachment_85" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_08.png"><img class="size-medium wp-image-85 " title="foo_upnp_08" src="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_08-300x168.png" alt="" width="300" height="168" /></a><p class="wp-caption-text">Selecting albums via foo_upnp.</p></div>
<p>If you wish to stream your music over the internet, providing you have enabled it on your server, open the UPnP browser, right click in an empty part of the window, and select &#8220;<strong>Add Remote foobar2000 UPnP Server</strong>&#8220;.</p>
<div id="attachment_86" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_09.png"><img class="size-medium wp-image-86 " title="foo_upnp_09" src="http://vassie.name/wp-content/uploads/2011/11/foo_upnp_09-300x291.png" alt="" width="300" height="291" /></a><p class="wp-caption-text">Adding an external foo_upnp server.</p></div>
<p>Enter the address of your server along with your username and password, click &#8220;<strong>OK</strong>&#8221; and your server will be added to the browser list like normal. You can control how (or if) your music is transcoded when connecting via the internet by entering the <strong>Streaming Profiles</strong> on your server, make sure the <strong>Internet Connection</strong> box is ticked.</p>
<p>Happy streaming, and if you have any questions of comments, please post them in the comments and I&#8217;ll try to help where I can, alternatively, you can ask questions in the official <a href="http://www.hydrogenaudio.org/forums/index.php?showtopic=69664" target="_blank">foo_upnp thread</a> over at <a href="http://www.hydrogenaudio.org" target="_blank">Hydrogenaudio</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://vassie.name/streaming-music-via-upnp-with-foobar2000-and-foo_upnp/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Organize your music with foobar2000 and foo_fileops</title>
		<link>http://vassie.name/organize-your-music-with-foobar2000-and-foo_fileops</link>
		<comments>http://vassie.name/organize-your-music-with-foobar2000-and-foo_fileops#comments</comments>
		<pubDate>Wed, 19 Jan 2011 15:05:20 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[foobar2000]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[foo_fileops]]></category>

		<guid isPermaLink="false">http://vassie.name/?p=104</guid>
		<description><![CDATA[Whilst browsing through the 674 albums stored on my PC, I decided it was time for a thorough tidy up! In the past I have been using the excellent Mp3tag, however, after reading a few forum posts where people were mentioning &#8230; <a href="http://vassie.name/organize-your-music-with-foobar2000-and-foo_fileops">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Whilst browsing through the 674 albums stored on my PC, I decided it was time for a thorough tidy up!</p>
<p>In the past I have been using the excellent <a href="http://mp3tag.de/en" target="_blank">Mp3tag</a>, however, after reading a few forum posts where people were mentioning and praising <a href="http://foobar2000.org/" target="_blank">foobar2000</a> and it&#8217;s component <strong>&#8220;File Operations&#8221;</strong> (aka <a href="http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:File_operations" target="_blank">foo_fileops</a>) I decided to looking into it myself.</p>
<p>I was amazed at how simple foo_fileops was to use and also by how powerful and configurable it was, it took no time at all for me to tidy up my entire music collection.</p>
<p><span id="more-104"></span>To get started you need to make sure your copy of foobar has foo_fileops installed, to do this, during the of foobar install select enable &#8220;<strong>File Operations</strong>&#8221; under &#8220;<strong>Optional features</strong>&#8220;.</p>
<div id="attachment_108" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_01.png"><img class="size-medium wp-image-108" title="foo_fileops_01" src="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_01-300x233.png" alt="" width="300" height="233" /></a><p class="wp-caption-text">Installing foobar2000 with foo_fileops.</p></div>
<p>It is very important that the ID3 tags contained in your music files are set correctly <strong>BEFORE</strong> you attempt to organise your music with foo_fileops as it uses this data to create folders and rename files.</p>
<p>The tags you need to assist foo_fileops are</p>
<p><strong>Artist Name</strong><br />
<strong>Track Title</strong><br />
<strong>Album Title</strong><br />
<strong>Date</strong><br />
<strong>Genre </strong>(optional)<br />
<strong>Album Artist </strong>(optional, see below)<br />
<strong>Track Number</strong><br />
<strong>Total Tracks </strong>(optional)</p>
<p>You only need to populate the &#8220;<strong>Album Artist</strong>&#8221; tag if the album is a complication, a popular value for this field is &#8220;<strong>Various Artists</strong>&#8220;.</p>
<div id="attachment_109" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_06.png"><img class="size-medium wp-image-109" title="foo_fileops_06" src="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_06-300x278.png" alt="" width="300" height="278" /></a><p class="wp-caption-text">Album ID3 tags.</p></div>
<div id="attachment_110" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_07.png"><img class="size-medium wp-image-110" title="foo_fileops_07" src="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_07-300x278.png" alt="" width="300" height="278" /></a><p class="wp-caption-text">Track ID3 tags.</p></div>
<p>Luckily, to make tidying up your tags easy, foobar has a few built-in functions. Select an album, right click and select &#8220;<strong>Properties</strong>&#8221; (or press &#8220;<strong>Alt+ENTER</strong>&#8220;) then right click on the field you wish to clean up, e.g. &#8220;<strong>Title</strong>&#8220;, and select &#8220;<strong>Capitalize</strong>&#8220;. You can also easily set the track numbers along with the total number of tracks by right clicking on any field and select &#8220;<strong>Auto track number</strong>&#8220;.</p>
<div id="attachment_111" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_08.png"><img class="size-medium wp-image-111" title="foo_fileops_08" src="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_08-300x221.png" alt="" width="300" height="221" /></a><p class="wp-caption-text">Cleaning up your tags.</p></div>
<p>Once you are happy with your tags, you can then move onto foo_fileops.</p>
<p>As an example, here is a folder called &#8220;<strong>C:\Users\bvassie\Desktop\Music\EACRip</strong>&#8221; that contains an album I have ripped from CD.</p>
<div id="attachment_112" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_05.png"><img class="size-medium wp-image-112" title="foo_fileops_05" src="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_05-300x200.png" alt="" width="300" height="200" /></a><p class="wp-caption-text">Folder structure and file names are messy.</p></div>
<p>Drag the folder into foobar2000 (or click &#8220;<strong>File</strong>&#8220;, &#8220;<strong>Add Folder</strong>&#8221; in foobar) and it should automatically be highlighted, right click on the highlighted music, select &#8220;<strong>File Operations</strong>&#8220;, &#8220;<strong>Copy To</strong>&#8221; (or &#8220;<strong>Move To</strong>&#8221; if you wish) and &#8220;<strong>&#8230;</strong>&#8221; to configure a new preset.</p>
<div id="attachment_113" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_02.png"><img class="size-medium wp-image-113" title="foo_fileops_02" src="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_02-300x124.png" alt="" width="300" height="124" /></a><p class="wp-caption-text">Highlight the music you wish to move.</p></div>
<p>The first option is &#8220;<strong>Operation type</strong>&#8220;, here you can choose to either copy, move or rename the music you have selected (in case you have changed your mind from the previous step), select the folder under &#8220;<strong>Destination folder:</strong>&#8221; where you want the music to me copied or moved to, &#8220;<strong>File name pattern:</strong>&#8221; is where foo_fileops can use the data from your tags to create a new folder structure and/or rename files.</p>
<p>Personally I like to structure my music in the following format</p>
<p>Album Artist [Year] Album Title\Track Number &#8211; Title</p>
<p>for example</p>
<p>Arcade Fire [2011] The Suburbs (Deluxe Edition)\01 &#8211; The Suburbs.mp3</p>
<p>To create this folder structure and rename the files via foo_fileops I have the following in the &#8220;<strong>File name pattern:</strong>&#8221; field</p>
<pre>%album artist% '['%year%']' %album%\%tracknumber% - %title%</pre>
<p>You can edit the above sting to suit your existing directory structure, a list of foobar&#8217;s built-in titleformatting functions and field references can be found <a href="http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Title_Formatting_Reference">here</a><span class="Apple-style-span">.</span></p>
<p>Leave &#8220;<strong>Copy entire source folder content</strong>&#8221; enabled to ensure that album art (folder.jpg, cover.jpg etc) contained in the folder is also copied/moved, &#8220;<strong>Remove empty source folders</strong>&#8221; will be greyed out if the &#8220;<strong>Operation type</strong>&#8221; is set to &#8220;<strong>Copy</strong>&#8221; (if the &#8220;<strong>Operation type</strong> is set to &#8220;<strong>Move</strong>&#8221; it is best to disable it so that you still have your original source files should something go wrong), disable &#8220;<strong>Show output files when done</strong>&#8221; (although this option is up to you).</p>
<p>Once you are happy with your setup you have the option to save it as a preset for future use, simply type in a name under &#8220;<strong>Presets</strong>&#8221; and click &#8220;<strong>Save</strong>&#8220;.</p>
<div id="attachment_114" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_03.png"><img class="size-medium wp-image-114" title="foo_fileops_03" src="http://vassie.name/wp-content/uploads/2011/01/foo_fileops_03-300x192.png" alt="" width="300" height="192" /></a><p class="wp-caption-text">foo_fileops configuration.</p></div>
<p>Click &#8220;<strong>Run</strong>&#8221; and foo_fileops will work it&#8217;s magic and re-organize your music.</p>
<div id="attachment_142" class="wp-caption aligncenter" style="width: 310px"><a href="http://vassie.name/wp-content/uploads/2011/11/foo_ops_09.jpg"><img class="size-medium wp-image-142" title="foo_fileops_09" src="http://vassie.name/wp-content/uploads/2011/11/foo_ops_09-300x168.jpg" alt="" width="300" height="168" /></a><p class="wp-caption-text">Folder structure and filenames cleaned up, sorry for using a different album in this example.</p></div>
<p>foo_fileops has copied the music from &#8220;<strong>C:\Users\bvassie\Desktop\Music\EACRip</strong>&#8221; to &#8220;<strong>C:\Ben\Music\Arcade Fire\The Suburbs</strong>&#8220;, it has also renamed the individual files from tracknumber title to tracknumber &#8211; title e.g. &#8220;<strong>01 The Suburbs.mp3</strong>&#8221; to &#8220;<strong>01 &#8211; The Suburbs.mp3</strong>&#8220;.</p>
<p>There is lots more foo_filesops can do, and I encourage you to play around with it, if you have any tips, please leave them in the comments and I will try to help out where I can.</p>
]]></content:encoded>
			<wfw:commentRss>http://vassie.name/organize-your-music-with-foobar2000-and-foo_fileops/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

