Categories
connections technical

mod_deflate compressing your Connections pages before they hit the client

The Apache v2 module mod_deflate is extremely handy if you are serving IBM Connections up to remote locations with little bandwidth. Some of the Connections pages have large css or java script files that are required to function correctly but for countries that have poor connection to the remote server this causes slow page load times and sometimes timeouts.

So mod_deflate to the rescue ..

open your httpd.conf file and ensure that the mod_deflate is uncommented

LoadModule deflate_module modules/mod_deflate.so

just before section 3 for virtual hosts – add the following

## set deflate
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
# Netscape 4.x has some problems…
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won’t work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don’t compress already-compressed files
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .(?:avi|mov|mp3|mp4|rm|flv|swf|mp?g)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .pdf$ no-gzip dont-vary
DeflateCompressionLevel 9
</IfModule>
### Section 3: Virtual Hosts

Note – I have the DeflateCompressionLevel set to 9 – this is the highest amount of compression. Depending on the load and size of your HTTP server this may use a lots of CPU time to deflate, this may need to be monitored and tuned for your specific server

Inside the virtual host for the secure Connections server add the same deflate directive (see example below)

<VirtualHost *:443>
ServerName yourservername.com
SSLEnable
Include “/opt/IBM/HTTPServer/conf/rewrite.conf”
Header set Access-Control-Allow-Origin “*”
## set deflate
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
# Netscape 4.x has some problems…
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won’t work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don’t compress already-compressed files
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .(?:avi|mov|mp3|mp4|rm|flv|swf|mp?g)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .pdf$ no-gzip dont-vary
DeflateCompressionLevel 9
</IfModule>
</VirtualHost>

 

restart the HTTP server and the deflate module will be active

You can test the compression by visiting  http://www.whatsmyip.org/http_compression/ and enter a url of a Connections page

For instance I put the profiles page of a customer’s server here that mod_deflate is enabled and the compression was a massive 67.4%

Original Size: 7.27 KB
Compressed Size: 2.37 KB
Data Savings: 67.4%

So all in all if you have sites that are in bandwidth starved places – mod_deflate is worth taking a look at.

Categories
technical

Screen for linux how did I not know about this

thanks to my friend Gabriella Davis for the heads up on this awesome linux tool

I was having issues with the Sametime TURN server timing out due to my linux session dying or timing out and Gab suggested to look up the screen command.

It is a simple yet affective tool which is implemented usually by default on a linux server that allows you to reconnect to a screen initiated session

you simply enter the command screen from your linux servers command line – the remote session may look like nothing has happened but you are now connected via screen.

carry on as you would normally – if you are disconnected or timed out – log back on the remote linux machine and enter the command screen -ls

[root@myserver bin]# screen -ls
There is a screen on:
        25755.pts-0.myserver       (Detached)
1 Socket in /var/run/screen/S-root.

 

to reconnect the session enter the command

screen -r session info

for example

screen -r 25755.pts-0.myserver

and you are reconnected

if you want to exit the screen session type exit and you will see [screen is terminating]

Excellent little tool .. thanks again Gabriella for the heads up on this 🙂

 

 

Categories
community connections technical

ConnCtrl bash script for IBM Connections

My good friend Mr Tim Clark asked me this morning if there was a script available for starting and stopping IBM Connections on Red Hat (RHEL) – I know lots of people do have them, but wasn’t aware of one that was available to the community.

So we wrote one ..

The script has a bunch of variables to allow you to input the path to the WebSphere deployment manager and nodes, and a place to enter the names of your Connections servers.

Please visit Tim’s blog for all the information and to download the script.

Categories
connections technical

Customise the Branding of the IBM Connections Desktop Plug-in

There is a great new post from Luis Benitez on how to customise the desk top plugin for IBM Connections.

It’s possible to brand IBM Connections to your own look and feel and we are often asked if it’s possible to change plugin and now it is.

There is some documentation to be found here – we’ll be giving it a try

Categories
technical

Issues with the IBM Install manager GUI on RHEL 6.x ?

If you are attempting to install Connections 4.5 on RHEL 6.3 or above you will have noticed that there is an issue with using the GUI for the IBM Installation Manager with Red Hat Enterprise Linux.

The IM won’t fire up a GUI even though xterm works for other GUI’s on the machine, no errors, no splash screen, no nothing !!

It has been driving both Stuart and I bonkers .. after a lot of digging here is what you need to get it to work :

yum install gtk2.i686 gtk2-engines.i686 PackageKit-gtk-module.i686 PackageKit-gtk-module.x86_64 libcanberra-gtk2.x86_64 libcanberra-gtk2.i686

I ran this and hey presto a splash screen …

So to save your pain .. install the gtk2 packages above 🙂

Also in other news the new installation manager seems to now be fixed so you don’t get the issue with the launch pad complaining there is no Firefox – you may have noticed that there was an issue using older versions of the launch pad with Firefox 10+

Happy installing