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