Here’s something obvious (and I’m sure it has been discussed before, I just can’t find the link right now), but it might be helpful if you haven’t played around with SSH much yet, and your Wi-Fi Hotspot isn’t working (the case for me right now). The goal is to get an internet connection over your N9/N950 from a PC (tested with Linux, expected to work with OS X and probably also works on Windows – on Windows you might need something like PuTTY).
- Enable developer mode on your device
- Connect your device to your computer via USB
- Select “SDK mode” when asked for the USB connection type
- Use the SDK connection utility, and select USB connection
- Note the password displayed in the “Connectivity Details” screen
- On your computer, use “ssh -D 9898 developer@192.168.2.15″
- Accept the host key question, and enter the password from step 5
- You should be greeted by a Busybox prompt “/home/developer $” – leave that open in the terminal window in the background
- At this point, a SOCKS proxy server is running on port 9898, and you can use it in any applications supporting a SOCKS proxy (there are even utilities like socksify(1) (Debian package: dante-client) that make generic network applications work through a SOCKS proxy)
- To use it in Firefox, go to Edit – Preferences – Advanced – Network – Settings…, then choose “Manual proxy configuration” and set “SOCKS Host:” to localhost and port to 9898 (be sure to disable the proxy again when you want to browse via a normal Wi-Fi/Ethernet connection)
Instead of doing steps 4 and 5, you can set up a permanent password for your “user” account on the N9, and even set up a SSH key on the N9 to avoid having to enter the password. You can make step 6 simpler by adding an entry to your ~/.ssh/config file (on your host) – see ssh_config(5) for details:
Host n9proxy
HostName 192.168.2.15
User developer
DynamicForward 9898
After that, a “ssh n9proxy” (possibly followed by the developer password) is all you need to set up the proxy. This method is arguably easier (and definitely safer) than using the Wi-Fi hotspot, and instead of using up battery on your N9, it gets charged via the USB port while you are using it.
By the way: You will have to manually connect your N9 to your mobile internet connection, this won’t happen automatically.
