Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Ubuntu box which runs XBMC, which crashes occasionally. Since I have no keyboard connected,I have to SSH in, kill xinit, then restart it. I was wondering if there's an elegant way of doing this from my Android tablet, so I don't have to go to my desktop PC.

I've used ConnectBot and can log in, but typing is laborious, even using the edit keys to scroll back up through the buffer. It seems as though it should be possible to script this so that I can execute a shortcut, or at least select a predefined script to be executed.

This would seem to have plenty of applications, and there could be a site of scripts - restart webserver, reboot, email logs etc

share|improve this question
Sounds like you need a better (virtual) keyboard. – Michael Hampton Oct 16 '12 at 17:37
I use Swype and it's great, but for something that's a repetitive task that never changes it seems silly to type in the commands each time – melat0nin Oct 16 '12 at 17:49

Coversal might be the application you are looking for:

a universal remote control for Android which supports wide range of protocols and applications such as UPnP, XBMC, VLC, MPlayer, etc

Apart from the protocols mentioned above, Coversal can be set to use custom commands over SSH. Its GUI is designed specifically for media applications, but you can bind each button provided to any function you want.

Install the "SSH Custom" plugin for Coversal, using its integrated Plugin Manager.

Plugin Manger

Create a new control set, using the SSH plugin.

:New Control Set screen

Long press on your control set, press setting and add the desired command list. You may use existing names (start_playback, stop, etc) or add new ones with Add cmd. You may enter any shell command here.

Command list editor:

Switch to the Keymap tab and assign your commands to the desired buttons. Add appropriate captions where possible.

Keymap editor

Switch back to the application's main screen, tap your control set and swipe right to the remote to use it.

Remote control screen

share|improve this answer
This looks like a potentially interesting solution, I'll take a look at it. Thanks for the comprehensive answer! – melat0nin Oct 17 '12 at 9:49

You could try this: it's a fast and easy solution.

If you want to program just use a webserver and create some php scripts which you can call from a mobile webpage created with jquery for easy mobile access.

share|improve this answer

This is very dangerous if you do not code it properly, but you can create a php page that when visited, executes a c binary wrapper that has setuid enabled (BAD IDEA IF NOT DONE RIGHT!) that executes /etc/init.d/xbmc_service_name restart

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .