Archive for the ‘Linux’ Category.

libawt.so: libXp.so.6: cannot open shared object file

[oracle@centos53 database_vault_10204_linux]$ ./runInstaller
Starting Oracle Universal Installer…

Checking installer requirements…

Checking operating system version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, UnitedLinux-1.0, asianux-1 or asianux-2
Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-01-13_07-47-02AM. Please wait …[oracle@centos53 database_vault_10204_linux]$ Exception in thread “main” java.lang.UnsatisfiedLinkError: /tmp/OraInstall2010-01-13_07-47-02AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)

SOLUTION

[root@centos53 ~]# yum install xorg-x11-deprecated-libs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.ynet.sk
* base: centos.politechnika.lublin.pl
* extras: centos.ynet.sk
* updates: centos.politechnika.lublin.pl
addons                                                   |  951 B     00:00
base                                                     | 2.1 kB     00:00
extras                                                   | 1.1 kB     00:00
updates                                                  | 1.9 kB     00:00
updates/primary_db                                       | 380 kB     00:02
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package libXp.i386 0:1.0.0-8.1.el5 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package         Arch           Version                    Repository      Size
================================================================================
Installing:
libXp           i386           1.0.0-8.1.el5              base            23 k

Transaction Summary
================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 23 k
Is this ok [y/N]: y
Downloading Packages:
libXp-1.0.0-8.1.el5.i386.rpm                             |  23 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : libXp                                                    1/1

Installed:
libXp.i386 0:1.0.0-8.1.el5

Complete!

Regards,

Tom

Search history on linux

Hi,

very usefull when you need to browse your history.

# alternate mappings for “page up” and “page down” to search the history
“\e[5~": history-search-backward
"\e[6~": history-search-forward

In /etc/inputrc on my CentOS.

[oracle@centos53 ~]$ cat /etc/inputrc
# do not bell on tab-completion
#set bell-style none

set meta-flag on
set input-meta on
set convert-meta off
set output-meta on

# Completed names which are symbolic links to
# directories have a slash appended.
set mark-symlinked-directories on

$if mode=emacs

# for linux console and RH/Debian xterm
“\e[1~”: beginning-of-line
“\e[4~”: end-of-line
#”\e[5~”: beginning-of-history
“\e[5~”: history-search-backward
“\e[6~”: history-search-forward

#”\e[6~”: end-of-history
“\e[3~”: delete-char
“\e[2~”: quoted-insert
“\e[5C”: forward-word
“\e[5D”: backward-word
“\e[1;5C”: forward-word
“\e[1;5D”: backward-word

# for rxvt
“\e[8~”: end-of-line

# for non RH/Debian xterm, can’t hurt for RH/DEbian xterm
“\eOH”: beginning-of-line
“\eOF”: end-of-line

# for freebsd console
“\e[H”: beginning-of-line
“\e[F”: end-of-line
$endif

Regards,

Tom

How to add an additional disk drive to your backup storage

I adeed new SCSI hard drive. It’s third so the namin convention is sdc

[root@centos53 ~]# fdisk /dev/sdc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won’t be recoverable.

The number of cylinders for this disk is set to 1044.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0×0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n
Command action
e   extended
p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1044, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1044, default 1044):
Using default value 1044

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@centos53 ~]# cat /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda2         swap                    swap    defaults        0 0
[root@centos53 ~]# mkfs -t ext3 /dev/sdc1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1048576 inodes, 2096474 blocks
104823 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2147483648
64 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@centos53 ~]# mkdir /backup
[root@centos53 ~]# mount -t ext3 /dev/sdc1 /backup/
[root@centos53 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              11G  8.6G  1.1G  89% /
tmpfs                 442M     0  442M   0% /dev/shm
/dev/sdc1             7.9G  147M  7.4G   2% /backup
[root@centos53 ~]#

Enter the drive into the fstab file so that it is recognized and mounted upon system boot.

[root@centos53 ~]# vi /etc/fstab

LABEL=/                 /                       ext3    defaults        1 1
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda2         swap                    swap    defaults        0 0
/dev/sdc1               /backup                 ext3    defaults        0 0

Regards,

Tom

TOPlist