Domino/Notes – Johan Känngård http://johankanngard.net Running, coding and mind dumps Thu, 01 Dec 2016 18:23:26 +0000 sv-SE hourly 1 lotus.com/ldd no more :-( http://johankanngard.net/2008/09/04/lotuscomldd-no-more/ http://johankanngard.net/2008/09/04/lotuscomldd-no-more/#comments Thu, 04 Sep 2008 10:50:23 +0000 http://johankanngard.net/?p=298 IBM has removed the old redirect for the Lotus Developer Domain, I only get to Lotus Software using that old URL. Now is time to remember this: http://www.ibm.com/developerworks/lotus

]]>
http://johankanngard.net/2008/09/04/lotuscomldd-no-more/feed/ 8
HOWTO Use Lotus Notes, Domino Designer and Domino Administrator 8.01 on Ubuntu 8.04 via Wine 1.0.0 http://johankanngard.net/2008/09/01/howto-use-lotus-notes-domino-designer-and-domino-administrator-801-on-ubuntu-804-via-wine-100/ http://johankanngard.net/2008/09/01/howto-use-lotus-notes-domino-designer-and-domino-administrator-801-on-ubuntu-804-via-wine-100/#comments Mon, 01 Sep 2008 20:09:28 +0000 http://johankanngard.net/?p=294 […]]]> I just followed Julian’s excellent guide and it worked! Even though the guide was for previous versions of both Notes, Ubuntu and Wine, I did not have to make any additional steps to get it working. All programs works, I haven’t found anything that is broken (yet), and it’s great having the Designer ”directly” in Ubuntu instead of firing up VirtualBox.

Thanks Julian, for your excellent guide!

]]>
http://johankanngard.net/2008/09/01/howto-use-lotus-notes-domino-designer-and-domino-administrator-801-on-ubuntu-804-via-wine-100/feed/ 2
HOWTO: Install Lotus Domino 7.0.2 on Ubuntu 8.0.4 http://johankanngard.net/2008/07/16/howto-install-lotus-domino-702-on-ubuntu-804/ http://johankanngard.net/2008/07/16/howto-install-lotus-domino-702-on-ubuntu-804/#comments Wed, 16 Jul 2008 09:05:23 +0000 http://johankanngard.net/?p=196 […]]]> 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 StartLotus ApplicationsRemote 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.

]]>
http://johankanngard.net/2008/07/16/howto-install-lotus-domino-702-on-ubuntu-804/feed/ 8
Post ”Java versions in Lotus Domino and Notes” updated http://johankanngard.net/2007/12/04/post-java-versions-in-lotus-domino-and-notes-updated/ Tue, 04 Dec 2007 12:43:55 +0000 http://johankanngard.net/2007/12/04/post-java-versions-in-lotus-domino-and-notes-updated/ I’ve added 8.0 to the list.

]]>
g33k date http://johankanngard.net/2007/05/25/g33k-date/ http://johankanngard.net/2007/05/25/g33k-date/#comments Fri, 25 May 2007 09:59:54 +0000 http://johankanngard.net/2007/05/25/g33k-date/ […]]]> Johan defeating Darth Vader
I was a key speaker at the first g33k date ever yesterday, and it was Ekakan that held the meeting in their small but great office at Saltmätargatan in Stockholm. Quite a lot showed up, many of which I know by name, but not by face, since they are all bloggers with no pictures at their sites! :-) After having slurped down some well-known red-canned sugary liquid, I started my speech using OpenOffice Impress as presenter application. The slides can be found at the bottom of this post. It has not been cleaned up, so some references are to my local file system and applications on my Domino server will not work. I have put the database I used for the web service stuff as an attachment below, but use it at your own risk!
I talked briefly about who I am, what I like, what my shoe size is and other important stuff. A short history on how the web has evolved over time (1.0, 1.5, 2.0) and my own suggestion of the next 3.0 level, which includes web services on the client side. I demonstrated a simple AJAX solution for typeahead with script.aculo.us and Domino and a web service consumer in the browser.
A Midlet with a web service consumer was the next item to show, and it worked as a charm in the emulator!
After my 15 minutes of fame (or rather 40), we had a short drinking and chatting pause.

