<?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>Niels Horn&#039;s Blog &#187; configuration</title>
	<atom:link href="http://blog.nielshorn.net/category/linux/configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nielshorn.net</link>
	<description>Random thoughts, tips &#38; tricks about Slackware-Linux, Lego and Star Wars</description>
	<lastBuildDate>Tue, 07 Sep 2010 21:38:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using a Nokia CS-10 GSM modem on Slackware</title>
		<link>http://blog.nielshorn.net/2010/02/using-a-nokia-cs-10-gsm-modem-on-slackware/</link>
		<comments>http://blog.nielshorn.net/2010/02/using-a-nokia-cs-10-gsm-modem-on-slackware/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 02:09:14 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[configuration]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[udev]]></category>

		<guid isPermaLink="false">http://blog.nielshorn.net/?p=223</guid>
		<description><![CDATA[Today I received my new GSM Modem, a Nokia Internet Stick CS-10. It had the size of an overweight pen-drive and can connect (depending on your service-provider) at speeds up to 7.2Mbps (my contract only goes to 2Mbps).
Here is a picture of the modem, taken from the Nokia site:

As was to be expected, it comes [...]]]></description>
			<content:encoded><![CDATA[<p>Today I received my new GSM Modem, a <a href="http://europe.nokia.com/find-products/accessories/all-accessories/home-and-office/imaging/nokia-internet-stick-cs-10">Nokia Internet Stick CS-10</a>. It had the size of an overweight pen-drive and can connect (depending on your service-provider) at speeds up to 7.2Mbps (my contract only goes to 2Mbps).<br />
Here is a picture of the modem, taken from the Nokia site:<br />
<img src="http://blog.nielshorn.net/wp-content/uploads/2010/02/nokia-cs10.png" alt="nokia-cs10" title="nokia-cs10" width="240" height="132" class="alignleft size-full wp-image-224" /><br />
As was to be expected, it comes with software only for Windows and Mac, nothing for Linux. But, then again, who needs software on Linux to use a modem? <img src='http://blog.nielshorn.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  With a bit of knowledge on how Linux works with USB devices, we can do everything by configuring our system the right way.</p>
<p>I have configured several other USB modems on my Slackware systems, so I was sure I could get this one to work as well. I did it in about 20 minutes and here are the basic steps:</p>
<p><strong>1) Switching from &#8220;drive&#8221; to modem</strong><br />
Many of these USB modems first present themselves as &#8220;media&#8221;, so that Windows users can install the built-in software from them. Then the installed driver &#8220;ejects&#8221; the media and the modem presents its real identity as a modem.<br />
On Linux, we have to &#8220;eject&#8221; the media as well by software, and for this we can use a udev rule.<br />
When plugged in the first time, we can check the ID of the media / modem in a terminal window with <code>lsusb</code>. The result included the following line:</p>
<pre>Bus 001 Device 005: ID 0421:060c Nokia Mobile Phones</pre>
<p>So this is the ID of the modem presenting itself as removable media.</p>
<p>Now we need a udev rule to &#8220;eject&#8221; the media. This is what I wrote, based on some previous experience and <a href="http://reactivated.net/writing_udev_rules.html">this guide</a> on writing udev rules:</p>
<pre>SUBSYSTEMS=="usb", SYSFS{idVendor}=="0421", SYSFS{idProduct}=="060c", ACTION=="add", RUN+="/usr/bin/eject -s %k", OPTIONS+="last_rule"</pre>
<p>Now let&#8217;s analyze this rule:</p>
<ul>
<li><code>SUBSYSTEMS=="usb"</code> &#8211; speaks for itself: we are handling a USB device</li>
<li><code>SYSFS{idVendor}=="0421", SYSFS{idProduct}=="060c"</code> &#8211; this identifies our Nokia modem</li>
<li><code>ACTION=="add"</code> &#8211; means that this rule is only for when the device is added</li>
<li><code>RUN+="/usr/bin/eject -s %k"</code> &#8211; calls the &#8220;eject&#8221; program with the parameters -s (a &#8220;SCSI&#8221; device, like /dev/s??) and %k (the device name the kernel gave it, like /dev/sdb0 or whatever the &#8220;media&#8221; is named)</li>
<li><code>OPTIONS+="last_rule"</code> &#8211; make sure that later rules for this device have no effect</li>
</ul>
<p>Save this rule as 91-nokiacs10.rules in /etc/udev/rules.d/<br />
This is the directory where we save all our &#8220;custom&#8221; rules, as opposed to the standard rules that stay in /lib/udev/rules.d where we should not mess around (as they will be overwritten with the next update of udev).</p>
<p>So now, pull out the modem and plug it in again. If everything is fine, after a short time you can check your usb devices again with <code>lsusb</code> and now the line should be:</p>
<pre>Bus 001 Device 005: ID 0421:060e Nokia Mobile Phones</pre>
<p>Check that the Product ID has changed from <strong>060c</strong> to <strong>060e</strong></p>
<p><strong>2) Check your modem device</strong><br />
Now check your devices with <code>ls /dev/tty*</code> and you should see in the list <code>ttyACM0</code> and <code>ttyACM1</code>.<br />
Use <code>ttyACM0</code> in your favorite dialer to connect to your internet provider. I use pppd, but it should work with kpppd or whatever you prefer!</p>
<p><strong>3) Next steps</strong><br />
I actually use a second script that automatically &#8220;dials&#8221; my provider and connects me to the internet. This is done by creating a second rule in the same file, but this time for the 060e device, starting a small shell script.<br />
This script checks if the ttyACM0 device is available, calls pppd, checks ifconfig if the ppp0 device is up and creates an entry in the routing table.<br />
Since my script is very ugly, I won&#8217;t put it here, but it was not that difficult to write, so I&#8217;ll leave this as an exercise! <img src='http://blog.nielshorn.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2010/02/using-a-nokia-cs-10-gsm-modem-on-slackware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The new blog is up &amp; running</title>
		<link>http://blog.nielshorn.net/2010/01/the-new-blog-is-up-running/</link>
		<comments>http://blog.nielshorn.net/2010/01/the-new-blog-is-up-running/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 00:55:26 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[configuration]]></category>

		<guid isPermaLink="false">http://blog.nielshorn.net/?p=118</guid>
		<description><![CDATA[After some DNS troubles, the new blog is up &#38; running  
Something went wrong when I canceled the &#8220;CNAME&#8221; entry in the DNS server that pointed &#8220;blog.nielshorn.net&#8221; to the old blogspot site. When I created the new &#8220;blog.nielshorn.net&#8221; subdomain I couldn&#8217;t get it to point at my own server. :-/
But with a little help [...]]]></description>
			<content:encoded><![CDATA[<p>After some DNS troubles, the new blog is up &amp; running <img src='http://blog.nielshorn.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Something went wrong when I canceled the &#8220;CNAME&#8221; entry in the DNS server that pointed &#8220;blog.nielshorn.net&#8221; to the old blogspot site. When I created the new &#8220;blog.nielshorn.net&#8221; subdomain I couldn&#8217;t get it to point at my own server. :-/</p>
<p>But with a little help from my hosting provider everything is OK now.</p>
<p>Feel free to look around and to comment on any errors or broken links!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2010/01/the-new-blog-is-up-running/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On partitioning your hard drive&#8230;</title>
		<link>http://blog.nielshorn.net/2009/05/on-partitioning-your-hard-drive/</link>
		<comments>http://blog.nielshorn.net/2009/05/on-partitioning-your-hard-drive/#comments</comments>
		<pubDate>Thu, 28 May 2009 00:30:00 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[configuration]]></category>

		<guid isPermaLink="false">http://www.nielshorn.net/blog/?p=44</guid>
		<description><![CDATA[As I&#8217;ve been using Linux for over a decade, I am asked a lot of questions about my favorite operating system. I don&#8217;t consider myself an expert, just an experienced enthusiast  
One question that pops up every now and then is about the &#8220;ideal&#8221; partitioning scheme for Linux.The short answer is that there is [...]]]></description>
			<content:encoded><![CDATA[<p>As I&#8217;ve been using Linux for over a decade, I am asked a lot of questions about my favorite operating system. I don&#8217;t consider myself an expert, just an experienced enthusiast <img src='http://blog.nielshorn.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>One question that pops up every now and then is about the &#8220;ideal&#8221; partitioning scheme for Linux.<br />The short answer is that there is no such thing as an &#8220;ideal partitioning scheme&#8221;. It all depends on so many things, like:<br />- your hardware<br />- how you are going to use your system<br />- your future needs<br />- etc&#8230;</p>
<p>When a new Linux user asks me how to partition his new drive for Linux, I usually say that he should just use two partitions: one for swap and one for the rest. Yes, even with a 500+ GB drive&#8230;<br />Why? Because new users can get into trouble filling up a partition that was created too small and then things stop working.<br />Sometimes I get funny reactions like: &#8220;But I read that it is better to create a partition for /home, another for /usr/local etc&#8230;&#8221;. And some even show expressions of disbelief&#8230;</p>
<p>But, since the question keeps coming back, I decided to write how I partition my system.<br />Like I said &#8211; it all depends&#8230; So the partitioning for my situation might not apply to yours, but reading through this post you might learn a thing or two.</p>
<p>First of all, I &#8220;don&#8217;t do windows&#8221;, so you won&#8217;t read anything about how to double boot between Linux and Microsoft Windows, but basically you can just create an extra primary partition to waste some part of your hard disk and configure your preferred boot loader (Lilo or Grub) to access the alternative.</p>
<p>What follows is &#8220;the long answer&#8221; on partitioning your hard drive <img src='http://blog.nielshorn.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><b>1. About types of partitions</b><br />Partitions come in two types: Primary and Extended. You can have a maximum of 4 partitions on one hard disk. But one of them can be of the &#8220;Extended&#8221; type, in which you can create several &#8220;Logical&#8221; partitions.</p>
<p>Remember this when you create your partitions, as you cannot transform a Primary in an Extended partition without backing up all your data, deleting the primary partition, creating the Extended and Logical partitions and then restoring your data.<br />After you created four Primary partitions, you&#8217;re done&#8230; No way to go back without erasing!</p>
<p><b>2. The first partition &#8211; SWAP</b><br />The SWAP partition was originally invented to use as an overflow for your memory needs. If your system needs more memory than it has available, it starts &#8220;swapping&#8221; unused data from memory to this SWAP area. This was very common in the days when computers had less memory.<br />For the readers to have an idea: the first systems I worked with had 1 MB of RAM&#8230;<br />The old rule was that the SWAP partition should be twice the amount of RAM in your system.</p>
<p>Nowadays memory is cheap and plentiful in modern systems, so you might think you won&#8217;t need a SWAP partition.<br />But don&#8217;t just skip right now&#8230;<br />First of all, the SWAP partition is also used to &#8216;hibernate&#8217; your system if it is capable of doing this (actually, I think *all* systems are capable, but normally only notebooks use this).<br />Hibernating simply saves all memory to the hard drive and reloads it when you reboot your system.<br />Guess where the memory is saved? Yes, on the SWAP partition.<br />So, despite the old rule, it should be <i>at least</i> the size of your RAM.<br />If you have like 4 GB of RAM, you won&#8217;t need 8 GB of SWAP space. A SWAP partition of 4.1 GB is good enough.</p>
<p>If you use several Linux flavors on your system, you can have a single SWAP partition for all of them. Just remember you&#8217;ll loose the &#8216;hibernate&#8217; function if you reboot in a different flavor!</p>
<p>The SWAP partition is of the type &#8220;82&#8243; for those using fdisk under Linux.</p>
<p><b>3. The second partition &#8211; &#8220;root&#8221;</b><br />The &#8220;root&#8221; partition is the base (or &#8216;root&#8217;) of the hierarchical file system. It is mounted as &#8220;/&#8221; in Linux and from there you can go down the hierarchy to any folder or device.<br />The standard of how this hierarchy is set up is well defined in the Filesystem Hierarchy Standard (or FHS) for all Unix-like operating systems. You can read more on this standard <a href="http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard">here</a> and <a href="http://www.pathname.com/fhs/">here</a>.<br />Unfortunately, not all Unix or even Linux flavors adhere 100% to the standard, but that&#8217;s life&#8230;</p>
<p>The root partition is where the basic operating system is installed and all files needed to boot your system, get it connected to the network, etc., should be installed here.<br />Other files, like data, applications not needed for basic operations, user files, etc., can be on other partitions that are mounted later in the boot process.<br />The &#8220;/root&#8221; &#8211; the &#8216;home&#8217; directory of the &#8220;root&#8221; user must be on the root partition to guarantee that root can login, even if the network is unavailable or external hard drives are not accessible.</p>
<p>Most modern Linux distributions are about 5 to 7 GB in size when fully installed.<br />To have some extra space, I usually create my root partitions with a size of 15 GB.</p>
<p><b>4. Extra &#8220;root&#8221; partitions</b><br />Why create extra root partitions? Because you might want to experiment with newer versions of programs, without messing up your working installation.<br />Or you might want to try out a completely different distribution of Linux for a change.<br />I personally keep three &#8220;root&#8221; partitions on my drive, but two should be enough in most setups.<br />If you make them 15 GB, like your first root partition, you should be ready for most installations.</p>
<p><b>5. The &#8220;/boot&#8221; partition</b><br />In Linux the /boot folder is used to store the kernel and the &#8216;initrd&#8217; files. It is (normally, but do read on&#8230;) only used during the boot process.</p>
<p>Most people forget to make a separate partition for /boot. If you run only one installation of Linux on your system, that&#8217;s fine. But if you plan to setup a multiple-boot system, with more than one Installation of Linux, possibly mixing different flavors, you might get confused when configuring your boot loader.</p>
<p>For instance, let&#8217;s say you install Slackware and Ubuntu on your system.<br />From Slackware, you configure your /etc/lilo.conf to read the kernel from /boot/vmlinuz-xxxx<br />To include Ubuntu in your lilo menu, you would need define your image as /dev/sdxx/boot/vmlinuz-yyyy<br />And to make things worse, after booting Ubuntu, your /etc/lilo.conf there will have to be different, referring to the Slackware kernel as /dev/sdyy/boot/vmlinux-xxxx</p>
<p>To keep things simple, have a separate /boot partition on your drive that is accessible from all your Linux installations as /boot. Just take care to name your kernels in an organized way, so that you can remember which kernel belongs to which Linux distro.</p>
<p>Now you will still have several copies of your /etc/lilo.conf, as it stays on the root partition of your Linux installations.<br />I solved this by creating an /etc folder in /boot, where I put the lilo.conf file and then create a symbolic link in /etc with this command:<br /><code># ln -s /boot/etc/lilo.conf /etc/lilo.conf</code><br />This way I can edit my lilo configuration from any Linux installation and keep things simple.</p>
<p>As for the size of the /boot partition, I make it 250 MB and that has always been enough for me, even with several kernels from several concurrent installations.</p>
<p><b>6. The (optional) &#8220;/home&#8221; partition</b><br />The /home partition is the subject of many discussions. Each user on a Unix or Linux system has its own /home/&lt;username&gt; folder, accessible only to this user and the all-powerful root.<br />User-specific configuration files are stored there as well, mostly in hidden sub-folders like .mozilla, .mc, etc.<br />If your system is only going to have one user, you might as well store everything you want in your &#8220;home&#8221; folder. But if your system has several users that share files, it is not a good idea to store them here.</p>
<p>The /home partition also can cause problems if one specific user put a lot of files in his home folder, filling up the whole partition and effectively locking the system for other users that can&#8217;t even save a simple configuration file. The solution to this problem is configuring a quota-system, but that is beyond the scope of this post.</p>
<p>As a simple rule, I create my /home partition with the size of (number of users) x 2 GB. That should be enough to save all configuration files. Shared data (downloaded MP3 files, pictures from digital cameras, etc.) go in a separate partition for data (just continue reading&#8230;)</p>
<p><b>7. The (optional) &#8220;/usr/local&#8221; partition</b><br />As I wrote above, I create my root partitions with the size of 15 GB. This is normally more than enough for a standard Linux installation plus several extra programs.<br />If you are installing a server with lots of local, non-standard (read: not provided by the standard installation of your Linux distribution) programs, you might want to create a /usr/local partition.</p>
<p>The size of this partition depends on your specific needs.</p>
<p><b>8. The (optional) &#8220;data&#8221; partition</b><br />Your desktop (or server) might contain data files you want to share with other users &#8211; locally or over the network.<br />I have seen many discussion on where these files should be saved on a Linux system.<br />Some prefer the &#8220;home&#8221; folder of the user, but then they will be available only to that particular user (unless you change the standard permissions, which is not a good idea).<br />Others prefer a special folder in the root directory, like &#8220;/data&#8221;, &#8220;/photos&#8221;, &#8220;/mp3&#8243;, etc. I personally don&#8217;t like this idea, as it goes against the FHS mentioned before.</p>
<p>In *my* opinion, data should be stored under /srv/xxxx, which is <a href="http://www.pathname.com/fhs/pub/fhs-2.3.html#SRVDATAFORSERVICESPROVIDEDBYSYSTEM">defined</a> by the FHS as &#8220;site-specific data which is served by this system&#8221;.<br />If you are sharing your pictures or mp3 files, you are &#8220;serving specific data&#8221; on your system.<br />So I mount my &#8220;data&#8221; partition on /srv/data with sub-folders like &#8220;pictures&#8221;, &#8220;music&#8221;, etc.</p>
<p>The size of this partition is limited by your hard drive only and your specific needs.</p>
<p><b>9. Final conclusions</b><br />Do not forget to define all your partitions in your /etc/fstab file to mount them at boot time.</p>
<p>And &#8211; I can&#8217;t say this enough &#8211; it all depends on your needs.<br />You might not need all these partitions. You can very well survive with just a SWAP and a single root partition on a 1 TB drive. You just might encounter some problems when updating your system&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2009/05/on-partitioning-your-hard-drive/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>KDE Network Configuration tool and Slackware</title>
		<link>http://blog.nielshorn.net/2008/12/kde-network-configuration-tool-and-slackware/</link>
		<comments>http://blog.nielshorn.net/2008/12/kde-network-configuration-tool-and-slackware/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 12:10:00 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[configuration]]></category>

		<guid isPermaLink="false">http://www.nielshorn.net/blog/?p=38</guid>
		<description><![CDATA[This weekend I tried to help someone on LinuxQuestions.org who asked about the knetworkconf tool from KDEs Control Center.In Slackware this tool hasn&#8217;t been working for quite some time, it simply says that our operating system is not supported:
(My KDE is in Portuguese, but you&#8217;ll get the idea&#8230;)
I never bothered about it, as I prefer [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend I tried to help someone on <a href="http://www.linuxquestions.org/">LinuxQuestions.org</a> who asked about the knetworkconf tool from KDEs Control Center.<br />In Slackware this tool hasn&#8217;t been working for quite some time, it simply says that our operating system is not supported:</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_q65cj3yCRO4/STvLn8SU96I/AAAAAAAAAPQ/ynM6L_iRVPI/s1600-h/knetworkconf_1.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 230px; height: 320px;" src="http://1.bp.blogspot.com/_q65cj3yCRO4/STvLn8SU96I/AAAAAAAAAPQ/ynM6L_iRVPI/s320/knetworkconf_1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5277035275453003682" /></a><br />(My KDE is in Portuguese, but you&#8217;ll get the idea&#8230;)</p>
<p>I never bothered about it, as I prefer to do all configuring the &#8216;Slackware-way&#8217;: editing text files. This way I know what&#8217;s happening and I am in control.</p>
<p>But I understand that this is not for everyone, so this subject pops up once in a while on the forums and I decided to take a look again.</p>
<p>The knetworkconf tool uses several Perl scripts that are stored in /usr/share/apps/knetworkconf/backends<br />I am definitely not a Perl-guru, but browsing through the several files, I discovered it was nothing too complicated. Basically, network configuration hasn&#8217;t changed much in Slackware over the last several versions so first I just added the newer version numbers to all files where they were checked.</p>
<p>Posting the first patch file on LinuxQuestions.org a fellow forum member (thanks Woodsman!) discovered that the KDE tool did not show the configured domain correctly.<br />This actually was a bug in the tool, not my patch, but I managed to solve it.</p>
<p>After some more testing I discovered that every time I saved any changes with knetworkconf, my Samba server stopped working and was even disabled.<br />This turned out to be another silly bug in knetworkconf, where they forgot to use a variable that holds the current status of Samba.</p>
<p>I posted all patches on the forum and Pat has already included them in the -current branch (see the <a href="http://www.slackware.com/changelog/current.php?cpu=i386">changelog</a>).<br />I also sent the patches upstream to the fellows at KDE, so hopefully it makes it into the next versions there as well.</p>
<p>Those who use Slackware 12.1 (the most recent stable version), can copy the following lines and save them in a file:<br /><code><br />*** orig/network-conf 2008-12-06 10:17:03.000000000 -0200<br />--- /usr/share/apps/knetworkconf/backends/network-conf 2008-12-06 10:25:17.000000000 -0200<br />***************<br />*** 78,83 ****<br />--- 78,84 ----<br />                "vine-3.0", "vine-3.1",<br />                "ark", <br />                "slackware-9.1.0", "slackware-10.0.0", "slackware-10.1.0", "slackware-10.2.0",<br />+               "slackware-11.0.0", "slackware-12.0.0", "slackware-12.1.0", "slackware-12.2.0",<br />                "gentoo", "vlos-1.2", "freebsd-5", "freebsd-6");</p>
<p>  $description =<<"end_of_description;";<br />*** orig/network.pl 2008-12-06 10:16:52.000000000 -0200<br />--- /usr/share/apps/knetworkconf/backends/network.pl 2008-12-06 21:52:53.000000000 -0200<br />***************<br />*** 541,546 ****<br />--- 541,550 ----<br />         "slackware-10.0.0" => "redhat-6.2",<br />         "slackware-10.1.0" => "redhat-6.2",<br />         "slackware-10.2.0" => "redhat-6.2",<br />+        "slackware-11.0.0" => "redhat-6.2",<br />+        "slackware-12.0.0" => "redhat-6.2",<br />+        "slackware-12.1.0" => "redhat-6.2",<br />+        "slackware-12.2.0" => "redhat-6.2",<br />         "gentoo"       => "debian-2.2",<br />         "vlos-1.2"     => "debian-2.2",<br />         "freebsd-5"    => "debian-2.2",<br />***************<br />*** 1855,1860 ****<br />--- 1859,1868 ----<br />            "slackware-10.0.0" => \&#038;gst_network_deb22_get_file,<br />            "slackware-10.1.0" => \&#038;gst_network_deb22_get_file,<br />            "slackware-10.2.0" => \&#038;gst_network_deb22_get_file,<br />+           "slackware-11.0.0" => \&#038;gst_network_deb22_get_file,<br />+           "slackware-12.0.0" => \&#038;gst_network_deb22_get_file,<br />+           "slackware-12.1.0" => \&#038;gst_network_deb22_get_file,<br />+           "slackware-12.2.0" => \&#038;gst_network_deb22_get_file,<br />            "gentoo"       => \&#038;gst_network_deb22_get_file,<br />            "freebsd-5"    => \&#038;gst_network_deb22_get_file,<br />            "freebsd-6"    => \&#038;gst_network_deb22_get_file,<br />***************<br />*** 3985,3990 ****<br />--- 3993,4002 ----<br />            "slackware-10.0.0" => "",<br />            "slackware-10.1.0" => "",<br />            "slackware-10.2.0" => "",<br />+           "slackware-11.0.0" => "",<br />+           "slackware-12.0.0" => "",<br />+           "slackware-12.1.0" => "",<br />+           "slackware-12.2.0" => "",<br />            "gentoo"       => "",<br />            "vlos-1.2"     => "",<br />            "freebsd-5"    => "",<br />***************<br />*** 4160,4165 ****<br />--- 4172,4181 ----<br />            "slackware-10.0.0" => "slackware-9.1.0",<br />            "slackware-10.1.0" => "slackware-9.1.0",<br />            "slackware-10.2.0" => "slackware-9.1.0",<br />+           "slackware-11.0.0" => "slackware-9.1.0",<br />+           "slackware-12.0.0" => "slackware-9.1.0",<br />+           "slackware-12.1.0" => "slackware-9.1.0",<br />+           "slackware-12.2.0" => "slackware-9.1.0",<br />            "gentoo"       => "gentoo",<br />            "vlos-1.2"     => "gentoo",<br />            "freebsd-5"    => "freebsd-5",<br />***************<br />*** 4442,4447 ****<br />--- 4458,4464 ----<br />         [ "hostname",      \&#038;gst_parse_fq_hostname, HOSTNAME ],<br />         [ "nameserver",    \&#038;gst_parse_split_all_unique_hash_comment, RESOLV_CONF,  "nameserver", "[ \t]+" ],<br />         [ "searchdomain",  \&#038;gst_parse_split_first_array_unique, RESOLV_CONF,  "search", "[ \t]+", "[ \t]+" ],<br />+        [ "domain",        \&#038;gst_parse_fq_domain,   HOSTNAME ],<br />         [ "domain",        \&#038;gst_parse_split_first_str,   RESOLV_CONF,  "domain", "[ \t]+" ],<br />         [ "order",         \&#038;gst_parse_split_first_array, HOST_CONF,    "order", "[ \t]+", ",[ \t]*" ],<br />         [ "hostmatch",     \&#038;gst_parse_split_first_bool,  HOST_CONF,    "multi", "[ \t]+" ],<br />***************<br />*** 4591,4596 ****<br />--- 4608,4617 ----<br />            "slackware-10.0.0" => "slackware-9.1.0",<br />            "slackware-10.1.0" => "slackware-9.1.0",<br />            "slackware-10.2.0" => "slackware-9.1.0",<br />+           "slackware-11.0.0" => "slackware-9.1.0",<br />+           "slackware-12.0.0" => "slackware-9.1.0",<br />+           "slackware-12.1.0" => "slackware-9.1.0",<br />+           "slackware-12.2.0" => "slackware-9.1.0",<br />            "gentoo"       => "gentoo",<br />            "vlos-1.2"     => "gentoo",<br />            "freebsd-5"    => "freebsd-5",<br />***************<br />*** 5439,5444 ****<br />--- 5460,5469 ----<br />            "slackware-10.0.0" => "slackware-9.1.0",<br />            "slackware-10.1.0" => "slackware-9.1.0",<br />            "slackware-10.2.0" => "slackware-9.1.0",<br />+           "slackware-11.0.0" => "slackware-9.1.0",<br />+           "slackware-12.0.0" => "slackware-9.1.0",<br />+           "slackware-12.1.0" => "slackware-9.1.0",<br />+           "slackware-12.2.0" => "slackware-9.1.0",<br />            "gentoo"       => "gentoo",<br />            "vlos-1.2"     => "gentoo",<br />            "freebsd-5"    => "freebsd-5",<br />***************<br />*** 5719,5725 ****<br />         [ "smbdesc",       \&#038;gst_replace_ini,              SMB_CONF,    "global", "server string" ],<br />         [ "winsserver",    \&#038;gst_replace_ini,              SMB_CONF,    "global", "wins server" ],<br />         [ "winsuse",       \&#038;gst_replace_ini_bool,         SMB_CONF,    "global", "wins support" ],<br />!        [ "smbuse",        \&#038;gst_service_bsd_set_status,   "/etc/rc.d/rc.samba" ],<br />         [ "interface",     \&#038;gst_network_interfaces_set,   OLD_HASH ],<br />         [ "gateway",       \&#038;gst_network_route_set_default_gw, "%gatewaydev%" ]<br />        ]<br />--- 5744,5750 ----<br />         [ "smbdesc",       \&#038;gst_replace_ini,              SMB_CONF,    "global", "server string" ],<br />         [ "winsserver",    \&#038;gst_replace_ini,              SMB_CONF,    "global", "wins server" ],<br />         [ "winsuse",       \&#038;gst_replace_ini_bool,         SMB_CONF,    "global", "wins support" ],<br />!        [ "smbuse",        \&#038;gst_service_bsd_set_status,   "/etc/rc.d/rc.samba", "%smbuse%" ],<br />         [ "interface",     \&#038;gst_network_interfaces_set,   OLD_HASH ],<br />         [ "gateway",       \&#038;gst_network_route_set_default_gw, "%gatewaydev%" ]<br />        ]<br />***************<br />*** 5855,5860 ****<br />--- 5880,5889 ----<br />            "slackware-10.0.0" => "slackware-9.1.0",<br />            "slackware-10.1.0" => "slackware-9.1.0",<br />            "slackware-10.2.0" => "slackware-9.1.0",<br />+           "slackware-11.0.0" => "slackware-9.1.0",<br />+           "slackware-12.0.0" => "slackware-9.1.0",<br />+           "slackware-12.1.0" => "slackware-9.1.0",<br />+           "slackware-12.2.0" => "slackware-9.1.0",<br />            "gentoo"       => "gentoo",<br />            "vlos-1.2"     => "gentoo",<br />            "freebsd-5"    => "freebsd-5",<br />*** orig/platform.pl 2008-12-06 10:17:58.000000000 -0200<br />--- /usr/share/apps/knetworkconf/backends/platform.pl 2008-12-06 10:35:27.000000000 -0200<br />***************<br />*** 90,95 ****<br />--- 90,99 ----<br />    "slackware-10.0.0" => "Slackware 10.0.0",<br />    "slackware-10.1.0" => "Slackware 10.1.0",<br />    "slackware-10.2.0" => "Slackware 10.2.0",<br />+   "slackware-11.0.0" => "Slackware 11.0.0",<br />+   "slackware-12.0.0" => "Slackware 12.0.0",<br />+   "slackware-12.1.0" => "Slackware 12.1.0",<br />+   "slackware-12.2.0" => "Slackware 12.2.0",<br />    "freebsd-4"       => "FreeBSD 4",<br />    "freebsd-5"       => "FreeBSD 5",<br />    "freebsd-6"       => "FreeBSD 6",<br />*** orig/service.pl 2008-12-06 10:16:37.000000000 -0200<br />--- /usr/share/apps/knetworkconf/backends/service.pl 2008-12-06 10:36:52.000000000 -0200<br />***************<br />*** 275,280 ****<br />--- 275,284 ----<br />       "slackware-10.0.0" => "slackware-9.1.0",<br />       "slackware-10.1.0" => "slackware-9.1.0",<br />       "slackware-10.2.0" => "slackware-9.1.0",<br />+      "slackware-11.0.0" => "slackware-9.1.0",<br />+      "slackware-12.0.0" => "slackware-9.1.0",<br />+      "slackware-12.1.0" => "slackware-9.1.0",<br />+      "slackware-12.2.0" => "slackware-9.1.0",</p>
<p>       "gentoo"         => "gentoo",<br />       "vlos-1.2"       => "gentoo",<br /></code><br />Be careful with the longer lines!<br />Next, open a console as root and type the following:<br /><code><br />cd /usr/share/apps/knetworkconf/backends<br />patch < (your_saved_patchfile)<br /></code><br />This should work with all versions since 11.0, but I only tested it on 12.1 and 12.2-RC1, so all standard disclaimers apply&#8230;</p>
<p>The result is a working knetworkconf:</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_q65cj3yCRO4/STvHedsno8I/AAAAAAAAAPI/Uj_wmRtrsfM/s1600-h/knetworkconf.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 238px;" src="http://2.bp.blogspot.com/_q65cj3yCRO4/STvHedsno8I/AAAAAAAAAPI/Uj_wmRtrsfM/s320/knetworkconf.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5277030714576446402" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2008/12/kde-network-configuration-tool-and-slackware/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Keeping your clock accurate</title>
		<link>http://blog.nielshorn.net/2008/10/keeping-your-clock-accurate/</link>
		<comments>http://blog.nielshorn.net/2008/10/keeping-your-clock-accurate/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 23:40:00 +0000</pubDate>
		<dc:creator>Niels Horn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[NTP]]></category>
		<category><![CDATA[configuration]]></category>

		<guid isPermaLink="false">http://www.nielshorn.net/blog/?p=13</guid>
		<description><![CDATA[If you want to be sure that your computer clock is accurate &#8211; always &#8211; you can configure your system to use NTP (Network Time Protocol).
NTP is one of the oldest protocols on the internet and its predecessors, going back to the early eighties. If you are interested in reading a small article about the [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to be sure that your computer clock is accurate &#8211; always &#8211; you can configure your system to use NTP (Network Time Protocol).</p>
<p>NTP is one of the oldest protocols on the internet and its predecessors, going back to the early eighties. If you are interested in reading a small article about the history of NTP, I recommend <a href="http://www.cis.udel.edu/~mills/database/papers/history.pdf">this</a> text in PDF. The official &#8216;home&#8217; of NTP is <a href="http://www.ntp.org">www.ntp.org</a></p>
<p>You can use NTP on your Linux desktop to automatically synchronize its clock to a pool of servers around the world that are official &#8216;timekeepers&#8217;. Usually you configure NTP to talk to about three different servers to guarantee that at least one is available at any time. It is best to choose servers near you, so that response times are shorter, which results in a more accurate clock on your computer. There are more than 1.500 servers to choose from, but some areas on our planet are better served than others. For instance: there are almost a thousand servers in Europe, but only 19 in South America (where I live).</p>
<p>Your first step should be to select three servers close to you &#8211; preferably in your country, or if there aren&#8217;t enough, in your &#8216;zone.<br />Go to <a href="http://www.pool.ntp.org/">www.pool.ntp.org</a> and browse through the tree of zones and servers to select which ones are best for you.<br />The &#8216;pooling&#8217; system automatically translates the addresses to the actual domain- and server names.<br />For instance, I use: 0.br.pool.ntp.org, 1.br.pool.ntp.org and 2.br.pool.ntp.org and these names are usually translated to servers at local universities or government institutions.<br />Don&#8217;t worry about this part, the pooling system takes care of it.</p>
<p>Now that you have selected your servers, let&#8217;s start configuring your system. As always, I&#8217;ll use Slackware as an example, but things will be similar in other distributions.</p>
<p><b>1. Configure /etc/ntp.conf</b><br />Edit this file with your favorite text-editor (I use vi) and go to the lines that say:<br /><code><br />server &lt;example-server-name&gt;<br /></code><br />and replace this line or lines with your servers. In my case, I put:<br /><code><br />server 0.br.pool.ntp.org<br />server 1.br.pool.ntp.org<br />server 2.br.pool.ntp.org<br /></code><br />While we&#8217;re editing the configuration, let&#8217;s make NTP a bit more secure, inserting some restrictions. Find the lines (usually at the end) that start with &#8220;restrict &#8230;.&#8221; and replace them with the following:<br /><code><br />restrict default nomodify<br />restrict 127.0.0.1<br />restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap nopeer<br /></code><br />The address 127.0.0.1 is our local IP address that has no restrictions.<br />The network / mask combination in the third line is my local network, so that my other desktops can use my system as a time-server, preventing all of them to send NTP queries to the internet.<br />On the rest of my desktops I put the line &#8220;server 192.168.1.1&#8243; (my local IP) in their ntp.conf</p>
<p><b>2. Synchronize your clock manually</b><br />If your clock is too much behind or ahead, NTP might refuse to synchronize it, so let&#8217;s force the first synchronization with a simple command:<br /><code><br />ntpdate 0.br.pool.ntp.org<br /></code><br />Of course, you should substitute the server name with one from your list.</p>
<p><b>3. Make your ntp daemon executable</b><br />In Slackware this is done with the following command:<br /><code><br />chmod +x /etc/rc.d/rc.ntpd<br /></code><br />This (again, in Slackware) will make it start every time you boot up your system.</p>
<p><b>4. Start NTP now without rebooting</b><br />Again, a simple command:<br /><code><br />/etc/rc.d/rc.ntpd start<br /></code><br />That&#8217;s it! <br />After a few minutes, check if NTP is communicating with the server pool by running this command:<br /><code><br />ntpq -p<br /></code><br />It should show the servers it is talking to and one of them should have an &#8216;*&#8217; in front of it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.nielshorn.net/2008/10/keeping-your-clock-accurate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
