Dist Switch
by dervish on Jul.26, 2011, under CentOS, Linux
Switched to CentOS 6 as my primary Linux OS. Fedora is getting the boot after many, many, years of use. Fedora 15 just has too many things that are wrong with it. In all fairness, some of the issues are with the path Gnome and Linux has taken in general. It was a good run.
Harry Potter Movie Sequence
by dervish on Jul.17, 2011, under Sundry
The Harry Potter movies in order of release:
1. Harry Potter and the Philosopher’s Stone (2001)
2. Harry Potter and the Chamber of Secrets (2002)
3. Harry Potter and the Prisoner of Azkaban (2004)
4. Harry Potter and the Goblet of Fire (2005)
5. Harry Potter and the Order of the Phoenix (2007)
6. Harry Potter and the Half-Blood Prince (2009)
7. Harry Potter and the Deathly Hallows – Part 1 (2010)
8. Harry Potter and the Deathly Hallows – Part 2 (2011)
changelin.sh
by dervish on Jul.12, 2011, under Scripts
#!/bin/sh
# Change user password across a list of servers.
# 20100421 – Created by Jamey Hopkins
# 20110712 – Check if login exists before changing password
# Exit if login or password is blank
#
# note: be sure account.info gets removed from remote server if script is aborted
#
echo
echo “Change Users Linux/AIX Password”
echo
if [ “$1” = “” ]
then
echo “Need server list.”
echo “example: $0 servers.txt”
echo
exit
fi
if [ ! -f $1 ]
then
echo “Server list $1 not found.”
echo
exit
fi
# list seems good, accept it
LIST=$1
echo -n “Enter users login: ”
read LOGIN
if [ “$LOGIN” = “” ]
then
echo “user account can not be blank”
echo
exit
fi
echo “Enter new password”
echo -n “Password: ”
stty -echo
read PASS1
stty echo
echo
echo “Enter password again”
echo -n “Password: ”
stty -echo
read PASS2
stty echo
echo
if [ “$PASS1” != “$PASS2” ]
then
echo “password mismatch”
echo
exit
fi
if [ “$PASS1” = “” ]
then
echo “passwords can not be blank”
echo
exit
fi
echo “$LOGIN:$PASS1” >account.info
echo
# let’s roll
for X in `cat $LIST`
do
echo “$X: setting new password for $LOGIN”
VALID=`ssh $X “grep ^$LOGIN: /etc/passwd | cut -f1 -d:”`
if [ $VALID ]
then
scp ./account.info $X: >/dev/null
ssh $X “cat account.info | sudo /usr/sbin/chpasswd” >/dev/null
# clean up password file (be sure to manually remove if script gets aborted)
ssh $X rm account.info
else
echo “Account doesn’t exist. Skipping….”
fi
done
# clean up password file
rm account.info
echo
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