<?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>Johan Känngård &#187; howto</title>
	<atom:link href="http://johankanngard.net/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://johankanngard.net</link>
	<description>Useful tips for developers</description>
	<lastBuildDate>Fri, 06 Aug 2010 13:49:59 +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>HOWTO: Install Lotus Domino 7.0.2 on Ubuntu 8.0.4</title>
		<link>http://johankanngard.net/2008/07/16/howto-install-lotus-domino-702-on-ubuntu-804/</link>
		<comments>http://johankanngard.net/2008/07/16/howto-install-lotus-domino-702-on-ubuntu-804/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 09:05:23 +0000</pubDate>
		<dc:creator>Johan Känngård</dc:creator>
				<category><![CDATA[Domino/Notes]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Domino]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Lotus]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://johankanngard.net/?p=196</guid>
		<description><![CDATA[This minimalistic guide shows how to install Domino 7.0.2 on Ubuntu 8.0.4 server or workstation. I did this on Ubuntu 7, but did not write everything down, which meant learning/searching for the information once more. Please let me know if you have better ways of doing this! Create a domino user and group $ sudo [...]]]></description>
			<content:encoded><![CDATA[<p>
This minimalistic guide shows how to install Domino 7.0.2 on Ubuntu 8.0.4 server or workstation. I did this on Ubuntu 7, but did not write everything down, which meant learning/searching for the information once more. Please let me know if you have better ways of doing this!
</p>
<p><h2>Create a domino user and group</h2>
<p><code><br />
$ sudo useradd -m domino<br />
$ sudo groupadd domino<br />
$ sudo passwd domino<br />
</code></p>
<h2>Add required libraries</h2>
</p>
<p>
Domino uses some libraries that is not installed by the standard Ubuntu installation.
</p>
<p><code><br />
$ sudo apt-get install libstdc++5<br />
$ sudo apt-get install libxmu6<br />
$ sudo apt-get install libxp6<br />
$ sudo apt-get install libxp-java<br />
$ sudo apt-get install libxtst6<br />
</code></p>
<h2>Install</h2>
<p>
Unpack the installation file (my is named S7.0.2.tar) and run the linux/domino/install script as root. Use default settings (except user, enter domino), use &#8220;Manual setup&#8221;.
</p>
<p><code><br />
$ tar -xvf S7.0.2.tar<br />
$ cd S7.0.2/linux/domino<br />
$ sudo install<br />
</code></p>
<h2>Change ownerships on files</h2>
<p>
Since you installed as root, the files is owned by root. I guess if install was run as the domino user, this step would not be required.
</p>
<p><code><br />
$ sudo chown -R domino /local/notesdata<br />
$ sudo chgrp -R domino /local/notesdata<br />
$ sudo chown -R domino /opt/ibm<br />
$ sudo chgrp -R domino /opt/ibm<br />
</code></p>
<h2>Firewall</h2>
<p>
Stop your local firewall or open 1352 in the local firewall. If you are using shorewall, you can do your own Notes macro. Change the port from 80 to 1352 in the macro.Notes file.
</p>
<p><code><br />
$ sudo cp /usr/share/shorewall/macro.HTTP /usr/share/shorewall/macro.Notes<br />
$ sudo gedit /usr/share/shorewall/macro.Notes<br />
</code></p>
<p>
Add the following (depending on setup&#8230;) to /etc/shorewall/rules:
</p>
<p><code><br />
Notes/ACCEPT	net		$FW<br />
</code></p>
<h2>Conflicting services</h2>
<p>Stop any mail, web, ldap services, so that Domino does not conflict on ports. Remember to disable those you don&#8217;t need or disable the Domino services that you don&#8217;t need.<br />
<code><br />
$ sudo /etc/init.d/postfix stop<br />
$ sudo /etc/init.d/courier-imap stop<br />
$ sudo /etc/init.d/courier-imap-ssl stop<br />
</code></p>
<h2>Relink sh</h2>
<p>
The server script uses /bin/sh, relink sh to bash that normally links to /bin/dash.
</p>
<p><code><br />
$ sudo rm /bin/sh<br />
$ sudo ln -s /bin/bash /bin/sh<br />
</code></p>
<h2>nsd.sh</h2>
<p>I got many &#8220;Command not found&#8221; errors when starting the server first time. After some research, I found that the script requires gawk in sd.sh:<br />
<code><br />
$ sudo apt-get install gawk<br />
</code></p>
<h2>Start the server setup listener</h2>
<p><code><br />
$ su notes<br />
$ DISPLAY=:0.0<br />
$ export DISPLAY<br />
$ cd /local/notesdata<br />
$ /opt/ibm/lotus/bin/server -listen<br />
</code></p>
<p>
If you want to add a server with existing IDs, put the certifier ID, the server ID and the admin ID in the notesdata directory on the server. Run the Remote Server Setup utility on a client. Usually in Start\Lotus Applications\Remote Server Setup. Configure as a normal setup.
</p>
<h2>Server startup script</h2>
<p>
To be able to start Domino on startup, restart it and shutdown when system restarts, you can <a href="http://johankanngard.net/wp-content/uploads/2008/07/domino">download domino init.d-script</a> and put in /etc/init.d. Restart the server to see if it works.
</p>
<p><code><br />
$ cd /etc/init.d<br />
$ sudo wget http://johankanngard.net/wp-content/uploads/2008/07/domino<br />
$ sudo chmod +x domino<br />
$ sudo chown domino domino<br />
$ sudo chgrp domino domino<br />
$ sudo update-rc.d domino defaults<br />
$ sudo shutdown -r now<br />
</code></p>
<h2>Test</h2>
<p>
Use a Notes client and test that the server is up and running. To see if the server is running on the server, you use telnet.
</p>
<p><code><br />
$ ps a | grep server<br />
4505 pts/0    Ss+    0:00 su - domino -c /opt/ibm/lotus/bin/server<br />
</code></p>
<p>
You can also try connecting to the server locally with telnet using:
</p>
<p><code><br />
$ telnet localhost 1352<br />
Trying 127.0.0.1...<br />
Connected to localhost.<br />
Escape character is \\\\\\\\\\\\\\\'^]\\\\\\\\\\\\\\\'.<br />
</code></p>
<h2>Some links of interest</h2>
<ul>
<li><a href="http://www.nashcom.de/nshweb/pages/startscript.htm">Domino on Unix/Linux Start Script</a></li>
<li><a href="http://www.windelen.be/windelen/wwwindelen.nsf/(All)/AA5357E00F220729C125704A0040CBB8">Migrate Domino to Linux</a></li>
<li><a href="http://www.dominopower.com/issues/issue200010/linux1000001.html">Installing Lotus Domino on Linux</a></li>
</ul>
<p><ins datetime="2008-07-19T12:23:42+00:00"><br />
Updated the startup script since the stop argument wasn&#8217;t working.<br />
</ins></p>
]]></content:encoded>
			<wfw:commentRss>http://johankanngard.net/2008/07/16/howto-install-lotus-domino-702-on-ubuntu-804/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
