Categories
Geeky/Programming

Mac OSX 10.5 Leopard – Enable Root Access

Ok, maybe I am a real newb on Mac OSX, but I didn’t know this one. Took me some fooling around in the OS to get it working. A little background. I am getting into some iPhone development. I want to dig into the Native app dev, and using SDK.

Using the Native app stuff, I wanted to make some directories in /usr/local/ , but was getting permission denied errors.. ok.., its UNIX, lets SU… but what is the root password? hmmm..

Figured this out.. go to Application->Utilities->Directory Utility

Once that is open, go to the Edit menu, Enable Root User. You can then set a password up.

Now back in terminal, run “su” and you can put in the root password you just set up, now you have rights!

Categories
Product Reviews

Can't Play A Video? Try VLC

One application that I always install when I set up a new machine, is VLC – http://www.videolan.org/vlc/

What is nice, is that it will play just about anything. Video, Audio, whatever. It will play AVI’s, DVDs, Mp3s, FLV’s, and any other 3 letter acronym you can think of.

You can set it to be default for all these types, or just use it when you need it. It is open source, and free. Other apps are built on VLC as well (Miro for one)

What is nice, is that it is cross platform, so I can use it on Windows, Mac, and Linux!

When in doubt, install VLC 🙂

Categories
Uncategorized

links for 2008-04-08

Categories
Blogging

Upgraded to WordPress 2.5

I decided to upgrade to WordPress 2.5 this evening. Worked like a charm. Seems like everything is working fine. I really like the “automatic” plugin upgrades!!

wordpress-2.5_upgrade

Technorati Tags: ,,,
Categories
Uncategorized

links for 2008-04-06

Categories
Geeky/Programming

HowTo: Hack Your PS3: Installing Yellow Dog Linux 6.0, and Actually Getting It To Work!

So, a couple of weeks ago, I bought a PS3, for the Blu-Ray disc capabilities. Since HD-DVD has died and I can get Blu-Ray discs through Netflix, and since the PS3 can be updated with new features, I figured I would give it a try. (The 100 dollar EB games credit I had made the decision easier as well)

After playing around with the PS3 (I bought one game disc ; Uncharted, Drakes Adventures, and one Online game; Pain) I figured it would be good to hack around and install Linux on it. With the PS3, Sony makes it really easy to install Linux.

linux_on_ps3

I decided to go with Yellow Dog Linux (YDL), version 6.0 (the latest). Other distros will work, but this is the main one they support – you can download it here – http://www.terrasoftsolutions.com/support/downloads/

After getting the 3.7 GB file, which took forever, I burnt the ISO to DVD using Active@ ISO-Burner (a sweet ISO burner BTW). Ok, all set to install. A few things to consider

1) You need a USB keyboard and mouse

2) You need a HDTV for this to work

In the PS3, go to settings, system settings, and then format utility. You can format a 10 GB partition for “Other OS”.  Restart the PS3

Then put in the Linux DVD, go back to settings, system settings, Install Other OS. YDL said /ps3/otheros/otheros.bld  … so, hit start. Then it will tell you how to get to the other OS.

Go then to “Default System” menu and choose Other OS, and then restart..

It should restart into Linux. It will be at a prompt, “kboot:” – hit enter, it should get into setup, you can follow the onscreen instructions from there. Everything is pretty much default and hitting yes to any prompts, a basic install. You set up a root password, etc. Reboot after it is done, it will go through some final setup steps (checking sound, etc), after that, you should be able to login.

Logging in, first thing I wanted to do was get networking set up. I am not using the wired connection, rather I am using wireless, with WPA. Here is where the fun starts, and why I hate Linux.

YDL doesn’t support WPA out of the box, isn’t that awesome? The wifi was there in network config, etc, and I could put in settings, but it would never connect. I do love the error it gives you as well… “Check Cable?” umm… well, I would but Linux, remember we are configuring a Wi-Fi Connection? No Cable?

Anyway’s.. debacle time.. found this after some searching – http://dachaac.blogspot.com/2007/08/guide-to-get-wpa-psk-working-on-ps3-ydl.html

This works… I just connected to a “linksys” for 2 seconds to download the RPM (or you can just put it on a flash drive as well), and then disconnected. Going through that tutorial though,there was one thing I was getting hung up on. The networking commands were not working for me. I was logged in a regular user, so I tried “su” to switch to root. Still no dice. I had to logout, and login as root, and run through that tutorial (unpacking the RPM with –force works with “su”).

Awesome, my networking is working and I am using WPA… yesssss! Now, just check a few things, email, reader, Facebook, cool. How about YouTube… wait… no flash. Check Adobe’s site.. no flash for PPC architecture.. WTF? So no flash at this point…which stinks..

Whew, all the Linux hacking is making me thirsty.. ok, lets boot back to the PS3 OS…wait.. how?

After doing some more digging, there should be a command “boot-game-os” you can run from the terminal and it should reboot. Wait, trying to run that command, it says “command not found”… another WTF…

