Archive forTechnology

Technology for the masses (Contd) …

One more instance that I ran into. We had gone out for dinner to Sree Nandhini Palace, which is located in New BEL Road opposite to Beijing Bites, with one of my colleagues. Though I have visited this place many number of times, this was the first time I have noticed them using technology.

WiFi was installed in the whole area. Waiters were carrying iPhones instead of the regular pen and paper to take the orders. They have built in an customize application to run on them to take the orders as well as print them to a network printer near the counter.

Electronic gadgets being part of the common man shows the progress that India has made and about the economic reforms that it have undergone.

Waiter with the iPhone ready to take order

iPhone on the banane leaf

Technology for the masses …

Comments off

Migrating SYBYL

SYBYL is a proprietary product from Tripos. It provides a whole bunch of intuitive molecular modeling for life scientists who are interested in drug and design. You need to buy a copy from them and get the license manager file made or get the license manager file from another user.

Requirements: Migrate an existing instance of SYBYL from one machine to another, using the same license file.

The initial installation of SYBYL was being carried out, by the vendor itself (since it was in support) on RHEL 4, wherein they have done all the installation including support, creating the license etc. But since the machine in which it was installed is no longer functional, we had to urgently shift it to a new machine.

The migration process is as stated below:

1. Got a new machine and installed CentOS 5.6.
2. Created a new user `tripos`, since SYBYL uses are normal user for the installation.
3. Copy the license manager file from the old machine to the new one.
4. Open the license file and check for the name of the machine as well as the mac address. The line would look like this,

SERVER sybyl.example.com 000f2c3de043

From the above line you can see figure out that the old sever name was `sybyl.example.com` and the mac address is `00:0f:2c:3d:e0:43`
5. Change the hostname of your new computer using the `hostname` command. You need to be root user while using this command,

hostname sybyl.example.com

6. Change the hardware Ethernet address of your new machine to that of your old one. You need to be the root user while using the following,

ifconfig eth0 hw ether 00:0f:2c:3d:e0:43 up

7. Copied all the 4 CD’s to the installation directory
8. Go inside CD1 and do the following,

sh install.sh

9. A GUI will pop up which will show your way to the next steps.
10. Path of the old license file.
11. In case you plan to have the other databases installed go on else click on exit after your basic installation.
12. Read the `ToDoList.txt` inside the `sybyl7.2` directory
13. Start the SYBYL license manager using the following commands,

cd trigo
- Enter: trigo -shell sybyl7.2
- Enter: su (enter root password when prompted)
cd $TA_LICENSE/bin/unix
cp ./triposlm.sh /etc/init.d/triposlm.sh
/etc/init.d/triposlm.sh -up
exit
exit

14. Once the license manager is started you can use the sybyl software. The binaries will be kept in sybyl7.2/bin/linux

Note: There might be errors, which might crop up while running sybyl. I have listed some of them,

Error 1: sybyl7.2/bin/linux/autoterm.exe: error while loading shared libraries: libXm.so.3: cannot open shared object file
Error 2: sybyl7.2/bin/linux/autoterm.exe: error while loading shared libraries: libGL.so.1: cannot open shared object file
Error 3: sybyl7.2/bin/linux/autoterm.exe: error while loading shared libraries: libGLU.so.1: cannot open shared object file
Error 4: sybyl7.2/bin/linux/autoterm.exe: error while loading shared libraries: libGLU.so.1: wrong ELF class: ELFCLASS64

As part of the solution 1,2 and 3 you need to install the following,

yum install openmotiff22 mesa-libGLU-6.5.1-7.8.el5.i386

Error 4 came up, since I was installing a 32 bit application on a 64 bit machine.

In case you have any more dependencies, you can use the following command,

yum whatprovides library-name

After all the installation is done, you are done good to run sybyl.

Comments

Installing VMware Server 2.0.2 on Debian Squeeze

Tested both the 32 bit version as well as the 64 bit version of the VMware server 2.0.2. It seems none of them works out of the box in Debian. One need to apply patches but there are instances wherein even after applying the patches, the server fails to start up. Even the VMware Server forums were clueless about it. There are a lot of if’s and but’s to the solution.

Before starting the installation, you need to install the following packages:
apt-get install build-essential psmisc linux-headers-`uname -r`

