<?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>Nixadmins.net &#187; Linux</title>
	<atom:link href="http://www.nixadmins.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nixadmins.net</link>
	<description>Blogging for knowledge</description>
	<lastBuildDate>Mon, 24 May 2010 08:06:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Quick Tip: Installing Linux from USB-stick</title>
		<link>http://www.nixadmins.net/2009/11/25/quick-tip-installing-linux-from-usb-stick/</link>
		<comments>http://www.nixadmins.net/2009/11/25/quick-tip-installing-linux-from-usb-stick/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 11:28:46 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/11/25/quick-tip-installing-linux-from-usb-stick/</guid>
		<description><![CDATA[This is a short tip so I will remember how to do this the next time I need to. It’s not a lengthy article or in-depth howto. Anyway, today I wanted to try out the latest Ubuntu (9.10) on my Lenovo X200s and my docking station was at work so I had no access to [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short tip so I will remember how to do this the next time I need to. It’s not a lengthy article or in-depth howto. Anyway, today I wanted to try out the latest Ubuntu (9.10) on my Lenovo X200s and my docking station was at work so I had no access to a dvd drive.</p>
<p>Installing from a USB-stick should be trivial so I decided to try it out and googled around to find some information on how to put Ubuntu on my Kingston Datatraveler. </p>
<p>Googling I found this wonderful program that, if needed, even downloads the files for you. But since I already had the Ubuntu ISO I could just start up UNetBootin and have it set Ubuntu on my USB-stick.</p>
<p>To do this just download <a title="http://unetbootin.sourceforge.net/" href="http://unetbootin.sourceforge.net/">http://unetbootin.sourceforge.net/</a> and start it. Select your ISO and the destination drive and you’re done. After that you have a fully functional USB Linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/11/25/quick-tip-installing-linux-from-usb-stick/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Are 64-bit operating systems ready for the desktop?</title>
		<link>http://www.nixadmins.net/2009/04/27/are-64-bit-operating-systems-ready-for-the-desktop/</link>
		<comments>http://www.nixadmins.net/2009/04/27/are-64-bit-operating-systems-ready-for-the-desktop/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 11:00:48 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[Drivers]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/04/27/are-64-bit-operating-systems-ready-for-the-desktop/</guid>
		<description><![CDATA[I’ve been asking myself this for a while now. 64-bit has been a standard for several years now and still computers are sold with 32-bit operating systems. Why is this?
The only reliable 64-bit OS I’ve used was my MacBook Pro which I sold. It worked and I never really had any driver issues with it. [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been asking myself this for a while now. 64-bit has been a standard for several years now and still computers are sold with 32-bit operating systems. Why is this?</p>
<p><strong><em>The only reliable 64-bit OS I’ve used was my MacBook Pro which I sold</em></strong>. It worked and I never really had any driver issues with it. So why are PC’s still sold with <em>XP or Vista 32-bit</em>. XP and Vista both have 64-bit versions and still vendors don’t supply decent drivers. Why? It makes me almost mad to be using a 64-bit OS only to notice I can’t get this or that working on it since there are no drivers. Which naturally makes me ask, has Linux passed Windows in hardware compatibility when it comes to 64-bit?</p>
<p>I recently got my <a href="http://www.nixadmins.net/2009/03/16/lenovo-x200s-rant/">Lenovo X200s</a> and it came with Windows Vista business 32-bit. I ran it for a while but since it had 4Gb of RAM I wanted to try out Vista Enterprise 64-bit. Vista 64 has been a ride of ups and downs. The Intel graphics controller driver keeps crashing, even after several updates and the one thing I miss the most is my <a href="http://www.targus.com/uk/product_details.asp?sku=PA088E" target="_blank">Targus USB-to-Serial cable</a>. As I work with network appliances I need a serial connection and these days it’s almost impossible to get a serial port in a laptop so the fallback is a usb-to-serial cable. Targus does not supply 64-bit drivers for the cable so I have to keep an old IBM T42 for this purpose.</p>
<p>What is it that makes the normally fast moving computer industry to keep on feeding the 32-bit OS? Is it really to much to ask to get drivers for my 64-bit OS?</p>
<p>Do you have similar feelings or does your 64-bit computer work like a charm? Please comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/04/27/are-64-bit-operating-systems-ready-for-the-desktop/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Running OpenVPN-gui 2.X in Windows Vista</title>
		<link>http://www.nixadmins.net/2009/02/13/running-openvpn-gui-2x-in-windows-vista/</link>
		<comments>http://www.nixadmins.net/2009/02/13/running-openvpn-gui-2x-in-windows-vista/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 21:30:24 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/02/13/running-openvpn-gui-2x-in-windows-vista/</guid>
		<description><![CDATA[This is a short short note how to get OpenVPN-GUI 2.X working under Windows Vista.
First of all you have to set it to always run as administrator. Go to the folder where it is installed and in the Bin folder you’ll find the OpenVPN-GUI executable. On the Compatibility tab you find Privilege Level, set it [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short short note how to get OpenVPN-GUI 2.X working under Windows Vista.</p>
<p>First of all you have to set it to always run as administrator. Go to the folder where it is installed and in the Bin folder you’ll find the OpenVPN-GUI executable. On the <strong>Compatibility</strong> tab you find<strong> Privilege Level</strong>, set it to <strong><em>Run this program as an Administrator</em></strong><strong><em></em></strong></p>
<p><strong><em><a href="http://www.nixadmins.net/wp-content/uploads/2009/02/ovpn-gui-runas.jpg"><img title="ovpn_gui_runas" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="517" alt="ovpn_gui_runas" src="http://www.nixadmins.net/wp-content/uploads/2009/02/ovpn-gui-runas-thumb.jpg" width="381" border="0" /></a></em></strong></p>
<p>&#160;</p>
<p>In your the parent folder find the <strong>config</strong> folder and open the config file. Add the following lines to the file.</p>
<p><strong><font color="#800000">route-method exe</font></strong></p>
<p><strong><font color="#800000">route-delay 2</font></strong></p>
</p>
<p><strong><font color="#800000"></font></strong></p>
<p><strong><font color="#800000"></font></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/02/13/running-openvpn-gui-2x-in-windows-vista/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux ready for the masses/desktops?</title>
		<link>http://www.nixadmins.net/2009/02/06/linux-ready-for-the-massesdesktops/</link>
		<comments>http://www.nixadmins.net/2009/02/06/linux-ready-for-the-massesdesktops/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 19:43:09 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.nixadmins.net/2009/02/06/linux-ready-for-the-massesdesktops/</guid>
		<description><![CDATA[Being a fairly active StumbleUpon user I see these posts about Linux being ready for the desktops all the time. Actually I’ve been reading about it since I started using Linux back in 2002. Still Linux has not made a big leap into the home user market or the enterprise market. Why is this? Linux [...]]]></description>
			<content:encoded><![CDATA[<p>Being a fairly active <a href="http://www.stumbleupon.com/" target="_blank">StumbleUpon</a> user I see these posts about Linux being ready for the desktops all the time. Actually I’ve been reading about it since I started using Linux back in 2002. Still Linux has not made a big leap into the home user market or the enterprise market. Why is this? Linux is a stable operating system that just keeps on working and you might think the TCO’s should help <a href="http://www.linux.com/whatislinux/119700" target="_blank">Linux</a> on it’s way to world domination also. Still we see Microsoft and their products are dominating the market. The article/post that got me to write this one can be found at the <a href="http://www.breakitdownblog.com/linux-driver-development-exploding/" target="_blank">breakingitdownblog.com</a>.</p>
<p>After commenting I got a nice reply from the author, and I do understand his worries about dealing with the Linux community, but I give the Linux community a lot of credit and hope any comments here are sensible and wont start a war. That was never my intention.</p>
<p>If you start reading this, please read all of it. Don’t comment after reading only half because you won’t get the point.</p>
<h2>Jungle of choice</h2>
<p>As I see it there are a few things that makes <a href="http://www.linux.com/whatislinux/119700" target="_blank">Linux</a> something administrators don’t want on their desktops. First of all, and this is something the open source community will hate, the number of choices. There are so many alternatives out there. Should you use <a href="http://www.redhat.com" target="_blank">RedHat</a>, <a href="http://www.novell.com" target="_blank">Novell,</a> <a href="http://www.ubuntu.com" target="_blank">Ubuntu</a>, <a href="http://www.debian.org" target="_blank">Debian</a>, <a href="http://www.gentoo.org" target="_blank">Gentoo</a> etc etc etc. Choice and competition is a good thing, but this is borderline ridiculous. If I don’t like your distribution or the way you manage your open source project I’ll just start my own. This is good right? No. This makes the jungle of open source products even worse. Let’s take a simple example, my parents. Go tell them to install <a href="http://www.linux.com/whatislinux/119700" target="_blank">Linux</a>. First of all, how would they find a distribution? Would they read why a certain distribution is good for them? No. Never. They buy a computer and are happy to pay the Microsoft toll because they are able to use it.</p>
<p>And when it comes down to it, that’s exactly what most people want to do with their computers. Use them, not find bugs, submit bug reports or join mailing lists.</p>
<h2>Office</h2>
<p>I work in an organization with around 1500 users. We like so many others use Microsoft Office in our day to day work. Why? Well I guess because so many others are. That might seem like a stupid reason but try to tell a user that he/she can’t open the document just received by email because we only use <a href="http://www.openoffice.org" target="_blank">OpenOffice.org</a>, the possibility of it going the other way around is <em>very</em> small. This was visible already when the new Office 2007 suite was launched, because it saves documents in docx by default and Office 2003 does not open them.</p>
<p>Thank god there is a document converter for Office 2003 so we dodged that bullet, by installing it for anyone needing it and now it’s going out by group policies. Next you’ll try to tell me well this might, and only might be true for the corporate users but how about home users. Well I’ll tell you the same thing here. If I receive documents to my personal mail it’s almost certainly written in Microsoft’s Office, not necessarily 2007 but a version of it anyway. Well if it is written in a previous version I might get lucky and the document, spreadsheet or whatever might work as it should, but for most cases it won’t, Microsoft macros work in mysterious ways. If it is in the 2007 .docx format, well then I have some work to do. To be clear, I’m not saying this is OOo’s fault. On the contrary, I guess Microsoft doesn’t go easy on projects like this. And looking at their market situation why would they.</p>
<p>Let’s get on with it. If I’m running Microsoft Windows I can get the compatibility pack, or use an online converter, t to a .doc and then open it it OOo. And that’s just it, you can’t expect the average user to do this, or even be interested in doing it. They might <a href="http://www.google.com" target="_blank">google</a> it and find the office converter install it and expect it to work. And it does.</p>
<p>Being a geek, word processors are not something that make me jump up and down of excitement, but I have tried OOo more than a few times. And it just doesn’t feel right, I can’t get it to do the things I want it to, not in the timeframe of learning I’m willing to use. I count my time in hard cash, and 3 hours of trying to make something work adds up to a Microsoft Office student license which you as a home user can buy and use, if your not making money with it.</p>
<p>You could argue that it took time to learn to use Office also, well it did. And that’s another reason for keeping it, why throw all those hours of training out the window if another program cant offer anything else than a smaller bill getting the software. It would be just plain madness.</p>
<h2>Management</h2>
<p>This is a big argument for me. I work with networks and servers and I like to keep the users as restricted as possible without making their daily work suffer. Also I want to be able to centrally manage users, passwords, desktop security settings, local firewalls and the installed software. Some of these are in fact possible to do in Linux. But it’s not as easy to manage as <a href="http://www.microsoft.com/windowsserver2003/technologies/directory/activedirectory/default.mspx" target="_blank">Microsoft’s Active Directory</a> with <a href="http://www.microsoft.com/smserver/default.mspx" target="_blank">systems center configuration manager</a>.</p>
<p>Group policies are another thing making <a href="http://www.microsoft.com/windowsserver2003/technologies/directory/activedirectory/default.mspx" target="_blank">Active directory</a> more attractive. We can handle system settings like services, WLAN, well just about anything via this sleek and fast interface, and most of the time it just works.</p>
<p>I do admit Microsoft’s products do have faults, but the good old pro/con list just doesn’t tip over to the advantage of Linux, at least not yet.</p>
<h2>File Servers</h2>
<p>As I said above I’ve been using Linux since 2002 and I still can’t always get file/folder permission set like I want them to. If you use shared folders, and I’d say every company today does you need a sane way of managing the shares. I like Microsoft’s approach to the security settings. Share and local settings are separated and in my little mind I can manage the settings just fine.</p>
<p>Nested groups helps a lot to. Since providing a group access to another groups files or folders helps to keep the rights simple. And if you manage a large file share it has to be easy and logical.</p>
<p><a href="http://www.microsoft.com/windowsserver2003/technologies/storage/dfs/default.mspx" target="_blank">Distributed File System</a> is another really nice feature of the Microsoft Server family. I wont go in-depth here but if you’re not familiar with it take a look at <a href="http://www.microsoft.com/windowsserver2003/technologies/storage/dfs/default.mspx" target="_blank">Microsoft DFS</a> pages.</p>
<p>To clear this up, I’m not saying these things are impossible to accomplish in other systems, I’m just saying it takes more work. And work hours cost money.</p>
<h2>Places I promote Linux</h2>
<p>Well after my short and maybe even evil rant about why Linux has issues I’m going to turn the table a little, because there are places I’d rather use Linux than any Microsoft product. To mention a few:</p>
<ul>
<li>Databases with information that could save/take lives. Like patient journals.</li>
<li>Backup systems, we use EMC Networker as our backup solution and it runs stable as a castle. I wouldn’t even dream of using Microsoft products as a foundation for this when it’s available for Linux.</li>
<li>Some web applications. Because Apache is a great software and it runs so smooth on a Linux server.</li>
</ul>
<h2>Use the best tool for the job</h2>
<p>To everyone out there who now wants to dig me a grave and make me suffer I have a few finishing words. The point of this article was to point out that you, at least in general, cannot say Linux or Windows or even OS X is better than one of it’s competitors. It all depends on who you are and what you are doing.</p>
<p><strong>Let’s stop these flame wars now and agree that <em>everyone</em> should use the best tool available for their task at hand.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2009/02/06/linux-ready-for-the-massesdesktops/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting wireless network working on CentOS 5 and Thinkpad T42</title>
		<link>http://www.nixadmins.net/2008/12/15/getting-wireless-network-working-on-centos-5-and-thinkpad-t42/</link>
		<comments>http://www.nixadmins.net/2008/12/15/getting-wireless-network-working-on-centos-5-and-thinkpad-t42/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 08:04:29 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Redhat]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>
I pulled an old IBM Thinkpad T42 to use as a "light" and "mobile" laptop on the daily train ride to Helsinki. It's not new but more than usable with 768Mb RAM and CentOS 5 installed. This gives me a full development environment to work with on the train. What I noticed was the problem to get the wireless network up on this thing.]]></description>
			<content:encoded><![CDATA[<p>I pulled an old IBM Thinkpad T42 to use as a &#8220;light&#8221; and &#8220;mobile&#8221; laptop on the daily train ride to Helsinki. It&#8217;s not new but more than usable with 768Mb RAM and CentOS 5 installed. This gives me a full development environment to work with on the train. What I noticed was the problem to get the wireless network up on this thing.<br />
I tried editing <em>/etc/wpa_supplicant/wpa_supplicant.conf</em>, I ran iwconfig. I scanned etc. And it just didn&#8217;t want to work.<br />
The hardware seemed to be working, but not the network settings. Why?</p>
<h2>Google to the rescue</h2>
<p>As always when you are troubleshooting the place to start is <a href="http://www.google.com/">google.com</a>.After reading a lot of pages, some better some worse I found <strong>NetworkManager</strong>. How could I have missed this? Later I even found a document at <a href="http://www.centos.org/">centos.org</a> describing how to use this.</p>
<h2>Using NetworkManager</h2>
<p>Finding I should use NetworkManager I started up the service and stopped the network service. I got a list of the Wireless networks and 10 seconds later I was surfing with the wireless network.<br />
To set NetworkManager to start automatically you should do the following</p>
<div class="terminal">[root@localhost ~]$ chkconfig &#8211;level 345 NetworkManager on<br />
[root@localhost ~]$ service NetworkManager start<br />
[root@localhost ~]$ chkconfig &#8211;level 2345 network off<br />
[root@localhost ~]$ service network stop</div>
<p>You should now have a nice network icon in your Gnome system tray and clicking it should show the wireless networks available.</p>
<h2>Installs</h2>
<p>To be clear this is what I installed.</p>
<p>The <a href="http://dag.wieers.com/rpm/FAQ.php#B"></a>, to get a lot of packages. And after setting up rpmforge I just pulled firmware for the network card.</p>
<div class="terminal">[root@localhost ~]$ yum install ipw2200-firmware</div>
<p>This page is mostly a note for myself but if it helps someone else out then all the better.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2008/12/15/getting-wireless-network-working-on-centos-5-and-thinkpad-t42/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Microsoft Corefonts on CentOS 5</title>
		<link>http://www.nixadmins.net/2008/12/12/installing-microsoft-corefonts-on-centos-5/</link>
		<comments>http://www.nixadmins.net/2008/12/12/installing-microsoft-corefonts-on-centos-5/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 08:12:04 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Redhat]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>This is a thing I always have to google when I need to install Microsoft's fonts in my CentOS installs so I thought I'd post a short dirty note here to remind me how to do it. </p>
<p>
First of all we need some tools to build ourselves the RPM for msttcorefonts, so fire up your terminal and 
</p>]]></description>
			<content:encoded><![CDATA[<p>This is a thing I always have to google when I need to install Microsoft&#8217;s fonts in my CentOS installs so I thought I&#8217;d post a short dirty note here to remind me how to do it.</p>
<p>First of all we need some tools to build ourselves the RPM for msttcorefonts, so fire up your terminal and</p>
<div class="terminal">
[root@localhost ~]$ yum install cabextract rpm-build</div>
<p>When finished run the following as <strong>root</strong></p>
<div class="terminal">
[root@localhost build]$ wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec<br />
[root@localhost build]$ rpmbuild -ba msttcorefonts-2.0-1.spec<br />
[root@localhost build]$ rpm -ivh /usr/src/redhat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm<br />
[root@localhost build]$ /sbin/service xfs reload</div>
<p>That&#8217;s it. You should now have Microsoft&#8217;s standard fonts installed and ready to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2008/12/12/installing-microsoft-corefonts-on-centos-5/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Using htaccess to create a subdomain on apache</title>
		<link>http://www.nixadmins.net/2008/02/20/using-htaccess-to-create-a-subdomain-on-apache/</link>
		<comments>http://www.nixadmins.net/2008/02/20/using-htaccess-to-create-a-subdomain-on-apache/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 19:25:50 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>I've been thinking of starting a <a href="http://blog.nixadmins.net">blog</a> to keep my thoughts and ideas together in one place. To do this I wanted to use a simple subdomain to <a href="http://www.nixadmins.net">nixadmins.net</a> like <a href="http://blog.nixadmins.net">blog.nixadmins.net</a>.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been thinking of starting a <a href="http://blog.nixadmins.net">blog</a> to keep my thoughts and ideas together in one place. To do this I wanted to use a simple subdomain to <a href="http://www.nixadmins.net">nixadmins.net</a> like <a href="http://blog.nixadmins.net">blog.nixadmins.net</a>. To do this in a simple way without touching too much of the configuration I did it using the <a href="http://www.apache.org">Apache&#8217;s </a><strong>.htaccess</strong> file.</p>
<p>The htaccess file can be used to many things, in this short short story I&#8217;ll only go in to creating a working subdomain. But you can find a lot more in the <a href="http://httpd.apache.org/docs/2.0/howto/htaccess.html">htaccess tutorial</a>.</p>
<p>If you have a .htaccess file you can modify it, if not just create a new one in any editor.<br />
Put the following lines in it, and of course change the values to suite your need.</p>
<div class="terminal">&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine on<br />
# Rewrite for Wordpress blog<br />
RewriteCond %{HTTP_HOST} blog.nixadmins.net<br />
RewriteCond %{REQUEST_URI} !blog/<br />
RewriteRule ^(.*)$ blog/$1 [L]<br />
&lt;/IfModule&gt;</div>
<p>After that, create a DNS cname record, of <strong><a href="http://blog.nixadmins.net">blog.nixadmins.net</a></strong> that points to the same server, for me <strong><a href="http://www.nixadmins.net">www.nixadmins.net</a></strong>. And you are done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2008/02/20/using-htaccess-to-create-a-subdomain-on-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When you begin your Linux experience.</title>
		<link>http://www.nixadmins.net/2008/02/08/when-you-begin-your-linux-experience/</link>
		<comments>http://www.nixadmins.net/2008/02/08/when-you-begin-your-linux-experience/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 10:10:11 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>I remember the first year I tried Linux, I was so totally hyped about it. I started by trying out server software and pretty soon I was hooked on using it. It was great, I could run my own webserver, email server, SQL server and ... and ... and ..., well you get the point I had to try everything. The best part was that everything ran on a 120MHz Cyrix with 64Mb RAM and 8Gb hard drive.]]></description>
			<content:encoded><![CDATA[<p>I remember the first year I tried Linux, I was so totally hyped about it. I started by trying out server software and pretty soon I was hooked on using it. It was great, I could run my own webserver, email server, SQL server and &#8230; and &#8230; and &#8230;, well you get the point I had to try everything. The best part was that everything ran on a 120MHz Cyrix with 64Mb RAM and 8Gb hard drive. It wasn&#8217;t fast but it did get me started.</p>
<h3>Distro shopping</h3>
<p>First I had to go trough a really huge bunch of distributions, my friends should agree that in the beginning  an Linux installation had an average lifespan of 2 days on my desktop before I moved on to the next one. There were <a href="http://distrowatch.com/search.php?category=All&amp;origin=All&amp;basedon=All&amp;desktop=All&amp;architecture=All&amp;status=Active">so many to try</a> and I&#8217;ve always been a little of a operating system freak. After a while I realized that I had to get a place to store my settings and downloads centrally because every time I reinstalled I reformatted the drives. I know I could have saved <strong>/home</strong> but back then I didn&#8217;t really care, I had a new distribution and I just had to try it. This is when I got started with my first server.</p>
<h3>Servers and hardware</h3>
<p>So the first server was up and it ran nicely for quite some time. Then came the hardware shopping, I just had to get a lot of hardware I could run Linux on. This resulted in a bunch of <strong>REALLY</strong> old Mac&#8217;s lying around every corner, my girlfriend wondering if I lost it and my friends probably thinking, <em>&#8220;Well that&#8217;s what you get from running Linux&#8221;</em>. After I had installed Linux on almost every old Mac I got the hunger was still there, I had to try something else, so I got myself a <a href="http://www.sunstuff.org/hardware/systems/sun4/sun4m/SPARCstation5/"> Sun SPARCStation 5</a>.</p>
<div><img src="/files/ss5.jpg" alt="Sun SparcStation 5" /></div>
<p>It had <strong>110Mhz microSPARC II processor, 128 Mb RAM, 1Gb hard drive, 21&#8243; Sun monitor</strong>. As you might guess it wasn&#8217;t really a nice desktop but eventually I had it running <a href="http://www.debian.org">Debian</a> as a development and test server. It was a stable little server but it really lacked power of a modern computer, no wonder since it was released in the 1990&#8217;s.</p>
<h3>Look where it got me</h3>
<p>I sometimes wonder how much I&#8217;ve paid the electric company for my servers running 24/7 at home and how much I&#8217;ve put money in this process but I then quickly remind myself that any hobby costs money and it eventually pushed me into IT where I work now.</p>
<h3>To the point</h3>
<p>What inspired me to write this little post was this short video bellow that really reminds me of myself back in the early stages of my Linux experience. I hope you have as much fun watching it as I did.</p>
<div><object width="425" height="355" data="http://www.youtube.com/v/FPE9-YozpyQ&amp;rel=1" type="application/x-shockwave-flash"><param name="wmode" value="transparent" /><param name="src" value="http://www.youtube.com/v/FPE9-YozpyQ&amp;rel=1" /></object></div>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2008/02/08/when-you-begin-your-linux-experience/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The #1 reason for programers / Gentoo users to be slacking of</title>
		<link>http://www.nixadmins.net/2008/02/07/the-1-reason-for-programers-gentoo-users-to-be-slacking-of/</link>
		<comments>http://www.nixadmins.net/2008/02/07/the-1-reason-for-programers-gentoo-users-to-be-slacking-of/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 09:59:46 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programing]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>I found this <a href="http://www.xckd.com">xckd</a> comic very funny. Being a Linux user and using Gentoo from time to time. I compile some programs and in Gentoo, you should know if you tried it, you compile almost everything.</p><br />
<div align="center">
<img src="http://imgs.xkcd.com/comics/compiling.png" />
</div>]]></description>
			<content:encoded><![CDATA[<p>I found this <a href="http://www.xckd.com">xckd</a> comic very funny. Being a Linux user and using Gentoo from time to time. I compile some programs and in Gentoo, you should know if you tried it, you compile almost everything.</p>
<div><img src="http://imgs.xkcd.com/comics/compiling.png" alt="" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2008/02/07/the-1-reason-for-programers-gentoo-users-to-be-slacking-of/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>From installation to Active Directory client with CentOS 4.2 &#8211; Part two</title>
		<link>http://www.nixadmins.net/2006/08/22/from-installation-to-active-directory-client-with-centos-42-part-two/</link>
		<comments>http://www.nixadmins.net/2006/08/22/from-installation-to-active-directory-client-with-centos-42-part-two/#comments</comments>
		<pubDate>Tue, 22 Aug 2006 19:54:46 +0000</pubDate>
		<dc:creator>Mats Hellman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Redhat]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[This is the second part of an article I started a _long_ time ago explaining how to connect a Linux desktop to Microsofts Active Directory, this time with the CentOS distribution. The first part can be found here. Hopefully you now have CentOS setup and are getting eager to get the domain logins working. We [...]]]></description>
			<content:encoded><![CDATA[<p>This is the second part of an article I started a _long_ time ago explaining how to connect a Linux desktop to Microsofts Active Directory, this time with the CentOS distribution. The first part can be found <a href="modules.php?name=News&#038;file=article&#038;sid=14">here</a>. Hopefully you now have CentOS setup and are getting eager to get the domain logins working. We will get to that in a minute. First let&#8217;s discuss the process overall and what you already need to know or have setup. This guide has <strong><em>no</em></strong> guarantee on working, you should also backup any important data before proceeding. If you run in to trouble post in our <a href="modules.php?name=Forums">forums</a> and we&#8217;ll do our best to help you. A good practice is to backup the configuration file you are about to edit, so if you run into problems you can reset it to the original file. <strong>Remember, playing with authentication can get you locked out of your system!</strong></p>
<p>  <strong>You need:<br />
  </strong>
</p>
<ul>
<li>Working Windows domain with Active Directory.</li>
<li>CentOS 4 installed on a desktop or virtual machine (VMWare, Microsoft Virtual PC or server).</li>
</ul>
<p><strong>Also you need to have the following information at hand:</strong>
  </p>
<ul>
<li>Your Windows domain name.</li>
<li>The name of the Active directory domain controller.</li>
<li>User account and password for an administrative account in the domain.</li>
</ul>
<p>That&#8217;s it. Now let&#8217;s get on with configuring the system.</p>
<p><strong>In this article:</strong>
</p>
<ul>
<li><a href="#openldap">Installing OpenLDAP.</a></li>
<li><a href="#samba">Configuring Samba </a>.</li>
<li><a href="#winbind">Starting the winbind daemon.</a> </li>
<li><a href="#addingdomain">Adding the workstation to the domain.</a></li>
<li><a href="#nsswitch">Configuring /etc/nsswitch.conf</a></li>
<li><a href="#testwinbind">Testing winbind</a> </li>
<li><a href="#winlinaccount">Testing Windows to Linux account conversion.</a> </li>
<li><a href="#sysconfsamba">Editing /etc/sysconfig/samba.</a></li>
<li><a href="#pamsettings">Editing PAM settings. </a></li>
<li><a href="#startdaemons">Starting the daemons.</a></li>
<li><a href="#furtherreading">Further reading. </a></li>
<li><a href="#trouble">Troubleshooting.</a></li>
</ul>
<p><strong>Installing OpenLDAP. </strong> <a name="openldap"></a></p>
<p>Well start by installing OpenLDAP and the clients also we need nss_ldap. <a href="http://fedoraproject.org/wiki/Tools/yum">YUM</a> handles the installations for us nicely so we don&#8217;t have to worry about dependencies. Just fire up a terminal because that&#8217;s where well spend a lot of time in this part of the article.</p>
<table width="500" border="0" class="nixart">
<tr>
<td>[root@wrkst1~]$yum install openldap-clients openldap </td>
</tr>
</table>
<p><strong>Configuring kerberos. </strong></p>
<p>When OpenLDAP is installed we can move on to configuring the different authentication handlers. Let&#8217;s start by configuring the network authentication protocol <a target="_blank" href="http://web.mit.edu/Kerberos/#what_is">Kerberos.<br />
  </a>We need to tell <a href="http://web.mit.edu/Kerberos/#what_is">Kerberos</a> the windows realm and a few other things. <a href="http://web.mit.edu/Kerberos/#what_is">Kerberos</a> configuration file resides in <em>/etc/krb5.conf</em> so fire up your favourite editor, I&#8217;m using both Emacs and Vi depending on the situation so no editor wars here, and open the file for editing.<br />
You should see something like this:</p>
<table width="500" border="0" class="nixart">
<tr>
<td>[logging]<br />
default = FILE:/var/log/krb5libs.log<br />
kdc = FILE:/var/log/krb5kdc.log<br />
admin_server = FILE:/var/log/kadmind.log</p>
<p>[libdefaults]<br />
  default_realm = EXAMPLE.COM<br />
  dns_lookup_realm = false<br />
  dns_lookup_kdc = false</p>
<p>[realms]<br />
  EXAMPLE.COM = {<br />
  kdc = kerberos.example.com:88<br />
  admin_server = kerberos.example.com:749<br />
  default_domain = example.com<br />
  }</p>
<p>[domain_realm]<br />
  .example.com = EXAMPLE.COM<br />
  example.com = EXAMPLE.COM</p>
<p>[kdc]<br />
  profile = /var/kerberos/krb5kdc/kdc.conf</p>
<p>[appdefaults]<br />
  pam = {<br />
  debug = false<br />
  ticket_lifetime = 36000<br />
  renew_lifetime = 36000<br />
  forwardable = true<br />
  krb4_convert = false<br />
  }
</p>
</td>
</tr>
</table>
<p>
Now let&#8217;s edit the file. You did back it up like I told you didn&#8217;t you <img src='http://www.nixadmins.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Remember this file <strong>IS</strong> case sensitive, so <strong>default</strong> is not the same as <strong>DEFAULT</strong>. Remember to <strong>change</strong> the values if you copy/paste.</p>
<table width="500" border="0" class="nixart">
<tr>
<td>#/etc/krb5.conf</td>
</tr>
<tr>
<td> [libdefaults] <br />
        ticket_lifetime = 600 <br />
        default_realm = NIXADMINS.NET<br />
        default_tkt_enctypes = des3-hmac-sha1 des-cbc-crc <br />
        default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc </p>
<p>[realms] <br />
       NIXADMINS.NET = { <br />
        kdc = ad-server.nixadmins.net<br />
        default_domain = nixadmins.net <br />
        } </p>
<p>[domain_realm] <br />
        .nixadmins.net = NIXADMINS.NET<br />
        nixadmins.net = NIXADMINS.NET</p>
<p>[kdc] <br />
        profile = /var/kerberos/krb5kdc/kdc.conf</p>
<p>[logging] <br />
        kdc = FILE:/var/log/krb5kdc.log <br />
        admin_server = FILE:/var/log/kadmin.log <br />
        default = FILE:/var/log/krb5lib.log </td>
</tr>
</table>
<p>Save the file and exit. Next let&#8217;s make the system a little more error tolerant, in case the DNS service goes down the workstation won&#8217;t be able to authenticate the domain users so we add the Active Directory PDC server to the <em>/etc/host</em>s file. Add the following line to <em>/etc/hosts</em>:</p>
<table width="500" border="0" class="nixart">
<tr>
<td># /etc/hosts </td>
</tr>
<tr>
<td>1.2.3.4        ad-server.nixadmins.net        ad-server</td>
</tr>
</table>
<p>
Next we need to test to see if our <a href="http://web.mit.edu/Kerberos/#what_is">Kerberos</a> settings are working. Just type the following in your terminal, all it does is return you to the prompt if everything is working.</p>
<table width="500" border="0" class="nixart">
<tr>
<td>[root@wrkst1~]$ kinit aduser@NIXADMINS.NET </td>
</tr>
</table>
<p>
  That&#8217;s it for <a href="http://web.mit.edu/Kerberos/#what_is">Kerberos</a>, it wasn&#8217;t that hard now was it.
</p>
<p><strong>Configuring Samba<a name="samba"></a> </p>
<p>  </strong><a href="http://www.samba.org">Samba</a> is used to set some Windows domain information and the machine name. Also we define where and how the user directories are and which the default user shell is. Here is my <em>smb.conf</em>, read it trough and change at least the values <strong>workgroup </strong>(the wins domain name), <strong>realm </strong>(the domain DNS name in capitals) and <strong>password server</strong> (your PDC). 
</p>
<table width="500" border="0" class="nixart">
<tr>
<td># /etc/samba/smb.conf</td>
</tr>
<tr>
<td> [global] <br />
workgroup = NIXADMINS <br />
netbios name = wrkst1 <br />
server string = Linux workstation 1 <br />
security = ADS <br />
log file = /var/log/samba/samba.%m <br />
max log size = 50 <br />
local master = no <br />
preferred master = no <br />
idmap uid = 10000-20000 <br />
idmap gid = 10000-20000 <br />
winbind gid = 10000-20000 <br />
winbind enum users = yes <br />
winbind enum groups = yes<br />winbind use default domain = yes <br />
template homedir = /home/%U <br />
template shell = /bin/bash <br />
encrypt passwords = yes <br />
dns proxy = no <br />
realm = NIXADMINS.NET <br />
password server = ad-server.nixadmins.net<br />
wins proxy = no </td>
</tr>
</table>
<p> <br />
Before we move on let&#8217;s check our <em>/etc/samba/smb.conf</em> file to see if there are any errors in it.</p>
<table width="500" border="0" class="nixart">
<tr>
<td> <strong>[root@wrkst1~]$ testparm </strong><br />
Load smb config files from /etc/samba/smb.conf <br />
Loaded services file OK. <br />
Server role: ROLE_DOMAIN_MEMBER <br />
Press enter to see a dump of your service definitions </p>
<p># Global parameters <br />
[global] <br />
        workgroup = NIXADMINS <br />
        realm = NIXADMINS.NET<br />
        server string = Linux workstation 1<br />
        security = ADS <br />
        password server = ad-server.nixadmins.net<br />
        log file = /var/log/smb/samba.%m <br />
        max log size = 50 <br />
        preferred master = No <br />
        local master = No <br />
        dns proxy = No <br />
        idmap uid = 10000-20000 <br />
        idmap gid = 10000-20000 <br />
        template homedir = /home/%U <br />
        template shell = /bin/bash </td>
</tr>
</table>
<p></p>
<p><strong>Starting the winbind daemon. <a name="winbind"></a></p>
<p></strong>Let&#8217;s start the winbind daemon that is responsible for the queries against Active Directory and find out if our setup is working. Before you do this be sure to check that neither <em>smbd</em> or <em>nmbd</em> are running.</p>
<table width="500" border="0" class="nixart">
<tr>
<td>[root@wrkst1 ~]# service smb status<br />
      smbd is stopped<br />
      nmbd is stopped<br />
      [root@wrkst1 ~]# service winbind start<br />
      Starting Winbind services:                                                  [ OK ]<br />
      [root@wrkst1 ~]#</td>
</tr>
</table>
<p><strong>Adding the workstation to the domain.<a name="addingdomain"></a></strong></p>
<p>  Now that we have a working winbind we can add the workstation to the Windows domain. Run the following command. Use the Windows Administrator account or another account that has the rights to add a computer to the domain.
</p>
<table width="500" border="0" class="nixart">
<tr>
<td>[root@wrkst1 ~]# net ads join -U Administrator<br />
      Administrator&#8217;s password:<br />
      Using short domain name &#8212; NIXADMINS<br />
    Joined &#8216;WRKST1&#8242; to realm &#8216;NIXADMINS.NET&#8217;<br />
    [root@wrkst1 ~]# </td>
</tr>
</table>
<p>
That&#8217;s it. The workstation should now be located in the computers holder in the Windows domain.</p>
<p><strong>Configuring /etc/nsswitch.conf.<a name="nsswitch"></a></p>
<p></strong>Edit the file top part of the file<em> /etc/nsswitch.conf</em>.</p>
<table width="500" border="0" class="nixart">
<tr>
<td><strong>Before:</strong><br />
      # some text before this part <br />
      passwd: files<br />
      shadow: files<br />
    group: files<br />
    # and some after also, let them be</td>
</tr>
</table>
<p></p>
<table width="500" border="0" class="nixart">
<tr>
<td><strong>After:<br />
      </strong># some text before this part <br />
passwd:       compat winbind <br />
shadow:       compat<br />
group:          compat winbind <br />
# and some after also, let them be    </td>
</tr>
</table>
<p>
<strong>Testing winbind</strong><a name="testwinbind"></a> </p>
<p>Now let&#8217;s test winbind to see if we really are communicating with Active Directory. To do this we use the command <em>wbinfo</em> with the switches -u and -g, -u to query users and -g to query groups. <br />
First let&#8217;s query for users in the directory, you output should look something like below.</p>
<table width="500" border="0" class="nixart">
<tr>
<td><strong>[root@wrkst1 ~]# wbinfo -u</strong><br />
      NIXADMINSAdministrator<br />
      NIXADMINS*******<br />
      NIXADMINS******* <br />
      &#8230;&#8230;&#8230;&#8230;.<br />
      [root@wrkst1 ~]# </td>
</tr>
</table>
<p>
And next let&#8217;s query for groups. </p>
<table width="500" border="0" class="nixart">
<tr>
<td><strong>[root@wrkst1 ~]# wbinfo -g</strong><br />
      NIXADMINSHelpServicesGroup<br />
      NIXADMINSTelnetClients<br />
      NIXADMINSDomain Computers<br />
    NIXADMINSDomain Controllers<br />
    &#8230;&#8230;&#8230;&#8230;.<br />
    [root@wrkst1 ~]# </td>
</tr>
</table>
<p> <br />
<strong>Testing Windows to Linux account conversion.<br />
<a name="winlinaccount"></a></strong></p>
<p>We need to be sure this is working properly or our users won&#8217;t be able to log in to the workstation. The command getent shows us all accounts or groups.<br />
First let&#8217;s check the users, run the following</p>
<table width="500" border="0" class="nixart">
<tr>
<td>[root@wrkst1 ~]# getent passwd </td>
</tr>
</table>
<p>
And then the groups</p>
<table width="500" border="0" class="nixart">
<tr>
<td>[root@wrkst1 ~]# getent group</td>
</tr>
</table>
<p>
<strong>Editing /etc/sysconfig/samba. <a name="syssconfsamba"></a></strong></p>
<p>Add -D to the winbindoptions part of<em> /etc/sysconfig/samba</em>, the file should look like this</p>
<table width="500" border="0" class="nixart">
<tr>
<td># Options to smbd<br />
      SMBDOPTIONS=&quot;-D&quot;<br />
      # Options to nmbd<br />
      NMBDOPTIONS=&quot;-D&quot;<br />
      # Options for winbindd<br />
    WINBINDOPTIONS=&quot;-D&quot;</td>
</tr>
</table>
<p><strong>Editing PAM settings.<a name="pamsettings"></a></p>
<p>IMPORTANT!</strong> Make a backup of the whole <em>/etc/pam.d</em> folder before you continue. <br /> <br />
Made the backup? Ok, let&#8217;s continue.<br />
Let&#8217;s edit the file that handles the logins. Edit your <em>/etc/pam.d/login</em> to look like this
</p>
<table width="500" border="0" class="nixart">
<tr>
<td colspan="3">#%PAM-1.0</td>
</tr>
<tr>
<td>auth</td>
<td>required </td>
<td>pam_securetty.so</td>
</tr>
<tr>
<td>auth</td>
<td>sufficient</td>
<td>pam_winbind.so</td>
</tr>
<tr>
<td>auth</td>
<td>sufficient</td>
<td>pam_unix.so use_first_pass</td>
</tr>
<tr>
<td>auth</td>
<td>required </td>
<td>pam_stack.so service=system-auth</td>
</tr>
<tr>
<td>auth</td>
<td>required </td>
<td>pam_nologin.so</td>
</tr>
<tr>
<td>account</td>
<td>sufficient</td>
<td>pam_winbind.so</td>
</tr>
<tr>
<td>account</td>
<td>required </td>
<td>pam_stack.so service=system-auth</td>
</tr>
<tr>
<td>password</td>
<td>required </td>
<td>pam_stack.so service=system-auth</td>
</tr>
<tr>
<td colspan="3"># pam_selinux.so close should be the first session rule</td>
</tr>
<tr>
<td>session</td>
<td>required</td>
<td>pam_mkhomedir.so skel=/etc/skel umask=0022 </td>
</tr>
<tr>
<td>session</td>
<td>required </td>
<td>pam_selinux.so close</td>
</tr>
<tr>
<td>session</td>
<td>required </td>
<td>pam_stack.so service=system-auth</td>
</tr>
<tr>
<td>session</td>
<td>required </td>
<td>pam_loginuid.so</td>
</tr>
<tr>
<td>session</td>
<td>optional</td>
<td>pam_console.so</td>
</tr>
<tr>
<td colspan="3"># pam_selinux.so open should be the last session rule</td>
</tr>
<tr>
<td>session</td>
<td>required </td>
<td>pam_selinux.so open</td>
</tr>
</table>
<p>
  <strong>Note</strong>: we adde</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nixadmins.net/2006/08/22/from-installation-to-active-directory-client-with-centos-42-part-two/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
