Spending a few days at the in-laws, I’ve lugged along the PS3 so that I can continue my attempts at hacking on a DirectFB driver. Unfortunately, I’d left it configured as it had been on my home network – using wired networking.
There’s no way to run network cables around this house without causing massive inconvenience, and there’s actually no cables to run. Let’s just configure this thing for wireless networking. Except I don’t have a USB keyboard.
Buggr.
Ok, what do we have? A short piece of CAT5 that connects a VoIP box to the wireless router. That’s a start. I can boot it on the wired network, connect remotely, find the IP via the router’s DHCP report (fortunately that has default login credentials), ssh in, make the changes and get on with whatever it was I was going to do.
So, I plug it in (unplugging the VoIP box), boot the PS3, look up the IP, enter username and password and then fail to be allowed access. What? Oh, I’m trying to log into the dropbear sshd that comes with petitboot – I’ve not made it past the boot screen because I didn’t specify a timeout for picking a boot option.
Grr.
Ok. Next option? Is the CF card that I was booting from recently still in the CF slot? *opens door* Aha! It is! Not of immediate help, because it doesn’t have a default option either, but if I can find a Linux machine to plug this into I can set one…
Grab card reader from camera bag, reboot laptop (wifi adapter for laptop is flakey under Linux atm, not sure why), insert card, mount device, add missing boot lines to kboot.conf (which are, I hope, correct)
default=ouros timeout=5
save, unmount, CF card into PS3, boot and wait…. (five seconds seems like a long time).
And it boots! ssh login (from putty on restarted laptop), mount /boot, modify kboot.conf in the same way, shutdown, remove card, boot, wait . . . . .
Huzzah! Problem solved. Now for some hackery :D
Oh, wait, that wasn’t the problem. *sigh*. The PS3 still isn’t speaking wifi.
Boot PS3 (after shutting it down expecting to be able to relocate it further away than the short blue tether that I’d been using), ssh in again and make changes to /etc/network/interfaces.
I’m not normally a wifi user nor a debian user so this is where it gets a little tricky. The network I’m trying to connect to is WEP, and the debian wiki doesn’t want to tell me how to set that up in case I hurt myself. Fine. A little more googling, and I find what appears to be a suitable incantation :
wireless_essid in_laws wireless_key manycharactersthataddlittlesecurity
Good. So I uncomment the wlan0 section and add those two lines.
Playing with networking configs over ssh is where things get fun.
/etc/init.d/networking restart
Did it work? Actually, I think it did – eth0 re-DHCPs, and then wlan0 does, b0rking (it would seem) access via eth0.
Bah.
Reboot. The same thing happens – eth0 comes up ok, and then wlan0 confuses the matter (the PS3’s two interfaces share a lot in common, so you can’t configure them both like this without hassle. It would seem)
Ok, so what do I have now? A machine that won’t boot to having a functional network connection, no keyboard, and I can’t boot it back up from the CF (I think) because the internal HDD is set with a timeout and (I expect) will take precedence over the config on the CF because the HDD was the last used boot device.
Expletive.
Wait, what happens if I unplug the CAT5? Reboot, wait. Nothing. Nothing. No response to pings. Nothing. Nothing. Ping! DHCP times out on eth0 and then wlan0 starts up correctly. Diggity! So all appears to be (sufficiently) functional for now.
Why was I doing this again?
Ain’t jumpin’ through hoops fun! :-)
The lady just loves a good yeolde terminal bashing session before we can watch TV of a night. Yes, I need to get myself a test environment :-/
Both you and MattI write well in your blogs. I probably would too, but I’m WAY too lazy ;-)
Thanks for the comment!
I’ve been trying to reduce the number of ways I can break the home entertainment experience – with mixed success :P