Wednesday, December 12, 2012

CentOS 6 Auto Login

#/etc/gdm/custom.conf
 
 
[daemon] 
AutomaticLoginEnable=true
AutomaticLogin={give your username
Then restart

Refered Link http://www.behindtherack.com/?p=416

Friday, November 30, 2012

Get Information About Your BIOS without reboot or opening chassis

# dmidecode --type  9 (Change number as per your requirement)

Use above command to get all details.

Full details pls follow this link

DMIDECODE

libvirtError: internal error Cannot find suitable emulator

Virtualization Technology option not available in BIOS for vt-x CPU  IBM x346

"There is the possibility that even if the BIOS is fully updated, the option may not appear even if the CPU supports VT. I ran into that problem with IBM x346 servers. The processors supported VT, but IBM, in their infinite wisdom, never released a BIOS update that would allow you to enable it."

Link to follow for full details



Monday, November 5, 2012

db_link not working proplery. global_name Problem.

SELECT * FROM GLOBAL_NAME:

To db_link work properly add same global name in two databases.

Query to update.

SQL>alter database rename global_name to "TESTDB";


 

Killing Oracle Sessions

Refer below mentioned link.

Killing oracle sessions



SET LINESIZE 100
COLUMN spid FORMAT A10
COLUMN username FORMAT A10
COLUMN program FORMAT A45

SELECT s.inst_id,
       s.sid,
       s.serial#,
       p.spid,
       s.username,
       s.program
FROM   gv$session s
       JOIN gv$process p ON p.addr = s.paddr AND p.inst_id = s.inst_id
WHERE  s.type != 'BACKGROUND';

 

ALTER SYSTEM KILL SESSION 'sid,serial#';

 
kill -9 spid

 
ps -ef | grep ora 

Monday, August 20, 2012

HP printer on Linux - 'cups-missing-filter' Error

HP printer on Linux  http://hplipopensource.com/hplip-web/index.html


Verify availability of  file foomatic-rip-hplip in folder /usr/lib/cups/filter .

If its not available

#cp  foomatic-rip  foomatic-rip-hplip

Now try to print.

 

CentOS Linux: Mount and Access NTFS Partition

Ref : http://www.cyberciti.biz/faq/redhat-fedora-enable-ntfs3g-support/


First, you need to install EPEL repo as described here. The following command will turn in EPEL repo on RHEL / CentOS version 6.x:

$ cd /tmp
$ wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm      (Change here to new version of epel to work correctly)
# rpm -ivh epel-release-6-5.noarch.rpm

Type the following command as root user:
# yum install ntfs-3g
Sample outputs:

How Do I Find Out NTFS Partition Name?

Simply type the following command:
# fdisk -l /dev/sda
# fdisk -l /dev/sdb
Sample outputs:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf0000000
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              14       60802   488281089    5  Extended
/dev/sda5              14       59767   479970304   83  Linux
/dev/sda6           59767       60802     8309760   82  Linux swap / Solaris

How Do I Mount /dev/sda1 NTFS Partition at /mnt/ntfs?

First, load the fuse driver, enter:
# modprobe fuse
Create a mount point, enter:
# mkdir /mnt/ntfs
To mount the ntfs partition, enter:
# mount -t ntfs-3g /dev/sda1 /mnt/ntfs
You can use regular Unix commands to copy or access the files:
$ df -h
$ mount
$ cd /mnt/ntfs
$ cp foo /tmp
How Do I Unmount NTFS Partition?

Type the following command:
# umount /mnt/ntfs

Restarting X without ctrl-alt-bksp or reboot

Follow this link


1) find the pid of your X server:
ps -e | grep X

2) kill X
su
kill -9 PID_FROM_ABOVE

3) restart X
startx & 

Sunday, August 5, 2012

Sunday, April 29, 2012

connect / as sysdba ora-01031 insufficient privileges


If your system under domain environment and if you want to add your domain user into ora_dba group.

Use oracle managed objects console and add your user.



Thursday, March 29, 2012

Printer Deployment using Group Policy for Win XP 32 bit

Download Printer Push connection for Windows XP (32 bit) from below mentioned Link.

PPC File

Add  PPC.exe to startup script of computer configuration.
Use Print Management to deploy printers.

Wednesday, March 28, 2012

Disable user Desktop from changes

Before disabling user's Desktop , make sure his/her shortcuts and other basic requirement are available .

Use Folder redirction to redirect the desktop to any file server as shown in the below mentioned screen shot

Now change user permission for the Desktop directory.
Now user can't change anything on Desktop.


Sunday, March 18, 2012