Ubuntu Webserver on a Android Tablet

Webserver on a Tablet. Running nginx Webserver on Ubuntu on top of Android operating system
It is possible to run Ubuntu on almost every Android device which has got root enabled.
Once Ubuntu is running there are many other possibilities to run on the device.
Note: Rooting a phone = void the warranty

Webserver on a Sony Tablet S

- Enable root access on the tablet
for Sony Tablet S refer to forum.xda-developpers.com
- Install 'Complete Linux Installer'
from Google Play and install Ubuntu from this app on the tablet
- Install nginx Webserver
Instruction on Ubuntu.com


Step 1 Install nginx
Install nginx, open terminal and type in:

sudo apt-get install nginx


Step 2 Start nginx
nginx does not start on its own. To get nginx running on your VPS, type:

sudo service nginx start

To ensure that nginx will be up after reboots, it’s best to add it to the startup.
Type this command into terminal:

update-rc.d nginx defaults

You may see a message like:

System start/stop links for /etc/init.d/nginx already exist.

If that is the case, then nginx is set up to run on startup, and you are all set.

Congratulations! You have now installed nginx

This is the default index.html page that is located in /usr/share/nginx/html.
You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf

 

Admin