Unduly Noted

Linux

iPhone Modem 3 (and helper app) for Jailbroken 3.0

by Andre on Jul.08, 2009, under Linux, Mac OS X, Windows Vista, Windows XP, iPhone/iPod

Iphone modem 3 just came out and it seems to be working great. No need to proxy anything (works similar to pdanet). For those of you who have problems with pdanet in 3.0 this is your answer. No disconnects so far. And you don’t even need the helper app.

Install iphonemodem3 by addition in cydia (make sure you uninstall pdanet or iphonemodem zsrelay first)
Create an adhoc network on your computer.
Connect to it with the iphone.
Start iphonemodem from the iphone.
Enjoy surfing. Pretty easy.

2 Comments more...

iPhoneModem zsrelay (tether iphone 3.0 to anything via wireless socks proxy)

by Andre on Jul.07, 2009, under Linux, Mac OS X, Mac OS X Server, Miscellaneous, Windows Server, Windows Vista, Windows XP, iPhone/iPod

So as of today pdanet and iphonemodem by addition still totally suck under iphone OS 3.0 (for both my 2G and 3G)
Of course like usual there is no email support for additions iphone modem (what’s new) and pdanet (une fabrics) says disconnects are reported by only a few in 3.0.
My solution is to go back to the roots, the beginning.

Enter the original iPhoneModem by zsrelay. This uses a modified version of srelay which was the old dirty original hack for tethering in 1.0.

(Jailbreak your device of course)

Step one is to remove pdanet or iphonemodem(addition) and even jay’s socks srelay if you have it.
In cydia search for zsrelay and install with all dependencies.
Reboot the iphone.

Create a wireless network in whatever (windows, ubuntu, mac os x)
i won’t explain this for each system but give that connection an ip of 192.168.1.2
Make the subnet 255.255.255.0 and router/gateway 192.168.1.1
You can dill in DNS with open DNS if you like - 208.67.222.222 and 208.67.220.220

Now back to the phone.
join the adhoc network you just setup.
click the arrow to the right of the network after joining and then click static.
Assign the following:
IP: 192.168.1.1
Subnet: 255.255.255.0
And again DNS with the above if you like.

Now go to your main setting page on the iphone and scroll down. You will see iphonemodem. Click it.
turn on all options (drains battery so i would recommend shutting off when not hooked to the wall or using)
Click advanced and turn on icon.
Exit out and make sure you can load a webpage still with safari on the iphone.

Go back to you computer and the easiest thing to do is download and install proxifier. (costs some dough but 30 day trial)
This will give you a systemwide socks so that any game or protocol will tunnel through it. And yes World of Warcraft or anything else.
After opening proxifier go to options menu and choose proxy options.
click add and type in 192.168.1.1 and port 1080.
Check the Socks v5 box and hit ok.
Now make sure in the proxy options that the check box next to 192.168.1.1 is checked and hit ok.
Lastly go to Options in proxifier and choose name resolution. set it to enable and hit ok.

Relaunch anything that uses the internet and you should be online. You always have to leave proxifier open when using this method. And typically launch it before anything else.

If you dont want to shell out money for proxifier you can individually set your apps to proxy, but this is limited to the app only and isn’t system wide.
In mac os x go to you airport settings (advanced) and click the proxies tab. Check socks proxy and set it to 192.168.1.1 and port 1080. Hit ok.
In firefox you have to set it in the actual preferences.

This works fairly well and at times seems snappier than pdanet.
Let me know how it works for you or if you have any questions.

8 Comments more...

Tether iPhone 3.0 to ubuntu/mac 9.04 via Bluetooth (No jailbreak required)

by Andre on Jun.18, 2009, under Linux, Mac OS X, iPhone/iPod

EDIT: Although I’m sure this would still work remember it is a few months old. You should be able to get the real 3.0 firmware from a google search and not have to download the gold master version. Same goes for the ATT carrier file, google it. The rest of the instructions should still work fine.

Let me start by saying this is on a macbook pro 3,1 but will work for anything else.
You will need iTunes period. So go find a friend with mac or windows.
Part of this guide is taken from the iphone3g-mods.com site.

First off let me tell you the limitations. I have only gotten this to work with Network Manager (not wcid). This means that wireless pretty much SUCKS for the macbook pro but will be fine for anything else that can use NM. So it’s a trade off. In my case I can be wired at work and tethered at home so I went for it.

