ciphermethod.com

Linux

TPVMLPD: Device type not supported

by on Jun.28, 2011, under Linux, VMware

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2001254
Linux virtual machine reports the error: TPVMLPD: Device type not supported

Symptoms

  • Virtual machine running Linux reports the error:TPVMLPD: Device type not supported

Resolution

This error is reported when the TPVMLPD process is running on the Linux virtual machine. TPVMLPD is a thinprint daemon that is installed with VMware Tools.
 
To resolve this issue, you must stop the TPVMLPD daemon by modifying the vmware-tools startup script.
 
To modify the vmware-tools startup script:
  1. Take a backup of the vmware-tools startup script using the command:cp /etc/init.d/vmware-tools /etc/init.d/vmware-tools.backup
  2. Open the /etc/init.d/vmware-tools script using a text editor. For example, to open the script using the vi editor, run this command:vi /etc/init.d/vmware-tools
  3. Comment this entry:#/usr/bin/tpvmlpd
  4. Run this command to restart VMware Tools:/etc/init.d/vmware-tools restart


Leave a Comment more...

Google Toolbar Disabled by Firefox 5

by on Jun.27, 2011, under Linux, Windows

How to re-enable the Google Toolbar in Firefox 5.

Solution: Change maxVersion in the install.rdf file to 5.*. Do a search if your not sure where the file is located.

Linux:

– Edit ~user/.mozilla/firefox/mhznvz4j.default/extensions/\{3112ca9c-de6d-4884-a869-9855de68056c\}/install.rdf

– Change <em:maxVersion>4.*</em:maxVersion> to <em:maxVersion>5.*</em:maxVersion> and save.

– Start Firefox. Toolbar should start normally.

Windows:

The same ./extensions/\{3112ca9c-de6d-4884-a869-9855de68056c\}/install.rdf file can be edited in Windows to restore the Google Toolbar.

Or:
about:config
nightly.disableCheckCompatibility=false
extensions.checkCompatibility=false

Leave a Comment more...

Move LVM Volume Group To New Larger Drive

by on May.09, 2011, under Linux

Shutdown server and add new drive to system, then after power on:

fdisk /dev/sdb # set partion type to 8e
pvcreate /dev/sdb1
vgextend Volume00 /dev/sdb1
pvmove -n /dev/mapper/Volume00-external /dev/sda2 /dev/sdb1
lvextend -L +47G /dev/mapper/Volume00-external
ext2online /dev/mapper/Volume00-external

sdb=New Drive, Volume00=Volume Group, Volume00-external=Logical Volume
Support Commands: lvdisplay, vgdisplay sfdisk -s, df

Leave a Comment more...

Create Additional Swap Space

by on May.05, 2011, under Linux

Use a File for Additional Swap Space

If you don’t have additional disk, you can create a file on your filesystem, and use the file for swap space.

Using dd, create a swap file with the name “swap_file” under /root directory with a size of 4096MB (4GB).

# dd if=/dev/zero of=/root/swap_file bs=1M count=4096
4096+0 records in
4096+0 records out
4294967296 bytes (4.3 GB) copied, 136.328 s, 31.5 MB/s

# ls -lh /root/swap_file
-rw-r–r– 1 root root 4.0G May 5 14:43 swap_file

Change the permission of the swap file so that only root can access it.

# chmod 600 /root/swap_file

Mark this file as a swap file using the mkswap command.

# mkswap /root/swap_file
Setting up swapspace version 1, size = 4194300 KiB no label, UUID=982c0db9-d522-4f08-a072-29168de28c64

Enable the newly created swapfile.

# swapon /root/swap_file

To make this swap file available as a swap area even after the reboot, add the following line to the /etc/fstab file.

# grep swap_file /etc/fstab
/root/swap_file swap swap defaults 0 0

Verify whether the newly created swap area is available for your use.

# swapon -s
Filename Type Size Used Priority
/dev/dm-1 partition 1048572 9272 -1
/root/swap_file file 4194300 0 -2

# free
total used free shared buffers cached
Mem: 508772 492700 16072 0 39384 311016
-/+ buffers/cache: 142300 366472
Swap: 5242872 9272 5233600

Note: In the output of swapon -s command, the Type column will say “file” if the swap space is created from a swap file.

If you don’t want to reboot to verify whether the system takes all the swap space mentioned in the /etc/fstab, you can do the following, which will disable and enable all the swap partition mentioned in the /etc/fstab.

# swapoff -a
# swapon -a

To increase swap by extending a Logical Volume:

# cat /proc/swaps
Filename Type Size Used Priority
/dev/mapper/Volume00-lv_swap partition 16777208 208 -1

# swapoff /dev/Volume00/lv_swap
# lvextend -L +900M /dev/Volume00/lv_swap
# mkswap /dev/Volume00/lv_swap
# swapon /dev/Volume00/lv_swap

Leave a Comment more...

Forward Mail to SMTP Server

by on May.02, 2011, under Linux

1. Edit/create the following options in /etc/mail/sendmail.mc:
define(`SMART_HOST’, `your-smtp-server.com’)
FEATURE(authinfo)dnl

2. Edit/create /etc/mail/authinfo and add the following line:
AuthInfo:<your-smtp-server> "U:<your-smtp-user>" "P:<your-smtp-password>" "M:DIGEST-MD5"

3. Build new sendmail.cf and authinfo.db
make -C /etc/mail

4. Restart sendmail:
/etc/init.d/sendmail restart

5. Send test email message
mail user@host.com
Optional test: sendmail -bv user@host.com

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

But Wait, There's More!

A few highly recommended friends...