Archive for July, 2011

A little trick to partially install packages from Oneric into Natty

2011/07/14

Do this only if you know what you are doing.

Using Natty Narwhal 11.04 is nice but I want some packages from Oneric Ocelot 11.10 which is not released yet. For example newer Kernel or newer Deluge.

I do this by hacking the file /etc/apt/sources.list

Do this:
1) Take a backup copy of /etc/apt/sources.list by issuing this command:

This is NOT optional!

sudo cp /etc/apt/sources.list /etc/apt/sources.list-natty

2) Create file /etc/apt/sources.list-oneric

sudo nano /etc/apt/sources.list-oneric

3) Then add this

deb http://se.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb-src http://se.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb http://se.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
deb-src http://se.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
deb http://se.archive.ubuntu.com/ubuntu/ oneiric universe
deb-src http://se.archive.ubuntu.com/ubuntu/ oneiric universe
deb http://se.archive.ubuntu.com/ubuntu/ oneiric-updates universe
deb-src http://se.archive.ubuntu.com/ubuntu/ oneiric-updates universe
deb http://se.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb-src http://se.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb http://se.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
deb-src http://se.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb http://security.ubuntu.com/ubuntu oneiric-security universe
deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse
deb http://extras.ubuntu.com/ubuntu oneiric main
deb-src http://extras.ubuntu.com/ubuntu oneiric main
deb http://archive.canonical.com/ubuntu oneric partner
deb http://archive.canonical.com/ubuntu natty partner

4) Then replace original file

sudo cp /etc/apt/sources.list-oneric /etc/apt/sources.list

5) Do a

sudo apt-get update

6) Install packages
example:

sudo apt-get install linux-image-3.0.0-5-generic linux-headers-3.0.0-5-generic deluge

(I have also noticed that latest fglrx that is in Oneric Ocelot also works with this kernel 3 so fglrx fglrx-amdcccle can be upgraded!)

7) When you are done restore original
IMPORTANT! Dont forget this step!

sudo cp /etc/apt/sources.list-natty /etc/apt/sources.list

I wish a happy linux breaking time to the reader!

Install Lotus Notes 8.5.3 in Ubuntu

2011/07/14

A guide to getting Lotus Notes 8.5.3 Code Drop 5 running in Ubuntu 11.04. This probably works identically for 8.5.2, but remember to add fixpack then.

Prereqs:

How to remove dependencies in deb-files is described in this blog post:

Install Lotus Notes 8.5.2 Fixpack 1 in Ubuntu

To get get.libs is described here:

Download link for getlibs

Required files:

ls -la
332002358 2011-06-16 15:39 ibm-lotus-notes-8.5.3.i586.deb
6498 2011-06-20 09:27 getlibs-all.deb

(optional)
111592 2011-06-07 01:30 ibm-lotus-feedreader-8.5.3.i586.deb
53520212 2011-06-16 15:40 ibm-lotus-sametime-8.5.3.i586.deb

Modify notes and sametime deb-files so there is not dependencies.

In this folder do this:

apt-get -y install libgnomeprintui2.2-0 ia32-libs ttf-xfree86-nonfree t1-xfree86-nonfree

dpkg -i getlibs-all.deb

getlibs -p libgnomeprintui2.2-0 libgnomeprint2.2-0 libgnomevfs2-0 libgnomeui-0 libxkbfile1 libstartup-notification0 libsepol1 libselinux1 libgsf-1-114 libgsf-1-dev librsvg2-2 librsvg2-common libavahi-client3 libavahi-common3 libavahi-glib1 libbonoboui2-0 libcroco3 libdbus-1-3 libdbus-glib-1-2 libgnome2-0 libgnomecanvas2-0 libgnome-keyring0 libgnome-menu2 libesd0 gtk2-engines libgnome-desktop-2-17 libmotif3 libmotif4 libgnome-desktop-3-0 libavahi-glib1 gtk2-engines-oxygen gtk2-engines-aurora gtk2-engines-qtcurve gtk2-engines-murrine gtk2-engines-equinox getlibs -p liborbit2 libbonobo2-0  libgconf2-4

getlibs -p alsa-base alsa-utils iproute

(The following is needed because some library is cannot be found otherwise)

sudo ln -s /usr/lib32/i386-linux-gnu/libavahi-glib.so.1 /usr/lib32/

dpkg -i –force-all ibm-lotus-notes-8.5.3.i586.deb
dpkg -i –force-all ibm-lotus-feedreader-8.5.3.i586.deb
dpkg -i –force-all ibm-lotus-sametime-8.5.3.i586.deb

(optional)

dpkg -i –force-all ibm-lotus-cae-8.5.3.i586.deb ibm-lotus-activities-8.5.3.i586.deb ibm-lotus-symphony-8.5.3.i586.deb

(For Ubuntu 11.04+  , this is a fix for missing stuff in the interface. If you are using earlier version you are already finished)
sudo apt-get install g++-multilib libgtk2.0-dev

mkdir -p /tmp/notesfix
cd /tmp/notesfix

