<?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>Tue, 27 Jul 2010 11:27:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<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: # 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. Retrying. &#160; --09:18:03-- http://192.xxx.xxx.xxx/windowsshare/folder/file.jpg &#40;try: 3&#41; =&#62; `file.jpg.1' 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 and it will [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* 468x60, pentru inceput post */
google_ad_slot = "4646995774";
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><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_syntax"><div class="code"><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>192.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:80... 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>192.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></div></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 class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/&amp;title=Apache+2.2+will+not+serve+corectly+from+CIFS+mounted+share" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/&amp;title=Apache+2.2+will+not+serve+corectly+from+CIFS+mounted+share" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/&amp;title=Apache+2.2+will+not+serve+corectly+from+CIFS+mounted+share" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Apache+2.2+will+not+serve+corectly+from+CIFS+mounted+share+-+http://bit.ly/cKoj1Y&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</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/apache-2-2-will-not-serve-corectly-from-cifs-mounted-share/feed/</wfw:commentRss>
		<slash:comments>0</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. 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 cd /etc/rc.d touch rc.bond Edit the file you just created to contain the following: #!/bin/sh &#160; case &#34;$1&#34; in 'start'&#41; echo &#34;start bond0&#34; modprobe [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* 468x60, pentru inceput post */
google_ad_slot = "4646995774";
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><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_syntax"><div class="code"><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></div></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_syntax"><div class="code"><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></div></div>

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

<div class="wp_syntax"><div class="code"><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></div></div>

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

<div class="wp_syntax"><div class="code"><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></div></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_syntax"><div class="code"><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></div></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_syntax"><div class="code"><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></div></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 class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/&amp;title=Network+interface+bonding+in+Slackware+%28version+13.1%29" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/&amp;title=Network+interface+bonding+in+Slackware+%28version+13.1%29" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/&amp;title=Network+interface+bonding+in+Slackware+%28version+13.1%29" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/network-interface-bonding-in-slackware-version-13-1/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Network+interface+bonding+in+Slackware+%28version+13.1%29+-+http://bit.ly/9GcOq5&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</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/network-interface-bonding-in-slackware-version-13-1/feed/</wfw:commentRss>
		<slash:comments>0</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 the above error. 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. Well, since some of the old emails we have are from addresses that no longer exists sendmail refused to deliver them. So we just have to tell email to accept email coming from inexistant domains. Note: that this is not safe or recommended in anyway if the sendmail is running on a live email server. It&#8217;s acceptable in this case since this sendmail will only get messages downloaded by fetchmail from a few google accounts. So the setting to change in order to allow messages from nonexistent domains is found in [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* 468x60, pentru inceput post */
google_ad_slot = "4646995774";
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><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 the above error. 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>Well, since some of the old emails we have are from addresses that no longer exists sendmail refused to deliver them. So we just have to tell email to accept email coming from inexistant 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. It&#8217;s acceptable in this case since this sendmail will only get messages downloaded by fetchmail from a few google accounts.</p>
<p>So the setting to change in order to allow messages from nonexistent domains is found in</p>

<div class="wp_syntax"><div class="code"><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></div></div>

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

<div class="wp_syntax"><div class="code"><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></div></div>

<p>and after changing it you must run:</p>

<div class="wp_syntax"><div class="code"><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;">&amp;</span>gt; <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></div></div>



<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/sendmail-says-domain-does-not-exist/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/sendmail-says-domain-does-not-exist/&amp;title=Sendmail+says+%22domain+does+not+exist%22" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/sendmail-says-domain-does-not-exist/&amp;title=Sendmail+says+%22domain+does+not+exist%22" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/sendmail-says-domain-does-not-exist/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/sendmail-says-domain-does-not-exist/&amp;title=Sendmail+says+%22domain+does+not+exist%22" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/sendmail-says-domain-does-not-exist/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Sendmail+says+%22domain+does+not+exist%22+-+http://bit.ly/bcFtTl&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</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: 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: 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. Subscribe to the comments for this post? Share [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* 468x60, pentru inceput post */
google_ad_slot = "4646995774";
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><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_syntax"><div class="code"><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></div></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_syntax"><div class="code"><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></div></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 class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/how-to-mount-a-windows-share-samba-from-the-linux-command-line/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/how-to-mount-a-windows-share-samba-from-the-linux-command-line/&amp;title=How+to+mount+a+windows+share+%28samba%29+from+the+linux+command+line" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/how-to-mount-a-windows-share-samba-from-the-linux-command-line/&amp;title=How+to+mount+a+windows+share+%28samba%29+from+the+linux+command+line" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/how-to-mount-a-windows-share-samba-from-the-linux-command-line/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/how-to-mount-a-windows-share-samba-from-the-linux-command-line/&amp;title=How+to+mount+a+windows+share+%28samba%29+from+the+linux+command+line" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/how-to-mount-a-windows-share-samba-from-the-linux-command-line/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=How+to+mount+a+windows+share+%28samba%29+from+the+linux+command+line+-+http://bit.ly/9AMEBo&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</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/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 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 mkdir isoorig mount -o loop -t iso9660 debian-503-i386-netinst.iso isoorig 3. Extract to new folder called isonew mkdir isonew rsync -a -H –exclude=TRANS.TBL isoorig/ isonew 4. Change the menu to load SSH on boot by default /isonew# nano isolinux/txt.cfg DELETE: remove “menu default” from “label install” ADD: label netinstall menu label ^Install Over SSH menu default kernel /install.386/vmlinuz append auto=true vga=normal file=/cdrom/preseed.cfg initrd=/install.386/initrd.gz locale=en_US console-keymaps-at/keymap=us CHANGE: “default install” to “default netinstall” EDIT: both files below and change “timeout 0″ to “timeout [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* 468x60, pentru inceput post */
google_ad_slot = "4646995774";
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><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_syntax"><div class="code"><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></div></div>

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

