We explored lrc, a tool to control Linux from a smartphone browser earlier. Recently we found another Android app that does the job better by communicating over SSH – Home Remote Control. Home Remote Control works best when both your smartphone and the Ubuntu box are connected to the same WiFi router. In theory it should work as long as the devices can reach each other using IP address.
- list and download files from filesystem
- system monitor (CPU, RAM, disk, battery…)
- custom shortcuts
- custom commands
- sound control
- future tasks
- login via QR Code scanner
- rename, delete and upload files on your filesystem
- linux command library
- ssh login
- remote control widget
- wake on lan widget
- export/import remote controls via a file
- display cpu,memory,battery,bluetooth,network info of android device
You can tall the app from its Google Play page (link below).
SSH server and xdotool (for mouse and keyboard control) needs to be set up on Ubuntu. Run:
$ sudo apt-get install openssh-server $ sudo apt-get install openssh-client $ sudo service ssh restart $ sudo apt-get install xdotool
Now you can connect your device to your Ubuntu system. Open the Android app, navigate to “new device” -> “Linux” and enter Ubuntu LAN IP. You will have to enter the username and password to complete the SSH authentication.
If your hardware supports Wake-On-LAN, you do not need to leave the Ubuntu system running to control it remotely any time you want. If your system goes to sleep after an interval, setup Wake-On-LAN to wake it us whenever you try to connect to it. Steps:
- Check and activate Wake-On-Lan and/or Wake-On-PCI(E) from BIOS
- Run the following on Ubuntu:
$ sudo apt-get install ethtool $ sudo ethtool -s eth0 wol g
- Insert the following two lines into the autostart script (/etc/rc.local)
sleep 5 ethtool -s eth0 wol g
- Open /etc/init.d/halt and set
You can also generate SSH key to enhance the security of the connection.
Webpage: Home Remote Control