Joachim Dagerot introduced us into ext.js, a client-side framework with lot’s of goodies like menus, trees, tabbed tables, layouts etc. The framework looked really impressive, and applications based on it was more of a Windows experience. When developing applications with ext.js, almost everything is done in JavaScript, including the templates of the pages. You don’t have to download the complete framework, you can take bits and pieces, if you want only a part of the gadgets.

After more beverages, snacks and more chatting, connections were made, business cards and email addresses exchanged hands. I left rather early though, I hope my fellow bloggers to give the full story 😉 Photos were taking during the meeting, and I would really love to see them, since I didn’t use my own camera.

I hope that this event wasn’t the last of it’s kind in Sweden, it was great fun to see fellow bloggers and geeks!
Thanks for a great event everyone, especially Ekakan who arranged the g33k date!!

Btw, the picture at the top is NOT from the g33k date, it was just a picture I used in the presentation as an illustration of the thin red line between being a geek and a nerd. 😀

[tags]g33k, geek, J2ME, AJAX, Webservice, Ekakan[/tags]

]]>
http://johankanngard.net/2007/05/25/g33k-date/feed/ 7
Sammanfattning av Lotusphere Comes To You http://johankanngard.net/2006/03/14/sammanfattning-av-lotusphere-comes-to-you/ Tue, 14 Mar 2006 13:21:42 +0000 http://johankanngard.net/2006/03/14/sammanfattning-av-lotusphere-comes-to-you/ […]]]> .inlineImageContainer {float:left; margin-right:10px;} H4 {padding-bottom:0px; margin-bottom:0px;clear:both;} P {margin-top:0px;padding-top:0px;}

Detta är i korthet vad som sades under halvdagen den 8:e mars i Kistam som IBM valt att kalla Lotusphere Comes to You. Presentationerna som visades finns att hämta hos IBM.

Inledningstal av Ed Brill

Ed Brill

Det var kul att se Ed Brill på hans första besök i Sverige! Han presenterade siffror som visar att Lotusphere är populärare än någonsin och att Notes knappast är dött! Dessutom drog kort han igenom de nyheter som kommer framöver, vilka presenterades i detalj av de svenska IBM-medarbetarna. Framförandet var innehållsrikt, men lite för kort. Själv hade jag inte möjligheten att tala med honom, och jag hoppas att han återkommer till Sverige vid ett senare tillfälle!

Notes på Linux

Karl Dettner

v.7.0.x av Notes kommer att gå att köra på Linux via Workplace Managed Client. Karl Dettner demonstrerade detta LIVE genom att köra en fönsterhanterare i Linux, och startade Notes samt surfade runt i databaser. Domino Designer kommer inte att kunna köras på Linux (än), vilket gör att man fortfarande är hänvisad till Windows alternativt Wine, en öppen-källkodsimplementation av Windows API på Linux. Dock har det dykt upp ett försök till att skapa en webbbaserad IDE som liknar Domino Designer, vilket kan vara värt att bevaka.

Notes på Mac

Version 7.0.2 kommer att kunna köras på MacOS X. Domino Web Access i samma version kommer att stödja Mozilla Firefox på MacOS X, dock ej Safari.

Notes 8 ”Hannover”

8:an bygger på Eclipse och kan därmed köras på ett flertal plattformar. Publik beta dyker upp i slutet av 2006. Alla befintliga Notesapplikationer kommer att fungera i Hannover (vilket upprepades som ett mantra ett flertal gånger). Fokus på något som kallas aktiviteter, som är en form av delprojekt i en arbetsgrupp. Möjlighet att spara/gruppera dokument, mail, chat etc. i aktiviteter för att senare kunna söka fram informationen. Markering av dokument sker genom att hela raden visas i annan färg, som är standard i alla andra program på de flesta plattformar. Bockarna i kanten kommer således att försvinna.
Notesklienten kommer att kunna köra Webservices, även i lokala applikationer.

Sametime 7.5

Anders Kjellner