Installing the 32 bit version.

1. Download the 32 bit VMware server .tgz file from VMware.com
2. Extract the .tgz file.
3. Download the patch vmware-sever-2-0-2-32bit.tgz. Change the DIR in patch-vmware_2.6.3x.sh accordingly to your location of the VMware Server .tgz file.
4. ./patch-vmware_2.6.3x.sh / /vmware-server-distrib/lib/modules/source
5. cd / /vmware-server-distrib
6. ./vmware-install.pl

Installing the 64 bit version.

1. Download the 64 bit VMware server .tgz file from VMware.com
2. Extract the .tgz file.
3. Download the patch vmware-sever-2-0-2-64bit.tgz. Change the DIR in patch-vmware_2.6.3x.sh and the path in install-vmware-2.0.2.sh accordingly.
4. Patch is applied and the script will start the installation.

There might still be issues with SSL error being shown up. You can try doing the following,

1. mv /usr/lib/vmware/lib/libssl.so.0.9.8 /usr/lib/vmware/lib/libssl.so.0.9.8-unused
2. /etc/init.d/vmware restart

Firefox version 3.6 will not show up the management interface. It will show up a blank screen. You need to have version lower then this.

References:

1. VMware Server on 32 bit Debian Squeeze
2. VMware Server on 64 bit Debian Squeeze

Note: Refer to the links mentioned above for more information.

Comments (1)

Open Source Control Panels

In case you are planning to host a server with all the open source software, the below mentioned links might be handy. Normally when you buy a server space/web space you are handed over a interface through which you maintain the various activities of the server, like creating databases, installing applications etc. The panel provided normally is cPanel. cPanel is not free but a proprietary product of cPanel Inc.

So, is there any open source software equivalent of cPanel. Yes, there is.

I myself have tried OpenPanel, which provides me a similar set of features as cPanel. You could very well try the others and install the one which meets your requirements.

http://ehcp.net/
http://www.openpanel.com/
http://www.vhcs.net/
http://www.webresourcesdepot.com/10-free-web-hosting-control-panels-to-manage-servers-easier/

Shell based access for your servers hosted outside – SurgeAPS.com

Happy reselling :-)

Comments

Linux in BigBazaar Cash Counter

I have had visited BigBazaar a lot of times, but this time it was very special. I was offered an e-passbook during my last visit to the place for the purchases that I made (a definite amount of money). When this time I offered the card to the scanned before my billing the machines failed. It actually hanged. It was scanned in all the 3 cash billing counter and but none of them responded.

One of the counter guys restarted the system, and viola what I see, I can’t believe. It was giving an error and waiting for the root password to be typed in. “Press Ctrl D for maintenance”. I was very much astonished to see the retail shop shifting towards open source.

I did a bit of a search after coming back home, and I found out that it uses TPLinux on it’s POS and the solution has been brought from Wincor Nixdorf, a German based company. Future Group has claimed to have implemented around 6000 such units across its shops.

http://www.wincor-nixdorf.com/internet/site_ASP/ASP/WincorNixdorf/Press_ASP

Comments (1)

Latex(.txt) to OpenDocument (.odt/.html) conversion

Basic requirement: Convert Latex docmuent to OpenDocument (.html/.odt) etc.

I have tried this in Ubuntu 10.04. I presume would work with all versions of GNU/Linux.

sudo apt-get install texlive tetex-extras tex4ht dvipng tex4ht
sudo texhash

The above will install the base software for Latex to work.

htlatex review_iisc_pkmadhu.tex “xhtml,ooffice” “ooffice/! -cmozhtf” “-coo -cvalidate”

Generate the OpenOffice file.

dvipng example.dvi
dvipos example.dvi

Convert to Portable Network Graphics and Postscript file.

References:
http://www.commandlinefu.com/commands/view/3985/convert-a-latex-source-file-.tex-into-opendocument-.odt-format
http://ubuntuforums.org/archive/index.php/t-1033441.html

Comments

C class definition of a software professional

This is from one of my friends Anil Naik.

class Indian_Bachelor_female_professional
{
double styles;
short skirts;
long time_to_understand_problems;
float mind;
char non_co_operative;
};

