Linux
TPVMLPD: Device type not supported
by dervish 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
- Take a backup of the vmware-tools startup script using the command:cp /etc/init.d/vmware-tools /etc/init.d/vmware-tools.backup
- 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
- Comment this entry:#/usr/bin/tpvmlpd
- Run this command to restart VMware Tools:/etc/init.d/vmware-tools restart
Google Toolbar Disabled by Firefox 5
by dervish 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
Move LVM Volume Group To New Larger Drive
by dervish 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
Create Additional Swap Space
by dervish 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
Forward Mail to SMTP Server
by dervish 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