<?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>Kevin Deldycke &#187; Network</title> <atom:link href="http://kevin.deldycke.com/tag/network/feed/" rel="self" type="application/rss+xml" /><link>http://kevin.deldycke.com</link> <description>Free software engineer &#38; wannabe videomaker</description> <lastBuildDate>Fri, 03 Feb 2012 19:08:27 +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>Network commands</title><link>http://kevin.deldycke.com/2011/04/network-commands/</link> <comments>http://kevin.deldycke.com/2011/04/network-commands/#comments</comments> <pubDate>Mon, 11 Apr 2011 14:25:54 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[bind]]></category> <category><![CDATA[dig]]></category> <category><![CDATA[dns]]></category> <category><![CDATA[iwlist]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[lsof]]></category> <category><![CDATA[netstat]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[wifi]]></category> <category><![CDATA[wireless]]></category><guid isPermaLink="false">http://kevin.deldycke.com/?p=2561</guid> <description><![CDATA[Get the list of all wireless networks reachable by the wlan0 interface: Get the IP address where a domain points to: Get different kind of DNS records of the example.com domain: Get some informations about open ports: Watch network activity &#8230; <a href="http://kevin.deldycke.com/2011/04/network-commands/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<ul><li>Get the list of all wireless networks reachable by the <code>wlan0</code> interface:<pre class="brush: bash; title: ; notranslate">
iwlist wlan0 scanning | grep ESSID
</pre></li><li>Get the IP address where a domain points to:<pre class="brush: bash; title: ; notranslate">
host kevin.deldycke.com
</pre></li><li>Get different kind of DNS records of the <code>example.com</code> domain:<pre class="brush: bash; title: ; notranslate">
dig example.com CNAME
dig example.com MX
</pre></li><li>Get some informations about open ports:<pre class="brush: bash; title: ; notranslate">
netstat --taupen
netstat --lapute
</pre></li><li>Watch network activity in real-time:<pre class="brush: bash; title: ; notranslate">
watch -n 1 &quot;lsof -i&quot;
</pre></li></ul> ]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2011/04/network-commands/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>How-to fix Lotus Notes&#8217; disabled TCPIP port error</title><link>http://kevin.deldycke.com/2010/08/how-to-fix-lotus-notes-disabled-tcp-ip-port-error/</link> <comments>http://kevin.deldycke.com/2010/08/how-to-fix-lotus-notes-disabled-tcp-ip-port-error/#comments</comments> <pubDate>Wed, 25 Aug 2010 15:36:59 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[IBM Lotus Notes]]></category> <category><![CDATA[leopard]]></category> <category><![CDATA[Lotus Notes]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[Network]]></category><guid isPermaLink="false">http://kevin.deldycke.com/?p=1777</guid> <description><![CDATA[Today I encountered this error message: Error logging into server localhost: You must enable the Notes TCPIP port. This appeared in the fat Lotus Notes client v7.0.3 running on Mac OS X Leopard (10.5). To fix this issue, first of &#8230; <a href="http://kevin.deldycke.com/2010/08/how-to-fix-lotus-notes-disabled-tcp-ip-port-error/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Today I encountered this error message:<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/lotus-notes-tcp-ip-error.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/lotus-notes-tcp-ip-error-300x122.png" alt="" title="lotus-notes-tcp-ip-error" width="300" height="122" class="aligncenter size-medium wp-image-1772" /></a></p><blockquote><p>Error logging into server localhost: You must enable the Notes TCPIP port.</p></blockquote><p>This appeared in the fat Lotus Notes client v7.0.3 running on Mac OS X Leopard (10.5).</p><p>To fix this issue, first of all, quit Notes. Then <a href="http://www-01.ibm.com/support/docview.wss?uid=swg21090921">locate the Notes&#8217; preference file</a> attached to your current user. Mine was found in my home directory at <code>/Users/kevin/Library/Preferences/Notes Preferences</code>. At the end of this file, add <a href="http://macosx.com/forums/1277870-post4.html">these two directives</a>:</p><pre class="brush: plain; title: ; notranslate">
TCPIP=TCP,0,15,0
Ports=TCPIP
</pre><p>Then relaunch Lotus Notes and switch from <code>Island (Disconnected)</code> location to another that will allow your client to listen to the network. In my case, <code>Home (Network Dialup)</code> did the trick:<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2010/08/lotus-notes-location-switch.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2010/08/lotus-notes-location-switch.png" alt="" title="lotus-notes-location-switch" width="275" height="198" class="aligncenter size-full wp-image-1793" /></a></p><p>Problem solved ! <img src='http://kevin.deldycke.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2010/08/how-to-fix-lotus-notes-disabled-tcp-ip-port-error/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Fuse and sshfs on MacOSX Leopard</title><link>http://kevin.deldycke.com/2009/09/fuse-sshfs-macosx-leopard/</link> <comments>http://kevin.deldycke.com/2009/09/fuse-sshfs-macosx-leopard/#comments</comments> <pubDate>Mon, 07 Sep 2009 19:11:03 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[Apple]]></category> <category><![CDATA[automount]]></category> <category><![CDATA[fuse]]></category> <category><![CDATA[KDE]]></category> <category><![CDATA[leopard]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[mount]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[sftp]]></category> <category><![CDATA[SSH]]></category> <category><![CDATA[sshfs]]></category> <category><![CDATA[system]]></category><guid isPermaLink="false">http://kevin.deldycke.com/?p=817</guid> <description><![CDATA[I&#8217;m used to access distant machine&#8217;s file systems via ssh. My favorite environment, KDE, makes things easy thanks to the support of sftp:// URLs via a kio_slave. MacOSX is not as friendly and don&#8217;t have any built-in mechanism of that &#8230; <a href="http://kevin.deldycke.com/2009/09/fuse-sshfs-macosx-leopard/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I&#8217;m used to access distant machine&#8217;s file systems via ssh. My favorite environment, <a href="http://www.kde.org">KDE</a>, makes things easy thanks to the support of <code><a href="http://wikipedia.org/wiki/SSH_file_transfer_protocol">sftp</a>://</code> URLs via a <a href="http://wikipedia.org/wiki/KIO">kio_slave</a>. MacOSX is not as friendly and don&#8217;t have any built-in mechanism of that kind.</p><p>To get similar features in Leopard, we have to rely on <a href="http://code.google.com/p/macfuse/">MacFuse</a> and <a href="http://fuse.sourceforge.net/sshfs.html">sshfs</a>. I&#8217;ll explain here how I&#8217;ve installed these components on <a href="http://www.amazon.com/gp/product/B000FK88JK/ref=as_li_tf_tl?ie=UTF8&#038;tag=kevideld-20&#038;linkCode=as2&#038;camp=217145&#038;creative=399381&#038;creativeASIN=B000FK88JK">MacOSX 10.5</a>.<img src="http://www.assoc-amazon.com/e/ir?t=kevideld-20&#038;l=as2&#038;o=1&#038;a=B000FK88JK&#038;camp=217145&#038;creative=399381" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p><p><a href="http://kevin.deldycke.com/wp-content/uploads/2009/09/MacFUSE_Banner.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2009/09/MacFUSE_Banner-300x86.png" alt="MacFUSE_Banner" title="MacFUSE_Banner" width="300" height="86" class="aligncenter size-medium wp-image-834" /></a></p><p>First, <a href="http://code.google.com/p/macfuse/downloads/list">download the latest MacFuse dmg</a> and install it. FYI, the version I&#8217;ve got was MacFuse 2.0.3,2.</p><p>Then, download the sshfs executable for Leopard, either the <a href="http://osxbook.com/download/sshfs/sshfs-static-leopard.gz">gzipped version</a> or the binary <a href="http://macfuse.googlecode.com/svn/trunk/filesystems/sshfs/binary/">from the SVN</a> as <a href="http://code.google.com/p/macfuse/wiki/MACFUSE_FS_SSHFS">explained in the MacFuse wiki</a>.</p><p>From a terminal, rename the binary:</p><pre class="brush: bash; title: ; notranslate">
sudo mv ./sshfs-static-leopard ./sshfs
</pre><p>Then allow the binary to be executed and place it in the system:</p><pre class="brush: bash; title: ; notranslate">
sudo chmod +x sshfs
sudo install sshfs /usr/local/bin
</pre><p>From now you can test sshfs mounting with the following command:</p><pre class="brush: bash; title: ; notranslate">
sshfs user@myserver.net:/folder/ /Network/distant-folder -p 22
</pre><p>I personally had a problem here: sshfs complained about a missing library. I fixed this by downloading the required file from the <a href="http://www.macfusionapp.org">MacFusion project</a> and copying it beside the sshfs binary:</p><pre class="brush: bash; title: ; notranslate">
sudo wget http://www.macfusionapp.org/trac/export/86/trunk/SSHFS/sshnodelay.so
sudo mv ./sshnodelay.so /usr/local/bin/
sudo chmod +x /usr/local/bin/sshnodelay.so
</pre><p>If this fail you can also check:</p><ul><li>that the current user you&#8217;re logged with has access to the distant server with the <code>ssh user@myserver.net</code> command;</li><li>or that the local mount point exists (you can create it with <code>mkdir -p /Network/distant-folder</code>);</li><li>and finally, you can add the <code>-o debug</code> option to the sshfs command above to get additional clues.</li></ul><p>Now we will automate the mounting of sshfs at every start.</p><p>At this point I recommend you to register the <code>root</code> user of your MacOSX system to the distant server:</p><pre class="brush: bash; title: ; notranslate">
sudo cat ~/.ssh/id_rsa.pub | sudo ssh -p 22 user@myserver.net &quot;cat &gt;&gt; ~/.ssh/authorized_keys&quot;
</pre><p>If doesn&#8217;t exists, we have to create the <code>/etc/fstab</code> to edit it:</p><pre class="brush: bash; title: ; notranslate">
sudo touch /etc/fstab
sudo vi /etc/fstab
</pre><p>And add the following directives:</p><pre class="brush: plain; title: ; notranslate">
dummy:user@myserver.net:/folder/ /Network/distant-folder sshfs allow_other,auto_cache,reconnect,port=22,follow_symlinks,volname=&quot;Distant folder&quot; 0 0
</pre><p>As you can see I&#8217;ve added lots of options to accommodate my uses. You can get more informations about sshfs options through traditional help pages:</p><pre class="brush: bash; title: ; notranslate">
sshfs --help
</pre><p>MacOSX&#8217;s automount daemon will look for a script called <code>mount_sshfs</code> at start. Actually it doesn&#8217;t exists on your system, but sshfs command line is compatible with what automount expect. So creating a symbolic link will do the trick:</p><pre class="brush: bash; title: ; notranslate">
sudo ln -s /usr/local/bin/sshfs /sbin/mount_sshfs
</pre><p>Finally, we can tell automount to acknowledge all our modifications:</p><pre class="brush: bash; title: ; notranslate">
sudo automount -vc
</pre>]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2009/09/fuse-sshfs-macosx-leopard/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>How-to fix wireless DHCP on Mandriva 2009.0</title><link>http://kevin.deldycke.com/2008/11/how-to-fix-wireless-dhcp-on-mandriva-20090/</link> <comments>http://kevin.deldycke.com/2008/11/how-to-fix-wireless-dhcp-on-mandriva-20090/#comments</comments> <pubDate>Fri, 28 Nov 2008 16:27:04 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[dhcp]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Mandriva]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[urpmi]]></category> <category><![CDATA[wifi]]></category> <category><![CDATA[wireless]]></category><guid isPermaLink="false">http://kevin.deldycke.com/?p=428</guid> <description><![CDATA[In two words: dhcp_client sucks ! And now the long story&#8230; Since the upgrade to Mandriva 2008.1, wifi stopped working on my laptop. I tried to install the 2008.1 on several machines. I tried to connect on different access points. &#8230; <a href="http://kevin.deldycke.com/2008/11/how-to-fix-wireless-dhcp-on-mandriva-20090/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>In two words: <code>dhcp_client</code> sucks !</p><p>And now the long story&#8230;</p><p>Since the upgrade to Mandriva 2008.1, wifi stopped working on my laptop. I tried to install the 2008.1 on several machines. I tried to connect on different access points. I lowered security on the access point. I tried eveything. On desperation, I even tried to boot Windows to check that hardware was ok ! And the only log I had was this:</p><pre class="brush: bash; title: ; notranslate">
SIOCETHTOOL: Operation not supported
</pre><p>After all these tests, I was convinced that the problem had something to do with the distribution itself. Maybe a firmware issue or a bad combination of packages&#8230;</p><p>Then came the 2009.0 release. I though that an upgrade will cure my malediction. Indeed. Nothing new on wireless side. My wifi was still broken. Until I came across a tip on a random forum (I don&#8217;t remember which one) suggesting that <code>dhcp_client</code> could be the culprit.</p><p>So I replaced it by <code>dhcpcd</code>, and against all expectations, it worked !<br /> <a href="http://kevin.deldycke.com/wp-content/uploads/2008/11/mandriva-net-applet-wireless-dhcp.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2008/11/mandriva-net-applet-wireless-dhcp-300x251.png" alt="" title="mandriva-net-applet-wireless-dhcp" width="300" height="251" class="aligncenter center size-medium wp-image-430" /></a></p><p>And to not be annoyed by <code>dhcp_client</code> in the future, it&#8217;s wise to definitely remove it:</p><pre class="brush: bash; title: ; notranslate">
urpmi dhcp_client
</pre>]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2008/11/how-to-fix-wireless-dhcp-on-mandriva-20090/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Website Backup Script: bug fix release</title><link>http://kevin.deldycke.com/2008/05/website-backup-script-bug-fix-release/</link> <comments>http://kevin.deldycke.com/2008/05/website-backup-script-bug-fix-release/#comments</comments> <pubDate>Sun, 25 May 2008 23:38:44 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[Backup]]></category> <category><![CDATA[CLI]]></category> <category><![CDATA[FTP]]></category> <category><![CDATA[lftp]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[mysqldump]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[rdiff-backup]]></category> <category><![CDATA[rsync]]></category> <category><![CDATA[Script]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[SSH]]></category> <category><![CDATA[Web]]></category><guid isPermaLink="false">http://kevin.deldycke.com/?p=222</guid> <description><![CDATA[14 months after the last release, here is a new version of my website backup script. As you can see in the changelog, this version is essentially released to fix some bugs. Changelog: Check version of Python (at least v2.4 &#8230; <a href="http://kevin.deldycke.com/2008/05/website-backup-script-bug-fix-release/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><a href="http://kevin.deldycke.com/2007/03/website-backup-script-mysql-dumps-and-ssh-supported/">14 months after the last release</a>, here is a <a href="http://kevin.deldycke.com/static/scripts/website-backup-2008_05_25.py">new version of my website backup script</a>. As you can see in the changelog, this version is essentially released to fix some bugs.</p><p>Changelog:</p><ul><li>Check version of Python (at least v2.4 is required)</li><li>Rename <code>--debug</code> option to <code>--verbose</code></li><li>Add a <code>--dry-run</code> option for testing</li><li>Remove use of deprecated <code>pexpect</code> methods</li><li>Add and update some error messages</li></ul> ]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2008/05/website-backup-script-bug-fix-release/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Website Backup Script: MySQL dumps and SSH supported.</title><link>http://kevin.deldycke.com/2007/03/website-backup-script-mysql-dumps-and-ssh-supported/</link> <comments>http://kevin.deldycke.com/2007/03/website-backup-script-mysql-dumps-and-ssh-supported/#comments</comments> <pubDate>Sun, 25 Mar 2007 10:17:09 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[Backup]]></category> <category><![CDATA[CLI]]></category> <category><![CDATA[FTP]]></category> <category><![CDATA[lftp]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[mysqldump]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[rdiff-backup]]></category> <category><![CDATA[rsync]]></category> <category><![CDATA[Script]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[SSH]]></category> <category><![CDATA[Web]]></category><guid isPermaLink="false">http://kevin.deldycke.com/2007/03/website-backup-script-mysql-dumps-and-ssh-supported/</guid> <description><![CDATA[Three months after the last version, here is a big update of my backup scripts for websites. The script was greatly improved and among new features, the most important is the support of backups over SSH and backups of MySQL &#8230; <a href="http://kevin.deldycke.com/2007/03/website-backup-script-mysql-dumps-and-ssh-supported/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><a href="http://kevin.deldycke.com/2006/12/website-backup-script-updated-take-care-of-hidden-files-now/">Three months after the last version</a>, here is a big update of <a href="http://kevin.deldycke.com/static/scripts/website-backup-2007_03_25.py">my backup scripts for websites</a>. The script was greatly improved and among new features, the most important is the support of backups over SSH and backups of MySQL databases.</p><p>Change log:</p><ul><li>Each item of the user&#8217;s <code>backup_list</code> must specify the <code>type</code> property (<code>FTP</code>, <code>FTPs</code>, <code>SSH</code>, <code>MySQLdump</code> or <code>MySQLdump+ssh</code>).</li><li>The property previously known as <code>site</code> is now <code>host</code>.</li><li>File system structure changed: <code>/ftp-mirror</code> folders renamed to <code>/mirror</code>.</li><li>Add SSH backups.</li><li>The script is able to detect if a SSH connexion can be initiated without a password. This was designed for people who don&#8217;t like the idea of storing clear password in the script. Thanks to this feature, you can benefit public key authentication from OpenSSH.</li><li>Use of <code>rsync</code> whenever it&#8217;s possible for bandwidth efficiency.</li><li>FTP and FTPs (aka FTP over SSL) are now handled separately: this suppress the default fall-back to FTP if FTPs is not supported by the remote server. This is safer as it doesn&#8217;t let <code>lftp</code> make the decision for you to send your clear password on the net.</li><li>All ports are optionnal, no need to specify it you use default ports.</li><li>Add MySQL backups thanks to <code>mysqldump</code>.</li><li>Two mode of MySQL backups: through SSH or direct connection to server.</li><li>A particular database to backup can be specified. Else, all databases are backed up.</li><li>Much more detailed logs that include external command&#8217;s output.</li><li>Auto-detect the existence of required external tools and commands at launch.</li><li>Use <code>pexpect</code> lib to simulate user password input.</li><li>Run all external commands in english for consistency.</li><li>Check that the script is running in a posix environnement.</li><li>Fix bug related to directory creation.</li></ul><p>If you were using a previous version of my backup script and want to use this updated version, take care of changes, especially the ones describes in the first 3 items of the change log above.</p> ]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2007/03/website-backup-script-mysql-dumps-and-ssh-supported/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Quick How-To: Install NFS Server &amp; Client</title><link>http://kevin.deldycke.com/2007/01/quick-how-to-install-nfs-server-client/</link> <comments>http://kevin.deldycke.com/2007/01/quick-how-to-install-nfs-server-client/#comments</comments> <pubDate>Sat, 27 Jan 2007 14:58:00 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[CLI]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Mandriva]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[NFS]]></category> <category><![CDATA[Server]]></category><guid isPermaLink="false">http://kevin.deldycke.com/2007/01/quick-how-to-install-nfs-server-client/</guid> <description><![CDATA[In this tiny how-to I&#8217;ll explain you how to setup a machine as a NFS server and an other one as a client. This example was written based on my experiences on Mandriva, but all commands should almost be the &#8230; <a href="http://kevin.deldycke.com/2007/01/quick-how-to-install-nfs-server-client/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><img id="image135" src="http://kevin.deldycke.com/wp-content/uploads/2007/01/nfs.png" alt="nfs.png" /></p><p>In this tiny how-to I&#8217;ll explain you how to setup a machine as a NFS server and an other one as a client. This example was written based on my experiences on Mandriva, but all commands should almost be the same for other distributions.</p><p>First, on the server, install <code>nfs-utils</code>:</p><pre class="brush: bash; title: ; notranslate">
urpmi nfs-utils
</pre><p>The nfs-utils package provide a daemon for the kernel NFS server and related tools. It is a much higher level of performance than the traditional Linux NFS server used by most users.</p><p>Then edit the <code>/etc/exports</code> file to add the list of the local folders you wqnt to share:</p><pre class="brush: bash; title: ; notranslate">
[root@localhost ~]# cat /etc/exports
/mnt/hdd *(rw,insecure,all_squash)
</pre><p>Then, to apply change, restart the NFS server:</p><pre class="brush: bash; title: ; notranslate">
/etc/init.d/nfs restart
</pre><p>In this example I simply wanted to share the <code>/mnt/big-disk</code> directory and all its sub-folders with anybody, with read and write access. I did this because the server was in a closed LAN, with only one client, that&#8217;s why no security, authentification or credentials to manage.</p><p>By the way, on the server, the only required services to activate at startup are the following:</p><ul><li><code>nfs</code></li><li><code>nfslock</code></li><li><code>portmap</code></li></ul><p>On client side, you also need to install <code>nfs-utils</code>, in order to benefit <code>nfslock</code>:</p><pre class="brush: bash; title: ; notranslate">
urpmi nfs-utils
</pre><p>The latter is absolutely not required, but if it&#8217;s a good idea to have it on the client side.</p><p>Then to auto-mount the distant shared folder, add the following line to your <code>/etc/fstab</code> file:</p><pre class="brush: bash; title: ; notranslate">
192.168.1.22:/mnt/hdd /mnt/distant-hdd nfs user,noatime,rsize=8192,wsize=8192,soft 0 0
</pre><p>Important parameters of the line above are:</p><ul><li><code>192.168.1.22</code> = IP adress of the NFS server,</li><li><code>/mnt/hdd</code> = path of the shared folder on the server,</li><li><code>/mnt/distant-hdd</code> = local folder where the shared folder will be mounted.</li></ul><p>Then, you have to modify services on the client to change their default activation state.</p><p>Following services must be started at boot:</p><ul><li><code>nfslock</code></li><li><code>netfs</code></li><li><code>rpcidmapd</code></li></ul><p>Services that must should be inactivated at boot:</p><ul><li><code>portmap</code></li><li><code>nfs</code></li><li><code>rpcsvcgssd</code></li></ul> ]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2007/01/quick-how-to-install-nfs-server-client/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Website Backup script: Incremental Backup feature added.</title><link>http://kevin.deldycke.com/2006/11/website-backup-script-incremental-backup-feature-added/</link> <comments>http://kevin.deldycke.com/2006/11/website-backup-script-incremental-backup-feature-added/#comments</comments> <pubDate>Thu, 02 Nov 2006 21:19:03 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[Backup]]></category> <category><![CDATA[bzip2]]></category> <category><![CDATA[CLI]]></category> <category><![CDATA[FTP]]></category> <category><![CDATA[lftp]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[Web]]></category><guid isPermaLink="false">http://kevin.deldycke.com/2006/11/website-backup-script-incremental-backup-feature-added/</guid> <description><![CDATA[I&#8217;ve changed my backup strategy today, so I updated my website-backup.py script. You can find the latest version of the script on my script page. I now use rdiff-backup in this script to keep 32 days of incremental backups. Beside &#8230; <a href="http://kevin.deldycke.com/2006/11/website-backup-script-incremental-backup-feature-added/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I&#8217;ve changed my backup strategy today, so I updated my <a href="http://kevin.deldycke.com/static/scripts/website-backup-2006_11_01.py">website-backup.py script</a>. You can find the latest version of the script on <a href="http://kevin.deldycke.com/code/">my script page</a>.</p><p>I now use <a href="http://www.nongnu.org/rdiff-backup/">rdiff-backup</a> in this script to keep 32 days of incremental backups. Beside this the script do a monthly full archive of the website in bzip2 format. This new strategy has reduced the total size of my backups from 64 GB to 6.7 GB. Roughly 90% of free space gain thanks to rdiff-backup ! If rdiff-backup is so efficient in my case, this is due to the existence on my websites of large files that are rarely modified (Mp3s, Flacs, RPMs, images, etc&#8230;).</p> ]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2006/11/website-backup-script-incremental-backup-feature-added/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Qemu: How-To Share Network Access with the Ghest OS</title><link>http://kevin.deldycke.com/2005/06/qemu-how-to-share-network-access-with-the-ghest-os/</link> <comments>http://kevin.deldycke.com/2005/06/qemu-how-to-share-network-access-with-the-ghest-os/#comments</comments> <pubDate>Sat, 04 Jun 2005 19:20:13 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[English]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[Qemu]]></category><guid isPermaLink="false">http://kevin.deldycke.com/2005/06/qemu-how-to-share-network-access-with-the-ghest-os/</guid> <description><![CDATA[Create a file /etc/qemu-ifup that contain: Don&#8217;t forget to give it execution permissions: Start qemu with the following parameters: Setup the network in your ghest OS in qemu: Test the visibility of the guest OS from the host OS: Test &#8230; <a href="http://kevin.deldycke.com/2005/06/qemu-how-to-share-network-access-with-the-ghest-os/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><a href="http://kevin.deldycke.com/wp-content/uploads/2005/06/photo_f3.png"><img src="http://kevin.deldycke.com/wp-content/uploads/2005/06/photo_f3-150x150.png" alt="Qemu Network Sharing" title="Qemu Network Sharing" width="150" height="150" class="alignleft size-thumbnail wp-image-550" /></a></p><p>Create a file <code>/etc/qemu-ifup</code> that contain:</p><pre class="brush: bash; title: ; notranslate">
#!/bin/sh
sudo modprobe tun
sudo /sbin/ifconfig $1 up 10.0.2.2 netmask 255.255.255.0 broadcast 10.0.2.255

