Tuesday, October 9, 2012

vncpasswd need passwd, and directory!

Question :

While accessing the vnc terminal created on the server i saw that it prompts for passwd but setting password was not working as shown below :

bash-3.00# vncpasswd
need passwd, and directory!
bash-3.00#



Answer :

Provide a valid password and directory name as shown below and it works .


bash-3.00# vncpasswd new4now ~/.vnc/passwd
bash-3.00#

Sunday, February 5, 2012

Deleting duplicate rpms error: "xyz" specifies multiple packages:

Problem Statement : How to remove duplicate rpms on the machine .

[root@vminstlnx64test11 ~]# rpm --nodeps -e gpfs.gpl-3.4.0-0.noarch
error: "gpfs.gpl-3.4.0-0.noarch" specifies multiple packages:
  gpfs.gpl-3.4.0-0.noarch
  gpfs.gpl-3.4.0-0.noarch
[root@vminstlnx64test11 ~]#

Solution : Use the command  "package-cleanup --cleandupes"

Note : If package-cleanup is not available of the machine .Install the  utility install yum-utils.noarch .

#yum -y install yum-utils.noarch




Wednesday, October 12, 2011

((01)) [C_Initialize] failed at c_init_fini.c:152, rc = 2 (0x2), reason: [Failed to open /dev/pkcs11, reason : No such file or director



Problem Statement 


While doing ssh on AIX the following messages are seen during connection .

# ssh localhost


***********************************
Error stack trace (1 frames):
((01)) [C_Initialize] failed at c_init_fini.c:152, rc = 2 (0x2), reason: [Failed to open /dev/pkcs11, reason : No such file or directory
]

***********************************



    ***********************************
    Error stack trace (1 frames):
    ((01)) [C_Initialize] failed at c_init_fini.c:152, rc = 2 (0x2), reason: [Failed to open /dev/pkcs11, reason : No such file or directory
    ]

    ***********************************
    root@localhost's password:




      Solution


      root@rac14 / > lslpp -l | grep pkcs
      security.pkcs11 7.1.0.1 COMMITTED PKCS11 Device Driver
      security.pkcs11 7.1.0.0 COMMITTED PKCS11 Device Driver

      Remove the security.pkcs11 package as follows:
      installp -u security.pkcs11 








      Thursday, March 17, 2011

      mount.nfs: Remote I/O error

      Question :

      How to resolve the following mount error on Linux platforms ?

       [root@instrhel6ppc ~]# mount -o nolock thor:/devinst /devinst
      mount.nfs: Remote I/O error
      [root@instrhel6ppc ~]#


      Answer :

      Add the options to mount as shown below and it will resolve the issue .


      [root@instrhel6ppc ~]# mount -o vers=3 thor:/devinst /devinst
      [root@instrhel6ppc ~]#


      Thursday, February 24, 2011

      Too early to specify a build action 'Build'. Do 'Build Build' instead

      Question : While installing a perl module on AIX server saw the following error. After the download I ran the following commands to install the module.

      # perl Makefile.PL
      Checking if your kit is complete...
      Looks good
      Writing Makefile for Tie::IxHash
      # make install
              /usr/bin/perl "-Iblib/arch" "-Iblib/lib" Build.PL Build
      Too early to specify a build action 'Build'.  Do 'Build Build' instead.
      make: 1254-004 The error code from the last command is 2.


      Stop.
      #

       Resolution :

      Edit the generated Makefile as shown below :
      1. Search for the following line in Makefile .

      $(PERLRUNINST) Build.PL Build

      2. Change it to as shown below :

      $(PERLRUNINST) Build.PL &&Build

      3. After this try "make install" again and it should complete successfully.

      Search This Blog