Kunaljain’s Weblog

October 9, 2009

Error:- Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.i386

Filed under: Linux Tips & Tricks — Kunal Jain @ 12:04 pm
Tags: ,

While installing subversion on my CentOS 5.2 64bit OS i got this error

yum install subversion
Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.i386

I google the error and found the solution.

  • Fistly i download perl(URI) which is greater than 1.17. I downloaded perl(URI) 1.35 using the following command
wget http://yum.trixbox.org/centos/5/RPMS/perl-URI-1.35-3.noarch.rpm
  • Then i install the perl package by using following command
rpm -i perl-URI-1.35-3.noarch.rpm
  • Then i install the subversion by using following command
yum install subversion

Now subversion is working fine on my server.

October 4, 2009

Auto-Complete function stop working in command prompt on windowsXP

Filed under: XP Tweakers — Kunal Jain @ 5:16 am
Tags: , ,

Somehow Auto completion stops working in command prompt in windows XP. Then I google about this error and found the solution
I just follow the follwoing steps and now its working fine.

  • Go to Start -> Run, type regedit
  • Navigate to HKEY_CURRENT_USER\Software\Microsoft\Command Processor
  • On the right, double-click on the "CompletionChar", type 9 and press OK.
  • On the right, double-click on the "PathCompletionChar", type 9 and press OK.

If there are no entries like CompletionChar or PathCompletionChar in Commnad Processor Folder then you can add them as string values.

September 27, 2009

Java Error – Error occurred during initialization of VM

Filed under: Java, Linux Tips & Tricks — Kunal Jain @ 8:21 am

While running Java i faced this problem

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

This error occur because java was not able to get enough Virtual Memory as i did ulimit -a on my linux machine and i found that the virtual memory and max memory size is limited on my machine.

so i change this to unlimited by editing limits.conf file which is located in /etc/security/limits.conf and now java is working fine.

ulimit -a before making changes in limits.conf file

ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 40960
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) 524288
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 40960
virtual memory          (kbytes, -v) 524288
file locks                      (-x) unlimited

ulimit -a after making changes in limits.conf file

ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 40960
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 40960
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

June 3, 2009

dos2unix: command not found

Filed under: Linux Tips & Tricks — Kunal Jain @ 4:01 am
Tags: , ,

If you get this error

dos2unix command not found

check the manual for dos2unix. if the manual is present in your distribution it means that dos2unix is installed, find it and add it in your path.

if you found this error

No manual entry for dos2unix

then install in in your distribution( I am using debian) by typing the following command

apt-get install tofrodos

April 21, 2009

Apple:- No Battery Avaliable

Filed under: Mac — Kunal Jain @ 3:37 am
Tags: , ,

Just pulled the MacBookPro out of my bag and found that the battery meter showed on battery. When i clicked the pull-down menu it said “No battery available”

I google about this error and found the solution here

http://support.apple.com/kb/HT1411?viewlocale=en_US.

I followed the exact same instructions and my system starts working perfectly fine.

Here are the instructions that i follow

  1. If the computer is on, turn it off.
  2. Disconnect the AC adapter and remove the computer's battery.
  3. Press and hold the power button for 5 seconds and then release the button.
  4. Reconnect the battery and AC Adapter.
  5. Press the power button to restart the computer

February 10, 2009

Removing RPM packages

Filed under: Linux Tips & Tricks, MySql — Kunal Jain @ 4:14 am
Tags: ,

Try to remove MySQL from my server which my datacenter guys installed it along with the OS and while doing that i got the following error

shell> rpm -aq | grep mysql | xargs rpm -e

error: “mysql-devel-5.0.45-7.el5″ specifies multiple packages
error: “mysql-5.0.45-7.el5″ specifies multiple packages
error: “mysql-devel-5.0.45-7.el5″ specifies multiple packages
error: “mysql-5.0.45-7.el5″ specifies multiple packages

Then i google about this error and with some help from google and rpm manual i use the following command to remove MySQL from my server

shell > rpm -aq | grep mysql | xargs rpm -e --nodeps --allmatches

January 19, 2009

403 Forbidden IP Address – resin admin page error

Filed under: Resin — Kunal Jain @ 11:23 am
Tags: , ,

check the resin.conf file for /resin-admin and change

<web-app id="/resin-admin" root-directory="${resin.home}/php/admin">
        <!--
           - Administration application /resin-admin
          -->
        <prologue>
          <resin:set var="resin_admin_external" value="false"/>
          <resin:set var="resin_admin_insecure" value="true"/>
        </prologue>
      </web-app>

to

<web-app id="/resin-admin" root-directory="${resin.home}/php/admin">
        <!--
           - Administration application /resin-admin
          -->
        <prologue>
          <resin:set var="resin_admin_external" value="true"/>  <!-- Change this line Means change the false value to true -->
          <resin:set var="resin_admin_insecure" value="true"/>
        </prologue>
      </web-app>

Refresh your page is browser and you will be able to access the resin-admin page example:- http://localhost.com/resin-admin

January 9, 2009

ERROR: 1062 Duplicate entry ‘localhost-’ for key ‘PRIMARY’

Filed under: MySql — Kunal Jain @ 11:47 am
Tags: ,

If MySQL give this error then check your hostname

shell> hostname

It might be localhost. Change your hostname. To know how to change hostname click here

January 7, 2009

Converting .tif images to .jpg

Filed under: Linux Tips & Tricks — Kunal Jain @ 8:25 am
Tags: ,

To convert .tif images to .jpg i use imageMagic which i downloaded from http://www.imagemagick.org/script/download.php
To convert .tif images to .jpg you need to install certain library files which will be used during the conversion process

For jpg i downloaded libjpeg-6b.tar.gz. you can download it from http://www.imagemagick.org/download/delegates/

To install it follow the following steps

shell> cd /usr/local
shell> tar -zxvf libjpeg-6b.tar.gz
shell> ln -s libjpeg-6b libjpeg
shell> cd libjpeg
shell> ./configure; make; make install;

This will install the required jpg library files into your system

Then i downloaded tiff-3.8.2.tar.gz from the same repository mentioned above
To install it follow the following steps

shell> cd /usr/local
shell> tar -zxvf tiff-3.8.2.tar.gz
shell> ln -s tiff-3.8.2.tar.gz tiff
shell> cd tiff
shell> ./configure; make; make install;

Then finally i Install imageMagic with the following steps

shell> cd /usr/local
shell> tar -zxvf ImageMagic.tar.gz
shell> ln -s ImageMagick-6.4.8-3 imageMagic
shell> cd imageMagic
shell> ./configure; make; make install;

Now you are ready to convert .tif files to .jpg simply type the following command

shell> convert fileName.tif newFileName.jpg

you can use convert help to find other parameters to pass with the convert command regarding quality and path to write files and others……

January 5, 2009

Passing username and password in wget command

Filed under: Linux Tips & Tricks — Kunal Jain @ 8:53 am
Tags:

To pass username and password in wget command so that it will not ask for the authentication use the following syntax

wget –user=userName –password=Password http://www.example.com/index.html

Next Page »

Blog at WordPress.com.