# IP masquerade
sudo echo &quot;1&quot; &gt; /proc/sys/net/ipv4/ip_forward
sudo /sbin/iptables -N nat
sudo /sbin/iptables -t nat -F
sudo /sbin/iptables -t nat -A POSTROUTING -s 10.0.2.15 -j MASQUERADE
sudo /sbin/iptables -t nat -A POSTROUTING -d 10.0.2.15 -o $1
</pre><p>Don&#8217;t forget to give it execution permissions:</p><pre class="brush: bash; title: ; notranslate">
chmod 755 /etc/qemu-ifup
</pre><p>Start qemu with the following parameters:</p><pre class="brush: bash; title: ; notranslate">
qemu /home/kevin/qemu-mdk10.1.img -n /etc/qemu-ifup
</pre><p>Setup the network in your ghest OS in qemu:</p><pre class="brush: bash; title: ; notranslate">
ifconfig eth0 10.0.2.15
route add default gw 10.0.2.2
</pre><p>Test the visibility of the guest OS from the host OS:</p><pre class="brush: bash; title: ; notranslate">
[root@localhost kevin]# ping 10.0.2.15
PING 10.0.2.15 (10.0.2.15) 56(84) bytes of data.
64 bytes from 10.0.2.15: icmp_seq=1 ttl=64 time=2.96 ms
64 bytes from 10.0.2.15: icmp_seq=2 ttl=64 time=0.295 ms
64 bytes from 10.0.2.15: icmp_seq=3 ttl=64 time=0.296 ms