<div class="wp_syntax"><div class="code"><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></div></div>

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

<div class="wp_syntax"><div class="code"><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></div></div>

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

<div class="wp_syntax"><div class="code"><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></div></div>

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

<div class="wp_syntax"><div class="code"><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;"><span style="color: #c20cb9; font-weight: bold;">file</span></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></div></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_syntax"><div class="code"><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></div></div>

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

<div class="wp_syntax"><div class="code"><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></div></div>

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

<div class="wp_syntax"><div class="code"><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</pre></div></div>

<p># Any hostname and domain names assigned from dhcp take precedence over<br />
# values set here. However, setting the values still prevents the questions<br />
# from being shown, even if values come from dhcp.<br />
d-i netcfg/get_hostname string newdebian<br />
d-i netcfg/get_domain string local<br />
# Disable that annoying WEP key dialog.<br />
d-i netcfg/wireless_wep string<br />
# The wacky dhcp hostname that some ISPs use as a password of sorts.<br />
#d-i netcfg/dhcp_hostname string radish<br />
d-i preseed/early_command string anna-install network-console<br />
# Setup ssh password<br />
d-i network-console/password password install<br />
d-i network-console/password-again password install</p>
<p><strong>7. Recreate md5sum.txt file</strong></p>

<div class="wp_syntax"><div class="code"><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></div></div>

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

