Fix MBR and Grub with Ubuntu livecd

Posted in Linux (Ubuntu) on September 10, 2009 by HydTech

I traded my Lenovo X60 for a S10 netbook and a Nokia N810. So far it’s ok, however I miss the trackpoint. I swapped out the hard drive from the X60 and put it into the S10 and Ubuntu works fine. When I try to load Windows, it gives me a Disk read error (press Ctrl + Alt + Del to restart). I tried to fix it with a Windows CD, but managed to overwrite the grub bootloader. Heres what I did to fix it:

Fix MBR from Ubuntu:

1.I didn’t have an Ubuntu liveCD on hand so I took out the hard drive, put it in an external case and connected it to another computer running Ubuntu.
2. Downloaded the ms-sys program since its not in the repos anymore. ms-sys
3. sudo fdisk -l to find the disk number
4. sudo ms-sys -m /dev/sdb

Now I have the MBR but still get the same ctrl alt del error. I’ll take a look at it later.

Fix Grub:

1. Still using the external case
2. sudo grub
3. find /boot/grub/stage1
4. setup (hd1,3) <- this is where the Ubuntu install is
5. root (hd1) <- root of the Ubuntu partition
6. quit

Restart computer

Advertisements

How to Upgrade to 3.0.1 and Unlock iPhone 3g with baseband 2.30.03 & bootloader 5.09, 6.02, 6.04

Posted in Uncategorized on August 26, 2009 by HydTech

moved to http://hydtechblog.com/2009/08/26/how-to-upgrade-to-3-0-1-and-unlock-iphone-3g-2-30-03-with-baseband-5-09-6-02-6-04/

.

.

.

.

.

.

.

.

.

.

FreeNX problems in Ubuntu, Gnome theme, screensaver, lock screen, show desktop, nxclient and nxserver

Posted in Linux (Ubuntu) on August 19, 2009 by HydTech

This problem started after an update. When I logged in using NX, I noticed that my theme looked very ugly. The show desktop button was some folder icons, the lock screen function wasn’t working, I noticed some errors in my terminal while trying to run X based tools: Xlib: extension “Generic Event Extension” missing on display “:1000.0”. And the gnome-settings-daemon kept crashing frequently.

From AAron44126 over at the ubuntuforums found the problem:

“Fixed. gnome-settings-daemon was crashing, see this bug.

Run gconf-editor.
Navigate to /apps/gnome_settings_daemon/plugins/keyboard.
Uncheck the “Active” box on the right.
Log out and log back in.”

Sign apk package files for publishing in the Android market with keytool and jarsigner on Ubuntu

Posted in Uncategorized with tags , , , , , , , on August 13, 2009 by HydTech

Once you’ve completed your package with Eclipse and you want to publish it to the android market, google requires that you sign it.  For this step you need two tools.  Keytool and jarsigner can be obtained through JDK.

Open up terminal and install jdk:

sudo apt-get install sun-java6-jdk

Use keytool to make yourself a new key:

keytool -genkey -v -keystore mykeystore.keystore -alias aliasname -keyalg RSA -validity 10000

genkey – generate the key
v – verbose mode
keystore – select name of keystore
alias – creates an alias for the key
keyalg – specifies the encryption algorithm used to generate the key. Ex: RSA, DSA
validity – when should the key expire in days? (google requires like a 50 year expiry)

The keytool will walk you through the process of choosing a password and name.  Once the key is made, you need to sign the apk with jarsigner using this key:

jarsigner -verbose -keystore mykeystore.keystore programfile.apk aliasname

keystore – keystore containing your private key
verbose – verbose mode

You will be prompted for your password. You are ready to go.

OS X Leopard aHome Theme for Tmobile G1 Android

Posted in Android, Linux (Ubuntu) on August 10, 2009 by HydTech

check it out. make sure you have aHome or aHome lite installed before applying this theme.

1249867475735

1249867494049

1249867537238

aHome Ubuntu Theme for Android G1

Posted in Uncategorized on August 9, 2009 by HydTech

Its not really a Theme based on 9.04 but more off of the ‘Human’ style and some gnome icons. Check it out.

1249846612223

1249846634516

1249846667065

1249846728630

1249846749451

1249846808441

aHome Aqua Alien Theme for aHome Android

Posted in Android, Linux (Ubuntu) on August 9, 2009 by HydTech

Here is my second theme.

1249800656266

1249800683583

1249800721853