For whatever reason, rooting a newer evo 4g sometimes screws up the data provisioning on the device and you end up with a phone that can make calls but can’t do data. The fix is fairly straightforward though and just involves re activating the phone. I gathered most of this information from various posts on XDA developers.
After you root, download msl reader from the market and run it (use a wifi connection). This will return your devices MSL (password), Write it down. Your phone will likely lock up at this point, just pull out the battery and reboot. Once the phone has rebooted, open the phone dialer and type in
##3282#
Select Edit and put in your MSL as your password.
Click on the first menu (data something or other)
click menu and select restore.
Your phone will ask if you really want to do this, just click yes. Once that is done your phone will reboot and about 20 seconds later, handsfree activation will run. Let it download your PRL, but cancel out of the firmware download. Power down your phone for about a minute and then power it back up and you should have data again.
I seem to be running on a theme here. Setting your centos 5 boxes to authenticate users against your Openfiler LDAP server isn’t as straight forward as setting samba up to auth against it. You’ll obviously need to have Openfiler and LDAP already setup, but you’re also going to have to do some per user modifications in LDAP and some PAM configuration changes on the Centos box. So, starting with the easiest part. Download and copy this script to your openfiler machine. I did not write this script (I found it here) I just modified it for my use.
#!/bin/bash
# change shell and home for user in OpenFiler LDAP serverBINDDN=”cn=Manager,dc=themclarks,dc=com”
BASEDN=”ou=People,dc=themclarks,dc=com”USER=$1
SHELL=$2if [ -z "${SHELL}" -o -n "${3}" ]; then
echo “Usage: $0 ”
exit 1
fildapsearch -s base -x -b “uid=${USER},${BASEDN}” > /dev/null
if [ $? -ne 0 ]; then
echo “Error: User ${USER} not found in LDAP server”
exit 1
figrep -q -E -e “^${SHELL}$” /etc/shells
if [ $? -ne 0 ]; then
echo “Error: ${SHELL} not found in /etc/shells”
exit 1
fildapmodify -x -D ${BINDDN} -W <
dn: uid=${USER},${BASEDN}
changetype: modify
replace: homeDirectory
homeDirectory: /home/${USER}
EOF
ldapmodify -x -D ${BINDDN} -W <
dn: uid=${USER},${BASEDN}
changetype: modify
replace: loginShell
loginShell: ${SHELL}
EOF
Before you run this script, go into openfiler and make a backup of your LDAP config and database. I doubt their will be a problem, but if you don’t do a backup I can almost guarantee something bad will happen.
Be sure to chmod 775 that script. When you run it you will need to supply the user you want to modify and the shell you want them to have. Home directories will be in /home, but you can modify that as you see fit.
Once that script has run, you will have a user setup with a shell and a home directory in LDAP. moving on to the Centos box
run authconfig as root and select “Use LDAP” in User Information and “Use LDAP Authentication” in Authentication. I also like to select “Local Authentication is sufficient” so I can add an oh-crap account. When you select next, you will be prompted for some LDAP settings.
Leave Use TLS unchecked.
LDAP Server will be ldap://OPEN_FILER_SERVER_NAME
Base DN: will be “dc=your_domain,dc=com”
Hit OK. you can test to see if this works by doing an
su - $USER
for the user that you setup in LDAP. This should work, but it will give you an error about not having a home directory. To fix that, we need to make a change to the pam config. If you did this using the gui authconfig, I believe you will have had an option to setup the automatic creation of home directories, so if you don’t get an error, you’re done.
as root on the centos box, edit /etc/pam.d/system-auth and add the following line to the bottom of the file
session required pam_mkhomedir.so skel=/etc/skel umask=0022
save the file and do an su – to the user you setup in LDAP. You should see a message about a home directory being created. Congratulations, you are authing to LDAP!
I have an openfiler based NAS running as my main file server and an ubuntu VM running rsync that backs that server up. I wanted to be able to browse my backups via samba, and for giggles, authenticate that samba server against the openfiler LDAP that is already configured. This turned out to be really easy. First install samba.
sudo apt-get install samba
In the new /etc/samba/smb.conf, you need to replace the passdb backend statement with
passdb backend ldapsam:ldap://$DNS_NAME_OF_OPENFILE
and add the following lines
ldap ssl = no
ldap admin dn = cn=Manager,dc=$YOURDOMAIN,dc=com
ldap suffix = dc=$YOURDOMAIN,dc=com
ldap user suffix = ou=People
ldap group suffix = ou=Group
Be sure to replace $YOURDOMAIN with the domain you configured when you first setup LDAP in openfiler.
The last step is to store LDAP auth credentials in the secrets.tdb file so samba can query your LDAP. you do that by running
smbpasswd -w $OPENFILER_LDAP_PASSWORD
and replace $OPENFILER_LDAP_PASSWORD with the LDAP password you configured when you created the openfiler LDAP. restart samba with
service smbd restart
And you should now be authenticating to you openfiler LDAP!
Just some shots I forgot to upload.
This is my little workshop in the basement. Nothing too special. The computer rack is pretty much empty now (thank you vmware) and the toolbox is a $40 homedepot special. The desk itself is 8ft by 3ft with a 1ft ledge and the monitors are a 23 and a 15. They are hinged to the table and can fold backwards. What you can’t see is a drill press on the other side of the toolbox.
The one neat thing about the lab is the spool holder.
I made this from a reject levolor mini blind. I just took all of the slats out of it and mounted the mechanism to my ceiling. The bar is a $2 curtain rod mounted to the blind base with a couple of screws and nuts. I use zip ties to keep the various spools separated from each other. I just lift it into the ceiling when I don’t need it and lower it down when I do.
The wife and kids bought me a USB microscope for fathers day that I promptly hacked. I got rid of the cheap base and mounted it to a 3rd arm, then I took and drilled 2mm holes about 70 degrees apart from each other all around the focus knob. I mounted a screw on multimeter probe with a harddrive bearing bolted to it into the holes and now I have a very fine motor way to adjust the focus of the scope. The stock way was prone to sticking and could be frustrating.
Last is the latest change to WHIA. Instead of controlling the dampers in the basement, I’m moving to controlling the registers. To that end I bought a whole bunch of tiny servos and I’m modifying the vents to fit them directly into the register. The servo’s shaft actually becomes the pivot point for the vent and allows me very simple torque transfer without any of the clearance issues that I ran across when I tried a linkage style mount. Works great, very quiet, look for more of this soon.
Now that I have the LAN almost 100% virtual, I thought I would put a little post together on my ESXi 4.1 whitebox. Most of you won’t care, but ESXi whitebox info is kinda hard to come by, so maybe someone on google will find this useful someday. First, the VM Load. I’m currently running 7 VMs.
Boomer ubuntu 10.04 utility box that lives in my DMZ
Hybrid pfSense firewall with 4 physical NICs and 1 virtual attached
GLaDOS OpenFiler NAS with 3 2TB drives setup for raw sata access
Vault ubuntu 10.10 server with 3 1TB drives setup for raw sata access for backups of GLaDOS
Serenity XP VM that I use when I’m oncall
Sleven Windows 7 that I use for nefarious deeds
DC1 Windows 2008 Server setup as a DC to experiment with.
The ESXi server itself (Jane, Ender fan anyone?) is a quad core Xeon X3220 with 16 gigs of DDR3 RAM on a gigabyte motherboard that has an ICH10 chipset allowing for local SATA storage. I’ve had to add in an additional SIL3114 SATA 1 PCI controller to support the additional drives that are attached to the vault. SATA 1 drive performance hasn’t really been an issue since backups are mostly occurring over a WAN link anyhow. I was given an Intel quad port gigabit PCIEx4 adapter, so that’s my primary NIC and then I have a few old Intel dual 10/100 cards installed just in case. The server itself boots off of a USB thumbdrive and everything is stored in a 4U case with 7 Kingwin trayless racks holding the drives in place. Here are the actual parts I’m using
GIGABYTE GA-P43T-ES3G motherboard
Intel X3220 Quad core Xeon CPU
GSkill RipJaws DDR3 1333 4GB DIMMS x 4 (16GB)
Seagate 2TB SATA drive x3
Seagate 1TB SATA Drive x3
Vantec 6 port SATA II 150 PCI SATA card
Intel EXPI9404PTG2L20 quad port ethernet adapter (freebie)
Intel Dual port 10/100 ethernet adapter (junk parts store)
Kingwin SATA hotswap rack x7
generic 4U 7 5.25 bay rack mount enclosure
The whole system was put together piece by piece over time, but if I had to buy it all again, I would anticipate around $900 if you had no parts at all. My CPU load is almost always below 25% and RAM is around 50%. The amazing part though is that this setup has replaced at least 7 physical machines and very likely more around 10 when you figure in the “I want to try out solaris again” whims. I literally have a 7 foot rack in my basement that has a single server in it. Looks kinda sad really. I have only 1 upgrade planned for the year and that is to replace the USB boot drive with an SSD that I have, but otherwise this server is setup to carry my needs for a good long time.