<div class="wp_syntax"><div class="code"><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></div></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 class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/installing-debian-using-only-ssh/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/installing-debian-using-only-ssh/&amp;title=Installing+Debian+using+only+SSH" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/installing-debian-using-only-ssh/&amp;title=Installing+Debian+using+only+SSH" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/installing-debian-using-only-ssh/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/installing-debian-using-only-ssh/&amp;title=Installing+Debian+using+only+SSH" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/installing-debian-using-only-ssh/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Installing+Debian+using+only+SSH+-+http://bit.ly/bOzQ9L&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</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/installing-debian-using-only-ssh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New life into an old Nokia 7610</title>
		<link>http://www.sgvulcan.com/new-life-into-an-old-nokia-7610/</link>
		<comments>http://www.sgvulcan.com/new-life-into-an-old-nokia-7610/#comments</comments>
		<pubDate>Wed, 27 May 2009 10:04:23 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Symbian]]></category>
		<category><![CDATA[7610]]></category>
		<category><![CDATA[s60v2]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=84</guid>
		<description><![CDATA[As promised I follow with an article on how to breathe new life into an aging phone. The venerable Nokia 7610 got a fresh start.]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* 468x60, pentru inceput post */
google_ad_slot = "4646995774";
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 id="attachment_86" class="wp-caption alignright" style="width: 220px"><img class="size-medium wp-image-86" title="nokia-7610-ft" src="http://www.sgvulcan.com/wp-content/uploads/2009/05/nokia-7610-ft-210x300.jpg" alt="Nokia 7610" width="210" height="300" /><p class="wp-caption-text">Nokia 7610</p></div>
<p>As promised I follow with an article on how to breathe new life into an aging phone.</p>
<p>Well, the 7610 was never lightning fast and over the years it became more and more troublesome, to the point where my wife thought it was about to break. She also got a good deal on a 500 Mb/month data plan so new software was in order. Although the prospect of a new gadget in the house was appealing I decided to see what was to be done with this one.</p>
<p>Since this was the first smartphone in the family, when it was new, we tried all kinds of apps on it installing and uninstalling a lot of stuff. Since the original card was small some were installed in the phone&#8217;s memory. Even if today is good practice to install your apps on the phone&#8217;s memory so you can swap cards easily it&#8217;s not the same with a phone with just a few megs of space.</p>
<p>So what I did to get it up to speed:</p>
<ol>
<li>I went out and searched the biggest RS-MMC card I could find. I managed to find a 1 Gb card for just a few bucks. It was the last in stock <img src='http://www.sgvulcan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>I used Nokia PC Suite to back-up contacts and messages (I didn&#8217;t use the back-up tool &#8211; that one, in my opinion, also backs up a lot of junk, junk you try to get rid of in the first place).</li>
<li>I pressed Green * 3 and started the phone, I kept them pressed untill <em>Formatting</em> apeared on screen. This is for a complete software reformat.</li>
<li>I added the contacts, calendar, messages backed up at step 2.</li>
<li>I installed the following:
<ol>
<li>slick &#8211; for messenging</li>
<li>opera mobile &#8211; for faster browsing</li>
<li>gmail &#8211; for full email access, it&#8217;s slow but works, for the quick inbox check I just configured the default email client</li>
<li>Mobireader &#8211; for the occasional reading on the road</li>
<li>Frozen bubble for S60</li>
<li>Adobe pdf, quickoffice &#8211; she got some free versions with the phone, it&#8217;s enough for what she needs on the road.</li>
<li>Dictionaries &#8211; she&#8217;s a professional translator &#8211; interpreter so those should come handy</li>
</ol>
</li>
</ol>
<p>Everything was installed on the 1 Gb mmc card leaving the phone memory free so now the phone is able to receive big files via bluetooth, and has enough space for contacts, calendar and so on.</p>
<p>Even if the phone is S60v2 I could still find a wealth of software available, many free, some payed.</p>
<p>The phone still occasionally locks up when answering a call but not as often as it did before, but again this is a problem that all Nokia 7610 phones I saw had. It&#8217;s still slow, especially when browsing or running the gmail java app, but it&#8217;s usable again, even for some light web, messenger, email tasks.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/new-life-into-an-old-nokia-7610/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/new-life-into-an-old-nokia-7610/&amp;title=New+life+into+an+old+Nokia+7610" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/new-life-into-an-old-nokia-7610/&amp;title=New+life+into+an+old+Nokia+7610" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/new-life-into-an-old-nokia-7610/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/new-life-into-an-old-nokia-7610/&amp;title=New+life+into+an+old+Nokia+7610" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/new-life-into-an-old-nokia-7610/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=New+life+into+an+old+Nokia+7610+-+http://bit.ly/aEDQX9&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</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/new-life-into-an-old-nokia-7610/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeNAS</title>
		<link>http://www.sgvulcan.com/freenas/</link>
		<comments>http://www.sgvulcan.com/freenas/#comments</comments>
		<pubDate>Tue, 26 May 2009 10:32:42 +0000</pubDate>
		<dc:creator>silviu</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[nas]]></category>

		<guid isPermaLink="false">http://www.sgvulcan.com/?p=43</guid>
		<description><![CDATA[Ok, so I wanted a NAS on my home network. Easy job with the right tools at hand.]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7825242150714747";
/* 468x60, pentru inceput post */
google_ad_slot = "4646995774";
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><p>Ok, so I wanted a NAS on my home network. Having just aquired a shabby XPC SK43G that simply refused to work as a htpc (it&#8217;s original purpose) I decided to set it up as a NAS (Network Attached Storage). I went out and bought a Western Digital Green 1 Tb Sata2 drive. The xpc refused to detect the drive until I set it via jumper as Sata1. I had to search on the Western Digital support pages, as the jumper settings are not documented on the drive itself. I added a 512 MB DDRAM I had lying around, underclocked and undervolted the cpu to reduce heat and noise and so, the hardware part was done.</p>
<p>The next step was choosing the os and software. My first intent was Slackware set up to share over Samba and NFS. But a quick google search later I discovered the <a href="http://www.freenas.org/">FreeNAS Project</a>. I decided to give it a shot and useless to say I was hooked. It has cifs, nfs, upnp, ftp and http sharing built in, and more features that I could possibly list here. Just check their page. BTW if you are a flamboyant linux supporter you might want to note that FreeNAS is based off FreeBSD and not linux. It&#8217;s not a problem for me, as I am an adept of &#8220;chose by functionality, not by religion&#8221; but as always YMMV.</p>
<p>The system boots of a 2 Gb USB drive on which I installed the FreeNAS image. The setup was easy and straightforward.I also set up the hard drive to power down after 20 minutes of inactivity so the flash boot scheme works great.</p>
<p>I intend to add 2 more drives in the future so I can do RAID 5 on it but even now it&#8217;s a great machine to have on the network. It&#8217;s main purpose for now is backup of my other machines and my wife&#8217;s laptop.</p>
<p>Another open source project that proves itself a valuable asset to have !</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://www.sgvulcan.com/freenas/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.sgvulcan.com/freenas/&amp;title=FreeNAS" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sgvulcan.com/freenas/&amp;title=FreeNAS" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://www.sgvulcan.com/freenas/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.sgvulcan.com/freenas/&amp;title=FreeNAS" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://www.sgvulcan.com/freenas/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=FreeNAS+-+http://bit.ly/dzfIVF&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</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/freenas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