After some more digging, it turns out the command resides in the “/sbin” directory, which users don’t have access to… (even root? man…)

So we need to make a sym-link. You can do this as a regular user, but you need to “su”, then run

cd /bin

ln -s /sbin/boot-game-os boot-game-os

Then, you can just go to the “start” menu in TDL, and there is an option then to “Boot Game OS” – works like a charm, reboot and you are back to the PS3

Categories
Geeky/Programming

iPhone: Firmware 1.1.4 – Mobile Safari – Login/Password won't save – Cookie Permission Issue

When I first picked up my iPhone, I unlocked/jailbroke using SSH (yikes!), and then after a few firmware updates and revirginzings, there were tools. I have been using Independence (on my Mac) lately, and then getting Installer.app on there over SSH, and then unlocking, etc from there.

With 1.1.4 I decided to try the new kid on the block, Ziphone. It worked, flashed, activated, jailbroke, unlocked. Now with the new Pwnage Tool that was released today, I will probably use that from now on, but looking back to the first firmware OTB to now, I have probably used 5 different methods, all resulting in the same thing, and unlocked iPhone.

Now, I after putting 1.1.4 on, I noticed my cookies weren’t working. Or in other words, logins/passwords weren’t saving in Mobile Safari. Basically, I had to put in my Facebook, Google Reader, etc login/password every time I hit the site – which really sucks.

My first guess is.. Cookie folder can’t be written to for some reason. I did some research, and yes, people with 1.1.4 unlocked or not are having this issue. Seems like a random issue with 1.1.4 on all iPhones.

Well, you can wait for the next firmware from Apple, try downgrading back to 1.1.3 (no way!) or , just fix it yourself.

What you need to do is either set the owner on the Cookies folders to “mobile” instead of “root”,

chown mobile /var/mobile/Library/Cookies/
chown mobile /var/mobile/Library/Cookies/Cookies.plist

or you need to allow write/modify access to the Cookies to all users.

chmod 777 /var/mobile/Library/Cookies
chmod 666 /var/mobile/Library/Cookies/Cookies.plist

 

What I did was change the owner to “mobile”. Your phone must be jailbroken, and have SSH installed. You can use Putty to SSH to your phone and do the fix. Here is the screencast:

You can tell that it works if you the go to a site, like Facebook, login, then in the Cookies directory on your phone, do a

ls -lat

you can see the last modified time and it should be updated to the time you just logged into your site.

Headache… resolved!

Categories
Ramblings

Discovery Channel has Jumped the Shark

JumpTheShark 

The Discovery Channel used to be the place to go to just “learn” instead of watching TV. Between the Discovery Channel and History Channel you could just learn all day and night. Well, it seems the Discovery Channel has just become the place for continuous runs of the same 4 or 5 shows.

MythBusters – this show was good for the first 10 or so episodes, I would say after that this show itself Jumped the Shark

How It’s Made – a show they pulled from the Science Channel – cool show, but annoying after a while

Cash Cab – half assed attempt at a reality type show. Really, do we need to watch people in a cab answer trivia questions?

Other Shows (Deadliest Catch, Mega Builders, It Takes a Thief, etc)

What happened to the actual substance of the Discovery Channel? Most of the good shows are now on the Science Channel but that is heading towards being an “MTV2” to the Discovery Channel.

Can we get a channel that has unique programming 24 hours a day, but still intelligent and interesting? Not sure if we can these days…

Note: if you don’t know what “Jumped the Shark” is, it refers to a point in something’s life where it has outlasted its usefulness. It comes from the show “Happy Days” where the Fonz jumped sharks on water ski’s in his leather jacket. At that point, it was like “WTF are they still doing making shows here, the best they can come up with is this?”

Categories
Life Random

Facebook Ads – Relevant and Ready

Yesterday, Emily decided to pull a April Fools joke – that we are engaged on Facebook, to scare her mom, friends (and me , hehe)

Well one second after I confirmed it, the ad in the Facebook sidebar changed..usually it was about coding or video games, and now?

april_fools_ad image

 

Nice…

Technorati Tags: ,,
Categories
Geeky/Programming

Updated to Leopard

Yesterday I picked up Apple’s latest OS, Leopard OS X 10.5. What is really cool is the boot camp feature. I am now dual booting Windows Vista and OSX on my little 13 inch MacBook. If I had the cash I would have gotten a MacBook pro, but it is just so expensive. I have 37 GB partitions for each OS, so not huge, but it works.

I do have a USB hard drive (250) that I use for OSX, and then I have one for Windows, so it is all good. Installing OSX was easy, few clicks, done. Did the updates, etc. Then ran Boot Camp assistant, rebooted, installed Vista, put in OSX DVD, installed the rest of the drivers needed, and then did the Windows updates.

Pretty slick setup. I might get some more RAM for this laptop, since it only has 1 GB, but it is performing OK.

I don’t think I will ever buy any new laptop that isn’t a MacBook (preferably a MacBook Pro). There just isn’t any other way to go IMHO.