Archive for April, 2012

Testing Blogilo


Using Ubuntu 12.04 I have installe Blogilo and hopefully it will work well with both images and syntax highlightning.

Here is an image:

Here is some code:
if not then bla bla
end if

[Update] Image worked  well but no special support for syntax hightlightning or anything lite that.


Speed up Lotus Notes 8.5.X on Mac Os X


And here is the same Java optimization flag for Mac Os X in a script. I have no idea how to push out a setting like this on a company that has Mac and Lotus Notes.

This script has not been tested by me!  Thanks to Skellefteå for providing this script.

grep -iq “vmarg.xmx” $FILE
if [ $? -eq 0 ]; then
sed -i “” “s/vmarg.Xmx=-Xmx256m/vmarg.Xmx=-Xmx768m/g” $FILE
echo “vmarg.Xmx=-Xmx768m” >> $FILE

Speed up Lotus Notes on Windows


Here is VBScript code for setting the Java optimization flag for Lotus Notes on Windows, that you can use to speed up Lotus Notes in your company using Group Policies. It should work on Windows 7 and on Windows XP, both 32 and 64 bit.

Please give feedback if you have anything to add here. I would like to do a better script. When I tested this it worked as intended. I thing it breaks the file by changing the line break to Windows type (originally unix style). But Notes does not seem to mind this.

Thanks to Hogis for the original code and sorry that comments are in Swedish.



‘Speed up notes 2012-04-23

‘0 Initiera variabler
Set objFSO = CreateObject(“Scripting.FileSystemObject”) ‘Laddar FSO (File System Object) för att hantera kataloger och filer lokalt.
Set oShell = CreateObject(“WScript.Shell”) ‘Laddar oShell för att bla kunna ta ut systemvariabler, “set-parametrar”.
Set objWMIService = GetObject(“winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2”) ‘Connectar WMI lokalt (Windows Management Instrumentation), för att hantera processer.
Set WshShell = WScript.CreateObject(“WScript.Shell”) ‘Laddar WshShell för att kunna starta en cmd-process.
Dim strProgramPath32
Dim strProgramPath64
strProgramPath32 = oShell.ExpandEnvironmentStrings(“%PROGRAMFILES%”) ‘Tar ut sökvägen till programkatalogen.
strProgramPath64 = oShell.ExpandEnvironmentStrings(“%PROGRAMFILES(x86)%”)
Const ForReading = 1
Const ForWriting = 2

On Error Resume Next ‘ Avbryt inte för errors

Const HKEY_CLASSES_ROOT         = &H80000000
Const HKEY_CURRENT_USER         = &H80000001
Const HKEY_LOCAL_MACHINE        = &H80000002
Const HKEY_USERS                = &H80000003
Const HKEY_CURRENT_CONFIG         = &H80000005
Set oRegistry=GetObject(“winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv”)

MemoryOptimizeNotes ‘Run this

Sub MemoryOptimizeNotes
Dim strJvmProp32
Dim strJvmProp64
Dim objFile
strJvmProp32 = strProgramPath32 & “\IBM\Lotus\Notes\framework\rcp\deploy\”
strJvmProp64 = strProgramPath64 & “\IBM\Lotus\Notes\framework\rcp\deploy\”

If objFSO.FolderExists(strJvmProp64) = True Then

Set objFSO = CreateObject(“Scripting.FileSystemObject”)
Set objFile = objFSO.OpenTextFile(strJvmProp64 & “”, ForReading)

strText = objFile.ReadAll
strNewText = Replace(strText, “vmarg.Xmx=-Xmx256m”, “vmarg.Xmx=-Xmx768m”)

Set objFile = objFSO.OpenTextFile(strJvmProp64 & “”, ForWriting)
objFile.WriteLine strNewText

ElseIf objFSO.FolderExists(strJvmProp32) = True Then

Set objFSO = CreateObject(“Scripting.FileSystemObject”)
Set objFile = objFSO.OpenTextFile(strJvmProp32 & “”, ForReading)

strText = objFile.ReadAll
strNewText = Replace(strText, “vmarg.Xmx=-Xmx256m”, “vmarg.Xmx=-Xmx768m”)

Set objFile = objFSO.OpenTextFile(strJvmProp32 & “”, ForWriting)
objFile.WriteLine strNewText

End If

End Sub

Quick ‘n Dirty install guide: Lotus Notes 8.5.X on Ubuntu 12.04 32bit


This is for 32bit version of Lotus Notes. I do not know how to install on 64bit Ubuntu yet. Please provide me with instructions if you can.

On Lotus Notes beta forum IBM have hinted that 8.5.4 will support Ubuntu 64. Hopefully this will be the case!

sudo apt-get install libgnomeprint2.2-0 libgnomeprintui2.2-0 ttf-xfree86-nonfree libgnomevfs2-0 libgnome2-0 libgnomeui-0

(unpack deb-file, modify CONTROL file removing any dependencies, pack deb-file – instructions below)

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


Modify CONTROL file in deb file:

In Nautilus, right click on ibm-lotus-notes-8.5.3.i586.deb and select extract here. When extracting finished then Rename file ibm-lotus-notes-8.5.3.i586.deb to somehting else.

Enter folder LN853install/ibm-lotus-notes-8.5.3.i586/DEBIAN and open file CONTROL in text editor.

Make sure following lines are empty

So nothing after colon!  Now save the file.

Convert them to debs again!
sudo dpkg-deb -b ibm-lotus-notes-8.5.3.i586
dpkg-deb: building package `ibm-lotus-notes:i386′ in `ibm-lotus-notes-8.5.3.i586.deb’.

Speed up Lotus Notes 8.5.X with a oneliner


Works only on linux of cource! :-)
cat /opt/ibm/lotus/notes/framework/rcp/deploy/ | grep Xmx
> vmarg.Xmx=-Xmx256m

In the onliner below wordpress will thrash my single quotes and replace them with something useless. On my keyboard these single quotes are located directly to the left of the Enter key.

sudo sed -i ‘s/vmarg.Xmx=-Xmx256m/vmarg.Xmx=-Xmx768m/g’ /opt/ibm/lotus/notes/framework/rcp/deploy/

cat /opt/ibm/lotus/notes/framework/rcp/deploy/ | grep Xmx