class Married_female_Software _Professional
{
double weight;
short tempered;
long gossips;
float hopes;
char unstable;
};

class Female_Engaged_software _professional
{
double time_on_phone;
short attention_on_work;
long boast;
float on_cloud_nine;
char edgy;
};

class Indian_Newly_Married_software _professional
{
double dinner_invitations;
short time_at_work;
long lunch_breaks;
float talks;
void bank_balance();
char hen_pecked;
};

class Indian_husband_wife_software _professional
{
double income;
short temper;
long time_no_see;
float new_software_company;
void love();
};

Class Guy_who_wrote_this
{
Long time_on_bench;
Void work();
};

Comments (2)

Locked out of Plone/Zope instance

There are various methods of getting away with this problem. Though I am not fully versed with the rest, I can give you a small solution which works for admin user and also adding a manager user to the plone database.

Go to your buildout directory and run the following command:

Syntax:

bin/instance adduser

This will start Zope and Add a Manager user with the username and the password. You can now start your instance and log in with the user you just created. Note that if you try to create a user that already exists, it will fail silently, without giving any warning.

In case you are using the Unified Installer, you can use the following command,

Syntax:

bin/zopectl adduser

Before executing the command please make sure that you have your Zope started and working fine. Restart Zope after this and you should be able to login.

For older version of Zope, you need to create an emergency user which will help you in getting in the system, using the zpasswd.py script.

python [your zope]/bin/zpasswd.py access

While running the command it will ask for the username and the password along with the encryption that you need to do.

In case you are not able to locate the file, the easiest way would be to create the access file by using any editor with the following syntax,

username:password

Just restart Zope and you should be able to login again with the created username and password.

Please delete the file after you are down with the changing the password.

Comments

Slow NFS mount and Firefox

Well, I came across this problem just some days ago, when one of the servers had rebooted n number of times after someone had put the UPS on by pass mode. Firefox opens up but the stop, refresh buttons are all disabled. When Googling around, it was mentioned that it was a bug in Firefox 3.0.x with .sqlite files being broken. I tried deleting the profiles but still not working.

Moreover the same server had the slow mounting of NFS issue. Users would just wait for at least a minute after issuing the `ls` command and when login to GUI mode, it would just be in some state of hangover mode. I tried re-installing NFS kernel server along with updating the kernel, but still no help.

When doing a search somewhere it was mentioned that host needs to be identified. Since I was using IP’s, I thought it would not be a problem, but later on I found out that you need to make entries so that `idmapd` is able to locate it, some sort of a reverse DNS lookup. While restarting nfs-common you see two services being start, idmapd and statd. `idmapd` is the NFSv4 name mapping daemon. It provides functionality to the NFSv4 kernel client and server, to which it communicates via upcalls, by translating user and group IDs to names, and vice versa, while statd creates a file in /var/lib/nfs/statd/sm. When starting, it iterates through these files and notifies the peer rpc.statd on those machines. In case it does not find, it just takes it’s own time to mount it.

The same solved both the problems and user’s are also using it without any complaint.

Comments

India’s Small (Big) Mantri Square

The Mantri Square located in Bangalore, was inaugurated on 16th March, 2010 by BS Yeddyurappa, Chief Minister of Karnataka. It is informed to be the biggest mall in India covering an area of about 9,19,516 sq. ft. with a parking space of 2,080 sq. ft. A mind boggling 200-230 outlets in retail space will be merchandising and selling their wares in this mall. They have an additional 36 options in Food court with 6 Inox screens with SCARE house too. You can find outlets of Spar, Reliance, Pantaloon, Lifestyle, Shopper’s Stop, Acer, HP etc. all under one roof. A complete shopping solution.

The best part of the mall is the parking area which is free (as of now) with double decker parking for cars. Auto parking is also on their cards. When inquired about the double decker parking (which seems to be first in Bangalore) to one of the service person, he informed about it’s functionality. One slot is always free so that cars from top can be pulled down. A full bay has 5 slots in the bottom while 4 slots in the top wherein the top open 5th slot is used to navigate the other cars parked up, to be lowered down. It was amazing to see the technology that is being used.

Mantri_Square_Parking

Mantri_Square_Manual

Comments

« Previous entries