wget –no-check-certificate https://github.com/sgh/lotus-notes_gtk2.23.3/raw/d3492c997bc7a92b895fa1369d4743a8e20b56b5/Makefile

wget –no-check-certificate https://github.com/sgh/lotus-notes_gtk2.23.3/raw/d3492c997bc7a92b895fa1369d4743a8e20b56b5/libnotesgtkfix.c

wget –no-check-certificate https://github.com/sgh/lotus-notes_gtk2.23.3/raw/d3492c997bc7a92b895fa1369d4743a8e20b56b5/notes-wrapper

(the following line is if you are using 64-bit version of ubuntu)
sudo sed -i ‘s/gcc -Wall -Wextra `pkg/gcc -Wall -Wextra -m32 `pkg/g’ Makefile
make
chmod +x notes-wrapper
sudo cp notes-wrapper libnotesgtkfix.so /opt/ibm/lotus/notes/
sudo sed -i ‘s/..\/notes %F/..\/notes-wrapper %F/g’ /usr/share/applications/LotusNotes8.5.desktop

If you have any problems there can be several reasons, one of them is that copy and paste from the blog to terminal sometimes destroys characters.

 

Update 2011-09-05

To get it working on latest beta of Oneric, do this:

getlibs -p liborbit2 libbonobo2-0  libgconf2-4

 

Get all Lotus Notes/Designer/Admin 8.5.2 and 8.0.2 working in Wine

2011/07/14

It is possible to run the Administrator in Wine as described in an earlier entry in this blog. Also the classic (non-java) designer can run in the same way. But now I have successfully got the Designer 8.5.2 to run in Wine.  I use Ubuntu 11.04 and Wine version 1.3.24. I probably works with earlies versions of Ubuntu and Wine also.

Part 1
Goal: Getting Administrator 8.5.2 and Designer 8.5.2 running in Wine.

This is how I did it.
I have a VirtualBox with Windows XP. Here I installed Lotus Admin/Desinger 8.5.2 and fixpack. After installation moved the Data-directory out of Program directory. I have my Linux /home-folder mounted as Z: in VirtualBox. And here I create the folder:
z:\lotus\notes\data-wine and put in all the files from the data-directory.

The files in the Notes program-directory I copy to this path. z:\Applications\NotesDesignerAdmin852 (= /home/<linux user name>/Applications/NotesDesignerAdmin852).

Then I update notes.ini located here: z:\Applications\NotesDesignerAdmin852\notes.ini and it should look like this:
[Notes]
KitType=1
Directory=Z:\home\<your linux username here>\notes\data-wine
InstallType=2
InstallMode=1
Create_R8_Databases=1    (this can be omitted or be R85)
FileDlgDirectory=Z:\home\<your linux username here>\notes\data-wine

Create a start up script. That looks like this:
admin.sh with this:
cd ~/Applications/NotesDesignerAdmin852
WINEDLLOVERRIDES=”mfc42=n,msvcp60=n,oleacc=n,oleaccrc=n” wine admin.exe

designer.sh with this
cd ~/Applications/NotesDesignerAdmin852
WINEDLLOVERRIDES=”mfc42=n,msvcp60=n,oleacc=n,oleaccrc=n” wine designer.exe

Remember to make scripts executable with chmod +x admin.sh designer.sh

From your directory C:\Windows\System32 copy the following dll-files to the .wine/drive_c/windows/system32:
mfc42.dll, msvcp60.dll ,oleacc.dll, oleaccrc.dll

Part 2
Also as a bonus I want to use the “classic” designer from 8.0.2. These two can share Data-directory but with the side-effect that when the Designer/Admin  is launched it will update the design of bookmarks.nsf (if the “other” version was running previously). Also there can be other stuff but I have not noticed.
Procedure is straight forward. Put the 8.0.2FP6 program directory in your linux home-folder. For example: Applications/NotesDesignerAdmin802
And create the following start up script:
designer802.sh
cd ~/Applications/NotesDesignerAdmin802
WINEDLLOVERRIDES=”mfc42=n,msvcp60=n,oleacc=n,oleaccrc=n” wine designer.exe

Use the same notes.ini as above. And since the dll-files already are copied then no need to do it again. Oh, and don’t run 8.5.2 and 8.0.2 at the same time, that will be bad.

Some screenshots what can be achieved:

Update:

If you get into trouble launching notes. Some error like unable to open data directory. Then test to copy a workin notes.ini from windows that have everything, then update paths to the new linux standard as shown above.

Update 2:

An alternative to the complicated installation above is to do this

1) Install in Windows

2) Run it and go through the Client Configuration Wizard

3) Move the whole C:\Program Files\IBM\Lotus\Notes – folder to /home-directory/.wine/drive_c/Program Files/IBM/Lotus/Notes

4) Since all paths probably is correct no need to update notes.ini. But double check this.

5) DLL files still is needed as described above

6) Start script would look something like this:

designer.sh with this
cd ~”/.wine/drive_c/Program Files/IBM/Lotus/Notes”
WINEDLLOVERRIDES=”mfc42=n,msvcp60=n,oleacc=n,oleaccrc=n” wine designer.exe

chmod 755 designer.sh