<?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>Alain M. Lafon &#187; installation</title>
	<atom:link href="http://blog.dispatched.ch/tag/installation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dispatched.ch</link>
	<description>code, life and struggles thereof</description>
	<lastBuildDate>Wed, 18 Aug 2010 14:58:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sun RAY with PS2 Keyboards</title>
		<link>http://blog.dispatched.ch/2008/10/04/sun-ray-with-ps2-keyboards/</link>
		<comments>http://blog.dispatched.ch/2008/10/04/sun-ray-with-ps2-keyboards/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 16:22:53 +0000</pubDate>
		<dc:creator>Alain M. Lafon</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[ps2]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[sun ray]]></category>

		<guid isPermaLink="false">http://gefechtsdienst.de/?p=105</guid>
		<description><![CDATA[SUN Ray with PS2 keyboards If you want to hook up a Sun Ray at home, you might want to use your favourite old PS2 keyboard attached via some USB connector. Depending on your keyboard layout you might be disappointed by the result, because it will be standard US. That&#8217;s because the PS2 keyboard isn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p><b>SUN Ray with PS2 keyboards</b><br />
If you want to hook up a Sun Ray at home, you might want to use your favourite old PS2 keyboard attached via some USB connector. Depending on your keyboard layout you might be disappointed by the result, because it will be standard US. That&#8217;s because the PS2 keyboard isn&#8217;t designed for the Ray clients and won&#8217;t prompt back a valid layout to the server which will then assume a standard scenario.<br />
There is a simple solution to this problem; in the file &#8220;/usr/openwin/etc/keytables/keytable.map&#8221; edit the entry</p>
<pre class="box">

6      0       US6.kt
</pre>
<p>and rewrite it to your favourite layout(British English in this case)</p>
<pre class="box">
6       0      UK6.kt
</pre>
<p>There is one drawback however; from this point on this is going to be the single standard fallback layout for all keyboards hooked via SUN Ray clients to your server which won&#8217;t report a valid layout themselves. So if you want to use different layouts on different clients you might want to check the xkb option in &#8220;/opt/SUNWut/bin/utxconfig&#8221;, which I haven&#8217;t done until now.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dispatched.ch/2008/10/04/sun-ray-with-ps2-keyboards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix and MySQL (Debian)</title>
		<link>http://blog.dispatched.ch/2008/10/04/postfix-and-mysql-debian/</link>
		<comments>http://blog.dispatched.ch/2008/10/04/postfix-and-mysql-debian/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 16:22:13 +0000</pubDate>
		<dc:creator>Alain M. Lafon</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Mailinglist]]></category>
		<category><![CDATA[Mailinglists]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://gefechtsdienst.de/?p=102</guid>
		<description><![CDATA[Integration of Databases in the Postfix SMTP server in Debian GNU/Linux Why would somebody want to let postfix connect to a SQL-database? There&#8217;s no need to create a real local user for each e-mail account SQL-databases can be kept in RAM, so if you have excessive mailing on your server, there will be reduced harddisk [...]]]></description>
			<content:encoded><![CDATA[<p>Integration of Databases in the Postfix SMTP server in Debian GNU/Linux</p>
<p>Why would somebody want to let postfix connect to a SQL-database?</p>
<ul>
<li> There&#8217;s no need to create a real local user for each e-mail account</li>
<li> SQL-databases can be kept in RAM, so if you have excessive mailing<br />
on your server, there will be reduced harddisk access</li>
<li> Management of mailinglists becomes real easy</li>
<li> /etc/aliases is kept small and simple</li>
</ul>
<p><strong> Step 1</strong><br />
Install the package &#8220;mysql-server&#8221;  and &#8220;mysql-client&#8221; if not yet installed.<br />
Log on to your sql-server using the root account:</p>
<pre class="box">mysql --user root
mysql&gt; create database postfix_database;
mysql&gt; GRANT ALL PRIVILEGES ON postfix_database \
TO 'postfix'-AT-'localhost' IDENTIFIED BY 'postfix_password' \
WITH GRANT OPTION;
mysql&gt; flush privileges;
mysql&gt; create table postfix.postfix_alias (destination VARCHAR(50), \
alias VARCHAR(50));
mysql&gt; exit;</pre>
<p>Now we have created a database called &#8220;postfix_database&#8221; and a user called<br />
&#8220;postfix&#8221; who has access to it using his unique password &#8220;postfix_password&#8221;.<br />
With &#8220;flush privileges&#8221; we bring the sql-server up to date concerning user rights.<br />
Then we create a table called &#8220;postfix_alias&#8221; in the database &#8220;postfix&#8221; with two rows:<br />
&#8220;destination&#8221; is a text variable where the mail will be relayed to and &#8220;alias&#8221; is the name<br />
of the mailinglist in my example.</p>
<p><strong> Step 2 </strong><br />
Install the package &#8220;postfix-mysql&#8221;. Besides the needed<br />
library this will bring you the config file &#8220;/etc/postfix/mysql-aliases.cf&#8221; which we<br />
will modify like this</p>
<pre class="box">user = postfix
password = postfix_password
table = postfix_alias
query =  SELECT destination FROM postfix_alias WHERE alias = '%s'
hosts = unix:/var/run/mysqld/mysqld.sock
select_field = destination
where_field = alias</pre>
<p>Since postfix runs in a chroot it lacks several information it needs to have;<br />
for example the socket to the mysql daemon. That&#8217;s why we provide it<br />
with some bind mounts, which can be done by inserting these lines into<br />
&#8220;/etc/fstab&#8221;.</p>
<pre class="box">/etc/passwd     /var/spool/postfix/etc/passwd           none bind 0 0
/etc/shadow     /var/spool/postfix/etc/shadow           none bind 0 0
/etc/group      /var/spool/postfix/etc/group            none bind 0 0
/var/run/mysqld /var/spool/postfix/var/run/mysqld       none bind 0 0</pre>
<p>To update this information the root user has to remount all filesystems<br />
using &#8220;mount -a&#8221;.</p>
<p><strong>Step 3</strong><br />
We&#8217;re done already(almost). All that is still needed is some information in the database.<br />
Single entries can be made with the mysql client like this:</p>
<pre class="box">mysql&gt; insert into postfix_alias values \
('someone-AT-somewhere-DOT-de', 'mailinglistname');</pre>
<p>Now if you send a mail to &#8220;mailinglistname-AT-yourhost-DOT-com&#8221; the mail will be relayed to<br />
&#8220;someone@somewhere-DOT-de&#8221;. That&#8217;s it.<br />
I wrote a JSP/Servlet combination in JavaEE to create a webpage where users can<br />
put themselves on or off a  mailinglist; you can find it<br />
<a href="http://www.gefechtsdienst.de/preek/Projects/Mailinglist/" class="broken_link">here</a> or in the<br />
projects folder if you&#8217;re interested.</p>
<p><strong>Step 4</strong></p>
<p>Note that installing the package postfix-mysql updated a line in your &#8220;/etc/postfix/main.cf&#8221;:</p>
<pre class="box">alias_maps = hash:/etc/aliases
...
alias_maps = mysql:/etc/postfix/mysql-aliases.cf</pre>
<p>There are most likely many more lines in this file, but the important factor is<br />
that the first line mapping to &#8220;/etc/aliases&#8221; is made obsolete by the second entry.<br />
So if you were using some important relaying in this file you should migrate it.<br />
For this reason I wrote a small <a href="http://blog.dispatched.ch/daten/aliases2sql"><br />
shellscript</a> that was capable to do the job for my setup.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dispatched.ch/2008/10/04/postfix-and-mysql-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migration from /etc/aliases to MySQL</title>
		<link>http://blog.dispatched.ch/2008/10/04/migration-from-etcaliases-to-mysql/</link>
		<comments>http://blog.dispatched.ch/2008/10/04/migration-from-etcaliases-to-mysql/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 16:20:34 +0000</pubDate>
		<dc:creator>Alain M. Lafon</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[aliases]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://gefechtsdienst.de/?p=96</guid>
		<description><![CDATA[I wrote a small shellscript which converts existing mail relays in /etc/aliases to a SQL database. It worked for me in this simple form but I can take no responsibility whatsover for any other setup. The usage is pretty much straight forward &#8211; simply give the script the needed information as to where the aliases [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a small shellscript which converts existing mail<br />
relays in /etc/aliases to a SQL database. It worked for me in this<br />
simple form but I can take no responsibility whatsover for any other<br />
setup.</p>
<p>The usage is pretty much straight forward &#8211; simply give the script<br />
the needed information as to where the aliases file is located, the<br />
account for MySQL and so forth.<br />
Note: In the current implementation you have to create the database,<br />
a user and a valid relay table yourself. If you don&#8217;t know how to do that<br />
you can extract this information in my howto on migrating Postfix to<br />
MySQL.</p>
<p><a href="http://blog.dispatched.ch/daten/aliases2sql">download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dispatched.ch/2008/10/04/migration-from-etcaliases-to-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First installation troubles (Solaris)</title>
		<link>http://blog.dispatched.ch/2008/10/04/first-installation-troubles-solaris/</link>
		<comments>http://blog.dispatched.ch/2008/10/04/first-installation-troubles-solaris/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 16:19:28 +0000</pubDate>
		<dc:creator>Alain M. Lafon</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>

		<guid isPermaLink="false">http://gefechtsdienst.de/?p=92</guid>
		<description><![CDATA[Various small problems VIM / Cursor Keys If you wonder why VIM keeps writing &#8216;A&#8217;, &#8216;B&#8217;, &#8216;C&#8217;, &#8216;D&#8217; on your screen when it is supposed just to move the cursor in writing mode, the answer is that the cursor keys are not being mapped the right way. The solution is to extend your favourite .vimrc [...]]]></description>
			<content:encoded><![CDATA[<h1>Various small problems</h1>
</p>
<p><b>VIM / Cursor Keys</b><br />
If you wonder why VIM keeps writing &#8216;A&#8217;, &#8216;B&#8217;, &#8216;C&#8217;, &#8216;D&#8217; on your screen when it is supposed just to move the cursor in writing mode, the answer is that the cursor keys are not being mapped the right way. The solution is to extend your favourite .vimrc file with:</p>
<pre class="box">
map! ^[OD ^[h
map! ^[OC ^[l
map! ^[OA ^[k
map! ^[OB ^[j
</pre>
<p><b>&#8220;/usr/ucb/cc: language optional software package not installed&#8221;</b><br />
/usr/ucb/cc is only a wrapper to a real C compiler. Solaris 10 won&#8217;t have a C compiler preinstalled, normally. This means that you will have to install it yourself (Sun Studio would be a good idea, too). All you have to see to then is that your PATH is set correctly; meaning that /usr/ucb is either deleted or after your real compiler.</p>
<p></p>
<p><b>&#8220;WARNING: loghost could not be resolved.&#8221;</b><br />
That&#8217;s because your syslogd doesn&#8217;t have a defined host to work on. To fix it simply add &#8220;loghost&#8221; to your 127.0.0.1 entry in the /etc/hosts file</p>
<pre class="box">
127.0.0.1       localhost loghost
</pre>
<p><b>&#8220;Sendmail: My unqualified host name (domain) unknown;&#8221;</b><br />
If you get this warning on computer startup, then you haven&#8217;t configured a fully qualified domain name for your system. If you don&#8217;t need a mailing system on your computer the solution is easy by simply disabling the service via:</p>
<pre class="box">
svcadm disable sendmail
</pre>
<p>If you need a working mailsystem, there is a <a href="http://www.sun.com/bigadmin/features/articles/config_sendmail.html">howto</a> from SUN.
          </td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://blog.dispatched.ch/2008/10/04/first-installation-troubles-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
