Android -> Linux Desktop Remote Control (better documentation than official)

I just went ahead and used URemoteDesktop to turn my Android phone into a remote control for when I am watching movies or listening to music on my computer, and don’t have immediate access to my keyboard.


(Image Credit: From here, published under this license.)

The app I used and its Linux support is good, but the official English documentation is not that great.Β  Also, much of the website is in Spanish (something I can not read!). The official English documentation works if one is already savvy enough to understand it all, but still leaves the user having to type numerous terminal commands to get it going.

One advantage of this app over others, in my opinion, is that it doesn’t try to be smart and tailor itself to specific desktop software. It sends generic play, volume up, etc, commands and leaves it to your computer to interpret. It seems to work everywhere that the identical buttons on my keyboard work. I like that, because it doesn’t place barriers between me and trying new software out.

Hopefully these instructions will simplify the process, and require only one terminal command on your computer. It will even tell you your current “Host IP Address” needed by the Android phone. I hope these directions are basic enough to be accessible to all – if not, please let me know what I need to clarify.

These directions are for Ubuntu. If you aren’t using Ubuntu, you probably already know how to translate the directions into your distribution’s lingo. If you aren’t using gnome, you probably know how to translate directions into gnome.

Install Instructions:

1 ) Install the app on your phone. You can search the market for “URemoteDesktop” on your phone, or point the barcode scanner here:

2 ) Download the needed .zip file from here. That is the desktop server that talks to the app on your phone. Double click on that .zip, and extract it to your home folder so that it is at /home/YOURUSERNAME/URemoteDesktop_Server.

3 ) Install the xautomation and curl packages, needed for the server to work: sudo apt-get install xautomation curl

4 ) Go to places -> Home Folder -> URemoteDesktop_Server

5 ) Right click on launch.sh -> Properties -> Permissions -> Verify that “Execute” is checked next to “Owner”. Do the same process with vd.sh.

6 ) Type this in a terminal: gedit ~/.bashrc

6 ) Copy and paste this line of code at the end of .bashrc, replacing ‘whatever’ with whatever you want (I used ‘amote’), but leaving the rest the same:

alias whatever='echo My IP is && curl http://www.whatismyip.com/automation/n09230945.asp && echo && cd ~/URemoteDesktop_Server && ./launch.sh

7 ) Save and exit.

8 ) CLOSE THE TERMINAL, and you are done. If you leave the terminal open, you aren’t done yet.

Use Instructions:

1 ) Open a terminal (you did close it when you were done installing, right?).

2 ) Type ‘whatever‘ or ‘amote’ and hit enter.

3 ) On the next line in the terminal, it will tell you your IP address.

4 ) Turn your phone’s wifi connection on, connect to your home wireless network. Start the app on your phone.

5 ) Put the IP Address from step 3 into the app.

6 ) Works!

Advertisements
Android -> Linux Desktop Remote Control (better documentation than official)

5 thoughts on “Android -> Linux Desktop Remote Control (better documentation than official)

  1. πŸ™‚
    Love the manual.

    BTW is difficult for me to make it because I dont speak english.
    Making some changes in the code (performance), soon to come a open sourced version.

  2. I would love to see this open sourced so we could add our own buttons and configurations. My IR remote fails with linux as lirc is a huge piece of steaming pile of code, and this fits the bill if I could just use my phone. Unfortunately, there aren’t enough controls to do what I need! If anything, having a few user-programmable buttons (ie, button 1 = CTRL-SHIFT-Z), etc, would make this huge.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s