iPhone/iPod as a remote
#1
Image
(I'll try getting a better picture tomorrow)

Needed:
  1. A hacked iPhone or iPod Touch
[LIST=2]
Wireless router
[/LIST]
[LIST=3]
XBMC
[/LIST]

Log in to your XBMC pc. For LiveUSB users that would mean pressing CTRL+ALT+F2. Write this in:
Code:
(T: LiveXBMC)xbmc@LiveXBMC:~$ [color=red]sudo apt-get install x11vnc[/color]
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  libavahi-client3 libavahi-common-data libavahi-common3 libvncserver0
Suggested packages:
  libvncserver0-dbg
The following NEW packages will be installed:
  libavahi-client3 libavahi-common-data libavahi-common3 libvncserver0 x11vnc
0 upgraded, 5 newly installed, 0 to remove and 29 not upgraded.
Need to get 928kB/1030kB of archives.
After this operation, 2351kB of additional disk space will be used.
Do you want to continue [Y/n]? [color=red]Y[/color]
Get:1 http://archive.ubuntu.com hardy/main libvncserver0 0.9.3.dfsg.1-1ubuntu1 [163kB]
Get:2 http://archive.ubuntu.com hardy/universe x11vnc 0.9.3.dfsg.1-1ubuntu1 [765kB]
Fetched 928kB in 0s (1471kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "nb_NO.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Selecting previously deselected package libavahi-common-data.
(Reading database ... 18150 files and directories currently installed.)
Unpacking libavahi-common-data (from .../libavahi-common-data_0.6.22-2ubuntu4_i386.deb) ...
Selecting previously deselected package libavahi-common3.
Unpacking libavahi-common3 (from .../libavahi-common3_0.6.22-2ubuntu4_i386.deb) ...
Selecting previously deselected package libavahi-client3.
Unpacking libavahi-client3 (from .../libavahi-client3_0.6.22-2ubuntu4_i386.deb) ...
Selecting previously deselected package libvncserver0.
Unpacking libvncserver0 (from .../libvncserver0_0.9.3.dfsg.1-1ubuntu1_i386.deb) ...
Selecting previously deselected package x11vnc.
Unpacking x11vnc (from .../x11vnc_0.9.3.dfsg.1-1ubuntu1_i386.deb) ...
Setting up libavahi-common-data (0.6.22-2ubuntu4) ...
Setting up libavahi-common3 (0.6.22-2ubuntu4) ...

Setting up libavahi-client3 (0.6.22-2ubuntu4) ...

Setting up libvncserver0 (0.9.3.dfsg.1-1ubuntu1) ...

Setting up x11vnc (0.9.3.dfsg.1-1ubuntu1) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place

Now we'll have to add a password. Enter your own password when asked for.
Code:
(T: LiveXBMC)xbmc@LiveXBMC:~$ [color=red]x11vnc -storepasswd[/color]
Enter VNC password:
Verify password:    
Write password to /home/xbmc/.vnc/passwd?  [y]/n y
Password written to: /home/xbmc/.vnc/passwd

Now open a screen session. (If you dont have it; sudo apt-get install screen)
Code:
(T: LiveXBMC)xbmc@LiveXBMC:~$ [color=red]screen -S vnc[/color]

Continue
Code:
(T: LiveXBMC)xbmc@LiveXBMC:~$ [color=red]x11vnc -usepw -forever[/color]

Our job on the pc is now done. Detach with CTRL+A+D. If you ever want to go back write screen -x vnc. Now on to the iPhone.

Pick up your iPhone. Go to Installer and download Touchpad Pro (Installer -> Utilities -> TouchPad Pro). Install it. Go into the program and select the "+" sign. Add the info for your PC. The port is 5900 and the IP can be found if you write ifconfig on your XBMC.

Now have fun!

I did this install on XBMC LiveUSB by l.capriotti. I did not get the mouse to work. I guess that has something to do with the packages selected. Although I would never use the mouse as effective as the remote keyboard. I tried it on a normal Ubuntu version and the mouse worked perfectly. Vino (default vnc for Ubuntu) also works with TouchPad Pro.
Reply
#2
Interesting! On the 11th I hope to own one of these puppies! Big Grin Hopefully to be hacked shortly after. I am running VNC on my install now but find that the screen no longer updates when using UltraVNC to control things - XBMC shows a black screen. That you can do this with the package on the iPhone is awesome though!
Openelec Gotham, MCE remote(s), Intel i3 NUC, DVDs fed from unRAID cataloged by DVD Profiler. HD-DVD encoded with Handbrake to x.264. Yamaha receiver(s)
Reply
#3
Interesting method!

I too have considered the potential for the iphone as a remote - I was planning on using the Event server within XBMC.
I just got sidetracked with another project before anything useful came out of it :/

I will certainly try this out though!
Reply

Logout Mark Read Team Forum Stats Members Help
iPhone/iPod as a remote0