31 October, 2011

Sametime and Domino LDAP using directory assistance

I recently had a problem with IBM Sametime v8.5.2 and with a Domino LDAP that were using directory assistance.

I was installing Sametime and everything went fine until I installed the Meetings component... After I installed the Meeting component, I tried to login in Meeting and I was getting the following exception:

0000000a ContextManage E SECJ0270E: Failed to get actual credentials. The exception is javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient Access Rights]; remaining name ''

After some debugging, the problem seemed that the bind user didn't have access to one of the databases used on directory assistance. However, the user HAD access and could open the database...

In a desperation try, we just removed, in the directory assistance database that was giving problems, the option "LDAP Clients" from the property "Perform LDAP searches for" and, after restarting the LDAP task on Domino, the users started to be able to login on Sametime Meetings.... Very Strange...



I have to say that the following technote was very useful to understand and debug the problem: http://www-01.ibm.com/support/docview.wss?uid=swg21318176

IBM Sametime 8.5.2 - Media Server installation

Hello everyone,

I recently had a problem installing the Media Manager (or Media Server, I think that IBM si still confused about how to call it) component of IBM Sametime 8.5.2 on a Windows 2008 R2 server.

In the middle of the installation an error popped up whit the message: "Not enough storage is available to process this command".

My first idea was that I had not enough disk space - but I had like 5 GB available, which I thought it was more than enough.
Then, a small search on Google told me that this message is a Windows message generally related with Virtual Memory problems.
I checked that the server was configured to manage automatically the virtual memory, so my idea was that due to the only 5GB available on disk, Windows didn't get the enough virtual memory space to install Media Server... So, I just made more space on the disk (until I had 20GB available) and restarted the Windows server.

After that I just deleted the profile folder that the failed installation created and I was then able to successfully install Sametime Media Server!!!

Regards

11 July, 2011

Linux: Login with non-root user using ssh

Hi!
The other day, I was working with a Linux server in which I was unable to login, using ssh, as any non-root user.
I'm not sure that this is the more correct way to do it but, for temporary workaround, I have edited the /etc/ssh/sshd_config file and changed the following property:

    usePAM no

And after restarting the ssh service, using the command service sshd restart, I was able to login in the server as a non-root user.
If anyone have another solution for this problem, please share it!!!

Thanks.

Regards,

Installing Firefox 5 in a Red Hat machine

Hello!
While installing some IBM software, the installer launchpad failed because it required Firefox 3.5 or later. So, to solve the problem, I had to install a newer Firefox version on the server.