Anders Kjellner förklarade att även denna nya release är baserad på Eclipse, vilket möjliggör olika utseende i olika operativsystem, dvs. det ser ut som en MacOS-applikation på MacOS, och ser ut som en Windowsapplikation i Windows. Pluginarkitekturen från Eclipse gör att tredjepartsutvecklare kan ta fram produkter för att utöka funktionaliteten. Till en början finns t.ex. plugins för att koppla Sametime till videokonferensutrustning (Tandberg) och IP-telefoni (Avaya).
Det bakomliggande nätverksprotokollet är förbättrat pÃ¥ mÃ¥nga punkter, bl.a. har mängden data som skickas minskats, samt att den använder ”intelligent” teknik för att hitta det mest optimala sättet att kommunicera med servern.
Några användarnyheter är bl.a. möjligheten att använda olika stilar på chattmeddelanden, stavningskontroll (endast engelska till att börja med), smileys, kunna skicka Noteslänkar och historik som behåller formattering. Positionsmedvetande gör att Sametime känner av i vilket nät du kopplat upp dig i, och frågar efter den exakta adressen. Detta gör att applikationen kan hjälpa till med t.ex. val av rätt skrivare, hitta rätt till restauranger etc.
Numera krävs en JVM pÃ¥ minst 1.4 för att använda Sametime, vilket betyder att Internet Explorers MS JVM inte kommer att fungera, utan man mÃ¥ste ladda ner ”en annan”, förslagsvis Suns.

Workplace Designer 2.6

Erik Söderholm

Utvecklingsmiljön för Workplace Collaborative Services, Workplace Designer, är väldigt likt Domino Designer, och arbetssättet är lika intuitivt och enkelt, men skiljer på några punkter. Bl.a. har WD stöd för dra-och-släpp av element, exakt positionering och databasmodellering. För att göra livet ännu enklare, använder sig WD av @funktioner i kod i t.ex. knappar. Alla @funktioner från Notes/Domino är inte implementerade, men de mest basala. En inbyggd Java-brygga medger åtkomst av Javaobjekt och klasser på servern direkt från Javascript.

Innovation Pack

Ny funktionalitet till Notes och Domino 7 genom nya mallar/databaser, ingen uppdatering av koden i Notes/Domino. Dessutom en ny installation som tillåter Notes att installeras på USB-minne (som dock kan göras idag men lite mer omständligt). Släpps under tredje kvartalet 2006.
Några av mallarna som kommer att följa med:
Blog, för att skapa en webblogg
RSS, för att skapa RSS-flöden från befintliga databaser

Bowstreet Portal Factory

Patrik

Bowstreet köptes av IBM dÃ¥ produkten Portal Factory var intressant. Den används för att bygga portlets utan att koda en enda rad, utan man följer ett antal guider eller sÃ¥ kallade builders. Portal Factory är en plugin som kan användas i RAD eller Eclipse. I paketet ingÃ¥r 120 builders, som i bakgrunden skapar JEE-kod. Denna kod kan självklart ändras, men det behövs ej, dÃ¥ i stort sett allt kan konfigureras. Patrik (antecknade ej efternamnet, tyvärr…) visade ett exempel genom att använda builders för Dominovyer och formulär, för att hämta och visa information frÃ¥n Dominoapplikationer i en JEE-applikation.
Man behöver inte använda Portal Server för att använda de byggda applikationerna, utan man kan generera dessa för vanliga JEE-servrar, som t.ex. Apache Tomcat, Borland AppServer och självklart Websphere Application Server.
Portal Factory är ännu inte paketerad med IBMs namn, men kan redan idag köpas. En inte allt för vågad gissning är att denna produkt kommer att integreras med RAD och förhoppningsvis paketeras med Domino!?!

Till sist

Lotusphere Comes to You är ett bra initiativ av IBM, vi är många som inte har möjlighet att åka över Atlanten för att närvara på Lotusphere, men ändå vill få information. Visst finns det mesta tillgängligt på nätet, men det kan vara svårt att skilja godbitarna från allt brus därute! Glöm inte att titta på presentationerna, speciellt den som avhandlar Bowstreet!

Gula boxningshandskar
Efter inlämnad utvärdering fick vi en nyckelring med de berömda gula boxningshandskarna! :-)