--- 10.0.2.15 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.295/1.185/2.965/1.258 ms
</pre><p>Test the visibility of the host from the guest:</p><pre class="brush: bash; title: ; notranslate">
[root@localhost root]# ping 10.0.2.2
PING 10.0.2.2 (10.0.2.2) 56(84) bytes of data.
64 bytes from 10.0.2.2: icmp_seq=1 ttl=64 time=1.08 ms
64 bytes from 10.0.2.2: icmp_seq=2 ttl=64 time=0.433 ms
64 bytes from 10.0.2.2: icmp_seq=3 ttl=64 time=0.383 ms

--- 10.0.2.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.383/0.634/1.087/0.321 ms
</pre>]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2005/06/qemu-how-to-share-network-access-with-the-ghest-os/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Script de reconnection automatique PPP</title><link>http://kevin.deldycke.com/2005/04/script-de-reconnection-automatique-ppp/</link> <comments>http://kevin.deldycke.com/2005/04/script-de-reconnection-automatique-ppp/#comments</comments> <pubDate>Sun, 03 Apr 2005 22:07:45 +0000</pubDate> <dc:creator>Kev</dc:creator> <category><![CDATA[Français]]></category> <category><![CDATA[bash]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Network]]></category> <category><![CDATA[Script]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[Snippet]]></category><guid isPermaLink="false">http://kevin.deldycke.com/2005/04/script-de-reconnection-automatique-ppp/</guid> <description><![CDATA[Voici un petit script trivial en bash qui, couplé à cron, me permet de maintenir ma connexion internet 56kbps fournie par Free.fr (en attendant l&#8217;arrivée du modem ADSL):]]></description> <content:encoded><![CDATA[<p>Voici un petit script trivial en bash qui, couplé à <code>cron</code>, me permet de maintenir ma connexion internet 56kbps fournie par Free.fr (en attendant l&#8217;arrivée du modem ADSL):</p><pre class="brush: bash; title: ; notranslate">
#!/bin/bash
# Script de reconnection automatique

testconnect() {
  CONNECT=`ping -c 3 google.com | grep packets | cut -d' ' -f4`
}

doconnect() {
  logger -t reconnect Essai reconnection.
  /etc/init.d/internet restart
}

displayip() {
  IP=`/sbin/ifconfig | grep -A 1 ppp0 | grep inet | cut -d' ' -f12 | cut -d':' -f2`
  logger -t reconnect Adresse IP : &quot;$IP&quot;
}

logger -t reconnect Test connection.
testconnect
if [ &quot;$CONNECT&quot; = &quot;0&quot; ];
  then
    logger -t reconnect Connection perdue.
    doconnect
    testconnect
    if [ &quot;$CONNECT&quot; != &quot;0&quot; ];
      then
        logger -t reconnect Reconnection OK.
        displayip
      else
        logger -t reconnect Reconnection manquee.
    fi
  else
    logger -t reconnect Connection OK.
    displayip
fi

exit 0
# FIN
</pre>]]></content:encoded> <wfw:commentRss>http://kevin.deldycke.com/2005/04/script-de-reconnection-automatique-ppp/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/48 queries in 0.023 seconds using apc
Object Caching 1127/1243 objects using apc

Served from: kevin.deldycke.com @ 2012-02-08 10:33:14 -->