The common method is to install a beta version of itunes 8.2 but thankfully a poster at the forums gave the following advice:
(Mac OS X Only) Shut down iTunes 8.2. Open the terminal and type the following and hit enter, this will prep itunes to deliver one of the  the new files:
defaults write com.apple.iTunes carrier-testing -bool TRUE
If you are on windows (all links) then download the beta version here. Read below for registration/password.

Download the iphone carrier file for USA AT&T here (you may have to right click save as).

UPDATE: - You should now be able to do this with the normal 3.0 from itunes/apple instead of the gold master version below…
You will need to download the 3.0 Gold Master Final for the iPhone firmware. Head over to the member section of iphone3g-mods.com (easy and fast registration). After registering and activating download the proper image for your phone here. The password for the download is in the forum, if you can’t find it email me and I will send it to you.

Hook your iphone to Mac OS X via USB. It will appear in iTunes. Click on it and you will see the information page. Hold down the “Option” key and click “Update” and you will be prompted for the firmware image. Point it to the version you just downloaded (*.ipsw) and sit back while it installs.

After it is all set it will remount in iTunes and you will see the familiar home screen on the iPhone. Click back on the iphone icon in iTunes and “Option” click the Update button again. This time select the ATT carrier file (.ipcc). If you can’t select the file then you didn’t enter the command correctly in the terminal from above, so just go ahead and install the beta version. It will only take a few seconds to install this .ipcc file and it won’t have a confirmation.

If you are running a mac you are now done. Just go to Settings on the iPhone, General, Network and you will see Internet Tethering. Turn it on. If you wan’t to just use use the USB open network preferences on the mac and a new port will appear. Hit ok or apply and you are good to go. You can also turn on bluetooth on the phone and pair it via the icon in the menu bar. Open network settings again on the mac and you will see the PAN (bluetooth) port appear. Fairly straight forward on the mac.

Ubuntu:
Why oh why does apple hardware suck so hard with linux. You will get constant disconnects if your phone is more than a few feet away from the computer. But alas, it is still faster than pdanet or iphonemodem2.
If you are not on a mac congratulations, you have had fewer headaches.
Open the terminal and type:
sudo apt-get install blueman bluez-compat

This will remove wcid which hopefully isn’t a problem for most of you.
It will ask you to restart, please do.

Once Ubuntu is back up click on your bluetooth icon in the upper right (which is now managed by blueman)
IMPORTANT: Right click on the bluetooth icon and choose local services. Make sure to click the radio box that says “Network manager” instead of “blueman” under the network pane. This will allow Network Manager to take over the controlling of your connection (which is good). REBOOT AFTER THIS STEP!
Go to the bluetooth settings in your iphone (Settings > General > Bluetooth) and make sure they are on.
Hit the search button in blueman and you should see your iphone after a few seconds.
WARNING: This is where it gets flaky on the macbook pro. Best results I have has is to highlight the phone in blueman and hit “Bond”
Choose to auto generate a pass on the next option. Next. Now wait for the iPhone to ask you to type in the passphrase. Type in the 4 digit one that blueman gives you. VERY IMPORTANT. While they are joining eachother keep you eye on the computer. It will ask you if you always want to trust the iPhone (device name). Hit Always or else you will have trouble.
Always initiate the connection from the iPhone. In the bluetooth settings on the iphone you will now see your computer name listed and the words “not conencted” next to it. Click it. Wait a few and it will hopefully say connected. Look back to blueman and you will now see status bars on the iphone. Right click on your iphone in blueman. Choose “Setup”. Network access point is click by default so just hit “Next”.

Now head over to Network Manager and you should see “Auto benp0″. Click it to connect and give it a few to generate an IP. DONE enjoy surfing the internet through your data plan without jailbreaking. I have noticed quite a few speed gains over pdanet. Also, i noticed I got better results when i used openDNS’s servers (208.67.220.220 and 208.67.222.222).

If you have done everything correctly and Network Manager won’t take over the connection of you can see it and it says “not managed” or something of the sort you need to check out the following:
Open terminal and type: sudo gedit /etc/network/interfaces
see if you have bnep0 located there. if you do, comment out or delete that line. and reboot your machine.

This was late at night so please let me know if there are any crazy errors!

21 Comments more...

Pdanet and Ubuntu 9.04 (Jaunty)

by Andre on May.14, 2009, under Linux, iPhone/iPod