[tags]Lotus Notes, Lotus Domino, Workplace, Bowstreet, RAD, Sametime, Hannover[/tags]

]]>
Use DocumentViewer instead of Document Properties http://johankanngard.net/2006/03/07/use-documentviewer-instead-of-document-properties/ Tue, 07 Mar 2006 11:29:45 +0000 http://johankanngard.net/2006/03/07/use-documentviewer-instead-of-document-properties/ […]]]> Thomas tipped about the DocumentViewer Notes ”Smart Icon” application, that can be used to inspect the fields of a document. It’s easier to find values you’re looking for, and it allows copying of both multiple values and field names. I have written a similar application for use on the web, but DocumentViewer is great if the database is restricted from web access!
[tags]Lotus Notes, Smart Icon[/tags]

]]>
Lotusphere Comes to You i Sverige http://johankanngard.net/2006/02/24/lotusphere-comes-to-you-i-sverige/ http://johankanngard.net/2006/02/24/lotusphere-comes-to-you-i-sverige/#comments Fri, 24 Feb 2006 11:06:53 +0000 http://johankanngard.net/2006/02/24/lotusphere-comes-to-you-i-sverige/ Den 8 mars kommer Lotusphere till Sverige! Närmare bestämt till IBMOddegatan i Kista. Ed Brill kommer att medverka som talare. Själv har jag redan anmält mig, det kan du också göra!

]]>
http://johankanngard.net/2006/02/24/lotusphere-comes-to-you-i-sverige/feed/ 3
Replacing No documents found http://johankanngard.net/2006/02/15/replacing-no-documents-found/ Wed, 15 Feb 2006 15:02:10 +0000 http://johankanngard.net/2006/02/15/replacing-no-documents-found/ 0&&h2[0]!=\'undefined\') { var oldTextNode=h2[0].firstChild; var newTextNode=document.createTextNode(message); h2[0].replaceChild(newTextNode,oldTextNode); } } Put the function in the HTML Head […]]]> This has been done before. Here is my contribution:

/**
* Replaces \"No Documents Found\" with a custom text.
*
* @author Johan Känngård, http://johankanngard.net
* @param message the text to replace with
*
*/
function replaceNoDocumentsFound(message){
var h2=document.getElementsByTagName(\'h2\');
if(h2!=\'undefined\'&&h2.length>0&&h2[0]!=\'undefined\') {
var oldTextNode=h2[0].firstChild;
var newTextNode=document.createTextNode(message);
h2[0].replaceChild(newTextNode,oldTextNode);
}
}

Put the function in the HTML Head (or in an imported JS-file) and call the function at the bottom at the page like this:



The easiest way to hide the text is via a stylesheet like this:


…but you already knew that, huh?
[tags]JavaScript, DOM, Lotus Domino, CSS[/tags]

]]>
Echo XML from a file, String or InputStream in Java with SAX http://johankanngard.net/2006/02/13/echo-xml-from-a-file-string-or-inputstream-in-java-with-sax/ Mon, 13 Feb 2006 13:51:06 +0000 http://johankanngard.net/2006/02/13/echo-xml-from-a-file-string-or-inputstream-in-java-with-sax/ […]]]> Here is an example how to use the XMLEchoer class, that I have refurbished from Sun’s tutorial Echoing an XML File with the SAX Parser. It is of limited use, but can be a good start learning SAX.

import java.io.PrintWriter;
import lotus.domino.AgentBase;
import net.kanngard.xml.XMLEchoer;

public class JavaAgent extends AgentBase {

public void NotesMain() {

try {
String xml = "Hello World";
PrintWriter writer = getAgentOutput();
writer.println("Content-type: text/xml");
XMLEchoer echoer = new XMLEchoer(writer);
echoer.start(xml);
} catch(Exception e) {
e.printStackTrace();
}
}
}

To get it working, you need a SAX implementation, like Apache Xerces 2. Just drop the JAR files from Xerces 2 into the jvm/lib/ext directory in your Notes or Domino installation. Restart the http task if you are testing with Domino.

[tags]Java, XML, SAX[/tags]

]]>