I want to test some C-code on Nexus 7 under Ubuntu touch. Before installing Ubuntu touch on the tablet, I have some questions :
Is it possible to compile (gcc ?) and run the code directly in the tablet in the same way as on a laptop ?
Is there a shell where the command-line works as on laptop or desktop computer, on Ubuntu Touch ?
Best Answer
The answer is Yes (for both questions), but before testing your code on the Nexus 7 (2013), you'll need to run Utopic (14.10) on your laptop/desktop to get access to the latest development tools.
Follow the installation steps (using the development channel to get a 14.10 image).
Install the required packages to manage your device:
Install the SDK
Connect your device and enable read-write mode (using the SDK):
Push a sample code to your device (hello.c):
Start a phablet shell connection, install
gcc
andlibc6-dev
(root password is phablet) and compile your code on the target: