Install and run Ubuntu from your Android

There are 9 replies in this Thread which was already clicked 1,294 times. The last Post () by musogeek.

  • If Android enjoys one real advantage over iOS, it is its open source nature. Sure, you can do some nifty tricks with jailbreaking on an iPhone, but that pales in comparison to the hacks which people have created for Android. With root access and enough determination, damn near everything is possible. We at VikiTech love tinkering with Android devices for precisely this reason. There’s a whole lot of tinkering to be done.


    This hack might take the prize for most impressive, though. With root and a very large amount of storage space on the SD card, you can actually run a low-end version of Linux right there on your Android device. Seriously. This ingenious hack theoretically allows for several different versions of Linux, but we opted to go for Ubuntu. Believe it or not, it actually worked.


    Ubuntu can be installed on an Android phone by ingeniously linking two different apps within the same device. Fair warning: this hack is not intended for low-end Android phones. The app recommends at least 1 GHz of processing power. We also overclocked our phone with Tasker for the duration of running Linux.



    Here’s what happens. Using a pre-made Ubuntu image, your phone creates a running version of Linux. There’s not much installed and it runs on LXDE to make sure everything fits within the phone’s memory. However, it is very much a legitimate copy of Linux.
    The catch is that you can’t actually see Linux when it runs. The process is contained within an invisible set of programs that is not visible above the Android OS. In order to actually see Ubuntu in action, you need to use a VNC server app.
    VNC (virtual network computing) is used for remotely viewing another PC over a network. You can use a basic VNC app to view the local OS, which in this case is Ubuntu. With those two apps linked together, Linux runs right there on Android.


    Materials Needed

    • A Nandroid backup
    • A kernel that supports loop devices. Unfortunately, there is no way to check for this other than trying the installation. If you run up against a seemingly insurmountable wall, this may be the issue.
    • Root access (duh)
    • Busybox. Download the app Busybox Installer and use it to install the latest version of Busybox. You may have to run the installer twice to make sure that it really installs.
    • Enable USB debugging. Go to Settings > Apps > Development and check the box for debugging.
    • A solid Wi-Fi connection. You’ll download a lot of files, and it’s best to not do it over data.
    • Storage space. The Ubuntu image requires 2.5 GB, but it’s best to have 3.
    • A file browser app that can unzip compressed files. Astro File Manager does this and is free.
    • VNCviewer
    • Android Terminal Emulator
    • Ubuntu Installer Free


    Installation


    The first step, as always before any serious Android hack, is to reboot into recovery and make a Nandroid backup. This step is absolutely critical and should never be skipped. If something happens and messes up your phone, that backup is the only safeguard.



    Now open the Ubuntu Installer Free app. It will contain instructions as well for installing. Tap “Install Guide.” Check that you’ve followed all the instructions listed and hit next.
    In order to run Ubuntu, you need two critical files, the boot script and the image. The “large” Ubuntu image is an extra 1 GB but comes with more programs already installed. We chose the “small” one simply because you can always install more programs later. However, you will need the boot script no matter which image you pick.
    Download these files. It will take a while, so find something else to do. Water a plant. Paint a sunset. Or just watch Battlestar Galactica reruns on Netflix. Guess which one we did?
    When everything has downloaded, open up that file browser and create a folder labeled “ubuntu” (without the quotation marks) in the root of the SD card. Cut and paste the boot script and image into this new folder. Extract the contents of both files into /sdcard/ubuntu. This too will take a while.



    Now exit the file browser and go to the Terminal app. We recommend switching off any sort of autocorrect feature you might have for your keyboard. Linux text commands are not grammatically correct by any stretch of the imagination and certainly did not play nicely with our autocorrect in Perfect Keyboard.
    Type these commands (hit enter between lines and grant Terminal root access when it asks):

    Code
    su
    cd /sdcard/ubuntu
    sh ubuntu.sh



    Next Terminal will ask for your screen size. This can be found by searching “(phone model) specs” on Google. Our original HTC Evo 4G has a resolution of 800×480, so we input “800×480” (with no quotes) and hit enter.
    A lot of text should scroll by at this point. If all works out, the text will end with a message saying “root@localhost:/#”. This means that Linux is up and running. If it doesn’t say that, double check that Busybox is installed. We ran into that issue.
    Congratulations! Ubuntu is now running. You may not be able to see it, but it’s running. The Terminal app now functions as the command line for the OS. The in-OS command prompt app does not work.



    In order to actually see your brand new OS, open the Android VNC app. Set the IP address to localhost. The port number should already be 5900. Put in the password as “ubuntu” (no quotes). Skip the username section and set the color format to 24-bit color. Once all that is set up, tap connect.
    Linux should now appear in all its LXDE glory. To exit at any time, type “exit” (no quotes, as always) into Terminal.


    Life After Installation
    The first and most obvious problem is that Linux is a desktop OS, definitely not something meant for touch screens. Tap menu and change the control scheme to touch pad, which makes the touch screen function as a basic mouse. The controls are by no means perfect, but they work.




    Final Thoughts
    Ubuntu on Android is certainly not the friendliest of OSes (even by Linux standards), but it is pretty damn neat. Not to mention that all the things normally restricted on mobile devices (like Hulu, The Daily Show and Spotify) are now fair game. No doubt hardcore geeks will find some creative uses for this hack.


    SOURE -

    Code
    http://www.vikitech.com/12451/install-ubuntu-on-android


    I am not obligated, or connected to any particular brand, seller or retailer so any opinions given are not biased in anyway.
    Any information given is for hobby and research purposes only, and whilst every effort is made to ensure that all my responses are accurate, - Any action you may take based on my replies is done so at your own risk.
    Viewing Premium Channels or Media, without paying for them is illegal and if you do so, you do so at your own risk!

    BpGgW.jpg



  • I will try this in the next few days, as I have a ATV1000 smart TV device doing nowt - maybe I can get Oscam running on it so it would free up my Raspberry Pi for a new project... Not heard of an android device running Oscam, but I would imagine that the arm/coolstream Oscam will be my best bet as it is supposed to work with ARM architecture. We will see!!!

    If I take a while to respond, you can see why.....


    :red:

  • Well it certainly makes for an interesting project + further projects :)


    I was doing a bit of snooping around and it seems that its been done for a while ubuntu installed on android that is... This was the most up to date, article on the subject.


    I am not obligated, or connected to any particular brand, seller or retailer so any opinions given are not biased in anyway.
    Any information given is for hobby and research purposes only, and whilst every effort is made to ensure that all my responses are accurate, - Any action you may take based on my replies is done so at your own risk.
    Viewing Premium Channels or Media, without paying for them is illegal and if you do so, you do so at your own risk!

    BpGgW.jpg



  • I have seen it around in fact Ubuntu are promoting a version for ARM based processors but I couldn't see any downloads and this seems to be for OEM's, so I have known it is there - I just need to get some sort of environment on my device so I can compile Oscam and get it working - I am sure there will be snags but even if just as a proof of concept it will be worth a try!


    Either that, or I could just get me a decent recipe book and bake me a nice cake:lol:

    If I take a while to respond, you can see why.....


    :red:

  • :baffle: Hmm, you lost me lol


    I am not obligated, or connected to any particular brand, seller or retailer so any opinions given are not biased in anyway.
    Any information given is for hobby and research purposes only, and whilst every effort is made to ensure that all my responses are accurate, - Any action you may take based on my replies is done so at your own risk.
    Viewing Premium Channels or Media, without paying for them is illegal and if you do so, you do so at your own risk!

    BpGgW.jpg



  • basically i think Ubuntu are trying to get mobile device manufacturers to use a version of Ubuntu on their devices as standard. Doubt it will take off though.


    Anyway - now for that cake....

    If I take a while to respond, you can see why.....


    :red:

  • The idea is exactly the same it depends on the CPU Architecture/Instruction Set and if it has enough processing power to run it


    I am not obligated, or connected to any particular brand, seller or retailer so any opinions given are not biased in anyway.
    Any information given is for hobby and research purposes only, and whilst every effort is made to ensure that all my responses are accurate, - Any action you may take based on my replies is done so at your own risk.
    Viewing Premium Channels or Media, without paying for them is illegal and if you do so, you do so at your own risk!

    BpGgW.jpg



  • Would be great to get rid of the big tower server and just have one of these in the back of the tv running everything, would be better thean running a raspberry pi, if I can get a hold of one cheap I might give this a bash, would be cool to also have all the funtionality of a smart tv too.....

  • Would be great to get rid of the big tower server and just have one of these in the back of the tv running everything, would be better thean running a raspberry pi, if I can get a hold of one cheap I might give this a bash, would be cool to also have all the funtionality of a smart tv too.....


    tbh a raspberry pi would work better than this workaround because running Ubuntu on top of Android will be quite exhausting.. Remember also that CCcam won't work so those who are thinking about dropping the PC for an ARM device as a server, you need to either know how to use Oscam's CCcam protocol - or be willing to learn - and for most, this presents more of a learning curve than CCcam

    If I take a while to respond, you can see why.....


    :red:

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!