HowTo: Install Kegbot Server directly on your Android tablet (no root)


You need to use vi. For me it wasn’t installed by default on my A210 so I had to get it. Just run “apt-get install vim” and you should be able to edit it.


Thank you. What command do i use


Once installed, navigate to the directory and edit the file by typing “vi”. If you are new to vi, I would recommend reviewing the basic commands before you start as it can get very frustrating if you don’t know/use the correct syntax. There are plenty of resources via your preferred search engine.


thanks for pointing me in the right direction… But now I keep getting NameError: Name ‘DEGUG’ is not defined. Any ideas on a solution. I just typed every thing in there staring with the # and did the :wq to save it try to run server and stops me with that message. thanks for the help I am a newb to linux


I got it figured out, I was putting in $ vim The fix was vi then :e /home/.kegbot/ Thank you for the help n4xxr76!! I probably would have given up if it wasn’t for you.


Hey guys I’m trying to Finnish the production set up on my nexus 7 tab with gnu root Debian and I can’t get nginx started, any help would be appreciated. Thanks in advance!

[email protected]:/# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] bind() to failed (13: Permission denied)
nginx: configuration file /etc/nginx/nginx.conf test failed
(kb) [email protected]:/#


Are you running “kegbot runserver”?
I’m not sure why it’s looking at


So when i start the server i put kegbot runserver then tried to run nginx it fails still. I looked online and all i seem to find is nginx needs root user permision. I dont know, its working right now but i cant access it on my computer via home network either… is the addres ?? Thanks for the help


Other devices on your home network won’t be using to access your tablet because that address universally means “yourself”. They would be accessing using the android tablet’s IP address… Like probably.

You will probably have to use “kegbot runserver” once you figure out what IP address your router is assigning your tablet (Somewhere in the android settings menu… about?) See


You use kegbot runserver Then it will use the ip address of the tablet for the IP.


That did it now to try for external accses. Thabk you


Can you help me set up kegbot on my acer tablet?

I can get to the, after that I have problems with the directory


This is where I’m at now…Uploading…


Sorry to bump this, but I figured I’d add my experience for those who, like me, stumbled upon this thread through Google.

So this approach does work, but there are some caveats to keep in mind. This is more aimed at folks who have an old Android tablet lying around that they want to use for this purpose. I had a 1st gen Kindle Fire that I flashed with a stock Jellybean ROM.

  1. Make sure you have enough space. Seems obvious, but the total install under this method including dependencies approaches 1 GB. My Fire came with a little over 1 GB of internal storage and 5 GB of “external” USB storage. GNURoot stores all of its app data (i.e., debian and GNU tools, python packages) on the internal partition. Maybe there’s a way to move this to another partition, but I could not find a reliable method. I ended up having to use a stripped down version of Django because Android would not finish the install due to lack of space. My Storage Settings show GNURoot taking up about 960 MB after all was said and done.

  2. Use /etc/ directory for your config and data files I initially tried to use the default directories (i.e., home directory) when running, however kegbot processes would look to /root/kegbot after install when really they had been created in /home/kegbot. Not sure why, but I suspect some idiosyncrasy with GNURoot

  3. Production setup. You may be able get away with just using the dev server for this (i.e., kegbot runserver), but the docs advise against it, so I tried to stay true to them. Nginx would not let me bind to port 80 and instead went with 2080. Not sure why this is…possibly because GNURoot does not actually have privileged access. But either way, you will need to edit your kegbot-nginx.conf file to ensure it listens on this port.

Additionally, I had to edit both the supervisor and nginx configs to increase timeout because of my next point:

  1. This method is really slow I kept getting 502 and 504 errors. After reviewing gunicorn and nginx logs, I found that gunicorn would time out waiting for a response from django. I bumped up the timeout for both to 300 seconds and that did the trick