If you managed to get WICD running with your macbook pro in ubuntu  you will notice how it is still pretty flaky. Especially when working with adhoc networks. Easy fix for Pdanet. Create a network with your laptop via WICD. It will default to My_Wireless_Network with a 169 ip on channel 3. This is fine. Now go to your iPhone and connect to that network, wait for IP to populate and then start up pdanet (you will notice it says waiting for wifi on the pdanet screen, this is ok). Back to the laptop disconnect from that adhoc network via the WICD control panel (WICD setup). Now close WICD or hit refresh. You should now see your new network in the list. Connect to it and after a few seconds pdanet on the iPhone will go to its familiar screen and your laptop will say connected. Enjoy.

Leave a Comment more...

Ubuntu 9.04 on Macbook Pro

by Andre on Apr.25, 2009, under Linux, Mac OS X

What a great upgrade. Ubuntu just keeps getting easier and easier for the everyday user. This is from a clean install onto a 2.4ghz 17″ Macbook Pro with Nvidia8600M GT.

VIDEO:
After intalling you will notice you can’t enable visual effects (compiz-fusion). Just go to System on the top menu, Administration, Hardware Drivers. It will search for drivers. If it doesn’t list your Nvidia Card reboot and try again. Make sure you have an active internet connection. Repeat the above process and it should now list 2 drivers. I chose the top one (version 180) by clicking the radio button to the left of it (turns it green). It will now install. It will then tell you to reboot.

SOUND/AUDIO:
Sound doesn’t work out of te box.
type the following into the terminal:
sudo gedit /etc/modprobe.d/alsa-base.conf

copy the line below and paste it at the bottom of the document that opens. (the end of the following code can change depending on your laptop, just Google the term)
options snd_hda_intel model=mbp3

Hit the save button and reboot

INTERNET/WIRELESS
Very flaky, disconnects all the time. Makes updating take forever. Easy Fix

Before you do the below make sure you type the following in the terminal:
sudo apt-get update
sudo apt-get upgrade
Open terminal and type the following 2 lines hitting return after each. (Credit to Alex for this one)

sudo apt-get install linux-backports-modules-jaunty
sudo apt-get install wicd

You will get an error saying you are missing something at the end of the install (this is normal).
Reboot and you will now see a new Wifi config tool in the upper right. Give it a go. To get this working on the iphone with pdanet or iphone modem shoot me an email, i’m too tired to explain it in this post. Open the wifi utility by clicking on it in the upper left. Go to preferences and then uncheck the box that says “Automatically reconnect on connection lost”. (You may not need to but since I am running an Ad-Hoc network it was really messing it up).

VLC and Encrypted DVD playback:
Just go to http://videolan.org and download/install the .deb package. You will notice that it still won’t play commercial DVD’s.
for other codecs you may as well run the following in the terminal:
sudo apt-get install ubuntu-restricted-extras
Open the terminal and type the following and hit return.
##OLD###  —>sudo apt-get install libdvdcss2
New Edit: follow instructions here

DONE. reboot if it is flaky.
Also, the latest .deb of handbrake (0.9.3) works great with 9.04. Just head on over and download it.

DISPLAY BACKLIGHT:
Go to System, Preferences, Power Management. Now click on the far right tab General. Uncheck ‘Use ambient light to adjust LCD brightness’.

HFS+ READ WRITE:
In 9.04 you can read some of the stuff but not all of it. This is because Ubuntu does not look for users below 1000, and your mac is probably 501. Right click on your mounted OS X drive on the desktop and click properties, now click the far right tab (I think its volume). Look for that number on top (should be 501). Now open the terminal and type the following hitting return after each. (thanks to changuito)

sudo groupmod -g 501 youruserid
sudo usermod -g 501 youruserid
sudo usermod -u 501 youruserid

Warning, You will no longer see your user listed at login and will have to manually type your user name/pass to login. This is a temp fix that I will update soon. If you want read write acces to the HFS+ partition  you ned to disable journaling on the mac side. Reboot into OSX and type the following into the terminal and hit enter (case sensetive):
sudo disableJournal /

I personally only need read acccess and don’t like the thought of disableing journaling. Mac OSX may take awhile to boot the next time after disableing. You can ways reneable by doing the following in the terminal in mac os X.
sudo enableJournal /

NOTES:
I need to find a better trackpad driver. I always have “Ignore Accidental Input” turned off in Mac OS 10.5 and it feels like it is on in Ubuntu. Just not as senstive.

FYI: My laptop is a MBP 3,1 . To determine yours type this into the terminal in ubuntu:
sudo dmidecode -s system-product-name

I will add to this post as I continue to run Ubuntu 9.04 on my MBP.

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Great Links!

Where I spend a lot of my surfing time