Jul
16
Posted on 2008-07-16
Filed Under (Domino/Notes, Linux) by Johan Känngård

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 useradd -m domino
$ sudo groupadd domino
$ sudo passwd domino

Add required libraries

Domino uses some libraries that is not installed by the standard Ubuntu installation.


$ sudo apt-get install libstdc++5
$ sudo apt-get install libxmu6
$ sudo apt-get install libxp6
$ sudo apt-get install libxp-java
$ sudo apt-get install libxtst6

Install

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 “Manual setup”.


$ tar -xvf S7.0.2.tar
$ cd S7.0.2/linux/domino
$ sudo install

Change ownerships on files

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.


$ sudo chown -R domino /local/notesdata
$ sudo chgrp -R domino /local/notesdata
$ sudo chown -R domino /opt/ibm
$ sudo chgrp -R domino /opt/ibm

Firewall

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.


$ sudo cp /usr/share/shorewall/macro.HTTP /usr/share/shorewall/macro.Notes
$ sudo gedit /usr/share/shorewall/macro.Notes

Add the following (depending on setup…) to /etc/shorewall/rules:


Notes/ACCEPT net $FW

Conflicting services

Stop any mail, web, ldap services, so that Domino does not conflict on ports. Remember to disable those you don’t need or disable the Domino services that you don’t need.

$ sudo /etc/init.d/postfix stop
$ sudo /etc/init.d/courier-imap stop
$ sudo /etc/init.d/courier-imap-ssl stop

Relink sh

The server script uses /bin/sh, relink sh to bash that normally links to /bin/dash.


$ sudo rm /bin/sh
$ sudo ln -s /bin/bash /bin/sh

nsd.sh

I got many “Command not found” errors when starting the server first time. After some research, I found that the script requires gawk in sd.sh:

$ sudo apt-get install gawk

Start the server setup listener


$ su notes
$ DISPLAY=:0.0
$ export DISPLAY
$ cd /local/notesdata
$ /opt/ibm/lotus/bin/server -listen

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.

Server startup script

To be able to start Domino on startup, restart it and shutdown when system restarts, you can download domino init.d-script and put in /etc/init.d. Restart the server to see if it works.


$ cd /etc/init.d
$ sudo wget http://johankanngard.net/wp-content/uploads/2008/07/domino
$ sudo chmod +x domino
$ sudo chown domino domino
$ sudo chgrp domino domino
$ sudo update-rc.d domino defaults
$ sudo shutdown -r now

Test

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.


$ ps a | grep server
4505 pts/0 Ss+ 0:00 su - domino -c /opt/ibm/lotus/bin/server

You can also try connecting to the server locally with telnet using:


$ telnet localhost 1352
Trying 127.0.0.1...
Connected to localhost.
Escape character is \\\\\\\\\\\\\\\'^]\\\\\\\\\\\\\\\'.

Some links of interest


Updated the startup script since the stop argument wasn’t working.

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
(8) Comments    Read More   

Comments

Rafael Bouillon on 2 August, 2008 at 15:56:17 #

Do you know how to install Domino Server 8.5 beta on Linux Ubuntu 8.04? I have dowloaded the par file and installed in the linux/domino directory on the desktop and also have created a user ID and group named domino.

I have tried several time but the sudo ./install command is returning the following errors:
[: 136: -E: unexpected operator
[: 136: -e: unexpected operator
[: 136: -e;1: unexpected operator
.: 1: -e: not found

Thanks in advance for your help.

Rafael


Johan Känngård on 2 August, 2008 at 16:04:10 #

No, I haven’t tried that. What does those lines say that the errors come from?


jayde moors on 12 August, 2008 at 07:35:58 #

I get the same error to when trying to install. My line 136 says:

eval “. `CdPath ${thisfile}.sh`”

Thanks,

Jayde


Björn Hamrin on 14 August, 2008 at 01:52:15 #

I got the same error as Rafael, Ubuntu server 8.04 and Domino server 8.5 in an
Virtual Machine

/björn


Stephen Bourne on 19 September, 2008 at 05:50:08 #

I have the same problem … [: 136: -E: unexpected operator … when I type sudo ./install -console … the Domino install is definitely in the current directory … I am trying to install Domino 8.0.1 on Ubuntu 8.04 server … other people have achieved this apparently. Any suggestions would be very welcome.


Johan Känngård on 19 September, 2008 at 08:39:39 #

I haven’t tried the console setup (yet), perhaps it’s the wrong shell binary running the script? What does the shebang in the install script say? Try changing it to #!/bin/bash.


Gustavo Cerda on 3 October, 2008 at 15:20:49 #

Dear Johan
Thank you help, was very importat to me this tips to install the domino server over ubuntu.
Best regards


Olle on 9 October, 2008 at 14:42:45 #

If you do
sudo su
and then
./install
it works to isntall 8.5 on a ubuntu


Post a Comment
Name:
Email:
Website:
Comments: