Wednesday, January 02, 2008

Dovecot Aborts the Login

Dovecot IMAP simply says "Aborted login" without any additional info
I was trying to login with thunderbird mailclient.

The error message I was getting in the logfiles was:

Jan 3 18:17:03 bosslinux dovecot: imap-login: Aborted login: rip=192.168.31.54, lip=192.168.31.125, TLS

No other information was avai;able in the logs.

I eventually discovered the problem was that the server was refusing to even speak plaintext UNLESS the process talking to it was local (like Squirrelmail, for example). So the remote clients got immediately disconnected the very moment dovecot realized they weren't asking for an SSL/TLS connection.

I had two solutions available for this. On the client side, I changed to use TLS or SSL. And then tried login, it worked !!

However, its difficult to ask all the clients to do this, so there is another solution fromt he server side, but this is not preferable.

In /etc/dovecot/dovecot.conf:
disable_plaintext_auth=no

And then restart the dovecot
/etc/init.d/dovecot restart (BOSS Linux distro)

it worked !!

Thus my problem solved.

Monday, June 25, 2007

Installing Bugzilla in Debian with Virtual Host

Before starting the install process make sure that you have MySQL installed and running. Also ensure that you have created a root@localhost permissions with a password and permissions to create databases and users. You will need to use the root@localhost login during the install of Bugzilla.

The install process is quite straight forward. Simply select Bugzilla in aptitude or another package manager and let it do all the hard work. There are quite a few questions to answer but they are well explained. If you haven't followed the advice above and made sure the root@localhost account is working on MySQL the install of the Bugzilla database will fail. Unlike some other packages (Bacula springs to mind) the Bugzilla packages lets you have a second shot at installing the database.

Once Bugzilla is installed you will have configuration files in /etc/bugzilla, web site files in /var/www/bugzilla and cgi files in /usr/lib/cgi-bin/bugzilla. This last location was the cause of many problems due to URL rewriting.

The setup I will explain below is for running Bugzilla in it's own sub-domain such as bugzilla.example.com. The setup for running it under an existing domain is slightly different but I suspect most people who are going to be running Bugzilla probably actually want it in its own domain.

In /etc/bugzilla is a directory called sites this directory is used to hold the configuration files for domain level installs of bugzilla. In this directory create a subdirectory called bugzilla.example.com and copy the four configuration files (dbconfig-params, index.html, localconfig, params) in /etc/bugzilla in to it.

Now it is necessary to set up a virtual host in apache to run the site. There are examples in /usr/share/doc/bugzilla/examples but I found them only to be any use as a guide line. The virtual host definition I ended up with was:



ServerAdmin bugzilla@example.com
ServerName bugzilla.example.com
DocumentRoot /var/www/bugzilla/
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
SetEnv X_BUGZILLA_SITE "bugzilla.example.com"
SetEnv X_BUGZILLA_WEBPATH "/"



The script alias is needed to draw the correct scripts into the bugzilla domain we have created. The two rewrite rules then ensure that all links in the Buzilla application always work. The [N] at the end of the first rewrite rule is needed ensure that requests for index.html actually do end up at index.cgi.
Adverts

Tuesday, May 22, 2007

Zope with Apache

After the plone site is ready and working, you need to deploy it into the apache webserver. This can be done by the RewriteRule.

Initially make sure that your Rewrite module and the proxy modules are loaded and enabled.

If you are using Debian System

Enable rewrite, proxy etc, modules

# a2enmod rewrite
# a2enmod proxy
# a2enmod proxy_http
# a2enmod proxy_balancer

These four steps enabled the required modules for us. Now edit the apache2.conf file (httpd.conf) file so that the RewriteRule will write the zope contents to client browser through apache Web server,

Apache2.conf file:

vi /etc/apache2.conf

######### MY CONFIGURATION FOR ZOPE AND APACHE2 STARTS HERE ##############
NameVirtualHost *:80

ServerAdmin sysadmin@bosslinux.in
ServerName mirror.indraveni
ServerAlias www.mirror.indraveni
DocumentRoot /var/www

Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all




ServerAdmin sysadmin@bosslinux.in
ServerName indraveni
ServerAlias indraveni

RewriteEngine On
RewriteRule ^/(.*) http://localhost:8081/VirtualHostBase/http/indraveni:80/cdac/VirtualHostRoot/$1 [L,P]

ErrorLog /var/log/apache2/bosslinux/error.log
CustomLog /var/log/apache2/bosslinux/access.log combined

###################### CONFIGURATION ENDS ##################################


And also I edited my proxy.conf file

# cat /etc/apache2/mods-enabled/proxy.conf


ProxyRequests Off

AddDefaultCharset off
Order deny,allow
Deny from all
Allow from all ---- this line has to be added

ProxyVia On


Now you can access your plone site using your hostname , here indraveni.

Sunday, April 22, 2007

Installation of Ruby and Ruby on Rails in BOSS

Update your sources.list with the boss repository

$ vi /etc/apt/sources.list add the following line

deb http://bosslinux.in/boss tarang main non-free contrib

Save the file and execute

$ apt-get update

Install Rails


1. Install ruby

First, you'll need Ruby.

$ apt-get install irb1.8 libreadline-ruby1.8 libruby libruby1.8 rdoc1.8 ruby ruby1.8 ruby1.8-dev

2. Install gems

Gems is a package manager. It is to Ruby what CPAN is to Perl or PEAR is to PHP. You will use it a lot to install Ruby extensions - or in this case, install Rails with all the necessary dependencies. Go to the RubyGems website on RubyForge and download the latest version:

cd /usr/local/src
wget http://rubyforge.org/frs/download.php/5207/rubygems-x.x.xx.tgz
tar zxf rubygems-x.x.xx.tgz
cd rubygems-x.x.xx
ruby setup.rb

Note that this will install RubyGems to /usr, which is convenient, but theoretically wrong. I personally feel that this is ok, since RubyGems does not exist as a Debian package and it would otherwise require some effort ensuring that the libraries are found. If you insist on installing RubyGems to /usr/local, read the Installing RubyGems under /usr/local guide on the Rails Wiki.
You should now have a gem command. Check with which gem that it is available on your system.

3. Install rails using gems

Now install Rails.

gem install rails --include-dependencies

You should now have a rails command. It is used to create new Rails applications. Check with which rails that it is on your system.

4. Install database bindings for ruby

Your Rails applications are going to require a database. I suggest you to install support for SQLite3 and MySQL, as the former is very useful for testing purposes or creating ad-hoc databases, and the latter is what you are probably going to use in a production environment.
Two steps are required to make the database bindings work: First, the header files have to be installed (these are the packages that end in -dev), then we are installing the Ruby bindings for the particular databases. The header files are required because the Ruby bindings contain C code to which has to be compiled first.

For MySQL:

apt-get install libmysqlclient14-dev
gem install mysql

For SQLite3:

apt-get install sqlite3 libsqlite3-dev
gem install sqlite3-ruby

For the installation, you will be presented with a list of versions. Pick the highest version for (ruby). In this case, this would be choice number 2. Don't worry about installing the wrong version - gem can install multiple versions in parallel.
Select which gem to install for your platform (i386-linux)

1. mysql 2.7.1 (mswin32)
2. mysql 2.7 (ruby)
3. mysql 2.6 (ruby)
4. mysql 2.5.1 (ruby)
5. Cancel installation

Troubleshooting

Obviously, things can go wrong.

"extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)"

This probably means that you forgot to install the ruby1.8-dev package. Just do an apt-get install ruby1.8-dev to fix this.

"Could not create Makefile due to some reason [..] Check the mkmf.log file for more details. [..]"

You should do what the error message tells you: check the mkmf.log! Search for this file using find /usr/lib/ruby/gems/1.8/gems/ -name mkmf.log. Usually, this error message appears because you forgot to install the -dev package for the extension you were trying to install. So if you wanted to install the mysql gem, you probably forgot to install the libmysqlclient14-dev first. Do an apt-cache search | grep dev to find the appropriate packages.

"installation or configuration problem: C compiler cannot create executables."
Make sure you have a compiler installed. Also, an important package that is often forgotten is libc6-dev. It contains the header files for the GNU LIBC, which is required by about every program out there.

apt-get install gcc make libc6-dev

