Upgraded JesusFreke 1.5 cupcake to CyanogenMod 1.6 Donut

Once I knew what I was doing, everything was simple.
Here are the steps for the G1:

1. Update recovery image (Optional but recommended)

a. download the cyanogenmod recovery image and place it in your SDcard.

b. open up terminal and type
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /sdcard
flash_image recovery /sdcard/cm-recovery-1.4.img
cat cm-recovery-1.4.img > /system/recovery.img

2. Update cupcake to donut

a. download the 1.6 image here and place it in the sdcard

b. download the mod image here and place it in the sdcard

c. turn off phone

d. boot into recovery mode by pressing home + power

e. from the recovery menu you can select nandroid to backup for safety (optional)

f. alt+ w to wipe (optional)

g. alt + a to apply, first select the 1.6 image and let it complete

h. Do not restart!

i. alt + a to apply, select the cyanogemod image and let it complete

j. reboot

Revealing Opera wand passwords on Ubuntu Linux and OS X

There are several utilities in Windows which reveal the opera wand password and I haven’t used windows in forever. The Opera wiki has a Power button which can help capture your password while logging in to the site. Click this link in Opera and it will install a button which you can drag to any panel. While on a page which requires a password, you can click on this new wand instead of your original wand.

Voila!

Backing up my wordpress blog and website using Ubuntu

I’ve been noticing that my webhost server keeps going down for a few hours every day and it scares me that I’ll lose all my data. So, I started looking for automatic backup solutions and this is the best way I could come up with.

Backing up the wordpress database:

I’ve tried the following plugins

1. WordPressbackup.com
This plugin backs up my data to their server automatically. only backs up the database though. must register for a free account at wordpressbackup.com. The backups occur once every few days.

2. Bei-fen
This plugin backs up my data including images and files to a location on my server

3. DBC Backup
Does a cron backup automatically at any location on my server at any time interval I set it for. Only backs up the database.

4. WP-DB-Backup
Can schedule the database to automatically backup to your server or automatically email them.

5. SMEStorage Backup
Based on WP-DB-Backup. Must register for a free account at http://www.smetube.com/smestorage/ and you can backup your data to a cloud storage service like Amazon S3 or Box.net. You can even have the backups sent to your email.

Backing up my whole website from my webhost to my computer:

I use a tool call rsync in linux to automatically sync my public_html directory on my webserver to a backup folder on my Computer which is synced automatically with Dropbox. You can also use Ubuntu One. For this tutorial your web host must have ssh enabled. If you can’t get ssh, then backup your wordpress website over ftp with curlftpfs on Linux.

Follow these steps:

1. Sign up for an Ubuntu One account or a DropBox account and download/install the desktop client. You can get a 2GB account for free.

2. Download the necessary files
sudo apt-get rsync ssh

3. Set up autologin with ssh so you won’t have to enter your password each time.
sudo ssh-keygen -t dsa
press enter each time without changing anything. this will make a id_dsa.pub key in you .ssh folder.
copy the ssh key to your server using scp
scp /home/user/.ssh/id_dsa.pub user@yourserver.com:
login to your server using ssh
ssh user@yourserver.com
enter password and append the key to authorized_keys
cat id_dsa.pub >> .ssh/authorized_keys
remove the key from the home directory on your server
rm id_dsa.pub

4. Set up a cron job to sync the public_html folder to your dropbox folder
crontab -e (do not sudo)
open with editor like nano
enter something similar to the following line
* */5 * * * rsync -avz --rsync-path=/usr/bin/rsync -e ssh user@yourserver.com:home/useronserver/public_html /media/sdawhatever/locationof/dropbox/backup/
(this is telling cron to sync every 5 hours, for more help with cron check wiki)
press ctrl+O to save file, enter to save, ctrl + X to exit.

thats it, your done!

Connect your android on Ubuntu in recovery mode, fastboot mode, or unactivated

To boot into recovery mode: Press and hold Home + Power
To boot into fastboot mode: Press and hold Camera + Power

Setup UDEV to recognize your HTC Android device:

Setting up UDEV to recognize HTC Device –
Open up terminal and type:
sudo gedit /etc/udev/rules.d/51-android.rules
Add the following:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
save and close.
sudo /etc/init.d/udev restart

Installing adb & fastboot:

Download the Android SDK here.
Extract it to the root or home directory.
Download fastboot and place it in the /AndroidSDK/tools directory.
Right click fastboot -> Properties -> Permissions -> Allow executing file as program.

Adding tools directory to bash:

sudo gedit /home/user/.bashrc
Add the location of you tools directory:
#AndroidDev PATH
export PATH=${PATH}:/AndroidSDK/tools

close and save.

I got most of this information from this post.

Advertise on hydtechblog.com

You can purchase 125×125 banners in the sidebar for a week or a month automatically by filling the form below. The ads will show on each post including the home page and there will only be 4 available. To purchase a different size banner please contact me by leaving a comment below. This blog has reached 10,000 unique visitors a month.

[myadmanager_show_form]

Stereo Installation Pictures 2005 Nissan Altima

Disconnect the Negative Terminal on the battery
DSC02360

Stick a Screwdriver on the side of the AC panel and it should pop off

DSC02360
DSC02360

Remove the four screws around the AC panel and place it on the side
DSC02360

Pull up here
DSC02360
DSC02360
DSC02360
DSC02360

Remove the screws around the CD player
DSC02360

And here
DSC02360

And here
DSC02360

Disconnect the wires
DSC02360

Install the Scocshe adapter
DSC02360

And the wire harness
DSC02360

Now you can put on your MP3/CD player /Stereo and reverse the steps for the Install.

Free 5-minute International Calls

You’ve heard of 1800-FREE-411.  It’s a 411 directory service that doesn’t charge you the 1.49 that mobile companies do.  They started a new promotion which allows you to call them and dial any International number and talk for 5 minutes.  Why free? Well, the catch is that you have to listen to their advertisement before placing your call.

Now the offer is valid for any person who can dial a 1800 number and if you live in the US, then the call is free, however, you can dial 1800 numbers free from Internet phones like Yahoo messenger, gizmo or skype.

Installing Windows 7 on my Lenovo S10 Multiboot

Las time I installed BackTrack 4 using Unetbootin. This time I Installed Windows 7 to my Hard drive without using an external CD player.  Instead I used an external hard drive.  Can also be done with USB.

I already have Ubuntu installed so I downloaded Unetbootin and I obtained the Windows 7 DVD in ISO format.

I fired up Gparted and made a 10GB partition for Win 7 and formatted the partition used for install and the external hard drive with NTFS.

Changed the permissions of the Unetbootin file:
chmod 777 /home/user/Desktop/unetbootin-linux-372

Fired up Unetbootin, entered my password and selected the Win7  iso and changed the type to hard disk.  Here make sure you select the right partition of your external drive.  you can type df -h in terminal to make sure.:
bt41

Press Ok and wait
bt4

Reboot and have your BIOS boot from external drive or hold down F12 to select.

reboot

The installation is self explanatory.  I installed the WIndows 7 to a logical partition.  After installation, I had to boot up into an Ubuntu live installation and fix grub like I did here.  Opened menu.lst for editing the grub menu:

sudo gedit /boot/grub/menu.lst

Add this to the end of the file and close:
title Microsoft Windows 7
root (hd0,0)
makeactive
chainloader +1