Here are the steps to install Firefox 5 in Linux, which I've found in the following link (http://linuxforums.org.uk/netbooks/install-firefox-5-on-an-acer-aspire-one-running-linpus-lite-linux/):

  • sudo mv -v /opt/firefox /opt/firefox-backup
  • wget -O firefox-5.0.tar.bz2 "http://download.mozilla.org/?product=firefox-5.0&os=linux&lang=en-GB"
  • sudo tar -jxvf firefox-5.0.tar.bz2 --directory /opt
  • sudo mkdir /opt/firefox/plugins
  • sudo ln -fs /opt/firefox/firefox /usr/bin/firefox
  • sudo ln -s /usr/lib/mozilla/plugins/* /opt/firefox/plugins
  • wget http://dl.dropbox.com/u/11876059/libstdc++6.tar.bz2
  • sudo tar -jxvf libstdc++6.tar.bz2 --directory /opt/firefox
  • firefox -profilemanager -no-remote

Perfect!!! Now firefox 5 is already installed and the installer launchpad already runs as expected.

Regards,

Linux: Permit root login using ssh

If you are not able to login as root using ssh in your Linux machine, you may need to enable this option in ssh configuration.
To do so, follow the steps described below:

  - Edit file /etc/ssh/sshd_config
  - Change PermitRootLogin property to yes
  - Restart ssh service by entering the followign command:
          service sshd restart

That's it!

Regards,

01 July, 2011

How to suppress SIP registration failures in the Sametime 8.5x client

I knew that this were somewhere, but I could not found it.... Next time, I'll know where to find it :-)

https://www-304.ibm.com/support/docview.wss?uid=swg21456002


Problem

When the Sametime client fails to connect to the Media Server there is a pop-up such as the following: "Unable to initialize Computer, and it can't be used at this time.
com.ibm.collaboration.realtime.telephony.softphone.SIPPhoneException:
Processed unsuccessful response: SIP/2.0 401 Unauthorized"


Can this be suppressed?


Resolving the problem

You can add this line in the Sametime plugin_customization.ini file to suppress this pop-up.


com.ibm.collaboration.realtime.telephony.softphone/suppress.failed.sip.registration=true

13 June, 2011

Building a Shared Media to use with RAFW


These are the steps that need to be done to create a shared media to use with Rational Automation Framework for WebSphere (RAFW).

I'll create the shared media in a Red Hat 5 Server using NFS.
To create this, you'll need to run the following commands:

1. Check nfs-utils is installed or not using
yum list nfs-utils
2. Edit /etc/exports , add dir you want share with network information and permission
(In this example, I'll add the sharedmedia folder and allow read and write access to all the machines with IP addresses between 172.16.0.0 and 172.16.255.255
vi /etc/exports
/sharedmedia 172.16.0.0/255.255.0.0(rw)
3. Restart nfs service
service nfs restart


Then, on the framework server and on target systems, execute the following command:
mount 172.16.92.130:/sharedmedia /sharedmedia

Cheers!

How to extract tar.gz file in Linux

How to open or Untar a "tar.gz" file in Linux or Unix:

Type the following command to extract the file to the current directory:

tar -zxvf yourfile.tar.gz

You can specify a different directory to extract to using -C parameter and a path to the directory as follows:

tar -C /myfolder -zxvf yourfile.tar.gz


Rational Buildforge - Database extension 'ibm_db2' not found error


After successfully started Rational Buildforge, I tried to access to the administration interface, using the URL http://rafw.demo.com, and I got the following error string, instead of the usual login interface:

"Database extension 'ibm_db2' not found."

To solve this, you just need to add the DB2 library folder to the environment variable LD_LIBRARY_PATH and restart the buildforge server. I did that using the following command:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/buildforge/server/apache/lib:/opt/ibm/db2/V9.7/lib32

To include this on Operating System boot, just add the command above in /etc/rc.local file.

Cheers!

09 June, 2011

Installing Rational Automation Framework for WebSphere and Rational Build Forge checklist

This checklist with the installation sequence for Rational Automation Framework for WebSphere (RAFW) and Rational Build Forge was copied from the following link:

https://www-304.ibm.com/support/docview.wss?uid=swg21386782&wv=1


  1. Update IBM Installation Manager:

    Open Installation Manager and select the Update option.

    Note: If you update Installation Manager as a part of installing Rational Build Forge, the RAFW_ENABLED variable is ignored.
  2. Obtain the Rational Build Forge 7.1.1 product installation images:

    At the root directory of the installation media or the downloaded images, locate thereadme.txt file.

    You must follow the instructions in the readme.txt file to create a complete product image:
    1. Download the images to a temp directory.
    2. Locate the ZIP files for your edition of Rational Build Forge.
    3. Download first and second ZIP files to a temp directory.
    4. Unzip the contents of the first ZIP file and second ZIP files to the temp directory.
  3. From the temp directory, open a shell or command prompt. Set theRAFW_ENABLED=yes environment variable for your operating system, for example:

    Windows example:
    ------------------
    C:\temp> set RAFW_ENABLED=yes

    UNIX/Linux example:
    ---------------------
    $ /tmp export RAFW_ENABLED=yes
  4. At the same shell or command prompt, start the launchpad program and Installation Manager, for example:

    Windows example:
    ------------------
    C:\temp>launchpad.exe

    UNIX/Linux example:
    ---------------------
    $ /tmp launcher
  5. When the launchpad program opens, select Rational Build Forge Management Console Installation option to start Installation Manager and install the Rational Build Forge components.
  6. After Rational Build Forge installation completes, in the Rational Automation Framework for WebSphere Information Center, complete the setup detailed in the the Post-installation setup section. 

How to change hostname on a DB2 Server

Hello!

Several times, when I'm building a new demo VMWare server, I realize that I've forgot to specify the VMWare hostname after already installed DB2... In those occasions, the following link, that explains how to change hostname on a DB2 Server is very useful:

https://www-304.ibm.com/support/docview.wss?uid=swg21258834&wv=1

Basically, in my case, since I usually don't have any databases or configurations yet, the following steps are enough:

1) Login as the dasadm user and stop the DB2 Administration Server (DAS):

                 db2admin stop

2) Login as the instance owner and Stop the DB2 instance:

                 db2stop

3) Change the server's hostname.

4) Update the DB2SYSTEM registry variable:db2set -g DB2SYSTEM=<new hostname>

5) In the db2nodes.cfg file (which is in the sqllib db2 folder) change <current hostname> to <new hostname>.

Cheers!

01 June, 2011

Sorting Search Results on Lotus Notes

Hello!
More than one person already told me that in Lotus Notes 8.5 is not possible to sort search results in the inbox.
That's not true, that's only a problem of configuration.
To be able to sort search results, you just need to select the "keep current order" option in the "Sort results by" parameter:


Regards.

Software fails to install due to SELinux

I don't know why but you can find a lot of software that fails to install with SELinux (Security Enhanced Linux) turn it on.

How can we turn it off?

Temporarily:
Just enter the following command as root user:

setenforce 0

Permanently:
Edit, as root, the file:

/etc/selinux/config

You can set the SELINUX line to one of :

SELINUX=enforcing
SELINUX=permissive
SELINUX=disabled


Permissive could be the best choice, but if you want if off completely and set it to disabled, you will also have to update the grub.conf file or the machine will not boot!

Add enforcing=0 as follows to the boot line:

kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet enforcing=0

Regards.

Start Tivoli Directory Server at operating system startup in a Linux environment

To start a TDS server at operating system startup in a Linux environment, just follow this documentation:

http://publib.boulder.ibm.com/infocenter/tivihelp/v2r1/index.jsp?topic=/com.ibm.IBMDS.doc/install177.htm

Regards.

Start DB2 at operating system startup in a Red Hat enviroment

To start a DB2 server at boot in a Red Hat environment, just add the following command to the file /etc/rc.local:

su db2inst1 -lc /home/db2inst1/sqllib/adm/db2start

Regards.

Error while launching IBM HTTP Server

I've been working with WebSphere Application Server in a Red Hat Virtual Machine, and the other day, after restarting the virtual machine, I was not able to launch IBM HTTP Server from the WebSphere Integrated Console.
I tried to start IBM HTTP Server from the command line using the following command:

[root@xxx ~]# /opt/IBM/HTTPServer/bin/httpd -f /opt/IBM/HTTPServer/conf/httpd.conf

And I've got the following error:

./opt/IBM/HTTPServer/bin/httpd: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory

After checked that the file libaprutil-1.so.0 existed in the /opt/IBM/HTTPServer/lib, I understood that the problem should be that the HTTP Server does not know where to look for the libraries, or, in other words, the LD_LIBRARY_PATH was empty or does not included that directory.
And yeah, actually the variable LD_LIBRARY_PATH was empty, so, I used the command:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/IBM/HTTPServer/lib

and after that the HTTP Server already started as expected!

Now to include this on Operating System boot, just add the command above in /etc/rc.local file.

Regards.

Lotus Connections - How to load existing photos from a LDAP Server

An old but great, and still actual, post from Luis Benitez about how to load existing photos from a LDAP Server into Lotus Connections:
http://www.lbenitez.com/2008/10/how-to-load-existing-photos-into-lotus.html

Luis also included a video that shows how to do it: http://blog.lbenitez.com/LoadPhotosLDAPTDI.swf
Additionally, I would like to summarize the steps that you need to follow:

1. Open the TDI Config Editor
2. File -> Open... profiles-config.xml
3. Go into Assembly Lines
4. Copy the load_photos_from_files assembly line (right-click -> copy)
5. Right-click -> Paste (a copy of the assembly line is created)
6. Rename the new assembly line (1_load_photos_from_files) to load_photos_from_ldap
7. Right-click Feeds and click on Add Connector component...
8. Select the new connector and go to the Config... tab
9. Specify the LDAP URL, username, password, search base, search filter
10. Click on Input Map tab
11. Connect to the data source and then discover the schema
12. Under work attributes add three attributes: $dn (mapped to $dn), uid (mapped to uid) and jpegPhoto (mapped to jpegphoto;binary)
13. Delete the read_entries feed
14. Under Flow, delete get_image
15. Under Flow -> write_entry , make sure PROF_IMAGE is mapped to jpegPhoto (the work attribute you added in step 12).
16. Save the AL
17. Go to the command line
18. Make a copy of load_photos_from_files.bat and save it as load_photos_from_ldap.bat
19. Open load_photos_from_ldap.bat with your favorite text editor
20. Change load_photos_from_files to load_photos_from_ldap
21. Save the batch file
22. Run load_photos_from_ldap
23. Voila!!


Regards.

A truly Hello World!

Welcome!!
This is truly a hello world post... Because it's my first post on my first blog.

This blog will be used to post all the stuff that I think that I may want to remember in the future. This may include technical stuff that I'm always forgetting, as well as, registering the good stuff that happens in my life... But just the good stuff, seriously!

I'll try to do, at least, a post a day... an ambitious goal, I know.

I hope that I enjoy this blog and that you too!
See you soon!!