And if you want to be sure:

apt-get install g++ automake autoconf

Wednesday, March 07, 2007

Ruby On Rails

Ruby on Rails is a very powerfull sofware. I attended the training on Ruby on Rails in Tokyo, Japan during the period of 19th Feb 2007 to 9th March 2007, conducted by CICC. I would like to promote this language usage in India, so that it helps individual to easily develop their web applications and faster. The language is very easy and inbuilt eveything. Just the user need to remember some kind of syntax and steps to proceed. I was a great experience for me while attending the training program. We batchmates if this training program created a website name http://thinkruby.org.

Thursday, December 14, 2006

OO Error in the 2.1.0 version - No UNO environments found

While builing OpenOffice - 2.1.0. version, there is an error raised saying "no uno environment found" and also there was an issue about this in the OO building site: issue 72372.

The error is as follows :

-------------
cp pythonloader.py ../../unxlngi6.pro/lib/pythonloader.py
rm -f ../../unxlngi6.pro/lib/pyuno_services.rdb
../../unxlngi6.pro/lib/pyuno_services.tmp ../../unxlngi6.pro/lib/pyuno_services.rdb
cd ../../unxlngi6.pro/lib && regcomp -register -r pyuno_services.tmp -c
typeconverter.uno -c invocation.uno -c reflection.uno -c introspection.uno -c
invocadapt.uno -c proxyfac.uno -c pythonloader.uno
ERROR: create ServiceManager failed!
ERROR description: cannot get uno environments!
dmake: Error code 1, while making '../../unxlngi6.pro/lib/pyuno_services.rdb'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making
/opt/Indraveni/ooo_SRC680_m196_src/pyuno/source/loader
dmake: Error code 1, while making 'build_instsetoo_native'
'---* *---'

And this has been faced by the Linux users as well as the Windows users.

A patch has been created by eric for this issue. Just applying the patch
and rebuiling the solved the problem.

You can the patch from here : diff.txt



Thursday, November 09, 2006

OpenOffice Build

OpenOffice is equal to Microsoft Office in WIndows. If one want to do some type of customization in localization or add some kind of macro inbuilt, it needs to be rebuilt. Its current bug free source is available at the following link....

Download Sites

Source

ftp://ftp.linux.cz/pub/localization/OpenOffice.org/devel/build/Sources

Binaries

ftp://ftp.linux.cz/pub/localization/OpenOffice.org

The Steps to building openoffice are available at

http://tools.openoffice.org

The steps what I followed are in brief as follows:

Firstly I am building this in the debian system. For other OS the steps are given in the above specified link i.e tools.openoffice.org respectively.

1) Java version 1.4.2, Apache ant 1.6.5 are installed

2) Other dependent Libraries like libx, libxml, etc according to the requirement and dependency.

3) cd $SRV_DIR

Compile the source

./configure --with-jdk-home=$JAVA_HOME --with-ant-home=$ANT_HOME --with-system-nas

4) cd ..

tcsh

./bootstrap

source LinuxIntelEnv.Set

rehash

dmake


5) This build will take minimum 14 hours to complete the build if successfull.

6) Final openoffice debs will be in the $SRV_DIR/.....


You can also compile each and every module seperately. The steps will be updated here soon.





Wednesday, November 08, 2006

eGroupware Collaboration Tool

eGroupWare is a free enterprise ready groupware software for your network. It enables you to manage contacts, appointments, todos and many more for your whole business.

eGroupWare is a groupware server. It comes with a native web-interface which allowes to access your data from any platform all over the planet. Moreover you also have the choice to access the eGroupWare server with your favorite groupware client (Kontact, Evolution, Outlook) and also with your mobile or PDA via SyncML.

I am working on the translation work of egroupware into Indian Languages so that it can be used by any state government in their local language. Right now I started with Hindi.

Hi Buddies!!!

Hi, Wanna know about me??

Am a cool girl with lots of smiles for you. Interested in reading general books and listening music. Attracted to Birds. Aim to fly like a bird ... independent and touch the sky with my wings proudly :-)

Hmm.... one small message. " what ever be the case, keep loving, handle things with love and keep smiling, everything around you seems to be very good...