<?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>edafe.org &#187; protocol</title>
	<atom:link href="http://edafe.org/tag/protocol/feed/" rel="self" type="application/rss+xml" />
	<link>http://edafe.org</link>
	<description>edafe.org is the personal site of Edafe Knabe.</description>
	<lastBuildDate>Fri, 03 Feb 2012 08:24:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Time synchronisation with NTP</title>
		<link>http://edafe.org/2006/12/time-synchronisation-with-ntp/</link>
		<comments>http://edafe.org/2006/12/time-synchronisation-with-ntp/#comments</comments>
		<pubDate>Sat, 30 Dec 2006 12:24:27 +0000</pubDate>
		<dc:creator>edafe</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://edafe.org/?p=1211</guid>
		<description><![CDATA[The NTP protocol allows you to synchronise the clock of your computer with that of dedicated time servers on the Internet. Get the necessary packages with the following command: user@ubuntu:~$ sudo apt-get install ntp-simple ntpdate Stop the ntpd daemon and &#8230; <a href="http://edafe.org/2006/12/time-synchronisation-with-ntp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The NTP protocol allows you to synchronise the clock of your computer with that of dedicated time servers on the Internet.</p>
<p>Get the necessary packages with the following command:</p>
<p><code>user@ubuntu:~$ sudo apt-get install ntp-simple ntpdate</code></p>
<p>Stop the ntpd daemon and manually synchronise your computer&rsquo;s clock with the following two commands:</p>
<p><code>user@ubuntu:~$ sudo /etc/init.d/ntp-server stop<br />user@ubuntu:~$ sudo ntpdate pool.ntp.org</code></p>
<p>Modify the file <em class="mono">/etc/ntp.conf</em> to read:</p>
<p><code># You do need to talk to an NTP server or two (or three).<br />#server ntp.your-provider.example<br />#server ntp.ubuntu.com<br />server 0.pool.ntp.org<br />server 1.pool.ntp.org<br />server 2.pool.ntp.org</code></p>
<p>Start the ntpd daemon with the following command:</p>
<p><code>user@ubuntu:~$ sudo /etc/init.d/ntp-server start</code></p>
<p>After about one minute, query the status of the ntpq daemon with the following command:</p>
<p><code>user@ubuntu:~$ sudo ntpq -p</code></p>
<p>You can further increase the accuracy of time synchronisation by using the <a href="http://www.pool.ntp.org/use.html" target="_blank">time servers in your continental or country zone</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://edafe.org/2006/12/time-synchronisation-with-ntp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharing a PostScript printer with CUPS and Samba</title>
		<link>http://edafe.org/2006/12/sharing-a-postscript-printer-with-cups-and-samba/</link>
		<comments>http://edafe.org/2006/12/sharing-a-postscript-printer-with-cups-and-samba/#comments</comments>
		<pubDate>Thu, 28 Dec 2006 09:12:21 +0000</pubDate>
		<dc:creator>edafe</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[printing]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://edafe.org/?p=1205</guid>
		<description><![CDATA[Using Samba and CUPS, the Common UNIX Printing System, Ubuntu can easily be configured to provide printing services to a heterogeneous network of Windows, Macintosh and Linux clients. Printing with CUPS Get the necessary packages with the following command: user@ubuntu:~$ &#8230; <a href="http://edafe.org/2006/12/sharing-a-postscript-printer-with-cups-and-samba/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Using Samba and CUPS, the Common UNIX Printing System, Ubuntu can easily be configured to provide printing services to a heterogeneous network of Windows, Macintosh and Linux clients.</p>
<h4>Printing with CUPS</h4>
<p>Get the necessary packages with the following command:</p>
<p><code>user@ubuntu:~$ sudo apt-get install cupsys foomatic-filters-ppds</code></p>
<p>Add the user <em>cupsys</em> to the group <em>shadow</em>:</p>
<p><code>user@ubuntu:~$ sudo adduser cupsys shadow</code></p>
<p>Get the file <em>cupsd.conf</em> and move it to <em>/etc/cups/</em>:</p>
<p><code>user@ubuntu:~# sudo wget &quot;<a href="http://edafe.org/wp-content/uploads/2006/12/cupsd.conf" target="_blank">http://edafe.org/ubuntu/cups/cupsd.conf</a>&quot;<br />user@ubuntu:~# sudo mv cupsd.conf /etc/cups/</code></p>
<p>The downloaded file contains the following changes from the Ubuntu default configuration:</p>
<p><code># Default authentication type, when authentication is required...<br />DefaultEncryption IfRequested<br /># Restrict access to the admin pages...<br />&lt;Location /admin&gt;<br />&emsp;&emsp;Allow @LOCAL<br />&lt;/Location&gt;</code></p>
<p>Setting these options enables members of the admin group to modify the configuration of the CUPS server from clients sharing the same local network.</p>
<p>Modify the file <em>/etc/cups/cups.d/ports.conf</em> to read:</p>
<p><code>Port 631<br />Listen localhost<br />Listen 192.168.0.123<br />Listen /var/run/cups/cups.sock</code></p>
<p>For <em>192.168.0.123</em>, substitute the IP address of your machine on the local network.</p>
<p>Restart <em>cupsd</em> with the following command:</p>
<p><code>user@ubuntu:~$ sudo /etc/init.d/cupsys restart</code></p>
<p>Use a web browser to access <a href="http://localhost:631/admin" target="_blank">http://localhost:631/admin</a> (or http://192.168.0.123:631/admin from another machine on your local network). Go to <span>Administration &gt; Add Printer</span> and begin to set up your printer. When prompted by the system, authenticate yourself as a member of the admin group. If necessary, obtain the correct <a href="http://openprinting.org/printer_list.cgi" target="_blank">PostScript Printer Description (PPD) file</a> for your printer model. Print a test page to confirm that your printer is working properly with CUPS.</p>
<h4>Making Printers Available over the Network</h4>
<p><a href="./?p=1194">Install and configure a Samba server</a> and then add the following options to <em>/etc/samba/smb.conf</em>:</p>
<p><code>[global]<br />&emsp;&emsp;printing = cups<br />&emsp;&emsp;load printers = Yes<br />&emsp;&emsp;printcap name = cups<br />[printers]<br />&emsp;&emsp;comment = All Printers<br />&emsp;&emsp;printable = Yes<br />&emsp;&emsp;path = /var/spool/samba/print<br />&emsp;&emsp;browseable = No<br />&emsp;&emsp;guest ok = Yes<br />&emsp;&emsp;read only = Yes</code></p>
<p>Create the directory <em>/var/spool/samba/print</em> and set its permissions with the following two commands:</p>
<p><code>user@ubuntu:~$ sudo mkdir -p /var/spool/samba/print<br />user@ubuntu:~$ sudo chmod 1777 /var/spool/samba/print</code></p>
<p>Restart the Samba server with the following command:</p>
<p><code>user@ubuntu:~$ sudo /etc/init.d/samba restart</code></p>
<p>Set your Samba clients to use a printer driver that outputs generic PostScript. Use the the Apple LaserWriter driver on Windows, the Generic PostScript driver on Mac OS X or the Raw Standard driver on Ubuntu.<br /><a href="http://wiki.ubuntuusers.de/CUPS">wiki.ubuntuusers.de</a>, <a href="http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html#id363890" target="_blank">www.samba.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://edafe.org/2006/12/sharing-a-postscript-printer-with-cups-and-samba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring a static IP address</title>
		<link>http://edafe.org/2006/11/configuring-a-static-ip-address/</link>
		<comments>http://edafe.org/2006/11/configuring-a-static-ip-address/#comments</comments>
		<pubDate>Sun, 26 Nov 2006 23:28:33 +0000</pubDate>
		<dc:creator>edafe</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[tcpip]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://edafe.org/?p=1215</guid>
		<description><![CDATA[Edit the file /etc/network/interfaces to contain the following entries: # The primary network interfaceauto eth0iface eth0 inet static&#8195;&#8195;address 192.168.0.20&#8195;&#8195;netmask 255.255.255.0&#8195;&#8195;broadcast 192.168.0.255&#8195;&#8195;gateway 192.168.0.1 Reconfigure the network interfaces with the following command: user@ubuntu:~$ sudo /etc/init.d/networking restart www.ubuntuforums.org]]></description>
			<content:encoded><![CDATA[<p>Edit the file <em>/etc/network/interfaces</em> to contain the following entries:</p>
<p><code># The primary network interface<br />auto eth0<br />iface eth0 inet static<br />&emsp;&emsp;address 192.168.0.20<br />&emsp;&emsp;netmask 255.255.255.0<br />&emsp;&emsp;broadcast 192.168.0.255<br />&emsp;&emsp;gateway 192.168.0.1</code></p>
<p>Reconfigure the network interfaces with the following command:</p>
<p><code>user@ubuntu:~$ sudo /etc/init.d/networking restart</code></p>
<p><a href="http://www.ubuntuforums.org/showthread.php?t=66500" target="_blank">www.ubuntuforums.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://edafe.org/2006/11/configuring-a-static-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Samba as a file server</title>
		<link>http://edafe.org/2006/11/samba-as-a-file-server/</link>
		<comments>http://edafe.org/2006/11/samba-as-a-file-server/#comments</comments>
		<pubDate>Thu, 16 Nov 2006 20:41:47 +0000</pubDate>
		<dc:creator>edafe</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[smb]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://edafe.org/?p=1194</guid>
		<description><![CDATA[Samba enables Linux to speak the Server Message Block (SMB) protocol, which is also used by Windows and Mac OS X to exchange data over a network. Get the necessary packages with the following command: user@ubuntu:~$ sudo apt-get install swat &#8230; <a href="http://edafe.org/2006/11/samba-as-a-file-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Samba <a href="http://www.itweek.co.uk/itweek/news/2085206/samba-beats-windows" target="_blank">enables Linux to speak the Server Message Block (SMB) protocol</a>, which is also used by Windows and Mac OS X to exchange data over a network.</p>
<p>Get the necessary packages with the following command:</p>
<p><code>user@ubuntu:~$ sudo apt-get install swat netkit-inetd</code></p>
<p>For an initial configuration, edit the file <em>/etc/samba/smb.conf</em> to contain the following entries:</p>
<p><code>[global]<br />&emsp;&emsp;workgroup = SAMBA<br />[homes]<br />&emsp;&emsp;comment = Home Directories<br />&emsp;&emsp;valid users = %S<br />&emsp;&emsp;read only = No<br />&emsp;&emsp;create mask = 0640<br />&emsp;&emsp;directory mask = 0750<br />&emsp;&emsp;browseable = No</code></p>
<p>Continue by adding local users to the <em>smbpasswd</em> file:</p>
<p><code>user@ubuntu:~$ sudo smbpasswd -a user</code></p>
<p>Restart the Samba server with the following command:</p>
<p><code>user@ubuntu:~$ sudo /etc/init.d/samba restart</code></p>
<p>The server ubuntu now joins the SAMBA workgroup, giving users who have been added to the <em>smbpasswd</em> file access to their respective home directories.</p>
<h4>Using SWAT</h4>
<p>Using the Samba Web Administration Tool (SWAT), you can access help, obtain status information and change the configuration of your Samba server. Use a web browser to access <a href="http://localhost:901/" target="_blank">http://localhost:901/</a> and <a href="./?p=1213">log in as the local root user</a>.<br />In principle, SWAT can also be reached from other machines on your local network. However, such connections are vulnerable to password sniffing because of the clear text protocol that SWAT uses to authenticate users.<br /><a href="http://www.samba.org/samba/docs/using_samba/toc.html" target="_blank">www.samba.org</a>, <a href="http://copia.ogbuji.net/blog/2006-01-26/The_madnes" target="_blank">copia.ogbuji.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://edafe.org/2006/11/samba-as-a-file-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Public/private key authentication with SSH</title>
		<link>http://edafe.org/2006/09/publicprivate-key-authentication-with-ssh/</link>
		<comments>http://edafe.org/2006/09/publicprivate-key-authentication-with-ssh/#comments</comments>
		<pubDate>Mon, 25 Sep 2006 19:31:42 +0000</pubDate>
		<dc:creator>edafe</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[cryptography]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unr]]></category>

		<guid isPermaLink="false">http://edafe.org/?p=1190</guid>
		<description><![CDATA[SSH is a protocol that enables secure logins to your computer over a network. SSH supports the use of public/private key pairs for user authentication. Private keys are kept locally, while public keys are stored on the remote machine. On &#8230; <a href="http://edafe.org/2006/09/publicprivate-key-authentication-with-ssh/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>SSH is a protocol that enables secure logins to your computer over a network. SSH supports the use of <a href="http://en.wikipedia.org/wiki/Public-key_cryptography" target="_blank">public/private key pairs for user authentication</a>. Private keys are kept locally, while public keys are stored on the remote machine.</p>
<h4>On the Local Machine</h4>
<p>Use the command <em>ssh-keygen -t dsa</em> to generate a key pair for the local user. Use an appropriate passphrase to secure your private key (<a href="http://www.snailbook.com/faq/no-passphrase.auto.html#no-biscuit" target="_blank">don&rsquo;t be tempted to use an empty passphrase</a>).<br />Set the permissions for the private key file with the following command:</p>
<p><code>user@ubuntu:~$ chmod 600 ~/.ssh/id_dsa</code></p>
<h4>On the Remote Machine</h4>
<p>Get the necessary packages with the following command:</p>
<p><code>user@ubuntu:~$ sudo apt-get install ssh</code></p>
<p>Copy the public key file <em>~/.ssh/id_dsa.pub</em> from the local to the remote machine.</p>
<p>On the remote machine, move and rename the file with the following command:</p>
<p><code>user@ubuntu:~$ mv id_dsa.pub .ssh/authorized_keys2</code></p>
<p>Set the permissions for the file with the following command:</p>
<p><code>user@ubuntu:~$ chmod 600 ~/.ssh/authorized_keys2</code></p>
<p>Add the user <em>user</em> to the group ssh:</p>
<p><code>user@ubuntu:~$ sudo adduser user ssh</code></p>
<p>Get the file <em>sshd_config</em> and move it to <em>/etc/ssh/</em>:</p>
<p><code>user@ubuntu:~# sudo wget &quot;<a href="http://edafe.org/wp-content/uploads/2006/09/sshd_config" target="_blank">http://edafe.org/wp-content/uploads/2006/09/sshd_config</a>&quot;<br />user@ubuntu:~# sudo mv sshd_config /etc/ssh/</code></p>
<p>The downloaded file contains the following changes from the Ubuntu default configuration:</p>
<p><code>LogLevel VERBOSE</p>
<p>AllowGroups ssh<br />
LoginGraceTime 20<br />
PermitRootLogin no<br />
MaxAuthTries 1</p>
<p>RSAAuthentication no</p>
<p>PasswordAuthentication no</p>
<p>X11 Forwarding no<br />
TCPKeepAlive yes<br />
ClientAliveInterval 15<br />
ClientAliveCountMax 3</p>
<p>MaxStartups 3</p>
<p>UsePAM no</code></p>
<p>Setting these options makes root logins impossible. Only users belonging to the group ssh may establish a connection. Access to the remote machine is strictly tied to the private key and the passphrase used to encrypt it.</p>
<p>Next, restart the SSH server on the remote machine with the following command:</p>
<p><code>user@ubuntu:~$ sudo /etc/init.d/ssh restart</code></p>
<p>You should now be able to log into the remote machine using the private key stored on the local machine:</p>
<p><code>user@ubuntu:~$ ssh remote.machine<br />Enter passphrase for key '/home/user/.ssh/id_dsa':</code></p>
<p>The book <em><a href="http://oreilly.com/catalog/9780596008956/" target="_blank">SSH The Secure Shell by Daniel Barrett, Richard Silverman and Robert Byrnes</a></em> is useful as a reference text and has information on other clever stuff you can do with SSH.<br /><a href="http://www-128.ibm.com/developerworks/linux/library/l-keyc.html" target="_blank">www.ibm.com/developerworks/linux/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://edafe.org/2006/09/publicprivate-key-authentication-with-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

