Removing calendar off ipod touch and iPhone hack

It seems a well documented problem that if you sync your iPod Touch or iPhone with your machine. then decide to change to a different calendar, it can be really hard to get rid of the older calendar, especially if like me, you sync with google apps then decide to go with the exchange option.

So now im stick with 2 or three copies of my gmail calendar on my iPhone, which no matter WHAT i try does not go away, even after i tell it to not sync any calendars in iTunes.

Luckily i Jailbreak my iphone, i ssh’d in and found where the calendar files are. This fix im afraid only works with a jail broken iPod/iPhone.

ssh in or open a console. If you have file browser you prefer then by all means use that. You need to grab the file at /private/var/mobile/Library/Calendar/Calendar.sqlitedb .

You can use scp to do this, find the IP of the device, then

an7:Desktop wishes$ scp root@10.40.1.5:/private/var/mobile/Library/Calendar/Calendar.sqlitedb .
root@10.40.1.5’s password:
Calendar.sqlitedb                                                                                                                 100%  636KB 636.0KB/s   00:01

Once you have the file, you need an SQLite browser to edit it. I used http://sourceforge.net/projects/sqlitebrowser/ on my mac. Make a backup of the sql file before editing it. Open it in the sqlite browser. Click ‘Browse Data’ then in the drop down look at Calendar. Find the entry you dont want, delete it, then save the database again.

Copy it back to the device.

lan7:Desktop wishes$ scp Calendar.sqlitedb root@10.40.1.5:/private/var/mobile/Library/Calendar/Calendar.sqlitedb
root@10.40.1.5’s password:
Calendar.sqlitedb                                                                                                                 100%  524KB 524.0KB/s   00:00

Then test it. If it worked then presto! if not you still have that backup right?.

iPhone worm for Jail Broken Phones hacks, cracks, worms, and stupidity

Sick to death of this garbage going around needlessly scaring everyone who has ever jail broken their iPhone or iPod Touch.

First of all, a straight Jail broken iPhone or iPod touch is not venerable. Nor is a normal iPhone or iPod Touch.
The only phone thats vunerable is one that you have installed SSH on, and have not changed the password.

Most people who have Jailbroken and installed SSH actually KNOW what it does and what to use it for, and its not installed for by default. SSH lets you connect out to another machine running SSH in a console text based way to any other machine running SSH also. Hence the installation of SSH lets you connect to your Device and upload things in bulk or edit files that normally wouldnt get edited.

Now, the hack only occurs because some people did not change the password when they installed SSH. When you install it, it clearly tells you to set a password. If you dont, you are stupid and probably deserve getting exploited.
Chances are that you wont get exploited in any hurry in any case, its not a common occurrence, and its easily fixed if you do.

In summery,
Jail breaking is cool and fun and gives you added functionality. Installing applications when you don’t know how to use them or what they are for is a bad idea, especially if you don’t follow instructions well.
Best of all, just hit the reset/reinstall button in itunes if you get hacked, instant fix!

DONT PANIC!

Reference for you: iPhone repair San Diego.

Chrome OS install, hints and tips & my first experience

Horay! Chrome OS is out at http://www.chromium.org/
You can preview it a bit here http://www.engadget.com/2009/11/19/googles-chrome-os-revealed/

First you need to go to install all the pre-requisites to compile it on your Linux system listed here http://code.google.com/p/chromium/wiki/LinuxBuildInstructionsPrerequisites – OR
If you run ubuntu just do this
wget http://src.chromium.org/svn/trunk/src/build/install-build-deps.sh
sh install-build-deps.sh (hit Y near the end when it wants to install binutils-gold ok?)

Download the tar.gz from here http://build.chromium.org/buildbot/archives/chromiumos-0.4.22.8.tar.gz
Or grab the git repo

sudo apt-get install git-core
mkdir [chromiumos]
cd [chromiumos]
gclient config http://src.chromium.org/git/chromiumos.git
gclient sync

Note: This process may appear to hang while downloading the kernel source. It may take anywhere up to 10-20 minutes before you get more feedback

Follow the build instructions here http://sites.google.com/a/chromium.org/dev/chromium-os/building-chromium-os/build-instructions.

Once its booted up and running, you will realize very quickly its just a bootable web browser. There’s nothing else installed or to install. No logout button, no shutdown, no nothing.
If you are cunning like me and want to play then nothing like a ctl+alt+t to bring up a terminal then use your sudo to get root access. (no tutorials on this, if you dont know the power of sudo you shouldn’t be messing with things!)

First thing i noticed was that the main root file system was mounted what seems to be read-only. This i can only presume is for speed (and it is blimmin fast!) amoung other things.

The home directory was mounted read-write however to allow for downloading etc.
Package management or editing system files is impossible without remounting the root filesystem as read-write
mount -o remount,rw /

It appears to be based on Ubuntu, and its so cut down nothing much is installed. However in saying this, its still 589MB on disk when installed, which considering the fact that its not actually running anything other than a web browser, that’s pretty shocking. I can get a full debian install with xwindows and basic apps in that size fairly easily. Perhaps they havn’t had time to strip more garbage from it yet?
I noticed when its running that its using 653MB of my 1GB RAM, and has no swap at all. I presume its entirely running in RAM which contributes to its speed.

Catch 22, ChromeOS uses your google user/pass to login, if you use this then it will automatically log you in to your google acct at the same time, however, Wireless networking doesn’t come up until you are logged in (WPA key) .

I decided I wanted to add another offline user, so i did. My default username/password was chronos/chronos and i didn’t want that (yes downloaded a precompiled image). I added myself a user, then added my user to the admin,video,etc groups identical to the main user. I was still not able to login using this user which sucked, so i copied the homedir over from the first user to the second.

Still no go, so i checked in /etc for hard coded user names and found a few
/etc/security/pam_mount.conf.xml had the homedir to be mounted hard coded into it
/etc/init.d/start_login.sh has export USER=firstusername
/etc/init.d/session_manager.sh has su firstusername -c “/etc/init.d/start_login.sh ${MCOOKIE}”
/etc/acpi/lid.sh has export HOME=/home/firstusername

I edited all these to point to the new username, also copied the firstusername to secondusername homedir, chown’d all the files and grep -r’d and changed all instances of username hard coding.

Whilst editing these files i noticed that the pam_mount.conf contained information for mounting the home directory as an encrypted area.
I rebooted and hoped like heck after editing it would all go well. I should mention here that I’m using my 701 EEE PC laptop here, its a great test bed for lots of things.

After reboot i was still unable to login as the new user, so i checked directories other than /etc and found /usr/lib/chomeos-cryptohome/common

At this point, im tired, its late on a sunday evening and i never quiet got it the other user going. Since i need that offline user account to login before my WPA key/WIFI works, i will pursue this one further, for now im heading to bed (may update post later)