<?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>S.G. Vulcan &#187; Networking</title>
	<atom:link href="http://www.sgvulcan.com/category/systems/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sgvulcan.com</link>
	<description>Silviu&#039;s tech blog. Resources and informations about linux, windows, symbian systems, networks, reviews, microcontrollers, and more.</description>
	<lastBuildDate>Wed, 01 Feb 2012 09:20:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Cisco (Linksys) E3200 router triggers blocked host with DynDNS</title>
		<link>http://www.sgvulcan.com/cisco-linksys-e3200-router-triggers-blocked-host-with-dyndns/</link>
		<comments>http://www.sgvulcan.com/cisco-linksys-e3200-router-triggers-blocked-host-with-dyndns/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 11:11:54 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[abuse]]></category>
		<category><![CDATA[blocked]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[dyndns]]></category>
		<category><![CDATA[e3200]]></category>
		<category><![CDATA[linksys]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1738</guid>
		<description><![CDATA[I finally had to upgrade my home router from an aging WRT54GL and went (despite missing dd-wrt for now) with the Linksys E3200. I installed yesterday including dyndns support because I sometimes access my home network when away. I was surprised to receive an email from dyndns this morning stating that my host has been blocked because of abuse. It was strange since my connection is stable and even though some routers have flaky dyndns update clients linksys didn&#8217;t disappoint me until now&#8230; I do have the latest firmware version so no help there. I browsed a bit around and I found out that others share my issues including owners of the more expensive e4200. Somebody was brave enough to fight tech support until escalated and got a useful response (I&#8217;m pasting the relevant part here): If you have the DDNS server active, every time you hit the save settings button on ANY page of the router GUI, it refreshes all of the settings &#8211; which includes re-updating DynDNS even if the IP address hasn&#8217;t changed. That&#8217;s not nice of them, I really hope this will be fixed in a future firmware update. I fiddle with my configuration from time [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-1741" title="linksys_e3200" src="http://www.sgvulcan.com/wp-content/uploads/2011/12/linksys_e32001.jpg" alt="" width="150" height="113" />I finally had to upgrade my home router from an aging WRT54GL and went (despite missing dd-wrt for now) with the Linksys E3200. I installed yesterday including dyndns support because I sometimes access my home network when away. I was surprised to receive an email from dyndns this morning stating that my host has been blocked because of abuse. It was strange since my connection is stable and even though some routers have flaky dyndns update clients linksys didn&#8217;t disappoint me until now&#8230;</p>
<p>I do have the latest firmware version so no help there. I browsed a bit around and I found out that others share my issues including owners of the more expensive e4200.</p>
<p>Somebody was brave enough to fight tech support until escalated and got a useful <a href="http://homecommunity.cisco.com/t5/Wireless-Routers/E4200-causing-DynDNS-Abuse/m-p/402713#M203884">response</a> (I&#8217;m pasting the relevant part here):</p>
<blockquote><p>If you have the DDNS server active, every time you hit the save settings button on ANY page of the router GUI, it refreshes all of the settings &#8211; which includes re-updating DynDNS even if the IP address hasn&#8217;t changed.</p></blockquote>
<p>That&#8217;s not nice of them, I really hope this will be fixed in a future firmware update. I fiddle with my configuration from time to time and I&#8217;m sure next time I&#8217;ll forget to disable dyndns before changing settings.</p>
<p>I know that I&#8217;m just quoting from a forum but I want a copy of the sollution here, otherwise next time I change the settings I won&#8217;t know why my host gets blocked <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/cisco-linksys-e3200-router-triggers-blocked-host-with-dyndns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Akismet troubles traced back to DNS issues.</title>
		<link>http://www.sgvulcan.com/akismet-troubles-traced-back-to-dns-issues/</link>
		<comments>http://www.sgvulcan.com/akismet-troubles-traced-back-to-dns-issues/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 05:50:34 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[akismet]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[mtr]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ping]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1439</guid>
		<description><![CDATA[My API key for Akismet was suddenly unconfirmed by reason of not being able to reach akismet.com My provider had indeed troubles with their primary DNS so I switched to the google public one. (8.8.8.8). This is a server not a browsing machine so I don&#8217;t have any privacy worries. Long storry short, I changed the DNS and expected the problem to go away. Next day I was happy to find out that it didn&#8217;t. I pinged akismet.com from the console, tried http connection to it with links everything was fine. For good measure I tried other DNS entries, tried a mtr to akismet.com but still everything was fine and the key in Akismet Configuration refused to work. Than, after a slap on my forehead I remembered THIS. Right, after View Code BASH1 2 # service httpd stop # service httpd start Everything went back to normal.]]></description>
			<content:encoded><![CDATA[<p>My API key for Akismet was suddenly unconfirmed by reason of not being able to reach akismet.com My provider had indeed troubles with their primary DNS so I switched to the google public one. (8.8.8.8). This is a server not a browsing machine so I don&#8217;t have any privacy worries.</p>
<p>Long storry short, I changed the DNS and expected the problem to go away. Next day I was happy to find out that it didn&#8217;t. I pinged akismet.com from the console, tried http connection to it with links everything was fine. For good measure I tried other DNS entries, tried a mtr to akismet.com but still everything was fine and the key in Akismet Configuration refused to work.</p>
<p>Than, after a slap on my forehead I remembered <strong><a href="http://www.sgvulcan.com/php-code-misses-dns-updates/">THIS</a>.</strong> Right, after</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1439code2'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p14392"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p1439code2"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># service httpd stop</span>
<span style="color: #666666; font-style: italic;"># service httpd start</span></pre></td></tr></table></div>

<p>Everything went back to normal.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/akismet-troubles-traced-back-to-dns-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BandwithD resets stats data after restart/reboot</title>
		<link>http://www.sgvulcan.com/bandwithd-resets-stats-data-after-restartreboot/</link>
		<comments>http://www.sgvulcan.com/bandwithd-resets-stats-data-after-restartreboot/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 11:49:51 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[across]]></category>
		<category><![CDATA[bandwidthd]]></category>
		<category><![CDATA[persist]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[restart]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/bandwithd-resets-stats-data-after-restartreboot/</guid>
		<description><![CDATA[This was a funny one: I have installed the Bandwithd monitoring software on a machine. I noticed that the monitoring data kept being erased between start/stop or reboot. There actually are two configuration settings which are false by default that allows BandwidthD to keep it&#8217;s data across restart&#8217;s (or system reboots) and those are (in /etc/bandwidthd.conf) View Code BASH1 2 3 4 5 #Log data to cdf file htdocs/log.cdf output_cdf true &#160; #Read back the cdf file on startup recover_cdf true (they are false by default, you need to set them true like above)]]></description>
			<content:encoded><![CDATA[<p>This was a funny one:</p>
<p>I have installed the <a target="_blank" href="http://sourceforge.net/projects/bandwidthd/">Bandwithd</a> monitoring software on a machine. I noticed that the monitoring data kept being erased between start/stop or reboot. There actually are two configuration settings which are false by default that allows BandwidthD to keep it&#8217;s data across restart&#8217;s (or system reboots) and those are</p>
<p>(in /etc/bandwidthd.conf)</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1157code4'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p11574"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p1157code4"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#Log data to cdf file htdocs/log.cdf</span>
output_cdf <span style="color: #c20cb9; font-weight: bold;">true</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Read back the cdf file on startup</span>
recover_cdf <span style="color: #c20cb9; font-weight: bold;">true</span></pre></td></tr></table></div>

<p>(they are false by default, you need to set them true like above)</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/bandwithd-resets-stats-data-after-restartreboot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql authentication issues</title>
		<link>http://www.sgvulcan.com/mysql-authentication-issues/</link>
		<comments>http://www.sgvulcan.com/mysql-authentication-issues/#comments</comments>
		<pubDate>Wed, 12 Jan 2011 12:57:47 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[anonymous]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[remote]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1148</guid>
		<description><![CDATA[Ever happened to you that you create a user with privileges to connect from any host but it won&#8217;t connect from the localhost? Like this: View Code BASH1 2 3 4 5 6 7 8 9 10 11 12 &#91;root@18969_1_490528 tmp&#93;# mysql -u test_user -puser_pass ERROR 1045 &#40;28000&#41;: Access denied for user 'test_user'@'localhost' &#40;using password: YES&#41; &#160; &#91;root@18969_1_490528 tmp&#93;# mysql -u test_user -puser_pass -h yourhost.com Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL connection id is 55 Server version: 5.0.77 Source distribution &#160; Type 'help;' or '\h' for help. Type '\c' to clear the buffer. &#160; mysql&#62; quit Bye The problem are the anonymous users created by mysql_install_db on initial setup of mysql. Those take precedence. So either you create your user both as &#8216;test_user&#8217;@'%&#8217; and &#8216;test_user&#8217;@localhost either erase those users. I erase them like this as I don&#8217;t need two set&#8217;s of users for every user I need: View Code BASH1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 mysql&#62; select Host,User from user; +----------------+--------------+ &#124; Host           &#124; User         &#124; +----------------+--------------+ &#124; [...]]]></description>
			<content:encoded><![CDATA[<p>Ever happened to you that you create a user with privileges to connect from any host but it won&#8217;t connect from the localhost?</p>
<p>Like this:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1148code7'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p11487"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code" id="p1148code7"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">18969</span>_1_490528 tmp<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mysql -u test_user -puser_pass</span>
ERROR <span style="color: #000000;">1045</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">28000</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: Access denied <span style="color: #000000; font-weight: bold;">for</span> user <span style="color: #ff0000;">'test_user'</span><span style="color: #000000; font-weight: bold;">@</span><span style="color: #ff0000;">'localhost'</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>using password: YES<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">18969</span>_1_490528 tmp<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># mysql -u test_user -puser_pass -h yourhost.com</span>
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection <span style="color: #c20cb9; font-weight: bold;">id</span> is <span style="color: #000000;">55</span>
Server version: 5.0.77 Source distribution
&nbsp;
Type <span style="color: #ff0000;">'help;'</span> or <span style="color: #ff0000;">'\h'</span> <span style="color: #000000; font-weight: bold;">for</span> help. Type <span style="color: #ff0000;">'\c'</span> to <span style="color: #c20cb9; font-weight: bold;">clear</span> the buffer.
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> quit
Bye</pre></td></tr></table></div>

<p>The problem are the anonymous users created by mysql_install_db on initial setup of mysql. Those take precedence. So either you create your user both as &#8216;test_user&#8217;@'%&#8217; and &#8216;test_user&#8217;@localhost either erase those users. I erase them like this as I don&#8217;t need two set&#8217;s of users for every user I need:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1148code8'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p11488"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code" id="p1148code8"><pre class="bash" style="font-family:monospace;">mysql<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">select</span> Host,User from user;
+----------------+--------------+
<span style="color: #000000; font-weight: bold;">|</span> Host           <span style="color: #000000; font-weight: bold;">|</span> User         <span style="color: #000000; font-weight: bold;">|</span>
+----------------+--------------+
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">%</span>              <span style="color: #000000; font-weight: bold;">|</span> test_user    <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> 127.0.0.1      <span style="color: #000000; font-weight: bold;">|</span> root         <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">18969</span>_1_490528 <span style="color: #000000; font-weight: bold;">|</span>              <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">18969</span>_1_490528 <span style="color: #000000; font-weight: bold;">|</span> root         <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> localhost      <span style="color: #000000; font-weight: bold;">|</span>              <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> localhost      <span style="color: #000000; font-weight: bold;">|</span> root         <span style="color: #000000; font-weight: bold;">|</span>
+----------------+--------------+
<span style="color: #000000;">6</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> delete from user where <span style="color: #007800;">User</span>=<span style="color: #ff0000;">''</span>;
Query OK, <span style="color: #000000;">2</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> flush privileges;
Query OK, <span style="color: #000000;">0</span> rows affected <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.01</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">select</span> Host,User from user;
+----------------+--------------+
<span style="color: #000000; font-weight: bold;">|</span> Host           <span style="color: #000000; font-weight: bold;">|</span> User         <span style="color: #000000; font-weight: bold;">|</span>
+----------------+--------------+
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">%</span>              <span style="color: #000000; font-weight: bold;">|</span> test_user    <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> 127.0.0.1      <span style="color: #000000; font-weight: bold;">|</span> root         <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000;">18969</span>_1_490528 <span style="color: #000000; font-weight: bold;">|</span> root         <span style="color: #000000; font-weight: bold;">|</span>
<span style="color: #000000; font-weight: bold;">|</span> localhost      <span style="color: #000000; font-weight: bold;">|</span> root         <span style="color: #000000; font-weight: bold;">|</span>
+----------------+--------------+
<span style="color: #000000;">4</span> rows <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">0.00</span> sec<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
mysql<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/mysql-authentication-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios Grapher fun</title>
		<link>http://www.sgvulcan.com/nagios-grapher-fun/</link>
		<comments>http://www.sgvulcan.com/nagios-grapher-fun/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 15:52:38 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[grapher]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[nagiosgraph]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[rrdtool]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1099</guid>
		<description><![CDATA[I was struggling with Nagios Grapher (or was it nagiosgraph &#8211; I tested both)  in Slackware 13.1 After installing all dependencies it would still refuse to work. I tracked the problem pretty easy to be related to Perl not being able to load the librrd.so.4 library. That was funny as I was sure that I did configure, make and make install the latest version. Well, by default, on slackware at least rrdtool installs in /opt ! I added /opt/rrdtool-x.x/lib in /etc/ld.so.conf  (check to see what is the exact path in your case) and rerun ldconfig. Sure enough everything worked fine. This is the error log I received: View Code APACHE_LOG1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 [Tue Oct 05 14:24:11 2010] [error] [client 127.0.0.1] Premature end of script headers: show.cgi [Tue Oct 05 14:28:04 2010] [error] [client 127.0.0.1] Can't load '/usr/lib64/perl5/site_perl/5.10.1/x86_64-linux-thread-multi/auto/RRDs/RRDs.so' for module RRDs: librrd.so.4: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.10.1/x86_64-linux-thread-multi/DynaLoader.pm line 200. [Tue Oct 05 14:28:04 2010] [error] [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-1102" title="NagiosMonitorIcon" src="http://www.sgvulcan.com/wp-content/uploads/2010/10/NagiosMonitorIcon.png" alt="" width="128" height="128" />I was struggling with Nagios Grapher (or was it nagiosgraph &#8211; I tested both)  in Slackware 13.1 After installing all dependencies it would still refuse to work. I tracked the problem pretty easy to be related to Perl not being able to load the <strong>librrd.so.4</strong> library.</p>
<p>That was funny as I was sure that I did configure, make and make install the latest version. Well, by default, on slackware at least rrdtool installs in <strong>/opt ! </strong></p>
<p><strong>I added /opt/rrdtool-x.x/lib in /etc/ld.so.conf  (check to see what is the exact path in your case) and rerun ldconfig. Sure enough everything worked fine.</strong></p>
<p>This is the error log I received:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1099code10'); return false;">View Code</a> APACHE_LOG</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p109910"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
</pre></td><td class="code" id="p1099code10"><pre class="apache_log" style="font-family:monospace;">[Tue Oct 05 14:24:11 2010] [error] [client 127.0.0.1] Premature end of
script headers: show.cgi
[Tue Oct 05 14:28:04 2010] [error] [client 127.0.0.1] Can't load
'/usr/lib64/perl5/site_perl/5.10.1/x86_64-linux-thread-multi/auto/RRDs/RRDs.so'
for module RRDs: librrd.so.4: cannot open shared object file: No such
file or directory at
/usr/lib64/perl5/5.10.1/x86_64-linux-thread-multi/DynaLoader.pm line
200.
[Tue Oct 05 14:28:04 2010] [error] [client 127.0.0.1]  at
/usr/local/nagiosgraph/etc/ngshared.pm line 27
[Tue Oct 05 14:28:04 2010] [error] [client 127.0.0.1] Compilation
failed in require at /usr/local/nagiosgraph/etc/ngshared.pm line 27.
[Tue Oct 05 14:28:04 2010] [error] [client 127.0.0.1] BEGIN
failed--compilation aborted at /usr/local/nagiosgraph/etc/ngshared.pm
line 27.
[Tue Oct 05 14:28:04 2010] [error] [client 127.0.0.1] Compilation
failed in require at /usr/local/nagios/sbin/show.cgi line 13.
[Tue Oct 05 14:28:04 2010] [error] [client 127.0.0.1] BEGIN
failed--compilation aborted at /usr/local/nagios/sbin/show.cgi line
13.
[Tue Oct 05 14:28:04 2010] [error] [client 127.0.0.1] Premature end of
script headers: show.cgi
[Tue Oct 05 14:28:06 2010] [error] [client 127.0.0.1] Can't load
'/usr/lib64/perl5/site_perl/5.10.1/x86_64-linux-thread-multi/auto/RRDs/RRDs.so'
for module RRDs: librrd.so.4: cannot open shared object file: No such
file or directory at
/usr/lib64/perl5/5.10.1/x86_64-linux-thread-multi/DynaLoader.pm line
200.
[Tue Oct 05 14:28:06 2010] [error] [client 127.0.0.1]  at
/usr/local/nagiosgraph/etc/ngshared.pm line 27
[Tue Oct 05 14:28:06 2010] [error] [client 127.0.0.1] Compilation
failed in require at /usr/local/nagiosgraph/etc/ngshared.pm line 27.
[Tue Oct 05 14:28:06 2010] [error] [client 127.0.0.1] BEGIN
failed--compilation aborted at /usr/local/nagiosgraph/etc/ngshared.pm
line 27.
[Tue Oct 05 14:28:06 2010] [error] [client 127.0.0.1] Compilation
failed in require at /usr/local/nagios/sbin/show.cgi line 13.
[Tue Oct 05 14:28:06 2010] [error] [client 127.0.0.1] BEGIN
failed--compilation aborted at /usr/local/nagios/sbin/show.cgi line
13.
[Tue Oct 05 14:28:06 2010] [error] [client 127.0.0.1] Premature end of
script headers: show.cgi</pre></td></tr></table></div>

<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/nagios-grapher-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache 2.2 will not serve corectly from CIFS mounted share</title>
		<link>http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/</link>
		<comments>http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 09:09:40 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[smbfs]]></category>
		<category><![CDATA[symlink]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1062</guid>
		<description><![CDATA[I have a home server I use for all kinds of stuff when I&#8217;m away. I have set it up recently so that it can serve a folder mounted over the network from a Windows machine. And this is where the fun started! The folders and files appear correctly, I can navigate and I can download them. Only that the files, even if apparently having the same size are corrupted. I checked the FollowSymLinks and as expected was set as required. I tried wget in the command prompt to see if I could find some enlightment but I got the following errors: View Code BASH1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 # wget http://192.xxx.xxx.xxx/windowsshare/folder/file.jpg --09:18:00-- http://192.xxx.xxx.xxx/windowsshare/folder/file.jpg =&#62; `file.jpg' Connecting to 127.0.0.1:80... connected. HTTP request sent, awaiting response... 200 OK Length: 763,685 (746K) [image/jpeg] &#160; 0% [ ] 0 --.--K/s &#160; 09:18:00 (0.00 B/s) - Connection closed at byte 0. Retrying. &#160; --09:18:01-- http://192.xxx.xxx.xxx/windowsshare/folder/file.jpg (try: 2) =&#62; `file.jpg' Connecting to 127.0.0.1:80... connected. HTTP request sent, awaiting response... 200 OK Length: 763,685 &#40;746K&#41; &#91;image/jpeg&#93; file.jpg has sprung into existence. [...]]]></description>
			<content:encoded><![CDATA[<p>I have a home server I use for all kinds of stuff when I&#8217;m away. I have set it up recently so that it can serve a folder mounted over the network from a Windows machine.</p>
<p><em>And this is where the fun started!</em></p>
<p>The folders and files appear correctly, I can navigate and I can download them. Only that the files, even if apparently having the same size are corrupted. I checked the <strong><em>FollowSymLinks </em></strong>and as expected was set as required. I tried wget in the command prompt to see if I could find some enlightment but I got the following errors:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1062code12'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p106212"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code" id="p1062code12"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># wget http://192.xxx.xxx.xxx/windowsshare/folder/file.jpg</span>
 --09:<span style="color: #000000;">18</span>:00--  http:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #000000;">192</span>.xxx.xxx.xxx<span style="color: #000000; font-weight: bold;">/</span>windowsshare<span style="color: #000000; font-weight: bold;">/</span>folder<span style="color: #000000; font-weight: bold;">/</span>file.jpg
 =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">`</span>file.jpg<span style="color: #ff0000;">'
 Connecting to 127.0.0.1:80... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 763,685 (746K) [image/jpeg]
&nbsp;
 0%
 [                                                                  ]
 0             --.--K/s
&nbsp;
 09:18:00 (0.00 B/s) - Connection closed at byte 0. Retrying.
&nbsp;
 --09:18:01--  http://192.xxx.xxx.xxx/windowsshare/folder/file.jpg
 (try: 2) =&gt; `file.jpg'</span>
 Connecting to 127.0.0.1:<span style="color: #000000;">80</span>... connected.
 HTTP request sent, awaiting response... <span style="color: #000000;">200</span> OK
 Length: <span style="color: #000000;">763</span>,<span style="color: #000000;">685</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>746K<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>image<span style="color: #000000; font-weight: bold;">/</span>jpeg<span style="color: #7a0874; font-weight: bold;">&#93;</span>
 file.jpg has sprung into existence.
 Retrying.
&nbsp;
 --09:<span style="color: #000000;">18</span>:03--  http:<span style="color: #000000; font-weight: bold;">//</span><span style="color: #000000;">192</span>.xxx.xxx.xxx<span style="color: #000000; font-weight: bold;">/</span>windowsshare<span style="color: #000000; font-weight: bold;">/</span>folder<span style="color: #000000; font-weight: bold;">/</span>file.jpg
 <span style="color: #7a0874; font-weight: bold;">&#40;</span>try: <span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">`</span>file.jpg.1<span style="color: #ff0000;">'
 Connecting to 127.0.0.1:80... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 763,685 (746K) [image/jpeg]
&nbsp;
 0%
 [                                                                  ]
 0             --.--K/s</span></pre></td></tr></table></div>

<p>and it will continue like this creating empty files.</p>
<p>Especial the <strong>has sprung into existence</strong> baffled me. Also note that symlinking any other folder, even mounted as <strong>smbfs</strong> instead of <strong>cifs</strong> worked perfectly. At this point changing the mount to smbfs would have solved my problem but curiosity was stronger.</p>
<p>As it turns either apache or (more likely) the cifs driver has a bug. You can work around it by setting the following inside your apache configuration.</p>
<pre>EnableSendfile off</pre>
<p>Further upgrades will probably eradicate this problem.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Network interface bonding in Slackware (version 13.1)</title>
		<link>http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/</link>
		<comments>http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 11:26:08 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[bond]]></category>
		<category><![CDATA[bonding]]></category>
		<category><![CDATA[failover]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[redudancy]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[trunk]]></category>
		<category><![CDATA[trunking]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=1049</guid>
		<description><![CDATA[A backup NAS I set up for a client had some problems &#8211; i.e. from time to time the network card would hang forcing a reboot (the machine was headless). The disks in the nas are RAID 1 providing redundancy in case of failure. We wanted the same with the network. So, nothing easier than to install a second network card and set up bonding. What is network bonding? Bonding is the same as port trunking. It means that two (ore more) physical network connections are combine to form one virtual network connection. The added benefit is that bandwidth adds too.  So theoretically this could offer multi gigabit capabilities. How is it configured First you need a small utility that comes with the linux kernel: ifenslave. So we must compile it. After that it should be moved somewhere more apropriate. View Code BASH1 2 3 cd /usr/src/linux/Documentation/networking gcc -Wall -O -I/usr/src/linux/include ifenslave.c -o ifenslave cp ifenslave /sbin/ifenslave Then we need some scripts that will set up bonding on boot. So we go to /etc/rc.d and create a new file called rc.bond View Code BASH1 2 cd /etc/rc.d touch rc.bond Edit the file you just created to contain the following: View [...]]]></description>
			<content:encoded><![CDATA[<p>A backup NAS I set up for a client had some problems &#8211; i.e. from time to time the network card would hang forcing a reboot (the machine was headless). The disks in the nas are RAID 1 providing redundancy in case of failure. We wanted the same with the network. So, nothing easier than to install a second network card and set up bonding.</p>
<h3>What is network bonding?</h3>
<p>Bonding is the same as port trunking. It means that two (ore more) physical network connections are combine to form one virtual network connection. The added benefit is that bandwidth adds too.  So theoretically this could offer multi gigabit capabilities.</p>
<h3>How is it configured</h3>
<p>First you need a small utility that comes with the linux kernel: <strong>ifenslave</strong>. So we must compile it. After that it should be moved somewhere more apropriate.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1049code19'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p104919"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p1049code19"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span>Documentation<span style="color: #000000; font-weight: bold;">/</span>networking
<span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-Wall</span> <span style="color: #660033;">-O</span> -I<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span>include ifenslave.c  <span style="color: #660033;">-o</span> ifenslave
<span style="color: #c20cb9; font-weight: bold;">cp</span> ifenslave <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>ifenslave</pre></td></tr></table></div>

<p>Then we need some scripts that will set up bonding on boot. So we go to <strong>/etc/rc.d</strong> and create a new file called <strong>rc.bond</strong></p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1049code20'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p104920"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p1049code20"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d
<span style="color: #c20cb9; font-weight: bold;">touch</span> rc.bond</pre></td></tr></table></div>

<p>Edit the file you just created to contain the following:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1049code21'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p104921"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code" id="p1049code21"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
          <span style="color: #ff0000;">'start'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;start bond0&quot;</span>
            modprobe bonding <span style="color: #007800;">mode</span>=balance-rr <span style="color: #007800;">miimon</span>=<span style="color: #000000;">100</span>
            modprobe tg3
            <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> bond0 up
            ifenslave bond0 eth0
            ifenslave bond0 eth1
            <span style="color: #666666; font-style: italic;">#You don't necesarily need to change the hardware address</span>
            <span style="color: #666666; font-style: italic;">#It will take it from the first hardware interface</span>
            <span style="color: #666666; font-style: italic;">#ifconfig bond0 hw ether 00:16:3e:aa:aa:aa</span>
          <span style="color: #000000; font-weight: bold;">;;</span>
          <span style="color: #ff0000;">'stop'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
            <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> bond0 down
            rmmod bonding
            rmmod tg3
          <span style="color: #000000; font-weight: bold;">;;</span>
          <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Usage: $0 {start|stop}&quot;</span>
          <span style="color: #000000; font-weight: bold;">;;</span>
        <span style="color: #000000; font-weight: bold;">esac</span></pre></td></tr></table></div>

<p>Save this file and make it executable</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1049code22'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p104922"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1049code22"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.bond</pre></td></tr></table></div>

<p>We need to start this on boot. So edit rc.M You need to find the line containing <strong>#Initialize the networking hardware</strong> and insert this after it</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1049code23'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p104923"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p1049code23"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># If script rc.bond is executeable then start it</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.bond <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  . <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc.bond start
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

<p>Finally we must configure <strong>rc.inet1.conf </strong>to set our bond interface and to make sure the physical interfaces are not configured. Add the following:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1049code24'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p104924"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p1049code24"><pre class="bash" style="font-family:monospace;">IFNAME<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=<span style="color: #ff0000;">&quot;bond0&quot;</span>
IPADDR<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=<span style="color: #ff0000;">&quot;XXX.XX.XX.XX&quot;</span>
NETMASK<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=<span style="color: #ff0000;">&quot;255.255.255.0&quot;</span>
USE_DHCP<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=<span style="color: #ff0000;">&quot;&quot;</span>
DHCP_HOSTNAME<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=<span style="color: #ff0000;">&quot;&quot;</span></pre></td></tr></table></div>

<p><strong>Make sure that the physical interfaces, like 0, 1 and so on are NOT configured.</strong><br />
Reboot, and everything will be set.</p>
<p>For your reference those are the bonding modes available:</p>
<blockquote><p><strong>mode=0	(balance-rr)</strong><br />
Round-robin policy: Transmit packets in sequential order from the first  available slave  through the last.  This mode provides load balancing and fault  tolerance.</p>
<p><strong>mode=1 (active-backup)</strong><br />
Active-backup policy: Only one slave in the bond is active. A different  slave becomes  active if, and only if, the active slave fails. The bond&#8217;s MAC address  is externally  visible on only one port (network adapter) to avoid confusing the  switch.  This mode  provides fault tolerance. The primary option affects the behavior of  this mode.</p>
<p><strong>mode=2	(balance-xor)</strong><br />
XOR policy: Transmit based on [(source MAC address XOR'd with  destination MAC address)  modulo slave count].  This selects the same slave for each destination  MAC address. This  mode provides load balancing and fault tolerance.</p>
<p><strong>mode=3 	(broadcast)</strong><br />
Broadcast policy: transmits everything on all slave interfaces. This  mode provides fault  tolerance.</p>
<p><strong>mode=4	(802.3ad)</strong><br />
IEEE 802.3ad Dynamic link aggregation. Creates aggregation groups that  share the same  speed and duplex settings.  Utilizes all slaves in the active aggregator  according to  the 802.3ad specification.</p>
<pre>	<em>Pre-requisites:
	1. Ethtool support in the base drivers for retrieving
	the speed and duplex of each slave.
	2. A switch that supports IEEE 802.3ad Dynamic link
	aggregation.
	Most switches will require some type of configuration
	to enable 802.3ad mode.</em></pre>
<p><strong>mode=5	(balance-tlb)</strong><br />
Adaptive transmit load balancing: channel bonding that does not require  any special  switch support. The outgoing traffic is distributed according to the  current load  (computed relative to the speed) on each slave.  Incoming traffic is  received by  the current slave.  If the receiving slave fails, another slave takes  over the  MAC address of the failed receiving slave.</p>
<pre>	<em>Prerequisite:
	Ethtool support in the base drivers for retrieving the
	speed of each slave.</em></pre>
</blockquote>
<blockquote><p><strong>mode=6 (balance-alb)</strong><br />
Adaptive load balancing: includes balance-tlb plus receive load  balancing (rlb) for  IPV4 traffic, and does not require any special switch support. The  receive load  balancing is achieved by ARP negotiation. The bonding driver intercepts  the ARP  Replies sent by the local system on their way out and overwrites the  source hardware  address with the unique hardware address of one of the slaves in the  bond  such that different peers use different hardware addresses for the  server.</p>
<p>[source: <a href="http://www.linuxhorizon.ro/bonding.html" target="_blank">http://www.linuxhorizon.ro/bonding.html</a>]</p></blockquote>
<p>The most used are the first four mode types&#8230;</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sendmail says &#8220;domain does not exist&#8221;</title>
		<link>http://www.sgvulcan.com/sendmail-says-domain-does-not-exist/</link>
		<comments>http://www.sgvulcan.com/sendmail-says-domain-does-not-exist/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 17:05:44 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[deliver]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[exist]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=720</guid>
		<description><![CDATA[Recently I set-up a machine in my closet to act as a backup server. One of it&#8217;s jobs is to download via pop3 all the email from our Gmail accounts just in case the cloud goes puf . For this job I used fetchmail to fetch the emails to local users on the machine. All nice and simple &#8230; you&#8217;d think. The mail didn&#8217;t get delivered because sendmail complained about this error. View Code BASH1 Domain of sender address user@old.domain.com does not exist Now this is weird &#8211; I just want to have the mails delivered locally. Well, since spam is such a big problem sendmail likes to check that the domain from which the message originated is real. In my case this fails of course since some of the old emails we have in this accounts are from addresses that no longer exists and so sendmail refused to deliver them. So we just have to tell email to accept email coming from nonexistent domains. Note: that this is not safe or recommended in anyway if the sendmail is running on a live email server. (Why are you running sendmail on  live machine anyway?) It&#8217;s acceptable in this case since [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sgvulcan.com/wp-content/uploads/2010/02/sendmail.jpg" rel="lightbox[720]"><img class="alignleft size-full wp-image-722" title="sendmail" src="http://www.sgvulcan.com/wp-content/uploads/2010/02/sendmail.jpg" alt="" width="117" height="42" /></a>Recently I set-up a machine in my closet to act as a backup server. One of it&#8217;s jobs is to download via pop3 all the email from our Gmail accounts just in case the cloud goes puf <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . For this job I used fetchmail to fetch the emails to local users on the machine. All nice and simple &#8230; you&#8217;d think.</p>
<p>The mail didn&#8217;t get delivered because sendmail complained about this error.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p720code31'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p72031"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p720code31"><pre class="bash" style="font-family:monospace;">Domain of sender address user<span style="color: #000000; font-weight: bold;">@</span>old.domain.com does not exist</pre></td></tr></table></div>

<p>Now this is weird &#8211; I just want to have the mails delivered locally. Well, since spam is such a big problem sendmail likes to check that the domain from which the message <em><strong>originated</strong></em> is real.</p>
<p>In my case this fails of course since some of the old emails we have in this accounts are from addresses that no longer exists and so sendmail refused to deliver them. So we just have to tell email to accept email coming from nonexistent domains.</p>
<p><em><strong>Note</strong></em>: that this is not safe or recommended in anyway if the sendmail is running on a live email server. (Why are you running sendmail on  live machine anyway?) It&#8217;s acceptable in this case since this sendmail will only get messages downloaded by fetchmail from a few google GMail accounts.</p>
<p>So the setting to change in order to allow messages from nonexistent domains is found in</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p720code32'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p72032"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p720code32"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>sendmail<span style="color: #000000; font-weight: bold;">/</span>cf<span style="color: #000000; font-weight: bold;">/</span>cf<span style="color: #000000; font-weight: bold;">/</span>sendmail-slackware.mc</pre></td></tr></table></div>

<p>and it&#8217;s this one:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p720code33'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p72033"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p720code33"><pre class="bash" style="font-family:monospace;">dnl<span style="color: #666666; font-style: italic;"># Turn this feature on if you don't always have DNS, or enjoy junk mail:</span>
dnl FEATURE<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">`</span>accept_unresolvable_domains<span style="color: #ff0000;">')dnl</span></pre></td></tr></table></div>

<p>and after changing it should read:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p720code34'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p72034"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p720code34"><pre class="bash" style="font-family:monospace;">FEATURE<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">`</span>accept_unresolvable_domains<span style="color: #ff0000;">')dnl</span></pre></td></tr></table></div>

<p>After changing it you must run:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p720code35'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p72035"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p720code35"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>sendmail<span style="color: #000000; font-weight: bold;">/</span>cf<span style="color: #000000; font-weight: bold;">/</span>cf
<span style="color: #c20cb9; font-weight: bold;">cp</span> sendmail-slackware.mc config.mc
 <span style="color: #c20cb9; font-weight: bold;">m4</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>sendmail<span style="color: #000000; font-weight: bold;">/</span>cf<span style="color: #000000; font-weight: bold;">/</span>m4<span style="color: #000000; font-weight: bold;">/</span>cf.m4 config.mc <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mail<span style="color: #000000; font-weight: bold;">/</span>sendmail.cf</pre></td></tr></table></div>

<p>When I did the above again after reinstalling running simply this also worked:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p720code36'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p72036"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p720code36"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">m4</span> sendmail-slackware.mc <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mail<span style="color: #000000; font-weight: bold;">/</span>sendmail.cf</pre></td></tr></table></div>

<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/sendmail-says-domain-does-not-exist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to mount a windows share (samba) from the linux command line</title>
		<link>http://www.sgvulcan.com/how-to-mount-a-windows-share-samba-from-the-linux-command-line/</link>
		<comments>http://www.sgvulcan.com/how-to-mount-a-windows-share-samba-from-the-linux-command-line/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 18:03:08 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[share]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=705</guid>
		<description><![CDATA[As you know Linux does not use drive letters like Windows does. All files are organized under a big tree hierarchy. We use the mount command to mount partitions and this is the same command used to mount remote windows partition or windows shares. Please note that you&#8217;ll need to know the following: Windows username and password (the ones needed to access the share) The machine and share name. Something like //xpdesktop/pictures Have root access on the linux machine Login on your linux machine as root. Type the following command to mount your remote windows share: View Code BASH1 2 mkdir /mnt/share_name mount -t cifs //xpdesktop/pictures -o username=john, password=johnspass /mnt/share_name Where: xpdesktop is the network name of the Windows machine john is the username on  the windows machine johnspass is the password used to access the windows share /mnt/share_name is the target folder where the partition will be mounted (the folder you just created above) You can now cd and ls the remote windows share as any other folder on the linux machine: View Code BASH1 2 cd /mnt/share_name ls  -l I&#8217;ll show you in a following article how you can automatically mount a remote Windows share at boot time.]]></description>
			<content:encoded><![CDATA[<p>As you know Linux does not use drive letters like Windows does. All files are organized under a big tree hierarchy. We use the mount command to mount partitions and this is the same command used to mount remote windows partition or windows shares.</p>
<p>Please note that you&#8217;ll need to know the following:</p>
<ul>
<li>Windows username and password (the ones needed to access the share)</li>
<li>The machine and share name. Something like //xpdesktop/pictures</li>
<li>Have root access on the linux machine</li>
</ul>
<p>Login on your linux machine as root. Type the following command to mount your remote windows share:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p705code39'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p70539"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p705code39"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>share_name
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-t</span> cifs <span style="color: #000000; font-weight: bold;">//</span>xpdesktop<span style="color: #000000; font-weight: bold;">/</span>pictures <span style="color: #660033;">-o</span> <span style="color: #007800;">username</span>=john, <span style="color: #007800;">password</span>=johnspass <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>share_name</pre></td></tr></table></div>

<p>Where:</p>
<ul>
<li>xpdesktop is the network name of the Windows machine</li>
<li>john is the username on  the windows machine</li>
<li>johnspass is the password used to access the windows share</li>
<li>/mnt/share_name is the target folder where the partition will be mounted (the folder you just created above)</li>
</ul>
<p>You can now cd and ls the remote windows share as any other folder on the linux machine:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p705code40'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p70540"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p705code40"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>share_name
<span style="color: #c20cb9; font-weight: bold;">ls</span>  <span style="color: #660033;">-l</span></pre></td></tr></table></div>

<p>I&#8217;ll show you in a following article how you can automatically mount a remote Windows share at boot time.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/how-to-mount-a-windows-share-samba-from-the-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Debian using only SSH</title>
		<link>http://www.sgvulcan.com/installing-debian-using-only-ssh/</link>
		<comments>http://www.sgvulcan.com/installing-debian-using-only-ssh/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 11:40:32 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=619</guid>
		<description><![CDATA[I have a headless machine at home that I plan to use as a backup and development server. Even though I&#8217;m a Skackware guy I chose to install Debian on it. Of course I could have hooked a monitor and keyboard to it but for the sake of exercise I wanted to see if it&#8217;s possible to install debian using ssh from the very beginning. The short answer: it&#8217;s possible &#8230; maybe. Your headless machine should already be set to boot of cd if one is present, otherwise it will not work. Here are the steps needed to start you off: 1. Download the netinst cd image View Code BASH1 wget http://mirrors.kernel.org/debian-cd/5.0.3/i386/iso-cd/debian-503-i386-netinst.iso 2. Mount the ISO to a folder, let&#8217;s call it isoorig View Code BASH1 2 mkdir isoorig mount -o loop -t iso9660 debian-503-i386-netinst.iso isoorig 3. Extract to new folder called isonew View Code BASH1 2 mkdir isonew rsync -a -H –exclude=TRANS.TBL isoorig/ isonew 4. Change the menu to load SSH on boot by default View Code BASH1 /isonew# nano isolinux/txt.cfg DELETE: remove “menu default” from “label install” ADD: View Code BASH1 2 3 4 5 label netinstall menu label ^Install Over SSH menu default kernel /install.386/vmlinuz append auto=true [...]]]></description>
			<content:encoded><![CDATA[<p>I have a headless machine at home that I plan to use as a backup and development server. Even though I&#8217;m a Skackware guy I chose to install Debian on it. Of course I could have hooked a monitor and keyboard to it but for the sake of exercise I wanted to see if it&#8217;s possible to install debian using ssh from the very beginning.</p>
<p>The short answer: <strong>it&#8217;s possible &#8230; maybe</strong>. Your headless machine should already be set to boot of cd if one is present, otherwise it will not work.</p>
<p>Here are the steps needed to start you off:</p>
<p><strong>1. Download the netinst cd image</strong></p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p619code51'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61951"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p619code51"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>mirrors.kernel.org<span style="color: #000000; font-weight: bold;">/</span>debian-cd<span style="color: #000000; font-weight: bold;">/</span>5.0.3<span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>iso-cd<span style="color: #000000; font-weight: bold;">/</span>debian-<span style="color: #000000;">503</span>-i386-netinst.iso</pre></td></tr></table></div>

<p><strong>2. Mount the ISO to a folder, let&#8217;s call it isoorig</strong></p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p619code52'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61952"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p619code52"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> isoorig
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> loop <span style="color: #660033;">-t</span> iso9660 debian-<span style="color: #000000;">503</span>-i386-netinst.iso isoorig</pre></td></tr></table></div>

<p><strong>3. Extract to new folder called isonew</strong></p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p619code53'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61953"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p619code53"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> isonew
rsync <span style="color: #660033;">-a</span> <span style="color: #660033;">-H</span> –<span style="color: #007800;">exclude</span>=TRANS.TBL isoorig<span style="color: #000000; font-weight: bold;">/</span> isonew</pre></td></tr></table></div>

<p><strong>4. Change the menu to load SSH on boot by default</strong></p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p619code54'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61954"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p619code54"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>isonew<span style="color: #666666; font-style: italic;"># nano isolinux/txt.cfg</span></pre></td></tr></table></div>

<p>DELETE:<br />
remove “menu default” from “label install”</p>
<p>ADD:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p619code55'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61955"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p619code55"><pre class="bash" style="font-family:monospace;">label netinstall
menu label ^Install Over SSH
menu default
kernel <span style="color: #000000; font-weight: bold;">/</span>install.386<span style="color: #000000; font-weight: bold;">/</span>vmlinuz
append <span style="color: #007800;">auto</span>=<span style="color: #c20cb9; font-weight: bold;">true</span> <span style="color: #007800;">vga</span>=normal <span style="color: #007800;">file</span>=<span style="color: #000000; font-weight: bold;">/</span>cdrom<span style="color: #000000; font-weight: bold;">/</span>preseed.cfg <span style="color: #007800;">initrd</span>=<span style="color: #000000; font-weight: bold;">/</span>install.386<span style="color: #000000; font-weight: bold;">/</span>initrd.gz <span style="color: #007800;">locale</span>=en_US console-keymaps-at<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">keymap</span>=us</pre></td></tr></table></div>

<p>CHANGE:<br />
“default install” to “default netinstall”</p>
<p>EDIT: both files below and change “timeout 0″ to “timeout 4″ to make it auto select netinstall</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p619code56'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61956"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p619code56"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>isolinux.cfg
<span style="color: #c20cb9; font-weight: bold;">nano</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>prompt.cfg</pre></td></tr></table></div>

<p><strong>5. Create preseed.cfg file</strong></p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p619code57'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61957"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p619code57"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> isonew<span style="color: #000000; font-weight: bold;">/</span>preseed.cfg</pre></td></tr></table></div>

<p><strong>6. PASTE this to the preseed file:</strong></p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p619code58'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61958"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code" id="p619code58"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#### Contents of the preconfiguration file</span>
<span style="color: #666666; font-style: italic;">### Localization</span>
<span style="color: #666666; font-style: italic;"># Locale sets language and country.</span>
d-i debian-installer<span style="color: #000000; font-weight: bold;">/</span>locale <span style="color: #000000; font-weight: bold;">select</span> en_US
<span style="color: #666666; font-style: italic;"># Keyboard selection.</span>
d-i console-keymaps-at<span style="color: #000000; font-weight: bold;">/</span>keymap <span style="color: #000000; font-weight: bold;">select</span> us
<span style="color: #666666; font-style: italic;">### Network configuration</span>
<span style="color: #666666; font-style: italic;"># netcfg will choose an interface that has link if possible. This makes it</span>
<span style="color: #666666; font-style: italic;"># skip displaying a list if there is more than one interface.</span>
d-i netcfg<span style="color: #000000; font-weight: bold;">/</span>choose_interface <span style="color: #000000; font-weight: bold;">select</span> auto
<span style="color: #666666; font-style: italic;"># Any hostname and domain names assigned from dhcp take precedence over</span>
<span style="color: #666666; font-style: italic;"># values set here. However, setting the values still prevents the questions</span>
<span style="color: #666666; font-style: italic;"># from being shown, even if values come from dhcp.</span>
d-i netcfg<span style="color: #000000; font-weight: bold;">/</span>get_hostname string newdebian
d-i netcfg<span style="color: #000000; font-weight: bold;">/</span>get_domain string <span style="color: #7a0874; font-weight: bold;">local</span>
<span style="color: #666666; font-style: italic;"># Disable that annoying WEP key dialog.</span>
d-i netcfg<span style="color: #000000; font-weight: bold;">/</span>wireless_wep string
<span style="color: #666666; font-style: italic;"># The wacky dhcp hostname that some ISPs use as a password of sorts.</span>
<span style="color: #666666; font-style: italic;">#d-i netcfg/dhcp_hostname string radish</span>
d-i preseed<span style="color: #000000; font-weight: bold;">/</span>early_command string anna-install network-console
<span style="color: #666666; font-style: italic;"># Setup ssh password</span>
d-i network-console<span style="color: #000000; font-weight: bold;">/</span>password password <span style="color: #c20cb9; font-weight: bold;">install</span>
d-i network-console<span style="color: #000000; font-weight: bold;">/</span>password-again password <span style="color: #c20cb9; font-weight: bold;">install</span></pre></td></tr></table></div>

<p><strong>7. Recreate md5sum.txt file</strong></p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p619code59'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61959"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p619code59"><pre class="bash" style="font-family:monospace;">md5sum <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #660033;">-follow</span> <span style="color: #660033;">-type</span> f<span style="color: #000000; font-weight: bold;">`</span> <span style="color: #000000; font-weight: bold;">&gt;</span> md5sum.txt</pre></td></tr></table></div>

<p><strong>8. Create your new iso image</strong></p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p619code60'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61960"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p619code60"><pre class="bash" style="font-family:monospace;">mkisofs <span style="color: #660033;">-o</span> ..<span style="color: #000000; font-weight: bold;">/</span>custom_install.iso <span style="color: #660033;">-r</span> <span style="color: #660033;">-J</span> <span style="color: #660033;">-no-emul-boot</span> <span style="color: #660033;">-boot-load-size</span> <span style="color: #000000;">4</span> <span style="color: #660033;">-boot-info-table</span> <span style="color: #660033;">-b</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>isolinux.bin <span style="color: #660033;">-c</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>boot.cat ..<span style="color: #000000; font-weight: bold;">/</span>isonew</pre></td></tr></table></div>

<p>The image you just obtained is ready to burn. This loads everything automatically and goes to the SSH screen.</p>
<p>Thanks go to people on various debian forums, this information was collected via trial and error and by combining info found around. Have fun with your shiny new headless debian box.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin: 5px;padding: 0px;"><p> </p>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* Dupa articol 468x60, created 8/19/09 */
google_ad_slot = "8916341192";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://www.sgvulcan.com/installing-debian-using-only-ssh/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

