Skip to main content

Using NetworkManager and a WiFi enabled phone as your laptop's remote

Ok, I need a presentation clicker. But too lazy to find cheap ones out there. I have a Thinkpad R51 with Intel IPW2100 wireless card with no bluetooth, a Sony Ericsson P990i, and a Fedora installation. So, what I can do with them to get a presentation clicker?.

A little googling led me to this nice little tool : AnyRemote. It provides a Java client and a server tool which allows the user to control of various Linux apps using a phone with bluetooth or WiFi support (theres also infrared support, but i dont think it worth it due to the limitation of IR and requires more setup).

AnyRemote is in Fedora repository , so, Fedora users can just install it by yum install anyremote anyremote-data.

Now, I don't have a bluetooth dongle, neither internal bluetooth support, so my only option is through WiFi. Good thing in Fedora, the NetworkManager can create an AdHoc Internet Connection Sharing. Which basically gives me a quick way to make my phone to connect to my laptop (and the internet - with cheaper rate).

Creating an AP using NM is easy, watch the demo here.

After the AdHoc network is up and running, I hook my phone to the network and grab the AnyRemote Java client from the download site, install and launch it.

Now I have AnyRemote server installed in my machine, AnyRemote client installed in my phone, and the phone is connected to the WiFi network, time to test my 'brand new' remote.

I want to control an OpenOffice.org Impress presentation, therefore, I launch AnyRemote with the ooimpress.cfg configuration, listening at port 5050.

anyremote -s socket:5050 \
-f /usr/share/anyremote/cfg-data/Server-mode/ooimpress.cfg


Then, using ifconfig, I took the IP of my laptop in the AdHoc network, and from the AnyRemote client (in my phone), I add the IP and port in, and connect to it (sorry, no pics, no idea how to take the picture of the phone, considering my only camera is the phone itself :P ), and PROFIT!!.

AnyRemote can also control other stuff such as Mplayer, Rhythmbox, xmms, amarok, evince, and lots more. You can also write your own config to control your own apps!.

Perhaps some of you might find this little guide useful, so, enjoy yourself :D
Post a Comment

Popular posts from this blog

Adding simple popup to Plone frontpage

Here is a little guide for those who want to add a simple popup to the Plone frontpage for some purpose (eg: announcements, advertisements, etc).

Create a basic html file containing the content you want to appear in the popup. Upload it into $PLONE_SITE/portal_skins/custom (as Page Template) and for the sake of this example, name it popup.html

Afterward, create a Javascript file with your Pop-Up loader script. For example , this script:


function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=220,height=400,scrollbars=no');
return false;
};

popup('popup.html', 'My Popup');


Also upload this file into $PLONE_SITE/portal_skins/custom (as Page Template too). For this example, name it as popup.js

Afterward, in $PLONE_SITE/portal_javascripts , add popup.js as a new script into portal_javascripts…

Consolidated community site infrastructure on Plone

In Inigo, we believe in helping out local FOSS communities and help them grow. We help out in community events where we can, present FOSS talks, and provide some platforms for local communities to grow. One of such platform is our consolidated community site infrastructure on Plone.

The system/infra and its components was originally developed for the Fedora Malaysia website, while keeping in mind to keep it generic enough so that other communities could use the same components for their own community sites. The infra is already at a usable state, and we can add new sites easily with just a few clicks.

Features in this consolidated infra are:
Document/Content management (Plone built-in)Calendar system (powered by solgema.fullcalendar addon)Conference/BarCamp system (powered by collective.conference addon, which was developed for FUDCon Kuala Lumpur 2012)Blog (powered by Products.Scrawl)Simple yet powerful theming engine (powered by plone.app.theming/ Diazo) - Check out Diazo, you'l…

HOWTO: Mirroring Yum repositories using Yum-Utils

As promised before in one of my previous post, a Howto on how to mirror and manage yum repositories using some of the utilities in yum-utils.

The first step is, well, of course, is to get yum-utils from fedora repository
yum install yum-utils

Reposync
Reposync is a utility for mirroring and synchronizing local copy of a yum/rpmmetadata repository.

This utility is very useful if you wanted to make a yum repository mirror. Before this, I used "wget -R -np -N" but this method is a little bit tedious and it doesnt work with repos that didn't use directory listing. Plus, it also download together additional site stuff that I don't need/want and it doesn't verify checksum of the downloaded packages.

Mirroring a repo using this utility is easy, just execute this command
reposync -r <repoid> -a <arch> -n
and the repo will be mirrored in a folder with the same name of the repoid in the directory you executed the command. Eg: you executed the command in /mnt/storage/mi…