<?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>Nepherte (dot) be &#187; Linux</title>
	<atom:link href="http://www.nepherte.be/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nepherte.be</link>
	<description>About Nepherte, Mosiah and the person behind</description>
	<lastBuildDate>Mon, 30 Aug 2010 18:45:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Poor Man&#8217;s Tiling Window Manager</title>
		<link>http://www.nepherte.be/poor-mans-tiling-window-manager/</link>
		<comments>http://www.nepherte.be/poor-mans-tiling-window-manager/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 12:15:11 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Tiling Window Manager]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=332</guid>
		<description><![CDATA[Update April 8, 2009: uh_no_hu&#8217;s is still expanding the functionality of his tiling window manager script. Since my post 4 new feature&#8217;s have been added: vertical, horizontal, maximize, max_all. The homepage has also changed to a new location. You can discuss the window manager on the Arch Linux forums. Original February 14, 2009: Poor Man&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update </strong>April 8, 2009<strong>:</strong> uh_no_hu&#8217;s is still expanding the functionality of his tiling window manager script. Since my post 4 new feature&#8217;s have been added: vertical, horizontal, maximize, max_all. The homepage has also changed to a <a href="http://github.com/TheWanderer/stiler/tree/master">new location</a>. You can discuss the window manager on the <a href="http://bbs.archlinux.org/viewtopic.php?id=64100">Arch Linux forums</a>.</p>
<p><strong>Original</strong> February 14, 2009: <a href="http://github.com/TheWanderer/stiler/tree/master">Poor Man&#8217;s Tiling Window Manager</a> is <a href="http://bbs.archlinux.org/profile.php?id=17078">uh_no_hu&#8217;s</a> attempt to add basic tiling window functionality to the desktop, independent of the used desktop environment or window manager. It is known to work with pekwm,  openbox and metacity. It&#8217;s a small python script that should be assigned to key combinations and currently provides 4 features:</p>
<ul>
<li>tiling &#8211; the basic tiling layout: one window in the main column (left) with all the other windows at the side (right)</li>
<li>left &#8211; put the active window to the left</li>
<li>right &#8211; put the active window the the right</li>
<li>swap &#8211; swich the active window with the window in the main column</li>
</ul>
<p>The wanted option is to be provided as an argument of the python script. The script relies on wmctrl and xdotool so make sure you have these two packages. Otherwise the script will not work.</p>
<p>The left/right option is somewhat similar to a function of the new Windows 7 that sticks a window the side. Tiling and swap are the classic features that come with a true tiling window manager.</p>
<p>Though it is not a full replacement for true tiling window managers, it can be considered as an add-on for regular window managers. Whereas someone will use a true tiling window manager (dwm, xmonad, awesome, wmii, ..) to get full tiling support, someone less technical should really try out this easy to use script because most, if not all true tiling window managers tend to be difficult to configure/use.</p>
<p>To give you an idea of how the tiling layout looks like, here&#8217;s a nice picture:</p>
<p><a href="http://www.nepherte.be/wp-content/uploads/2009/02/tiling.png"><img class="size-medium wp-image-345 aligncenter" title="Tiling layout" src="http://www.nepherte.be/wp-content/uploads/2009/02/tiling-300x187.png" alt="Tiling layout" width="571" height="355" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/poor-mans-tiling-window-manager/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Me, Myself and Vista</title>
		<link>http://www.nepherte.be/me-myself-and-vista/</link>
		<comments>http://www.nepherte.be/me-myself-and-vista/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 19:16:13 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=663</guid>
		<description><![CDATA[Every now and then, one has to use something different. Why? Not necessarily because it&#8217;s a change for the better, but simply because it&#8217;s a change. Instead of trying another linux distribution (I&#8217;m more than happy with Arch Linux, thank you), I&#8217;ll be giving Vista another shot. It&#8217;s also a wonderful opportunity to compare the [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and then, one has to use something different. Why? Not necessarily because it&#8217;s a change for the  better, but simply because it&#8217;s <em>a</em> change. Instead of trying another linux distribution (I&#8217;m more than happy with Arch Linux, thank you), I&#8217;ll be giving Vista another shot. It&#8217;s also a wonderful opportunity to compare the two with eachother and spit out an opinion. Probably a slightly biased opinion, but an opinion nonetheless. I&#8217;ll make an effort to be more or less objective.</p>
<p>I remember from my earlier usage of Vista that I&#8217;m better off with a clean install on my Sony Vaio SZ6. Laptop manufacturers like Sony simply put too much bloat on their pre-installed Vista installations. I really don&#8217;t need all this trial software: office, antivirus software, &#8230; It&#8217;s all there slowing down the performance and it&#8217;s even harder to remove. The installation itself went very well. Barely any user input is required to complete the installation. The only thing I noticed is that I couldn&#8217;t find a hard disk partinioner. Odd, but not that much of a big deal either.</p>
<p>While the installation of Vista itself was a breeze (credit where credit&#8217;s due), installing the Sony drivers was far from easy. Sony uses a lot of custom drivers for their laptops which can be downloaded from their site. First you have to figure out in what order they have to be installed in order to make everything work like it&#8217;s supposed to (Sony neglects to mention that). When you finally figured it out, you can start searching for the devices they belong too. Then I ask myself why people complain about a linux installation. Granted, when Vista is already configured by the manufacturer it&#8217;s not much of a hassle, but doing it yourself requires much more knowledge than the average user has.</p>
<p>Next is the update process. Is it just me or does downloading and installing all the updates take forever? Note the retorical aspect of this question. Maybe I&#8217;m spoiled because of the fast linux mirrors, but there&#8217;s no excuse for the time it takes on Vista. Then you have the renowned restarting of the updates, famous only in the realm of Microsoft. I&#8217;m already over the fact that I have to restart, but certainly not over the fact that it takes forever to complete the installation of the updates.</p>
<p>The first day I was using Vista again, I wasn&#8217;t happy at all. It felt very slow and there was this enormous unknown disk activity. I later found out it was just indexing my files, looking for updates, defragmenting my disk (why is that even necessary right after a clean install?), &#8230; but I really don&#8217;t like things happening without me knowing of it. Luckily the slowness and disk activity went away shortly thereafter. It&#8217;s almost as if Vista heavily relies on caching to achieve some speed. Not that I mind though, that&#8217;s what system resources are for.</p>
<p>Vista has some good qualities as well though. The User Acces Control for instance is a major step ahead. Ironically, that&#8217;s what regular Vista users complain most about. The Microsoft developers might have to reprioritize their UAC focus (why would I need admin privileges to drag, drop and delete items in my very own start menu?) but all in all UAC really is a good thing. </p>
<p>Something linux lacks and Vista doesn&#8217;t, is the support of every manufacter on this globe. You never have to wonder if this will work, because it will (well, maybe not on vista 64 bit :p). There&#8217;s also no lack of good software. It&#8217;s not always free as in beer or speech, but it&#8217;s certainly good. Microsoft Office for example really outperforms Openoffice or any other office suit on linux.</p>
<p>In the end, Vista doesn&#8217;t make me go away from Arch Linux but I&#8217;ll still use it once in a while because it&#8217;s not that bad after all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/me-myself-and-vista/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XMonad and Gnome: The best of 2 worlds</title>
		<link>http://www.nepherte.be/xmonad-and-gnome-the-best-of-2-worlds/</link>
		<comments>http://www.nepherte.be/xmonad-and-gnome-the-best-of-2-worlds/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 21:44:17 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Awesome]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[DWM]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[Tiling Window Manager]]></category>
		<category><![CDATA[XMonad]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=473</guid>
		<description><![CDATA[To tile or not to tile, that&#8217;s the question. GNOME has always fulfilled my needs of a desktop environment. Nothing has ever been able to lure me away from GNOME. Its screensaver, its network manager, its power management and GTK applications, it all perfectly fits together. On the other hand, maximizing the usage of the [...]]]></description>
			<content:encoded><![CDATA[<p>To tile or not to tile, that&#8217;s the question. <a href="http://www.gnome.org/">GNOME</a> has always fulfilled my needs of a desktop environment. Nothing has ever been able to lure me away from GNOME. Its screensaver, its network manager, its power management and GTK applications, it all perfectly fits together. On the other hand, maximizing the usage of the monitor&#8217;s space is a great and appealing idea that surely leads to more productivity; no more window resizing , no more window overlap, no more empty gaps on the desktop. A superb idea indeed. Ultimately it was something I really had to try out. So I did.</p>
<p><a href="http://www.nepherte.be/wp-content/uploads/2008/12/desktop_may_2008_4.png"></a><a href="http://www.nepherte.be/wp-content/uploads/2009/03/desktop-1-march-2008.png"><img class="alignnone size-medium wp-image-512" title="My Gnome Desktop March 2008" src="http://www.nepherte.be/wp-content/uploads/2009/03/desktop-1-march-2008-300x187.png" alt="Gnome Desktop March 2008" width="300" height="187" /></a><a href="http://www.nepherte.be/wp-content/uploads/2008/12/desktop_may_2008_1.png"><img class="alignnone size-medium wp-image-100" title="My Gnome Desktop May 2008" src="http://www.nepherte.be/wp-content/uploads/2008/12/desktop_may_2008_1-300x187.png" alt="Gnome Desktop May 2008" width="300" height="187" /></a></p>
<p>This leaves me with another question: What tiling window manager to choose? I&#8217;ve heared about most of them already while browsing the Arch Linux forum and started with <a href="http://www.suckless.org/dwm/">dwm</a>, known as the easiest tiling window manager to configure. Indeed, the configuration is fairly easy but it doesn&#8217;t resemble to the simplicity of GNOME or KDE  at all. If you don&#8217;t read about it first, you start dwm and you&#8217;re left with nothing but an empty screen without even knowing how to run an application. While it is supposed to be easy, I still had some unresolved problems with naming my tags/workspaces and shifting windows to it. Though my incompetence is probably to blame, the developers&#8217; unwillingness to document their work didn&#8217;t really help me either so I abandoned dwm. The second in line to try was <a href="http://awesome.naquadah.org/">Awesome</a>. It&#8217;s very popular and probably the most feature rich one. Configuration is done in the programming language lua. Oddly enough I had a lot more success configuring it than dwm. A notorious downside of Awesome is its ever changing configuration syntax. While this is supposedly going to improve now lua is introduced, I&#8217;m not willing to put it to the test.</p>
<p><a href="http://freduardo.files.wordpress.com/2008/11/awesomeblue.png"><img class="alignnone" title="Freduaordos Awesome Desktop" src="http://freduardo.files.wordpress.com/2008/11/awesomeblue.png" alt="" width="300" height="187" /></a><a href="http://arch.kimag.es/share/74389413.png"><img class="alignnone" title="Unknown DWM Desktop Screenshot" src="http://arch.kimag.es/share/74389413.png" alt="" width="300" height="187" /></a></p>
<p>Opposed to the previous two, my experience with <a href="http://xmonad.org/">XMonad</a> is a success story all the way. I believe XMonad outranks the others easily. Configuration is done in Haskell. While it&#8217;s perhaps not an easy way to configure things, it  allows  great flexibility. The developers have extensively documented each feature, illustrate a lot with simple examples and created a great faq that answers the  most important questions that come to mind. XMonad runs very smoothly and on top of everything, it can be easily integrated with every popular desktop environment. That last feature is a huge bonus. It simply replaces metacity (the window manager of GNOME) with XMonad. While this can be done with the other tiling window managers too, XMonad integrates very nicely in GNOME and handles the communcation between the two very well. I get the best of both worlds with no downsides. Well, there&#8217;s adownside, only not for me. It is required to install the +/- 100 MB Haskell compiler. Luckily for me, I need Haskell for my university courses.</p>
<p><a href="http://www.nepherte.be/wp-content/uploads/2009/03/desktop_march_2009_11.png"><img class="alignnone size-medium wp-image-517" title="My XMonad Desktop (1) March 2009" src="http://www.nepherte.be/wp-content/uploads/2009/03/desktop_march_2009_11-300x187.png" alt="XMonad Desktop (1) March 2009" width="300" height="187" /></a><a href="http://www.nepherte.be/wp-content/uploads/2009/03/desktop_march_2009_21.png"><img class="alignnone size-medium wp-image-518" title="My XMonad Desktop (2) March 2009" src="http://www.nepherte.be/wp-content/uploads/2009/03/desktop_march_2009_21-300x187.png" alt="XMonad Desktop (2) March 2009" width="300" height="187" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/xmonad-and-gnome-the-best-of-2-worlds/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Howto: Enable DVD menus in MPlayer</title>
		<link>http://www.nepherte.be/howto-enable-dvd-menus-in-mplayer/</link>
		<comments>http://www.nepherte.be/howto-enable-dvd-menus-in-mplayer/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 20:47:50 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[dvd menu]]></category>
		<category><![CDATA[MPlayer]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=198</guid>
		<description><![CDATA[A lot of distributions ship a binary of mplayer that is one, old, and two, doesn&#8217;t have the capability to see the menu of a dvd. The reason they ship an old binary of mplayer is because the developpers of mplayer don&#8217;t believe in releases. The &#8220;latest&#8221; release dates of October 2007. Yup that&#8217;s more [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of distributions ship a binary of mplayer that is one, old, and two, doesn&#8217;t have the capability to see the menu of a dvd. The reason they ship an old binary of mplayer is because the developpers of mplayer don&#8217;t believe in releases. The &#8220;latest&#8221; release dates of October 2007. Yup that&#8217;s more than a year ago. What the developpers do believe in, is svn. Every change they make is just put in svn and that&#8217;s where you&#8217;ll get a recent version of mplayer.</p>
<p>First we need a recent version of dvdread and dvdnav, two libraries that allow us to view and navigate through dvd menus. We start with dvdread. Again, you will probably have a very old version of dvdread, so we get a recent version. Dvdread depends on libdvdcss so make sure you have it. You will also need the tools to compile from source of course.</p>
<p>1. Get the source:<br />
<code>wget http://www7.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdread-4.1.3.tar.bz2</code><br />
2. Unpack it and navigate to the directory:<br />
<code>tar xvfj libdvdread-4.1.3.tar.bz2<br />
cd libdvdread-4.1.3</code><br />
3. Compile, build and install:<br />
<code>./autogen.sh --prefix=/usr<br />
make<br />
sudo make install</code></p>
<p>Now we do the same for dvdnav:</p>
<p>1. Get the source:<br />
<code>wget http://www8.mplayerhq.hu/MPlayer/releases/dvdnav/libdvdnav-4.1.3.tar.bz2</code><br />
2. Unpack it and navigate to the directory:<br />
<code>tar xvfj libdvdnav-4.1.3.tar.bz2<br />
cd libdvdnav-4.1.3.tar.bz2</code><br />
3. Compile, build and install:<br />
<code>./autogen.sh --prefix=/usr<br />
make<br />
sudo make install</code></p>
<p>Now that we have everything to read a dvd and its dvd menu, it&#8217;s time to install mplayer with this functionality.</p>
<p>1. Get the source:<br />
<code>svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer</code><br />
2. Navigate to the directory:<br />
<code>cd mplayer</code><br />
3. Compile, build and install. There are a lot of configuration options available for mplayer, but I will only mention the ones you need to enable dvd menus.</p>
<p><code>./configure --disable-dvdread-internal --enable-dvdnav<br />
make<br />
sudo make install</code></p>
<p>Now hurry up and try out some fancy dvd menu with mplayer. Here are a few of The Terminal:<a href="http://www.nepherte.be/wp-content/uploads/2008/12/dvdmenu.png"><br />
</a></p>
<p><a href="http://www.nepherte.be/wp-content/uploads/2008/12/languagemenu.png"><img class="size-medium wp-image-211 alignleft" title="The Terminal Language Menu" src="http://www.nepherte.be/wp-content/uploads/2008/12/languagemenu-300x187.png" alt="The Terminal Language Menu" width="300" height="187" /></a></p>
<p><a href="http://www.nepherte.be/wp-content/uploads/2008/12/dvdmenu.png"><img class="alignnone size-medium wp-image-210" title="The Terminal DVD Menu" src="http://www.nepherte.be/wp-content/uploads/2008/12/dvdmenu-300x187.png" alt="The Terminal DVD Menu" width="300" height="187" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/howto-enable-dvd-menus-in-mplayer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: Use mpd and ncmpc++ like a pro</title>
		<link>http://www.nepherte.be/howto-use-mpd-and-ncmpc-like-a-pro/</link>
		<comments>http://www.nepherte.be/howto-use-mpd-and-ncmpc-like-a-pro/#comments</comments>
		<pubDate>Thu, 25 Dec 2008 18:39:58 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[mpd]]></category>
		<category><![CDATA[music player]]></category>
		<category><![CDATA[ncmpcpp]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=182</guid>
		<description><![CDATA[I tend to use the command line more often these days. When I have to do some task, I find it easier and faster to open a terminal and enter the necessary commands than using the GUI. The same thing goes for applications. When you know how to use a specific console program, it can [...]]]></description>
			<content:encoded><![CDATA[<p>I tend to use the command line more often these days. When I have to do some task, I find it easier and faster to open a terminal and enter the necessary commands than using the GUI. The same thing goes for applications. When you know how to use a specific console program, it can be far more productive than a graphical application. Once you cross that &#8220;console barrier&#8221;, it&#8217;s hard to go back and you probably don&#8217;t want to. This is my attempt to sell mpd and ncmpcpp to you.</p>
<p><a title="Music Player Daemon" href="http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki">Mpd</a> and <a href="http://unkart.ovh.org/ncmpcpp/">ncmpc++</a> are perfect examples of these console programs. Mpd, also known as Music Player Daemon, is a powerful server side console application for playing music and ncmpc++ is one of the many console front-ends available for mpd (note that gui front-ends also exist). Mpd is cross-platform (although windows support is in a very experimental phase) and can also be controlled from an external device like a mobile phone. This makes it an ideal combination for a media server: your phone or other device as a remote control for your sound system running mpd. If you paid attention to what I said, you&#8217;ll conclude that mpd does not stream audio. I repeat: mpd does not stream audio. All playback occurs on the server. However, you output to a stream server like Icecast. Besides that, it also makes a great desktop music player program where both mpd and ncmpc++ are installed on the same computer. Inspired by <a href="http://kmandla.wordpress.com/">K.Mandla</a>&#8216;s  &#8220;how to become a pro at ..&#8221; I will show you how to do so and become a &#8220;pro&#8221; at using mpd and ncmpc++.</p>
<p><strong><span style="text-decoration: underline;">Setting Up mpd</span></strong><br />
First, you will need to install mpd. Every self respecting linux distribution has it in their software repositories, hence the installation of the package shouldn&#8217;t be a problem. For Ubuntu it would be &#8220;sudo apt-get install mpd&#8221;, for Arch Linux &#8220;sudo pacman -S mpd&#8221; and so on. For more information on installing mpd, you can always check out their extensive wiki: http://mpd.wikia.com/wiki/Install. The few configuration changes that have to be made, are done in /etc/mpd.conf for system-wide use, or in ~/.mpdconf for individual users. I will only explain setting it up for each individual user as it has several advantages over a system wide install such as setting up a separate music library, own playlists and resume of songs for each user individually.</p>
<p>1. Copy the system wide configuration file /etc/mpd.conf to ~/.mpdconf (~ denotes the users home directory):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mpd.conf ~<span style="color: #000000; font-weight: bold;">/</span>.mpdconf</pre></div></div>

<p>2. Before we edit the config file, we will create some files and directories we will be using later on:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>.mpd<span style="color: #000000; font-weight: bold;">/</span>playlists
<span style="color: #c20cb9; font-weight: bold;">touch</span> ~<span style="color: #000000; font-weight: bold;">/</span>.mpd<span style="color: #000000; font-weight: bold;">/</span>mpd.db
<span style="color: #c20cb9; font-weight: bold;">touch</span> ~<span style="color: #000000; font-weight: bold;">/</span>.mpd<span style="color: #000000; font-weight: bold;">/</span>mpd.error
<span style="color: #c20cb9; font-weight: bold;">touch</span> ~<span style="color: #000000; font-weight: bold;">/</span>.mpd<span style="color: #000000; font-weight: bold;">/</span>log</pre></div></div>

<p>3. Now edit ~/.mpdconf to reflect these settings:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">music_directory                 <span style="color: #ff0000;">&quot;/full/path/to/your/music/directory&quot;</span>
playlist_directory              <span style="color: #ff0000;">&quot;~/.mpd/playlists&quot;</span>
db_file                         <span style="color: #ff0000;">&quot;~/.mpd/mpd.db&quot;</span>
log_file                        <span style="color: #ff0000;">&quot;~/.mpd/mpd.log&quot;</span>
error_file                      <span style="color: #ff0000;">&quot;~/.mpd/mpd.error&quot;</span>
pid_file                        <span style="color: #ff0000;">&quot;~/.mpd/mpd.pid&quot;</span>
state_file                      <span style="color: #ff0000;">&quot;~/.mpd/mpdstate&quot;</span>
bind_to_address                 <span style="color: #ff0000;">&quot;127.0.0.1&quot;</span>
port                            <span style="color: #ff0000;">&quot;6600&quot;</span></pre></div></div>

<p>As you will see, there are two entries for each setting: one system wide and one user based. You have to comment out the system wide ones with # and enable the user based by uncommenting them and filling in the correct values (like mine above). The names of the settings speak for themselves and additional documentation is often added in the configuration file itself. Be sure to replace /full/path/to/your/music/directory with the correct path to your music directory and yourusername with your actual username. You can change the port if you want to, but there&#8217;s generally no point in doing that. You can also restrict access to mpd (remember, you can control it from a remote device) by uncommenting the password entry and supplying a password. Typically, you don&#8217;t have to mess with the audio output settings, but if you have problems later on remember these settings: Uncommenting the alsa output is then your best bet (since it ships with basically every linux distribution by default as it is included in the kernel).</p>
<p>There also exists a configuration page on their <a title="MPD wiki" href="http://mpd.wikia.com/wiki/Configuration">wiki</a>.</p>
<p><span style="text-decoration: underline;"><strong>Using mpd</strong></span><br />
Now that you have mpd installed and configured, you can start using it. There really isn&#8217;t much to say about using mpd. All you have to do is running the command mpd as user and creating the music library database file. It will look into your music_directory, create an entry for each music file and put information about it in mpd.db:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mpd <span style="color: #660033;">--create-db</span>
mpd</pre></div></div>

<p>The cool thing about having a command line music player daemon is that you don&#8217;t need a X server running to play music. Are you tired of your music stopping when you log on and off your system? No problem, mpd will keep running when you log on and off. When you start mpd it will also resume the last song that was playing if you abruptly stopped the mpd daemon.</p>
<p>If mpd gives you any trouble like not starting up, no sound or not creating a mpd.db file, check out mpd.log and mpd.error. It will give you a headstart in figuring out what&#8217;s wrong.</p>
<p><strong><span style="text-decoration: underline;">Setting up ncmpc++<br />
</span></strong>Now we still need something to control mpd with. Ncmpcpp is almost an exact clone of ncmpc but it contains some new features ncmpc doesn&#8217;t have. It&#8217;s been also rewritten from scratch in C++ and more importantly, it&#8217;s actively being developped. As I told before, there exist other clients both command line and graphical as web based. Hell, you can even get a client that runs on your Iphone or Ipod Touch. But I can assure you, ncmpc++ pretty much does it all: playlists, crossfading, tag editing, fetching lyrics&#8230; You name it, it&#8217;s got it.</p>
<p>As far as I know only Arch Linux, Gentoo and FreeBSD have ncmpcpp in their software repositories. So you might have to get your hands dirty with compiling it yourself. But hey, if you already get so far reading this, it really shouldn&#8217;t be a problem. People seriously considering a console music player, probably have the skill to compile it as well. Detailed installation instructions can be found on the <a href="http://unkart.ovh.org/ncmpcpp/download.php">ncmpcpp site</a>.</p>
<p>I&#8217;m not really going into the configuration of ncmpc++. The default configuration will certainly do. Only when you intend to use the tag editor, you will have to set the proper path to the mpd music directory in ~/.ncmpcpp/config (the path you also filled in the config file of mpd). The rest is a bunch of color and format settings. You can also configure the shortcut keys in ~/.ncmpcpp/keys. More on the shortcut keys later.</p>
<p><strong><span style="text-decoration: underline;">Using ncmpc++</span></strong><br />
You can launch ncmpc++ in the terminal with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ncmpcpp</pre></div></div>

<p>When you launch it, you are welcomed by the playlist window that shows the songs of the playlist you are currently listening to</p>
<p style="text-align: center;"><a href="http://www.nepherte.be/wp-content/uploads/2008/12/ncmpcpp-playlist.png"><img class="size-medium wp-image-176 aligncenter" title="Ncmpc++ Playlist" src="http://www.nepherte.be/wp-content/uploads/2008/12/ncmpcpp-playlist-300x211.png" alt="Ncmpc++ Playlist" width="300" height="211" /></a></p>
<p>At the top, you see what menus are available and their corresponding key to access it (by default numbers from 1 to 7 and fn keys):<br />
1:Help<br />
2:Playlist<br />
3:Browse<br />
4:Search<br />
5:Library<br />
6:Playlist editor<br />
7:Tag editor</p>
<p>The meaning of these menus are pretty obvious. A quick way to switch from the playlist to the browse menu and back is the tab key. The global keys to use in each menu are the arrow up and down to navigate and enter to select. To go to the parent directory you can use backspace. To start a selected song, press enter, s to stop a song and P to pause. &gt; and &lt; are used to go forward and backward one track. r is used to enable/disable repeat mode and z for random selection of the songs in the playlist. Deleting a song in your playlist can be done with d and clearing the whole playlist with c. You can increase and decrease the volume with + and -. If you want to quit ncmpc++, press q. As you can see, the shortcut keys somehow make sense, they mostly are the first character of the action you want to perform. Very easy to remember although it can be a bit overwhelming the first time.</p>
<p style="text-align: center;"><a href="http://www.nepherte.be/wp-content/uploads/2008/12/ncmpcpp-lyrics.png"><img class="size-medium wp-image-175 aligncenter" title="Ncmpc++ Lyrics" src="http://www.nepherte.be/wp-content/uploads/2008/12/ncmpcpp-lyrics-300x211.png" alt="Ncmpc++ Lyrics" width="300" height="211" /></a></p>
<p>When you stored a new music file in your music directory, you will have to update mpd&#8217;s database. I told you before that you can use this command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mpd <span style="color: #660033;">--create-db</span></pre></div></div>

<p>but ncmpc++ also has this functionality, accessible with u. So absolutely no need to quit ncmpcpp.</p>
<p>The previous short cuts were just the basic commands to get you started. This was only the beginning. You can for example cross-fade from one song to another with x. Fetching lyrics is l, looking up detailed information on the performing artist is I. The latter two perform a search on the internet. It&#8217;s possible it doesn&#8217;t find a match on the net, but that&#8217;s only the case with less known, most time local artist and songs. I tried it with some local artists from my country and it only missed one out of many. Another information key i gives you information about the music file itself such as file name and tags. You can go out of the lyrics, artist and file information screens by pressing the same button.</p>
<p style="text-align: center;"><a href="http://www.nepherte.be/wp-content/uploads/2008/12/ncmpcpp-artist-information.png"><img class="size-medium wp-image-174 aligncenter" title="Ncmpc++ Artist Information" src="http://www.nepherte.be/wp-content/uploads/2008/12/ncmpcpp-artist-information-300x211.png" alt="Ncmpc++ Artist Information" width="300" height="211" /></a></p>
<p>I&#8217;ll quickly look into searching your music database. If you have a playlist with a lot of songs or you have hundreds of artists, it&#8217;s very annoying to use the slow navigate arrow up and down key. You can instead do a quick forward and backward search with / and ?. If you want to perform a more complex search, you can always use the search menu (4 or F4) but I find that takes a lot of time and I don&#8217;t think a lot of people use it.</p>
<p style="text-align: center;"><a href="http://www.nepherte.be/wp-content/uploads/2008/12/ncmpcpp-search-menu.png"><img class="size-medium wp-image-177 aligncenter" title="Ncmpc++ Search" src="http://www.nepherte.be/wp-content/uploads/2008/12/ncmpcpp-search-menu-300x211.png" alt="Ncmpc++ Search" width="300" height="211" /></a></p>
<p>Integrated with ncmpc++ is an advanced tag editor. It&#8217;s one of the few command line players for mpd that have this. With this you can edit whatever tag you want of a music file in your database. The usage speaks for itself. As I told before, to get this functionality to work, you will have to supply the path the music directory in ~/.ncmpcpp/config.</p>
<p>All of the shortcut keys are configurable in ~/.ncmpcpp/keys. If you are unhappy with a certain key, you can change each one of them in that file.</p>
<p>This is as far as I&#8217;m willing to go with covering ncmpcpp&#8217;s functionality. I believe I&#8217;ve summed up the most important things. Feel free to notify me of other things I have overlooked. All the functionality and how to access them should be listed in the help menu (1 or F1).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/howto-use-mpd-and-ncmpc-like-a-pro/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Free Crossover Linux License</title>
		<link>http://www.nepherte.be/free-crossover-linux-license/</link>
		<comments>http://www.nepherte.be/free-crossover-linux-license/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 20:10:16 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Crossover]]></category>
		<category><![CDATA[license]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=95</guid>
		<description><![CDATA[Yesterday Codeweavers gave away free licenses for their product Crossover Linux. Of course I&#8217;ve picked up the news and got myself a free license yay. In a nutshell, Crossover Linux provides a compatibility layer for Windows applications, allowing you to run programs like office 2007, Photoshop or Dreamweaver. For a full description, I&#8217;ve taken this [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday Codeweavers gave away free licenses for their product Crossover Linux. Of course I&#8217;ve picked up the news and got myself a free license yay. In a nutshell, Crossover Linux provides a compatibility layer for Windows applications, allowing you to run programs like office 2007, Photoshop or Dreamweaver. For a full description, I&#8217;ve taken this from their website:</p>
<p>&#8220;CrossOver Linux allows you to install many popular Windows productivity applications, plugins and games in Linux, without needing a Microsoft Operating System license. CrossOver includes an easy to use, single click interface, which makes installing a Windows application simple and fast. Once installed, your application integrate seamlessly with your Gnome or KDE environment. Just click and run your application, exactly as you would in Windows, but with the full freedom of Linux.</p>
<p>CrossOver Linux lets you use many Windows plugins directly from your Linux browser. Plugins work on any x86 based Linux distribution and will integrate with most browsers including Firefox 1.x, Netscape 6.x, Konqueror, Mozilla, and Opera. CrossOver also integrates with Gnome and KDE to let you transparently open any Word, Excel or PowerPoint file. But even better, you can open these attachment types directly from any mail client.&#8221;</p>
<p>I wonder if I will ever use it since I&#8217;m already accustomed to free open source alternatives for such applications. Only future can tell.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/free-crossover-linux-license/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade to GNOME 2.24</title>
		<link>http://www.nepherte.be/upgrade-to-gnome-224/</link>
		<comments>http://www.nepherte.be/upgrade-to-gnome-224/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 15:48:17 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[GNOME]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=91</guid>
		<description><![CDATA[Yesterday I upgraded my favourite desktop environment (GNOME) to version 2.24. The upgrade went surprisingly smooth. This is exactly why I chose to use a rolling release model distribution! Where I probably had end up reinstalling Ubuntu when a new version of it comes out (the release cyle of Ubuntu is linked to that of [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I upgraded my favourite desktop environment (GNOME) to version 2.24. The upgrade went surprisingly smooth. This is <em>exactly</em> why I chose to use a rolling release model distribution! Where I probably had end up reinstalling Ubuntu when a new version of it comes out (the release cyle of Ubuntu is linked to that of GNOME), I can now get the latest version with a single command (pacman -Syu) on Arch Linux.</p>
<p>Only one minor issue emerged during the upgrade, specifically gdm (login manager) not finding the root user, hence failing to run. Then I remembered having locked down / disabled my root account with passwd -l. A quick search on the Arch Forums revealed the solution: passwd &#8211;unlock root &amp;&amp; usermod &#8211;lock root. Another problem I discovered rather quicly is an issue with the unlocking of your screen with gnome-screensaver. The background of the unlock screen always falls back to the default background in gnome instead of the current one. A temporary fix is to replace the default background with the current one.</p>
<p>I&#8217;m not going to sum up every new feature that comes with 2.24 (you can find it here: <a href="http://library.gnome.org/misc/release-notes/2.24/">http://library.gnome.org/misc/release-notes/2.24/</a>), but here are some things I noticed rightaway:</p>
<ul>
<li>Revert item in trash to original location &#8211; I already wondered why it took so long to get such a simple feature. It&#8217;s not that I&#8217;m going to use it since I never delete items that I don&#8217;t want to, but it&#8217;s nice to have.</li>
<li>The archive manager to unzip, untar, &#8230; files now shows a nice progress bar and an option to navigate to the target location when the process is complete. It&#8217;s strange how a minor change can improve usability a lot.</li>
<li>Tabbed file browsing in nautilus &#8211; one of the so-called big features of this release. I haven&#8217;t get used to it yet (old habits never die, right?) but I might find it more useful than opening several window in the future.</li>
<li>An overal speed improvement while working. During my initial comparisons, it seems to consume less memory as well.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/upgrade-to-gnome-224/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moblock &#8211; Host Based Internet Traffic Filtering</title>
		<link>http://www.nepherte.be/moblock-host-based-internet-traffic-filtering/</link>
		<comments>http://www.nepherte.be/moblock-host-based-internet-traffic-filtering/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 18:47:04 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[host based blocking]]></category>
		<category><![CDATA[ip blocking]]></category>
		<category><![CDATA[Moblock]]></category>
		<category><![CDATA[Mobloquer]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=147</guid>
		<description><![CDATA[MoBlock is a linux console application that blocks connections from/to hosts listed in a file in peerguardian format (guarding.p2p). It uses iptables ipqueue userspace library and it is very light in resource usage (cpu, ram). So far for the uncomprehensive official explanation. Basically it&#8217;s just an application that enables you to block internet traffic based [...]]]></description>
			<content:encoded><![CDATA[<p>MoBlock is a linux console application that blocks connections from/to hosts listed in a file in peerguardian format (guarding.p2p). It uses iptables ipqueue userspace library and it is very light in resource usage (cpu, ram). So far for the uncomprehensive official explanation. Basically it&#8217;s just an application that enables you to block internet traffic based on large lists of IP address ranges in order to protect your privacy&#8230;and who doesn&#8217;t want privacy right?</p>
<p>The favourite appliance for most people is to obscure their illegal torrent traffic but they often don&#8217;t realise it can also be used to block spam, adware and hijacked systems part of a bot network, a far more useful purpose. The available block lists with their description are (I might have missed one or two):</p>
<ul>
<li>Microsoft: This list covers all the known Microsoft Corp ranges.<br />
It also covers all their known associated IP ranges from around the world.</li>
<li>Ads-trackers-and-bad-pr0n: This list contains advertising trackers and a short list of bad/intrusive porn sites. Use this list if you want to block advertising items that appear on websites while you surf.</li>
<li>Bogon: This list is automatically generated daily from a list published at CompleteWhois. Bogons is the name used to describe IP blocks not allocated by IANA and RIRs to ISPs and organizations plus all other IP blocks that are reserved for private or special use by RFCs (the actual term bogons comes from word bogus, as in bogus IP announcements). As these IP blocks are not allocated or specially reserved, such IP blocks should not be routable and used on the internet, however some of these IP blocks do appear on the net primarily used by those individuals and organizations that are often specifically trying to avoid being identified and are often involved in such activities as DoS attacks, email abuse, hacking and other security problems. These activities obviously pose great danger to everyone and ISPs should try to filter all these bad IP routes and we are trying to help in that by working to create complete detailed list of unassigned bogon ips based on whois data.</li>
<li>Dshield: This list contains known Hackers and such people in it. More information can be found at the DShield Website.</li>
<li>Edu: This list contains all known Educational Institutions &#8211; University IP ranges.</li>
<li>Fornonlancomputers: Non-LAND list 0.*, 10.* and 192.168.*.</li>
<li>Hijacked: This list is automatically updated from CompleteWhois. Hijacked IP space are IP blocks that are being used without permission by organizations that have no relation to original organization (or its legal successor) that received the IP block. In essence it&#8217;s stealing of somebody else&#8217;s IP resources.</li>
<li>Iana-multicast: IANA multicast addresses.</li>
<li>Iana-private: IANA private addresses.</li>
<li>Level1: This list blocks known anti-p2p companies. It contains p2p trackers like Mediasentry, Mediaforce, and known fake p2p file sources from companies like Overpeer. The list also contains all known Government &#8211; Military &#8211; Science &#8211; Research Labs and Bad Education facilities IP addresses collected by the Bluetack Team. Basically this list will block all kinds of internet connections that most people would rather not have during their internet travels.</li>
<li>Level2: The Level 2 blocklist includes Banks, Financial Institutions, Corporations etc&#8230;</li>
<li>Level3: This list contains ranges that don&#8217;t fit into the Level1 or Level2 Lists. This ranges are minor threads but some people don&#8217;t like those ranges to connect to them. Be aware that you might block at lot of stuff while surfing with this list. Akamai server, Yahoo ranges, dodgy ISP&#8217;s for example are part of this list.</li>
<li>Proxy: Tor and miscellaneous proxies.</li>
<li>Spider: This list is intended to be used by webmasters to block hostile spiders from their web sites. Automated software programs also known as spiders or bots, survey the Web and build their databases for search engines and some are used to track people down to automatically serve them with copyright violation notices.</li>
<li>Spyware: This list is a compilation of known malicious SPYWARE and ADWARE IP Address ranges. It is compiled from various sources, including other available Spyware Blacklists, HOSTS files, from research found at many of the top Anti-Spyware forums, logs of Spyware victims and also from the Malware Research Section here at Bluetack.</li>
<li>Temp: This is a list of people who have been reported for bad deeds in p2p. Having files that contain viruses and many other things.</li>
</ul>
<p>A hell of a list, but quite useful too. If you&#8217;re not into the whole &#8220;command line thing&#8221;, there also exists a graphical user friendly front-end called Mobloquer.</p>
<p>Most linux distributions allow you to install moblock with their package manager, otherwise you have to compile it yourself. Ubuntu has extensively documented information about moblock. You can find it here: <a href="https://help.ubuntu.com/community/MoBlock">https://help.ubuntu.com/community/MoBlock</a>. When you start moblock, it is likely you don&#8217;t have a internet connection anymore as moblock is blocking it. You can get your internet back by whitelisting your local area network, for example192.168.0.0/24 . It is also possible to access ip addresses that are included in the block lists through a specific port. In order to do so, you have to white list it. As mentioned before, configuration can be done in the terminal (by edithing /etc/moblock/moblock.conf) or in mobloquer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/moblock-host-based-internet-traffic-filtering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discovering New Applications</title>
		<link>http://www.nepherte.be/discovering-applications/</link>
		<comments>http://www.nepherte.be/discovering-applications/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 13:26:29 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[chat client]]></category>
		<category><![CDATA[image viewer]]></category>
		<category><![CDATA[music player]]></category>
		<category><![CDATA[text editor]]></category>
		<category><![CDATA[torrent client]]></category>
		<category><![CDATA[web browser]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=3</guid>
		<description><![CDATA[One of the great strenghts of GNU Linux is its wide variaty of applications. There are dozens, if not hundreds, of music players and chat programs for this platform. A common joke going around in the linux community is &#8220;Why don&#8217;t you program another music player?&#8221; in reply to developpers who don&#8217;t know what to [...]]]></description>
			<content:encoded><![CDATA[<p>One of the great strenghts of GNU Linux is its wide variaty of applications. There are dozens, if not hundreds, of music players and chat programs for this platform. A common joke going around in the linux community is &#8220;Why don&#8217;t you program another music player?&#8221; in reply to developpers who don&#8217;t know what to do in their spare free time. It confuses a lot of new users; they simply can&#8217;t decide what particular program they have to choose. Even I, who have been using linux for a couple years now, don&#8217;t know them all. Every now and then I discover a new program that I find better than the one I&#8217;m currently using. What follows are some that I discovered the last couple of months.</p>
<p><strong>Emesene</strong><br />
Yet another chat program. I used pidgin before, a multi protocol chat program, but now I switched to Emesene following one of the basic principles of linux &#8220;Make one program for a specific task and make sure it does the job well&#8221;. It is solely for the MSN protocol and I can tell you, it does the job very well. It includes everything you&#8217;d want from a chat client except for voice chat and webcam support. But then again, only aMSN has those features and I despise aMSN (no offence to the creator though).</p>
<p><strong>Gnome-MPlayer</strong><br />
A video player based upon the superiour MPlayer. Though there are a lot of front-ends for MPlayer in circulation (gmplayer, SMPlayer, &#8230;), its approach is different from everything else: Keep it simple and stupid (KISS). You won&#8217;t find any fancy features here and the configuration menu is trimmed to the strict necessary options. If you do want to change more options, you can still directly put it into the .mplayer configuration file. Note that, in spite of the name, it doesn&#8217;t have gnome dependencies so you can safely use it in your openbox or fluxbox setup. It doesn&#8217;t consume much ram either. It also comes with a browser media plugin (gecko-mplayer) so you can see media in your browser directly.</p>
<p><strong>Mirage</strong><br />
A lightweight image viewer. I don&#8217;t have much to say about this one. It&#8217;s just a lot better than &#8230;let&#8217;s say the bloated F-Spot.</p>
<p><strong>Midori</strong><br />
I don&#8217;t use this web browser as I probably will never abandon my beloved Firefox, but it is certainly worth mentioning this lightweight juwel in the world of web browsing dominated by Opera and Firefox. It uses the fast webkit render engine, acquiring 100/100 on the acid3 test. Despite being in a &#8220;pre-alpha&#8221; stage (it has version 0.0.21 as of writing), its performance is very promessing. I&#8217;m sure we will hear a lot more about Midori in the future.</p>
<p><strong>Rtorrent</strong><br />
With no doubt the best torrent client around. It is a terminal application and very lightweight as well. It includes all the features you&#8217;d want from a torrent client: encryption, DHT, bandwith and peer throttling, torrent resuming, &#8230;It can also monitor a directory for torrents. When there are torrent files in it, it will start them automatically. Nifty huh.</p>
<p><strong>Mpd and ncmpc</strong><br />
To confirm the cliché, I couldn&#8217;t but mention this one too. A console music player.<em> </em>It is a lot more than just a music player. Mpd allows you to control the music on a computer remotely, or in other words, you can start/stop music, manage playlists and a lot more on a computer remotely. Ideal for integration with a stereo system.</p>
<p><strong>Gedit</strong><br />
Obviously I knew this one already. It is the default text editor in GNOME. What I didn&#8217;t know is that there exists a latex plugin for it as well. Not only syntax highlighting, but also command completion and compile/preview buttons are included. Bye bye Kile, hello Gedit! No more KDE dependencies on my computer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/discovering-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Desktop October 2008</title>
		<link>http://www.nepherte.be/desktop-october-2008/</link>
		<comments>http://www.nepherte.be/desktop-october-2008/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 18:44:20 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Screenshots]]></category>
		<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[Screenshot]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=139</guid>
		<description><![CDATA[My first screenshot of my Arch Linux desktop. Here are the theme &#38; configuration details of my desktop setup: Operating System: Arch Linux GTK: Customized Ubuntu Human Window Manager: Metacity Theme Chocolate Icons: Ubuntu Human Icon Set Wallpaper: Flying Penguins I&#8217;ve fnally removed Compiz. The shiny effects a lot of linux users show off with [...]]]></description>
			<content:encoded><![CDATA[<p>My first screenshot of my Arch Linux desktop. Here are the theme &amp; configuration details of my desktop setup:</p>
<ul>
<li>Operating System: Arch Linux</li>
<li>GTK: Customized Ubuntu Human</li>
<li>Window Manager: Metacity Theme Chocolate</li>
<li>Icons: Ubuntu Human Icon Set</li>
<li>Wallpaper: Flying Penguins</li>
</ul>
<p><a href="http://www.nepherte.be/wp-content/uploads/2008/12/desktop_october_2008.png"><img class="alignnone size-medium wp-image-46" title="Desktop October 2008" src="http://www.nepherte.be/wp-content/uploads/2008/12/desktop_october_2008-300x240.png" alt="Desktop October 2008" width="300" height="240" /></a></p>
<p>I&#8217;ve fnally removed Compiz. The shiny effects a lot of linux users show off with are far from productive and get boring after a while. For the record, the music player is Banshee.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/desktop-october-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Farewell Ubuntu, Hello Arch!</title>
		<link>http://www.nepherte.be/farewell-ubuntu-hello-arch/</link>
		<comments>http://www.nepherte.be/farewell-ubuntu-hello-arch/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 13:27:57 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=31</guid>
		<description><![CDATA[During my first steps with linux, I&#8217;ve tried several linux distributions going from Fedora to Suse to Ubuntu but the latter one is the primary reason why I switched to linux-only computers. Ubuntu kept me going for a year. I was eagerly learning about linux and Ubuntu in particular, but today it can&#8217;t give me [...]]]></description>
			<content:encoded><![CDATA[<p>During my first steps with linux, I&#8217;ve tried several linux distributions going from Fedora to Suse to Ubuntu but the latter one is the primary reason why I switched to linux-only computers. Ubuntu kept me going for a year. I was eagerly learning about linux and Ubuntu in particular, but today it can&#8217;t give me a new challenge any longer. Because I wanted to learn more about linux, I decided to leave Ubuntu and switch to Arch Linux.</p>
<p>Arch Linux has several advantages over Ubuntu, at least to me. First of all, there&#8217;s no easy to use graphical installer. It uses a ncurse-based console installer where you have to configure everything yourself &#8211; allowing me to learn more about how linux works under the hood (although Arch uses more of a BSD-style of configuration files). It forces you to think about every step in the installation process. Second, Arch is a lot faster than Ubuntu. Because you have to install it from scratch and configure it yourself, you install what you need to make Arch work on your computer only and optimize it to suit your needs. That way you&#8217;re not fed up with unused packages and libraries like Ubuntu. Third, Arch is a rolling release distribution. This means you have to install it only once and from then on you can use the package manager (pacman) to keep your system updated. This is opposed to Ubuntu, where there is a 6 month release cycle. And last but not least, Arch has a great package manager. I&#8217;m very picky about package managers. They have to be fast, resolve dependencies and easy to use. I&#8217;ve been used to apt, my favorite package manager that comes with Ubuntu. Luckily pacman does the job in a similar, even faster way as apt.</p>
<p>One &#8216;downside&#8217; of Arch is that the documentation, support and community isn&#8217;t as big as Ubuntu. Now don&#8217;t get me wrong. Arch has a great, but limited documentation wiki. The community is small but friendly and willing to help. Luckily linux is linux. Instructions given for one distribution, say Ubuntu, can easily be adapted for Arch if you&#8217;re experienced enough.</p>
<p>Hopefully my Arch system will last even longer than Ubuntu. Next in line is my Sony Vaio SZ61/XNC. May the installation of Arch on my laptop be as smooth as on my desktop.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/farewell-ubuntu-hello-arch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: Compile ALSA Drivers</title>
		<link>http://www.nepherte.be/how-to-compile-alsa-drivers/</link>
		<comments>http://www.nepherte.be/how-to-compile-alsa-drivers/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 14:37:04 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ALSA]]></category>
		<category><![CDATA[sound]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=112</guid>
		<description><![CDATA[0. Contents Introduction Prerequisites Compilation and Installation Uninstall Troubleshooting 1. Introduction Advanced Linux Sound Architecture, known by the acronym ALSA, is a linux kernel component providing device drivers for sound cards. It replaced the original Open Sound System (OSS) since v2.6 of the linux kernel, while still providing backwards compatibility for it. Among the ALSA [...]]]></description>
			<content:encoded><![CDATA[<p><strong>0. Contents</strong></p>
<ol>
<li>Introduction</li>
<li>Prerequisites</li>
<li>Compilation and Installation</li>
<li>Uninstall</li>
<li>Troubleshooting</li>
</ol>
<p><strong>1. Introduction</strong></p>
<p><a href="http://www.alsa-project.org/">Advanced Linux Sound Architecture</a>, known by the acronym ALSA, is a linux kernel component providing device drivers for sound cards. It replaced the original <a href="http://www.opensound.com/">Open Sound System</a> (OSS) since v2.6 of the linux kernel, while still providing backwards compatibility for it. Among the ALSA features you find:</p>
<ul>
<li>Efficient support for all type of audio interfaces, covering most sound cards from consumer sound cards to professional audio interfaces.</li>
<li>Fully modularized sound drivers.</li>
<li>SMP and thread-save design.</li>
<li>User space library (alsa-lib)</li>
</ul>
<p>On a side note I have to mention that OSS, now developed by 4Front Technologies, is not a deprecated project at all as some of you may think. The latest version as of writing is OSSv4 and a full alternative for ALSA. You might want to use it if you are using a Creative X-Fi sound card. These sound cards are not supported by alsa yet. OSSv4 on the contrary already supports it with beta drivers.</p>
<p>Most linux distributions, including Ubuntu, have ALSA packages, which you can install/reinstall with the package manager that comes with your distribution. These packages should already have been installed since ALSA is by default the sound component in the kernel as mentioned before. In some cases, the sound on a newly installed or updated system doesn&#8217;t work and as a last resort you might have to install the drivers manually. Other sound cards require a later version of ALSA to work. Before you go all the way into freak mode and compile the alsa drivers manually (not that it is hard by the way), I suggest you troubleshoot your current setup first. See the Troubleshooting Section at the end of this guide for more information.</p>
<p>This guide is intended on compiling the alsa drivers manually as a last resort. This should not interfere with the current installed alsa packages. The effects are completely reversible and are explained in the Uninstall Section. Now let&#8217;s head on with the actual installation.</p>
<p><strong>2. Prerequisites</strong></p>
<p><strong>Step 1</strong> Download the latest version of the following components from <a href="http://www.alsa-project.org/">the alsa-project website</a> (do not pick the release candidates unless it is really the first version that includes support for your sound card):</p>
<ul>
<li>alsa-driver</li>
<li>alsa-lib</li>
<li>alsa-utils</li>
</ul>
<p><strong>Step 2</strong> Install the required packages and kernel headers:<br />
<code>sudo aptitude install build-essential libncurses-dev gettext linux-headers-`uname -r`</code></p>
<p><strong>Step 3</strong> Setup the installation directory, navigate to the it, copy and unpack the archives (I will be assuming you have downloaded the archives in your home directory, otherwise replace it with the directory where the packages are located in):<br />
<code>sudo mkdir -p /usr/src/alsa<br />
cd /usr/src/alsa<br />
sudo cp ~/alsa* .<br />
sudo tar xvfj alsa-driver*<br />
sudo tar xvfj alsa-lib*<br />
sudo tar xvfj alsa-utils*</code></p>
<p><strong>3. Compilation and Installation</strong></p>
<p><strong>Step 4</strong> Look up your sound card in <a href="http://www.alsa-project.org/main/index.php/Matrix:Main">the sound card matrix</a> on the alsa-project site. On the page of your sound card you will find specific information on how to compile alsa for your card. Take note of ./compile &#8211;with-cards=&lt;yourmodel&gt; for now. We will use this to configure the alsa driver, the first of three components:<br />
<code>cd alsa-driver*<br />
sudo ./configure --with-cards=&lt;valueyoulookedupearlier&gt; --with-kernel=/usr/src/linux-headers-$(uname -r) --with-sequencer<br />
sudo make<br />
sudo make install</code></p>
<p>Pay attention to the last output of each command above. Possible errors are always listed as last. There&#8217;s no point in continuing if the above didn&#8217;t work. ./configure mostly spits out not satisfied package requirements, which we normally did satisfy in the first point.</p>
<p>When no errors occured continue compiling alsa-lib:<br />
<code>cd ../alsa-lib*<br />
sudo ./configure<br />
sudo make<br />
sudo make install</code><br />
When no errors occurred continue compiling and installing alsa-utils:<br />
<code>cd ../alsa-utils*<br />
sudo make<br />
sudo make install</code></p>
<p><strong>Step 5</strong> Now go back to the sound card page on the alsa-project website. Somewhere on that page there&#8217;s a code section to insert (modprobe) the modules in the kernel somewhat resembling to:<br />
<code>sudo modprobe snd-yourcard ; sudo modprobe snd-pcm-oss ; sudo modprobe snd-mixer-oss ; sudo modprobe snd-seq-oss</code><br />
Copy and paste that section of the alsa website and paste it into the terminal. Be sure that snd-yourcard matches your sound card.</p>
<p>You should now have sound working for this session. If you don&#8217;t have sound, be sure to check that no channels are muted. You can adjust/check your sound channel level with alsamixer from the alsa-utils package:<br />
<code>alsamixer</code>You can unmute the sound with the m key and raise the volume with the arrow keys.</p>
<p>If you still have no sound, we might correct it with manually specifying the parameters in /etc/modprobe.d/alsa-base. We are doing this later on, so just continue with this guide.</p>
<p><strong>Step 6</strong> To make sure you have sound when you start up your computer again, we will automatically load the correct modules for your sound card (the ones we inserted in the kernel earlier). Open up /etc/modules<br />
<code>gksudo gedit /etc/modules</code></p>
<p>To see what you have to put in this file, you will have to go to the sound card page on alsa-project again. There&#8217;s a section &#8220;setting up modprobe and kmod support&#8221;. Copy the code and paste it at the bottem of /etc/modules. The code you have to insert resembles to:<br />
# ALSA portion<br />
alias char-major-116 snd<br />
alias snd-card-0 snd-&lt;yourcard&gt;</p>
<p># module options should go here<br />
&lt;insert the modules we modprobed earlier in here!!!&gt;</p>
<p># OSS/Free portion<br />
alias char-major-14 soundcore<br />
alias sound-slot-0 snd-card-0</p>
<p># card #1<br />
alias sound-service-0-0 snd-mixer-oss<br />
alias sound-service-0-1 snd-seq-oss<br />
alias sound-service-0-3 snd-pcm-oss<br />
alias sound-service-0-8 snd-seq-oss<br />
alias sound-service-0-12 snd-pcm-oss</p>
<p><strong>Step 7</strong> Reboot your computer. You should have sound by now. If not, don&#8217;t worry. We will manually specify the model of your card in /etc/modprobe.d/alsa-base. This mostly resolves issues with headphone &amp; mic jacks not working. Find out what model of sound card you have:<br />
<code>cat /proc/asound/card0/codec#* | grep Codec</code></p>
<p>It will return the chipset model of your sound card(s), for example: &#8220;Codec: Realtek ALC260&#8243;, so your sound card is ALC260. Now browse to the alsa documentation page: <a href="http://www.mjmwired.net/kernel/Documentation/sound/alsa/ALSA-Configuration.txt">&#8220;http://www.mjmwired.net/kernel/Documentation/sound/alsa/ALSA-Configuration.txt</a> Search this document for (a part of) your model, for example ALC260. You will find one or more model options resembling to:<br />
<code>hp              HP machines<br />
hp-3013   HP machines (3013-variant)<br />
fujitsu        Fujitsu S7020<br />
acer           Acer TravelMate<br />
basic         fixed pin assignment (old default model)<br />
auto            auto-config reading BIOS (default)</code></p>
<p>Pick the one that comes closest to the one you have. Say you have an fujitsu laptop, choose fujutsu. Paste the following at the end of /etc/modprobe.d/alsa-base:<br />
<code>options snd-yourcard model=MODEL</code></p>
<p>In our example, MODEL is replaced by fujitsu. Now reboot your computer and you should have sound fully functional.</p>
<p><strong>4. Uninstall</strong></p>
<p>You can revert the whole installation process very easily if you still have the /usr/src/alsa folder where we compiled everything. Just type this command in /usr/src/alsa:<br />
<code>cd /usr/src/alsa<br />
sudo make uninstall</code></p>
<p><strong>5. Troubleshooting</strong></p>
<p>Some cards still might not work after following the steps in this guide. These are very card specific problems and I&#8217;m not going to cover them all here. LordRaiden posted a <a href="http://ubuntuforums.org/showthread.php?t=205449">Comprehensive Sound Problem Solutions Guide</a> on the <a href="http://ubuntuforums.org/">Ubuntu Forums</a>. I suggest you go look into it if you want a complete trouble shooting guide.</p>
<p><strong>Muted channels</strong><br />
Sometimes you just forget that every channel is still muted. Slide the volume up with alsamixer or any other volume manager:<br />
<code>alsamixer</code></p>
<p><strong>Setting system &gt; preferences &gt; sound</strong><br />
Navigate to system &gt; preferences &gt; sound and explicitly configure it to use PulseAudio or alsa. PulseAudio should normally work as it is a sound server, a background process accepting sound input from one or more sources (processes or capture devices) and redirecting it to one or more sinks, in this case our alsa.</p>
<p><strong>Playing with probe_mask.</strong><br />
A lot of cards suffer from the headphone/mic channel not working. First you have to check if it is enabled. You can do this by right clicking on the sound icon in the notification area, choosing open volume mixer. Choose the switches tab and verify that internal mic is checked. If that is already the case, you could change the options line in /etc/modprobe.d/alsa-base to look something like this:<br />
<code>options snd-yourcard model=MODEL probe_mask=1</code><br />
You might want to change the number of probe_mask if it doesn&#8217;t work rightaway.</p>
<p><strong>Get help</strong><br />
If you still don&#8217;t get sound working, you should check dmseg on messages with snd_ entries. Run through the <a href="http://ubuntuforums.org/showthread.php?t=205449">Comprehensive Sound Problem Solutions Guide</a>, open up a new thread on <a href="http://ubuntuforums.org/">Ubuntu Forums</a> and post the following information:</p>
<ul>
<li>dmesg (or dmesg | grep snd)</li>
<li>aplay -l</li>
<li>lspci or lsusb (in case you have a usb sound card)</li>
<li>your attempts from the problem solutions guide</li>
<li>other information or attempts</li>
</ul>
<p>People will try and help you out with your problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/how-to-compile-alsa-drivers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Desktop May 2008</title>
		<link>http://www.nepherte.be/desktop-may-2008/</link>
		<comments>http://www.nepherte.be/desktop-may-2008/#comments</comments>
		<pubDate>Fri, 02 May 2008 12:57:42 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Screenshots]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[Screenshot]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=99</guid>
		<description><![CDATA[Every month UbuntuForums opens up a new topic in the Community Cafe to let members post their desktop of the month. This leads to topics with over 800 posts each month, only proving the UbuntuForums community being very active and large. The results are often astonishing; linux users having a beautiful desktop setup. It gave [...]]]></description>
			<content:encoded><![CDATA[<p>Every month <a href="http://ubuntuforums.org/">UbuntuForums</a> opens up a new topic in the Community Cafe to let members post their desktop of the month. This leads to topics with over 800 posts each month, only proving the UbuntuForums community being very active and large. The results are often astonishing; linux users having a beautiful desktop setup. It gave me the idea the post my own for the first time. Here are the theme &amp; configuration details of my desktop setup:</p>
<ul>
<li>Operating System: Ubuntu Linux</li>
<li>GTK: Default Ubuntu Human Theme</li>
<li>Window Manager: Emerald Theme Ubuntu Golden</li>
<li>Wallpaper: Yoritsuki Night</li>
<li>Compiz Fusion &amp; Conky</li>
</ul>
<p><a href="http://www.nepherte.be/wp-content/uploads/2008/12/desktop_may_2008_1.png"><img class="alignnone size-medium wp-image-100" title="Desktop (1) May 2008" src="http://www.nepherte.be/wp-content/uploads/2008/12/desktop_may_2008_1-300x187.png" alt="Desktop (1) May 2008" width="300" height="187" /></a></p>
<p><a href="http://www.nepherte.be/wp-content/uploads/2008/12/desktop_may_2008_2.png"><img class="alignnone size-medium wp-image-101" title="Desktop (2) May 2008" src="http://www.nepherte.be/wp-content/uploads/2008/12/desktop_may_2008_2-300x187.png" alt="Desktop (2) May 2008" width="300" height="187" /></a></p>
<p><a href="http://www.nepherte.be/wp-content/uploads/2008/12/desktop_may_2008_3.png"><img class="alignnone size-medium wp-image-102" title="Desktop (3) May 2008" src="http://www.nepherte.be/wp-content/uploads/2008/12/desktop_may_2008_3-300x187.png" alt="Desktop (3) May 2008" width="300" height="187" /></a></p>
<p><a href="http://www.nepherte.be/wp-content/uploads/2008/12/desktop_may_2008_4.png"><img class="alignnone size-medium wp-image-35" title="Desktop (4) May 2008" src="http://www.nepherte.be/wp-content/uploads/2008/12/desktop_may_2008_4-300x187.png" alt="Desktop (4) May 2008" width="300" height="187" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/desktop-may-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: Spim on Linux</title>
		<link>http://www.nepherte.be/spim-on-linux/</link>
		<comments>http://www.nepherte.be/spim-on-linux/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 19:33:57 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Assembly]]></category>
		<category><![CDATA[MIPS]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=11</guid>
		<description><![CDATA[Spim is a self-contained simulator that will run MIPS32 assembly language programs. It reads and executes assembly language programs written for this processor architecture. Spim also provides a simple debugger and minimal set of operating system services. Spim does not execute binary (compiled) programs, though it can be used to simulate software you wrote in [...]]]></description>
			<content:encoded><![CDATA[<p>Spim is a self-contained simulator that will run MIPS32 assembly language programs. It reads and executes assembly language programs written for this processor architecture. Spim also provides a simple debugger and minimal set of operating system services. Spim does <span style="text-decoration: underline;">not</span> execute binary (compiled) programs, though it can be used to simulate software you wrote in the MIPS assembly language. Spim is console based but comes together with xspim, a graphical frontend for spim. I needed it for a course and this is how I installed it on Ubuntu.</p>
<p><strong>Getting the requirement<br />
</strong>Before we can compile spim and xspim, we will need some extra packages. The following command will install all the required packages:</p>
<p><code>sudo apt-get install flex bison byacc libx11-dev libxaw7-dev build-essential linux-headers-`uname -r`</code></p>
<p>The latest version of spim can be downloaded <a href="http://www.cs.wisc.edu/%7Elarus/SPIM/spim.tar.gz" target="_blank">here</a> or can be fetched with the following command:</p>
<p><code>wget http://www.cs.wisc.edu/~larus/SPIM/spim.tar.gz</code></p>
<p><strong><br />
Installing Spim<br />
</strong><code>tar xvfz spim.tar.gz<br />
cd spim-7.3/spim<br />
make<br />
make install</code><br />
<strong>Installing Xspim</strong><br />
<code>cd ../xspim<br />
xmkmf<br />
make<br />
make install</code></p>
<p>Now that you installed spim and xspim you can launch it by typing xspim in the console.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/spim-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: Setup Apache, PHP and MySQL</title>
		<link>http://www.nepherte.be/setup-apache-php-and-mysql/</link>
		<comments>http://www.nepherte.be/setup-apache-php-and-mysql/#comments</comments>
		<pubDate>Sat, 01 Sep 2007 18:31:36 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=133</guid>
		<description><![CDATA[Something every developer should have. One can&#8217;t just put his development work online for testing purposes. That&#8217;s where an Integrated Development Environment comes in handy. Before publishing websites (or anything else for that matter), one should have tested the whole website locally on his or her computer. This tutorial will guide you through some easy [...]]]></description>
			<content:encoded><![CDATA[<p>Something every developer should have. One can&#8217;t just put his development work online for testing purposes. That&#8217;s where an Integrated Development Environment comes in handy. Before publishing websites (or anything else for that matter), one should have tested the whole website locally on his or her computer. This tutorial will guide you through some easy steps to install an Integrated Development Environment (IDE) in Linux. This guide is written with Ubuntu as linux distribution in mind, but other distributions should have similar install instructions. Just replace apt-get install<br />
with your package installer and corresponding package name in the repositories. After following these steps you will have Apache, PHP and MySQL working on your local linux machine. It is not meant to serve as a web server. You&#8217;ll want to take some extra security measures.</p>
<p><strong>Install Apache 2</strong><br />
<code>sudo apt-get install apache2</code></p>
<p><strong>Install PHP 5</strong><br />
<code>sudo apt-get install php5</code></p>
<p><strong>Install MySQL 5</strong><br />
<code>sudo apt-get install mysql-server<br />
sudo apt-get install libapache2-mod-auth-mysql<br />
sudo apt-get install php5-mysql</code><br />
I also recommended you to install phpMyAdmin to access your SQL database easily via your web browser:<br />
<code>sudo apt-get install phpmyadmin</code></p>
<p><strong>Configuring MySQL</strong><br />
For the default configuration of MySQL you can use this command:<br />
<code>cd /usr<br />
sudo ./bin/mysql_install_db --user=mysql</code><br />
To access MySQL with the root user type:<br />
<code>sudo mysql -u root</code><br />
By default, there is no password set for the root user. This is absolutely NOT recommended, so we will set a password for root:<br />
<code>mysql&gt; SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');</code><br />
with yourpassword being the password you want to have (deuh!&#8230;.)</p>
<p>For normal use it is advised to create a regular user. To create a new user:<br />
<code>mysql&gt; GRANT PRIVILEGE1, PRIVILEGE2 ON *.* TO 'yourusername'@'localhost' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;</code><br />
with yourusername, yourpassword, privilige1 and privilige2 the user, password and privileges you want.</p>
<p><strong>Configuring Apache</strong><br />
To set your user as the php administrator:<br />
<code>gksudo gedit /etc/apache2/apache2.conf</code><br />
and find the line that starts with &#8220;User&#8221; and &#8220;Group&#8221;. Change it to the user and group you work with. Now restart apache:<br />
<code>sudo /etc/init.d/apache2 restart</code></p>
<p><strong>Let MySQL work with PHP</strong><br />
<code>gksudo gedit /etc/php5/apache2/php.ini</code><br />
and remove &#8220;;&#8221; in front of the line &#8220;;extension=mysql.so&#8221; and restart apache again:<br />
<code>sudo /etc/init.d/apache2 restart</code><br />
Now everything is set and should be working. You can access your server by typing <a href="http://localhost">http://localhost</a> or <a href="http://127.0.0.1">http://127.0.0.1</a> in your web browser. The directory for your web files is /var/www or /srv/http depending on your linux distribution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/setup-apache-php-and-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
