Archive for April, 2012

Testing Blogilo

2012/04/29

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

Here is an image:

Test
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.

Advertisements

Speed up Lotus Notes 8.5.X on Mac Os X

2012/04/24

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.

#!/bin/sh
FILE=”/Applications/Notes.app/Contents/MacOS/rcp/deploy/jvm.properties”
grep -iq “vmarg.xmx” $FILE
if [ $? -eq 0 ]; then
sed -i “” “s/vmarg.Xmx=-Xmx256m/vmarg.Xmx=-Xmx768m/g” $FILE
else
echo “vmarg.Xmx=-Xmx768m” >> $FILE
fi

Speed up Lotus Notes on Windows

2012/04/24

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 jvp.properties 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 & “jvm.properties”, ForReading)

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

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

ElseIf objFSO.FolderExists(strJvmProp32) = True Then

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

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

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

End If

End Sub

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

2012/04/23

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

Pre-Depends:
Depends:
Recommends:
Conflicts:
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

2012/04/23

Works only on linux of cource! :-)
cat /opt/ibm/lotus/notes/framework/rcp/deploy/jvm.properties | 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/jvm.properties

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

>vmarg.Xmx=-Xmx768m