[LINUX] Linux-on-Android project (incorporating Ubuntu installer) - Galaxy Note GT-N7000 Original Android Development

Please Note this thread is just for support to Galaxy Note owners, as this is the device I own and thus can give you much better support, for all other devices please uses the main thread HERE
The TEAM!
While for the past 5 months it has just been me its time to bring the project to a level I can't maintain by myself, cue the birth of the Linux on Android TEAM
The team consist of:
Myself
tuxling
Think you have something to bring to the team? then contact me and we shall talk
What is this all about?/Why put this on my device?
This projects aim is to bring a range of linux distros to your android device through a method known as 'chroot', see it has running a linux distro within a virtual machine on your phone. You can access this virtual machine and run it on your phone without causing any damage to your device, or having to overwrite anything. Why might you want this? well my apps are designed to make the install and set up process as easy as possible (more so in the paid apps) while still giving you some flexibility. Once you have the distro up and running then you can pretty much run and install any linux software you like (so long as there is a arm port or it is not architecturaly depenedent), sure there a very few big benefits over what android itself can do but it is still pretty dam cool. (and with the free ubuntu version, hey its free does it matter how useful you find it?)
Wait this uses VNC why shouldn't I just VNC to a computer?
VNC is used to access the GUI as at the moment I have not yet implemented a native way of viewing the GUI. But the Linux distro itself is running within the phone and can be controlled via the terminal app so if your a seasoned Linux user you may never even want to use the GUI
What is Chroot?/How does this work?
"A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children" - http://en.wikipedia.org/wiki/Chroot
This method of running linux distros with android has been around for some time. I have worked on my scripts to make the process more user friendly and give you far more options from the word go.
The scripts start by mounting the ubuntu image file within the android file system and then mounts the sdcard and if ou have it internal memory within the ubuntu file system.
Chroot is then used to change the root directory to that of the mounted ubuntu and a bash shell is then opened to allow you to control Ubuntu this is kind of like 'booting' the OS.
The likes of VNC and SSHD are then set up when ubuntu is 'booted' to allow you to connect to the GUI if you require it.
Interested?
Ok so you want to get one of the support linux distros on your device, great welcome to the team
But first you will need to find out if your device is compatible with the method before anything else, this method 'should' work with pretty much any device but some ROM's/kernels will not work as they do not have loop device support etc.
HERE is a list of working devices and ROM's/kernels but remember just because its not on the list simply means no one has told me its working, it could still work!
Free Apps/Files
There is now one free app called the Complete Linux Installer (NEW) which can be downloaded from the market, along with the image files.
Complete Linux Installer (NEW)
App [MARKET] [SOURCEFORGE]
Ubuntu 12.04 v4 Core [SOURCEFORGE] [TORRENT FILE] (just the basic install of ubuntu no GUI about 200MB to download and 750MB once extracted)
Ubuntu 12.04 v4 Small [SOURCEFORGE] [TORRENT FILE] (Includes the LXDE desktop about 400MB to download and 2GB once extracted giving about 1GB free space and includes normal programs like firefox)*
Ubuntu 12.04 v4 Full *[SOURCEFORGE] [TORRENT FILE] (The image you have been waiting for including Unity! plus a range of programs this is 1.3GB to download and 3.5GB once extracted with about 1.5GB free space)
Backtrack V8 Image *[SOURCEFORGE] *[TORRENT FILE]
Debian Core v4 *[SOURCEFORGE] [TORRENT FILE]
Debian Small v4 [SOURCEFORGE] [TORRENT FILE]
Debian Large v4 [SOURCEFORGE] [TORRENT FILE]
Paid Apps*
The paid apps are donation keys which unlock the extra features in the Complete Linux Installer (NEW), all the keys are the same but different prices to let you decide how much to 'donate'
Complete Linux Installer Donate £4 [MARKET]
Complete Linux Installer Donate £2 [MARKET]
Complete Linux Installer Donate £1 [MARKET]
Or if you donate more than £1 via paypal I shall send you a custom Donate key to unlock the extra features (if you donate more than £5 you will be added to the contribution list here and on the blog)
You can donate via paypal HERE
Once you have downloaded and installed the app just read through the install guide and soon you should have a complete linux distro running within your android device!
Something not working?
If you can't get it to run please post in this thread your device/ROM/kernel and what app/distro you are trying to use. Please also post a screen shoot of what the terminal app prints out when it try's to boot so we can help debug whats gone wrong

Love the project?
Well there are plenty of places you can show your support, of cause you can buy the paid apps, but you can also 'follow' the project on a range of social networks and also keep up to date with news on the projects blog!
Blog site
Support/Feedback/Feature Request
Sourceforge Site (Where all the free apps files are kept )
Facebook page
Twitter page
Google+ page
banner for users of the project if you so wish to show your support by having the project in your signature.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you would like to add this to your signature
You can simply add this code:
HTML:
[URL="http://forum.xda-developers.com/showthread.php?t=1585009"][IMG]http://zpwebsitefiles.com/images/loauser.png[/IMG][/URL]
Current Contributors
Project Developers
Zac Powell (myself) aka zacthespack
Martin Møller aka tuxling
App Translators
Marco Robles - Spanish Translation
Quentin Khan - French Translation
Stefanie Jung - German Translation
Ove Grunnér - Swedish Translation
Nikolay Suknyarov (NikolayS) - Bulgarian Translation
Other Contributors
Johan Vromans
Marshall Levin
Barry flanagan
Donators

Show me some screenshoots!
Ok ok heres a few screen shoots of the apps/distros in actions!
Videos
Debian Installer - http://www.youtube.com/watch?v=9cWl2qAf_vI
Ubuntu Installer - http://www.youtube.com/watch?v=UCqzs8yQTM8
Backtrack Installer - http://www.youtube.com/watch?v=lXYGmlMPqOU

Which Rom must be? Just official 2.3.6!?

xaoc747 said:
Which Rom must be? Just official 2.3.6!?
Click to expand...
Click to collapse
well i have stock and it works well but in thoery it should work on most ROMs just test and see really
Sent from my GT-N7000 using xda premium

I have iMilka (AOSP ICS 4.0.4), can i do?

Calaio91 said:
I have iMilka (AOSP ICS 4.0.4), can i do?
Click to expand...
Click to collapse
Try it!

Zacthespack, does large image of Ubuntu support installation of new applications? I had problems installing flash player on small image.

Boy124 said:
Zacthespack, does large image of Ubuntu support installation of new applications? I had problems installing flash player on small image.
Click to expand...
Click to collapse
Yes both do support installing new programs, but you have to remember this is a ARM image therefore normal programs for 32bit or 64bit computers will not work, you have to make sure you get a problem build for the ARM processor, if you use apt-get than the sources used all point to ARM ported repository's (in the case of debian this is merged into there normal repository anyway) therefore if you can install it from there you know it will work

I may try this. Looks interesting.

Does Audio work on this?
I.e. can you play audio from the Ubuntu Virtual Machine?
Would you maybe need a special version of VNC that supports Audio or do you possibly have another mechanism?

qazzi76 said:
Does Audio work on this?
I.e. can you play audio from the Ubuntu Virtual Machine?
Would you maybe need a special version of VNC that supports Audio or do you possibly have another mechanism?
Click to expand...
Click to collapse
sadly audio dosnt work, really the last thing to get sorted because yes VNC does not support audio, there are some methods to stream audio but getting it working on android is another story

linux running to rom stunner lcp5
linux running to rom stunner lcp5

begz said:
linux running to rom stunner lcp5
Click to expand...
Click to collapse
Great! And Ubuntu running on ICS?

Thanks for the app. For me, all I want is a full featured linux server (I don't need any GUI). So I tried to install the ubuntu small image, and disabled the dbus / vnc server in the ubuntu.sh script, just trying to play around in the terminal.
Some problems I found:
1) Missing /dev/random , /dev/urandom, which causing sshd fails to start.
2) /dev/null is not a character device.
So I fixed both above:
Code:
rm /dev/null
mknod /dev/null c 1 3
chmod a+rw /dev/null
mknod /dev/random c 1 9
mknod /dev/urandom c 1 9
After installing apache2, and try to start it, it fails to start. From /var/log/apache2/error.log:
Code:
[Sat Apr 07 13:03:15 2012] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Apr 07 13:03:15 2012] [emerg] (38)Function not implemented: Couldn't create accept lock
Also, try to ssh to localhost (I confirmed sshd now running locally by checking with netstat -pan) or ssh to any other host, got this error:
Code:
[email protected]:~# ssh [email protected]
Host key verification failed.
Also, when trying to ssh from another computer to that linux instance in the same wifi network, I got the following error:
Code:
imac:~ user1$ ssh [email protected]
[email protected]'s password:
PTY allocation request failed on channel 0
Please help.
Thanks.

winst said:
Thanks for the app. For me, all I want is a full featured linux server (I don't need any GUI). So I tried to install the ubuntu small image, and disabled the dbus / vnc server in the ubuntu.sh script, just trying to play around in the terminal.
Some problems I found:
1) Missing /dev/random , /dev/urandom, which causing sshd fails to start.
2) /dev/null is not a character device.
So I fixed both above:
Code:
rm /dev/null
mknod /dev/null c 1 3
chmod a+rw /dev/null
mknod /dev/random c 1 9
mknod /dev/urandom c 1 9
After installing apache2, and try to start it, it fails to start. From /var/log/apache2/error.log:
Code:
[Sat Apr 07 13:03:15 2012] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Apr 07 13:03:15 2012] [emerg] (38)Function not implemented: Couldn't create accept lock
Also, try to ssh to localhost (I confirmed sshd now running locally by checking with netstat -pan) or ssh to any other host, got this error:
Code:
[email protected]:~# ssh [email protected]
Host key verification failed.
Also, when trying to ssh from another computer to that linux instance in the same wifi network, I got the following error:
Code:
imac:~ user1$ ssh [email protected]
[email protected]'s password:
PTY allocation request failed on channel 0
Please help.
Thanks.
Click to expand...
Click to collapse
Hmmm this are not problems I have run into before, your best bet is to check forums for debian etc, this problems are likely not limited to my builds.
Out of interested what do you plan to use the server for?
You could try the debian core image there is no GUI included so it might be a more stable base to work from

zacthespack said:
Hmmm this are not problems I have run into before, your best bet is to check forums for debian etc, this problems are likely not limited to my builds.
Out of interested what do you plan to use the server for?
You could try the debian core image there is no GUI included so it might be a more stable base to work from
Click to expand...
Click to collapse
OK I tried the debian small image. Seems better, but still having the same issue with apache2 starting (tried with both worker and prefork packages, both having similar errors):
Code:
[emerg] (38)Function not implemented: Couldn't create accept lock (/var/lock/apache2/accept.lock.4882) (5)
Sounds like something missing in the linux kernel.
May be that sounds crazy, but I want to have a linux based LAMP server running in galaxy tab (8.9) for web development. Oh yes, I also got a galaxy note, that's why I see this thread.

what's the use of linux on phone? dont mind

meethere said:
what's the use of linux on phone? dont mind
Click to expand...
Click to collapse
That' the dumbest comment I've seen today realizing that Android and iOS (+80% of the smartphone market today) are both sort of Linux (/UNIX based) distros.
Sent from my GT-N7000 using xda premium

winst said:
OK I tried the debian small image. Seems better, but still having the same issue with apache2 starting (tried with both worker and prefork packages, both having similar errors):
Code:
[emerg] (38)Function not implemented: Couldn't create accept lock (/var/lock/apache2/accept.lock.4882) (5)
Sounds like something missing in the linux kernel.
May be that sounds crazy, but I want to have a linux based LAMP server running in galaxy tab (8.9) for web development. Oh yes, I also got a galaxy note, that's why I see this thread.
Click to expand...
Click to collapse
Good idea, but yes looks like it could be, my method shares the android kernel it donst have its own kernel so this could be the problem, might have to talk with your kernel devs?
meethere said:
what's the use of linux on phone? dont mind
Click to expand...
Click to collapse
Well yes A android is a form of linux, and in fact I believe as of linux kernel 3.3 android is being merged into the main kernel.
But anyway the use of having a full linux distro? well why not? you could run the likes of open office, a real web browser and a whole range of other programs you cant in android

Related

[ISO] xPerfect virtual appliance - Android SDK r10 / NDK r5b - dev

xPerfect provides a full Android development environment in the form of a virtual machine and is free for anyone to download and use as required for building and developing Android sources, kernels, drivers, diff patches or anything else.
Built using Virtual Box and Ubuntu 10.10 x64. Latest sources and builds for Froyo and beyond require this 64bit environment and as a result I've made available this as a virtual machine for the xda community or anyone interested in Android development to use as they wish
This is a work in progress and is in initial release 0.1. I'm uploading this as a public torrent due to the size being 8.6GB - TAR.GZ - I'd like to invite everyone (with adequate bandwidth) to share your thoughts, idea's and suggestions for inclusion or addition and in any way to improve or perhaps remove!
HOT FIX UPDATE 0.01
xPerfect patch 0.01
fixes: sets udev filesystem - adb vendor id to sony ericsson ( 0fce )
fixes: updated ARM environment variables.
fixes: cleans apttitude and schedtool.
fixes: recheck package dependancies.
fixes: fixes libc build error in make.
fixes: missing docs directory CM7 make
fixes: returns all permissions to xperia
fixes: updates Cyanogen - repo sync.
Option to repo sync if the latest cyanogen sources are required.
Include latest Google Apps for Gingerbread
Option to fix /etc/hosts block adverts and spam - someonewhocares.org
This shell script is executed in a terminal within xPerfect. You may adapt this script to suit any Linux operating system, however it is specifically designed for the user account 'xperia' and is written with the currently distributed architecture of xPerfect without being modified.
Download xPerfect service release hotfix 0.01
Instructions: Download to xPerfect and unzip the shell script. Launch a terminal and issue the following commands;
1: Extract to ~/Documents (anywhere you like)
[email protected]:~/Documents$ unzip xPerfect.update.env.01.sh.zip
2: Make executable
[email protected]:~/Documents$ chmod 755 xPerfect.update.env.01.sh
3: Execute script as root
[email protected]:~/Documents$ sudo ./xPerfect.update.env.01.sh
NOTICE: This targets the xPerfect Kitchen and Sony Ericsson devices.​
THANKS Ubuntu Linux, Oracle / Sun Microsystems, Eclipse, Motorola, Sony Ericson,
Android open source project (AOSP), QtADB, XDA Developer forums,
Cyanogen Mod, Zdzihu, Jerpelea, Bin4ry, Goroh_Kun, marylandcookie
ChangeLog Initial release
NEWS Build andconfiguration complete. Provides a stable environment
for android application and firmware (rom) development.
INSTALL Latest Virtual Box - http://www.virtualbox.org/
EDIT: 23-03-2011
Added myUbuntu as it is a sensational utility developed by Joseph Maillardet. myUbuntu can easily assist with tuning your installation, adding codecs, themes, fonts, and instantly providing a crisp interface better suited to programming and developers needs
INTERFACE UPDATE: http://www.perso.iut-nimes.fr/jmaillardet/myUbuntu/
About myUbuntu:
"myUbuntu is a script of post-installation with who you can record text files that describe all the modification you want to apply to a Ubuntu distribution freshly installed. After the text files written, execute the script on all target system and select between the options you have created the interesting elements for each one. Since the 10.04 release, myUbuntu have been totally re-written in ruby."
Copyright and licensing - Apache Open source licence respective licences contained within image MUST remain intact.
BUGS Known issues and instructions here at the original thread
PROVIDES:
Ubuntu 10.10 x64
Sun Java 6 JDK Hotspot JVM
Android SDK r10 Linux
Android NDK r5b Linux
Qt ADB - Phone explorer
Motoroloa - MotoDevStudio (eclipse ide)
Environment variables exported
Required libs & packages pre-installed and compiled
BACKGROUND:
Too much time spent messing with environments, rebuilding this and that, time and again..
It became clear a virtual machine for compiling Android sources and building applications
might be useful for anyone with the same motivations and interests. Unable to find a live-cd
or 'kitchen' for cooking roms, I decided to build my own and release it to share with other
developers and hope to find comments and suggestions for future improvments and to serve as
a way to find the perfect development environment, ready to work with and save time that is
better used creating methods, cutting code and flaming in forums (joke Mr Clown.. chill!
INSTRUCTIONS:
Download and install Virtual Box, extract the package to a folder and import as desired.
Due to the size of the disc image this is the essential files and environment only. Many of
the 'add-ons' such as AVD devices, samples and other files have been excluded to maintain as
small download size as possible. Easily add the required files back in by directly downloading
or using the aptitude package manager: apt-get
1: Start Virtualbox
2: Inside the Virtualbox Menu click: File > Import Appliance (Ctrl+I)
3: Click the “Choose” button.
4: Locate and select the OVF file from where you extracted the files.
5: Click Open.
6: Verify your xPerfect settings are correct.
7: Make any changes to the device such as memory etc..
8: Verify the disk size.
9: Click Import
Disc space has been restricted to minimum for downloading. To increase disc size you can use
the following command within Linux after importing the virtual appliance.
cd ~/.VirtualBox/HardDisks
VBoxManage clonehd xPerfect.vdi yourName.vdi
For Windows users running Virtual Box the same syntax would be done with the MS-DOS command
Start > Run > type CMD (enter)
cd c:\program files\
In the format or application syntax of;
<application> <command> <source> <target>
Sun VirtualBox Command Line Management Interface
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.
Usage:
VBoxManage clonehd <uuid>|<filename> <outputfile>
[--format VDI|VMDK|VHD|RAW|<other>]
[--variant Standard,Fixed,Split2G,Stream,ESX]
[--type normal|writethrough|immutable]
[--remember] [--existing]
This command duplicates the appliance and creates a new UUID for the appliance, removing a
issue with id duplication and virtual drives sharing the same properties, already registered in Virtual Box.
When creating the new Virtual machine / appliance, allocate any desired disc space such as
40GB - 60GB or any number you feel comfortable with, just ensure you have enough disc space!
VBox 4.0+ supports resizing of VDIs.
This appliance was made with Virtual Box 3.1.6
VMWARE:
Anyone running VMware should download the VMware Open Virtualization Format (OVF) Tool.
http://www.vmware.com/downloads/download.do?downloadGroup=OVF-TOOL-1-0
WHY VIRTUAL BOX?
VirtualBox is a powerful x86 / AMD64 / Intel64 virtualization product for enterprise and
free home use. It's a feature rich, high performance product for enterprise customers and
is the only professional solution freely available as Open Source Software under the terms
of the GNU General Public License (GPL).
http://www.virtualbox.org/wiki/Changelog
Thank you to everyone who made this possible and for any questions, credits, requests, suggestions or you just feel like saying thank's! contact me private message
Update: 100% complete and uploading to public trackers now. Thanks to Qt ADB for authority to include the phone browser, Cyanogen for latest Gingerbread branch and everyone who has contributed to the numerous packages included.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thank you to rendeiro2005 who pointed out a few other "kitchen" alternatives available, which will help with development and may be better suited to your individual needs and requirements.
MoDaCo Online Kitchen
dsixda's HTC Android Kitchen
Goon droid Online Kitchen
sztupy Android Compiler VM
Video showing most of the steps taken in the creation of this virtual machine / virtual appliance
Torrent seeded -two peers - Demonoid public tracker:
http://goo.gl/w0yqg
64Bit Exclusive
Already the question has been asking about building this for 32bit platforms;
Can you some how post a 32 bit version as well
Click to expand...
Click to collapse
Froyo+ requires a 64bit environment for build. 32bit is not supported when building Android sources past 2.1 so although it is possible, it's not directly supported or possible without modifying lot's of lib's etc.. so it will be 64bit only as per the requirements for building AOSP Sources beyond Éclair.
If anyone has created or worked on fixing make to work with 32bit PM me and we can include this if you wish!
MrHassell said:
Already the question has been asking about building this for 32bit platforms;
Froyo+ requires a 64bit environment for build. 32bit is not supported when building Android sources past 2.1 so although it is possible, it's not directly supported or possible without modifying lot's of lib's etc.. so it will be 64bit only as per the requirements for building AOSP Sources beyond Éclair.
If anyone has created or worked on fixing make to work with 32bit PM me and we can include this if you wish!
Click to expand...
Click to collapse
easy solution, if your cpu supports 64bit (which is hard to imagine that anyone would still be running a machine that does not support 64bit), set up a dual boot. normal 32bit OS on one end, this on the other.
svtfmook said:
easy solution, if your cpu supports 64bit (which is hard to imagine that anyone would still be running a machine that does not support 64bit), set up a dual boot. normal 32bit OS on one end, this on the other.
Click to expand...
Click to collapse
99.9% of the CPU's of today have 64bit support,but lets not forget,to use 64bit you need at least 1.5Gb of RAM (Recommended 2+ or even 3+),
And maybe 45% of today's computers have 1.5+ Gb of RAM.
Most of us here have 4Gb+ thats for sure but there are people who dont so,thats gonna be a bit complicated.
Respect
xtrmshadow said:
And maybe 45% of today's computers have 1.5+ Gb of RAM.
Most of us here have 4Gb+ thats for sure but there are people who dont so,thats gonna be a bit complicated.
Respect
Click to expand...
Click to collapse
Rlly? Woow
Yea i have also got 4Gb+ (8)
I think those 32bit ppl will change fast ^^
~~~~~~~
Gr8 work dude, this will be great!
Sent from my X10i using XDA App
nice, been looking for something like this
MrHassell said:
Already the question has been asking about building this for 32bit platforms;
Froyo+ requires a 64bit environment for build. 32bit is not supported when building Android sources past 2.1 so although it is possible, it's not directly supported or possible without modifying lot's of lib's etc.. so it will be 64bit only as per the requirements for building AOSP Sources beyond Éclair.
If anyone has created or worked on fixing make to work with 32bit PM me and we can include this if you wish!
Click to expand...
Click to collapse
if i remember correctly VirtualBox/VMware support 64bit OS even if host OS is 32bit.. just that the processor should have 64bit support...
yup virtualbox supports it: http://www.virtualbox.org/wiki/Changelog
for those who are not sure if they have 32-bit or 64-bit processor... atleast for windows there is a great tool: CPU-Z... just check for EM64T under supported 'Instructions'
i`m sure this is my fault but...WTF ist that for?!
rendeiro2005 said:
i`m sure this is my fault but...WTF ist that for?!
Click to expand...
Click to collapse
lol this is a set up so you can learn/build your own android from sources
jase81 said:
lol this is a set up so you can learn/build your own android from sources
Click to expand...
Click to collapse
that`s what i thought but...i mean, why this if we had kitchen?
what the advantage? pros/cons?
or the objective of these is to create/push source like any other app on ubuntu?
rendeiro2005 said:
that`s what i thought but...i mean, why this if we had kitchen?
what the advantage? pros/cons?
or the objective of these is to create/push source like any other app on ubuntu?
Click to expand...
Click to collapse
as far as i know you can only build android on linux or by VirtualBox/VMware , i'm just learning on how to set it all up so i'd ask MrHassell what the pros and cons are lol
jase81 said:
as far as i know you can only build android on linux or by VirtualBox/VMware , i'm just learning on how to set it all up so i'd ask MrHassell what the pros and cons are lol
Click to expand...
Click to collapse
i know that. that´s what i do...
the question remains. there`s already a kitchen, so...what`s the diference between them? act like linux (with repo?). that would be something...
can someone upload whole thing in torrent in piratebay or torrentz.eu
espacially staff like Sun Java 6 - Eclipse IDE - ADB GUI - latest Android SDK - Cyanogen 7
get linux form official website
please
will be faster and more fluent stream!
thank
im already runnin ubantu dose that mean theres no need for virtual box yeh?
Nah dude u dnt need it lol
Sent from my X10
lol sorry got confused the first time i read the op read it again and realized that cheers
fank you mrhassel downloading now lol
Ubuntu 64bit - Required for Android 2.2+
rls190687 said:
im already runnin ubantu dose that mean theres no need for virtual box yeh?
Click to expand...
Click to collapse
This is an appliance and requires a Virtualization provider. If you already have VMware installed to a 64bit edition of Linux then, no you don't need this but you can have it if you like all the same.
Open a Linux terminal and issue this command to see if your kernel is 64bit first;
Code:
uname -a
This will return either i386 or i686. The 386 flag is 32bit, next check the CPU.
Code:
cat /proc/cpuinfo
Here you are looking for the 'ln' flags which support 64bit. That taken care of in *nix the next step is to install VirtualBox - latest 4.04 version or upgrade.
Code:
sudo apt-get update
sudo apt-get install virtualbox-4.0
http://goo.gl/w0yqg
MrHassell said:
...
Code:
uname -a
This will return either i386 or i686. The 386 flag is 32bit, next check the CPU.
...
Click to expand...
Click to collapse
actually both i386 & i686 are 32-bit...
if u get x86_64 then it is 64-bit...
{please correct me if i am wrong}
SEED!
DooMLoRD said:
actually both i386 & i686 are 32-bit...
if u get x86_64 then it is 64-bit...
{please correct me if i am wrong}
Click to expand...
Click to collapse
Thanks for the pickup Doom - good thing about VirtualBox is even if your host O/S is 32bit - you can run 64bit appliances like this..
PLEASE SEED! Nobody is going to get anything with 20 people just hit and run and leave 1 peers.
Not threatening or anything but guy's if you can't seed at least 100% of what you download, I'm pulling the torrent as I have other things to do with my hardware and network than share it with snatch and grab bandits.

[APP]Ubuntu Install Guide -Atrix Testers wanted

Hello guys,
Thank you all for the amount of support you have given this project! I have now decided to stop updating this thread. If people still have bugs or want to keep following this project please go to the Main project thread HERE.
I will stop updating this thread because I feel we now know what roms/kernels do and don't work so there is no need for me to keep updating this thread (And the other 5 threads I run for certain devices), but of cause if you do still have problems reply to the main thread or PM me!
Once again thank you all!!
I have released the first version of my app, which guides you through the installation of Ubuntu within android via chroot. It includes a ubuntu 10.10 image I have been working on which includes lots of program to allow users to develop program/scripts etc within Ubuntu on there phone/tablet.
However I have only been able to test the app on my HTC Desire S and Gen 8 Archos tablet and as such I need you guys to test this on your phone/tablet and post back how it works on your device!
Please post your device/kernel/rom along with what did and didn't work, so I can draw up what I need to change in the next release of the app/ubuntu build.
Website
http://zpwebsites.com/android-app/ubuntu-install-guide/devices/
Video
http://youtu.be/3WNeY9b5DIg
App Download
Free App
Paid App
Boot Script
ubuntu.sh(V5)
Full Images
These images are 1.5GB to download, once extracted 3.5GB, and include alot of programs like openoffice, thunderbird, firefox and over programs for 'developing'
Ubuntu 10.10 V4 - 800x480
Ubuntu 10.10 V4 - 854x480
Ubuntu 10.10 V4 - 960x540
Ubuntu 10.10 V4 - 1024x600
Ubuntu 10.10 V4 - 1280x800
Lightweight Images
These images are just under 500MB to download, once extracted 2.5GB, and include only programs needed (LXDE desktop, firefox, + other basic programs)
Ubuntu 10.10 V4 - 800x480
Ubuntu 10.10 V4 - 854x480
Ubuntu 10.10 V4 - 960x540
Ubuntu 10.10 V4 - 1024x600
Ubuntu 10.10 V4 - 1280x800
I also want to build up a small group of testers who I can email with new images and scripts, these will include all future distros that I do. If you are interested in joining this test group please PM me or send a email to [email protected]
The only requirement is that your willing to test and send feedback along with screen shoots etc where required, it would also be good if your willing to try different roms and kernels for your device!
Sig Banner
Show your love of ubuntu on android with my sig banner:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
image url is "http://dl.dropbox.com/u/11206993/ubuntuuser.png"
Other Guides
Like this guide? want to try something different? then check out my other guides for different distro's
Backtrack - This is a distro that is based around security testing, it also includes the Gnome desktop environment and a range of other programs.
Updates
06/01/12
*PAID app file downloads now use new fast FTP server and support direct downloading (click the button to download a image and it starts to download right away)
*New boot script which has fixed problems with it not booting on alot of devices, and fixed problem which some people getting a grey screen when loading UI
*Boot script now downloaded in zip file to fix problems with downloading script
*Both apps fixed to support low resolutions
*Both apps cleaned up
28/12/11
*PAID app now supports 960x540 'qHD' resolution
*ALL Ubuntu lightweight images cleaned up even more saved another 300MB of space
*ALL Ubuntu images updated with all new updates
*ALL Ubuntu images now in .zip format to fix problems with some peoples devices failing to extract the .rar files
*Boot script updated, once booted now terminal acts like a command line interface for Ubuntu, and some boot problems now fixed
*Image and boot script now downloadable separately to allow easier updating
19/12/11
New 'lighter' ubuntu image options for all resolutions already supported
15/12/11
New ubuntu images with all updates up to 15/11/11
FREE app ubuntu image resized to fit 800x480 resolution
PAID app ubuntu images now includes 4 images for 800x480, 854x480, 1024x600 and 1280x800 resolutions
See how deep the rabbit-hole goes...
http://linuxonandroid.blogspot.com/
Hopefully tomorrow I will have time to upload images that fit the atrix qHD screen.
Sent from my HTC Desire S using XDA App
Downloading as I type, will let you know.
This is the image I get. Running darkside 4.2 lite, faux123 latest 1.3, fruitcake 2.3.5, debian mod. Used the lite app until it works then will purchase full version.
Included sh wouldn't connect but v3 connects just nothing to see.
Can move around just nothing to see. Let me know if you need any help or have anything you want me to try.
Sent from my awesome atrix thanks to all the devs here!
Does nothing when "sh ubuntu.sh" is typed.
Don't know if it's my rom (it's a foreign rom with no list of features) or the app.
Will this work with the lapdock? It has a rez of 1366X768, will it retain the lapdock functionality?
Try to download the ubuntuv3.sh and put it in the same extracted folder and run that in terminal. That is what I had to do. Then go to home and open and log in with vnc.
Sent from my awesome atrix thanks to all the devs here!
well it works with lapdock but they damn thing wont go into landscape on lapdock
Just curious for those running it, can you go back to normal android still from ubunto or do you have to wipe and reflash the ROM to get back to normal android? I want to test it but curious if I can revert back easier.
Sent from my Atrix XDA Premium App
Killer0Kevin said:
Does nothing when "sh ubuntu.sh" is typed.
Don't know if it's my rom (it's a foreign rom with no list of features) or the app.
Click to expand...
Click to collapse
odd make sure you have cd into the right folder and that the script isn't crupt
morepower71 said:
This is the image I get. Running darkside 4.2 lite, faux123 latest 1.3, fruitcake 2.3.5, debian mod. Used the lite app until it works then will purchase full version.
Included sh wouldn't connect but v3 connects just nothing to see.
Can move around just nothing to see. Let me know if you need any help or have anything you want me to try.
Sent from my awesome atrix thanks to all the devs here!
Click to expand...
Click to collapse
interesting so Ubuntu is running but the ui dosnt load, will look into this and get back to you.
cyris69 said:
well it works with lapdock but they damn thing wont go into landscape on lapdock
Click to expand...
Click to collapse
could I get some screen shoots to see what you meant
Voelker45 said:
Just curious for those running it, can you go back to normal android still from ubunto or do you have to wipe and reflash the ROM to get back to normal android? I want to test it but curious if I can revert back easier.
Sent from my Atrix XDA Premium App
Click to expand...
Click to collapse
you can go back to android just by hitting home. however the sdcard gets mounted for Ubuntu so to stop Ubuntu you have to restart the phone
Change log for new release (release will be in the next few days for paid end of next week for free) - all new images etc will be added to the first post as they are finished and uploaded!
*PAID app now supports 960x540 'qHD' resolution
*ALL Ubuntu lightweight images cleaned up even more saved another 300MB of space
*ALL Ubuntu images updated with all new updates
*ALL Ubuntu images now in .zip format to fix problems with some peoples devices failing to extract the .rar files
*Boot script updated, once booted now terminal acts like a command line interface for Ubuntu, and some boot problems now fixed
*Image and boot script now downloadable separately to allow easy updating of the script
*+more likely before release
I can't run Ubuntu, cause I have a problem with VNC.
VNC connection failed!
localhost/127.0.0.1:5900 - Connection refused!
Stock 2.3.4
ovitz said:
I can't run Ubuntu, cause I have a problem with VNC.
VNC connection failed!
localhost/127.0.0.1:5900 - Connection refused!
Stock 2.3.4
Click to expand...
Click to collapse
When you run the ubuntu.sh what is output? i.e. does ubuntu run and you just cant connect to the GUI or does ubuntu not run at all
that's awesome!
Atrix (Gingerbread2) stock ..
download
I am a failure "init.sh" when I type sh .. ubuntu.sh
1 - missing first create a folder in / data / local / mnt / etc (I created), I had this error again.
2 - now past the terminal post is missing this file in / root
Can someone pass me this file for me to try?
leonardoaraujo said:
that's awesome!
Atrix (Gingerbread2) stock ..
download
I am a failure "init.sh" when I type sh .. ubuntu.sh
Click to expand...
Click to collapse
Could I get a screen shoot of the terminal output
Sent from my HTC Desire S using XDA App
#sh ubuntu.sh
mkdir failed for /data/local/mnt, file exists
loop device exists
losetup: /dev/block/loop7: device is busy
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: applet not found
mount: applet not found
sysctl: applet not found
Ubuntu is configurated with SSH and VNC servers that can de accessed from the IP:
eth0: no such device
chroot: cannot execute /root/init.sh: No such file or directory
shutting down Ubuntu ARM
failed.
failed.
failed.
failed.
ioctl: LOOP_CLR_FD: No such device or address
#
leonardoaraujo said:
#sh ubuntu.sh
mkdir failed for /data/local/mnt, file exists
loop device exists
losetup: /dev/block/loop7: device is busy
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: applet not found
mount: applet not found
sysctl: applet not found
Ubuntu is configurated with SSH and VNC servers that can de accessed from the IP:
eth0: no such device
chroot: cannot execute /root/init.sh: No such file or directory
shutting down Ubuntu ARM
failed.
failed.
failed.
failed.
ioctl: LOOP_CLR_FD: No such device or address
#
Click to expand...
Click to collapse
Thank you, yup it's the same problem a good few people are getting, I believe it's down to loop support, but I'm not completely sure and with no device getting this bug to test on I just have to keep trying
Sent from my HTC Desire S using XDA App
I will be your tester that man, I want to help you figure out how I warn you ...
I know a little linux ... lol
There is a file that is missing in this rom, (according to the terminal), init.sh the file in / root
I pass it (if you have), I do not care bootloops, I do not mind having to install the rom again if necessary ...
ps:strange ..... I "image corrupted" when trying to script the original (in the zip) ..
this is what I get
leonardoaraujo said:
I will be your tester that man, I want to help you figure out how I warn you ...
I know a little linux ... lol
There is a file that is missing in this rom, (according to the terminal), init.sh the file in / root
I pass it (if you have), I do not care bootloops, I do not mind having to install the rom again if necessary ...
ps:strange ..... I "image corrupted" when trying to script the original (in the zip) ..
Click to expand...
Click to collapse
Thanks dude,
The file missing error is because it's trying to run a script in the Ubuntu image that starts vnc etc.
But as Ubuntu isn't mounting it can't access it.
Sent from my HTC Desire S using XDA App

[2015/03/07] BotBrew: *nix tools for Android

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The remainder of this post contains historical information. Please read the update. Thank you.
__________________
​ BotBrew is
a repository of *nix software (such as bzip2, curl, openssl, python, and ruby) for ARM-based Android
a package manager powered by Opkg, a lightweight program that feels like dpkg+apt
a service manager powered by runit
a build system for anyone looking to build and package his/her own scripts and programs
Thanks: mateorod and xela92 for testing the heck out of this thing; racks11479 for delicious artwork; you for using this project, reporting bugs, and making it better
If I missed anyone, let me know!
Warning: BotBrew has been used successfully on a variety of rooted ARM devices, and is developed using a Nook Color, but you should still make backups before trying, just in case.
Install BotBrew
[ Google Play | BotBrew.apk | BotBrew.debug.apk ]
Read the Quick-Start Guide & Manual
[ botbrew.com/manual.htm ]​
Click to expand...
Click to collapse
Alternative (Command Line) Installation
If the BotBrew app fails to bootstrap, you might be able to bootstrap using the command line:
Code:
wget http://repo.botbrew.com/anise/bootstrap/install.sh -O- | su
Such a setup should be compatible with the app, though it may not work perfectly. The manual has more tips for command line usage.
Enjoy!
Install BotBrew+1
The next release of BotBrew, named basil, will be powered by Debian's Dpkg and Apt. This is a non-trivial update, so the app is being rewritten from scratch. I've posted some usage instructions, in case you are adventurous enough to try. Thanks! This app may be used in parallel with the current-stable BotBrew release, without conflict.
[ Google Play | GitHub ]​
Click to expand...
Click to collapse
Changes
5/20: the next release of BotBrew is in development!
4/20: improve support for long package names; fix list of repairable packages
4/16: new UI for devices with wide-enough screens; experimental support for moving to /sd-ext
4/9: Google Play release of BotBrew "anise"; previous release is now BotBrew.oldstable.apk; lots of updates since oldstable
3/16: lots of installer and filesystem changes for cross-device compatibility, work started on multiuser support
3/10: installers now depend on botbrew-core, which will (in the future) pull in basic packages that everyone should have
3/4: swipe left and right to see all/installed/upgradable packages
3/3: added ability to start installation of *.opk files from file managers
3/2: added ability to start installation from browser after clicking *.opk link
3/1: fixed some BotBrew.apk bugs; updated command line installer
2/27: reworked BotBrew.apk; new packages in stable repo
2/18: testing repository now open; new opkg -- please read before upgrading
2/16: make BotBrew.apk display latest versions in the package list
2/2: bugfix release of BotBrew.apk
Well, I now have python, ncurses, openssl and a couple other packages running on my nook. I have indeed printed 42, and even wrote my own (proprietary) code to advance the project some that printed 43. Advanced scripting.
But seriously, this is sweet. I am all over anything that opens up this device. I don't think I have ever bought a piece of hardware that has so outstripped my expectations.
Thanks for the program. I will report back after I play with it some.
Wow, what a great idea! Looks like my Nook will be used for a bit more than entertaining my family with casual games; nice to have some productivity back I was thinking about installing Ubuntu on my Nook for this sort of thing, but there's no need anymore.
It would be great to get this a bit more recognition, and getting more useful things such as gcc or even the GNU toolchain installable with this package manager. Might put a link in my signature, if you don't mind.
Now to look for an affordable lightweight bluetooth keyboard...
You read my mind I got binutils, gmp, mpfr, and mpc working earlier today... and gcc is in the pipeline. My main reason for wanting a native gcc is that some software (such as python) do not like to be cross-compiled at all. I'm having a bit of trouble with gcc, but I'll keep hacking away at it.
Please, go right ahead and share this thread; this is a young project but I think it could be more useful. On the one hand, there's a whole lot of free software (such as the GNU stuff) just asking to be built and packaged; on the other hand, many people who hang out around here have a few scripts/programs of our own to distribute.
In case you're interested, here's where all the packages live. There are actually two more ways to install (remote and local) stuff using Opkg:
Code:
opkg install http://host/path/to/package.opk
Code:
opkg install path/to/package.opk
Very nice project !!!
I have python 2.7 standalone on android.
One problem, in python commandline i can't import hashlib, i can fix this?
Thanks.
So, I just got a working build of GCC+binutils and pushed the packages to the stable repo. Please keep in mind that for now, stable means I tested it a couple of times and it works, so be careful and use at your own risk.
To install gcc and binutils, make sure you have about 160mb of storage free in /system and run:
Code:
opkg update
opkg install gcc-4.6
That's about 70mb's worth of downloads, and my server's underpowered, so please wait patiently and retry if it fails (failure when receiving data from the peer). When that's done, you might want to compile something:
Code:
cd /cache
wget http://dl.dropbox.com/u/1213413/htdocs/agcc/hello.c
gcc -o hello hello.c
And if that completed successfully, you should have a new executable, which you could run for a classic greeting. I was not able to get the C++ libraries compiled, but C code should compile alright.
@Fritos2: I've been trying to fix this issue, but I'm not confident that I could do it without help. Python (and Perl) are very resistant to cross-compilation, and even after I hammered it into submission, some modules do not work. Another module that I'd really like is readline, which gives you enhanced editing capabilities in the interactive interpreter. I'm a Pythonista, but I've got to say: Ruby does cross-building right. Even sqlite3 supports readline. I suspect that Python might have to be compiled natively, and this is where native gcc comes in.
I'd appreciate any help, of course
I'll follow this project with great interesting.
Hey guys, there have been a few updates:
opkg's lock file has been moved to /cache/opkg/lock so there's no need for a read-write /system just to query packages
gnupg has been packaged, for those who like to sign their stuff
python... well, I'm still working on it >.<
Anyway, I thought I'd do something to make this project more accessible. I don't have any apk's for you yet, but I've attached a screenshot of the work-in-progress
I am very impressed with the progress. I am a super-noob but have enjoyed toying with the packages from your opening post. I haven't had time to do much but explore, but this sure does open up a whole new world for the nook, from an accessability stand point alone. I wouldn't be suorised to see an uptick in interest as some if the more experienced coders are able to turn their attention from cm9.
I will probably install those latest packages sometime this weekend. Just real strong stuff.
Edit. Ok, o I just went ahead and did it now. Obviously, I couldn't get it to work. Have downloaded the FCC and got the hello file fro the dropbox. I ran the gcc -o hello hello.c and was returned a hashtag only. If I ran gcc hello, it outputted the hello program code. I tried several things basically willynilly until I got tired of getting a fatal error and having the build canceled.
If this is too basic and will clog the thread, I would happily accept a pm with a good tutorial. Thanks a bunch.
The problem with python maybe relationed with python-devel package?
Sorry is the question is stupid, i'm so noob.
The Python build process has two steps: first, you get the main Python executable, and then you get the modules. The executable built in the first step is used to test the modules in the second step. So, naively cross-compiling Python would result in most modules not passing the test (because you cannot actually run the Python you just built), and these modules would be removed. As it turns out, you could patch the build scripts to run the tests using a host-native Python, but even then, there are a few modules with particular requirements that still don't pass. This is where we are now, but I think we could do better.
Okay, so more progress: BotBrew.apk is out in the wild! I decided to put it off until I got some basic functionality working. What is this?
a basic GUI for package management
lists all packages
searches for packages by name
shows package information
installs/upgrades/removes packages
manages list of repositories
I've only really tested it with CM7, but it works on the latest CM9 previews as well.
Screenshots
​
mateorod said:
Edit. Ok, o I just went ahead and did it now. Obviously, I couldn't get it to work. Have downloaded the FCC and got the hello file fro the dropbox. I ran the gcc -o hello hello.c and was returned a hashtag only. If I ran gcc hello, it outputted the hello program code. I tried several things basically willynilly until I got tired of getting a fatal error and having the build canceled.
Click to expand...
Click to collapse
No worries. If gcc did not complain and dropped you back in the shell, this means it's done! Just list the directory to find a new file named hello, which you could run:
Code:
# gcc -o hello hello.c
# ls
backup download hello.c opkg
dalvik-cache hello lost+found recovery
# ./hello
hello world
#
I hope this helps!
Sorry if this sounds ignorant but is there any future usage aside from being a very interesting project? Will we be able to distribute open source projects / software specifically made for Android devices like on common Linux distributions?
BobbyBest said:
Sorry if this sounds ignorant but is there any future usage aside from being a very interesting project? Will we be able to distribute open source projects / software specifically made for Android devices like on common Linux distributions?
Click to expand...
Click to collapse
A valid question, I think. BotBrew has the potential of becoming a Cydia of sorts, distributing system extensions, interface customizations, and other useful software for rooted Android devices. Android has a vibrant community of programmers and scripters, but there isn't any standard way to manage software that are not apps. And there's a large body of open source Linux software that might work well on Android. Of course, BotBrew is also able to handle root apps that live in /system/app (i.e. gapps); for user-level apps, the various app stores already work quite well.
In order for this to become a serious platform, we'll need a couple of things: a solid technical foundation, developer support, and a user base. I've been making progress mostly towards the first point; hopefully the rest would follow.
Well I'll be. Yeah it worked. Who knew?
Okay, so that's great! I have printed 43 (my own design) and now the standard greeting has been successfully built and ran as well. I must toodle with it some more. What would you recommend to try? Remember, i am slow-witted and totally inexperienced.
If you say print 44 i will totally understand. : )
How about this, i would like to learn and i would like to help you with your program. I will probably be of most use as a guinea pig, but since i spend a fair amount of time jiggering system files and databases, I have to complete wipe about once a week. failure or risk doesn't bother me.
---------- Post added at 02:27 AM ---------- Previous post was at 01:51 AM ----------
Okay, i just got the apk. I autoremoved all installed packages. I installed opkg, python, gcc (binutils came along as a dependency) and the hello executable. But when i went into a terminal once i cd cache, it only lists opkg out of the five packages. This worked when i did the wget through the terminal. The packages show as installed within the botbrew app (nice icon and UI, btw).
I known I am doing something very simple incorrectly. Do you have enough information to be able to tell me what that is?
Congrats on a successful build! Now that you have a working program, you could package it up for distribution
What's more, you could do it directly on Android. Let's call this package mateorod-hello, prefixing it with the vendor's (your) name to avoid conflicts with other variants. We'll also rename the executable itself.
We'll install the program to /system/bin, where it would feel at home with all the other programs; so we create a staging directory tree that mimics the structure of an Android system, but contains just the one program:
Code:
cd /cache
mkdir -p system/bin
cp hello system/bin/mateorod-hello
Next, we need a control file to describe what's in the package. It might be easier to create the file on a computer and push it over, but we could also create it using the command line:
Code:
echo "Package: mateorod-hello" > control
echo "Version: 1.0" >> control
echo "Architecture: armeabi" >> control
echo "Description: a greeting from mateorod" >> control
And, finally, a magic value to signify what kind of package this is:
Code:
echo -n "2.0" > debian-binary
Okay, now let's pack this up:
Code:
tar zcvf data.tar.gz system
tar zcvf control.tar.gz control
ar -r mateorod-hello.opk debian-binary data.tar.gz control.tar.gz
We now have mateorod-hello.opk, which we could test by installing:
Code:
opkg install mateorod-hello.opk
Now that it's installed, the program within is also available:
Code:
mateorod-hello
This is quite a bit of work for something that could just be pushed over adb, but it could be automated and it works tremendously well for more complex software. The control file helps keep track of versions, and lets you specify dependencies too.
Oh, and to clean up a bit: (the first command makes sure you're in /cache and do not accidentally erase /system)
Code:
cd /cache
rm -r system control data.tar.gz control.tar.gz debian-binary
/edit:
mateorod said:
But when i went into a terminal once i cd cache, it only lists opkg out of the five packages. This worked when i did the wget through the terminal. The packages show as installed within the botbrew app (nice icon and UI, btw).
Click to expand...
Click to collapse
What did you do, cd /cache then ls? If so, you're most likely looking at the /cache/opkg directory, which contains temporary data. If you want to see what's installed using the command line, try opkg list-installed
I uh... picked a random icon I had lying around, and I plan to swap it out when I have time to make one. Thanks, though :3
The amount of help you're offering is just staggering. I will put the above together tonight and will report back.
I have a bug here in the GUI.
Rotation makes the app start looking for updates again.
edit: Reentering does the same...
opkg has then problems with set locks.
(CM7 KANG by MiRaGe)
Currently trying to install gcc to compile and run a small program...
edit2: gcc-4.6 installed. Still trying to compile a small prog. Will continue tomorrow...
Edit3: Well, problem with GUI fixed itself somehow.
Still, maybe you should check out how the GUI behaves during the installation process when rotated.
Yes, I can see how this bug could occur, and it should only happen during the first run. When the package cache is empty, the app tries to update by itself, and it seems that rotation causes something to restart. I've uploaded an update, which hopefully fixes this issue. Thanks for the report.
/edit:
Bug fixed for real. You may now rotate with impunity. Man, why can't Android have sensible defaults?
Okay, took me awhile, but...
$ export PATH=/data/local/bin:$PATH:.
$su
# cd cache/
# wget http://dl.dropbox.com/u/1213413/htdocs/agcc/hello.c
Connecting to dl.dropbox.com (174.129.218.194:80)
hello.c 100% |************************************| 93 0:00:00 ETA
# gcc -o hello hello.c
#ls
dalvik-cache hello lost+found recovery
download hello.c opkg
# ./hello
hello world
#mkdir -p system/bin
# cp hello system/bin/mateo-hello
#echo "Package: mateo-hello" > control
#echo "Version: 1.0" >> control
#echo "Architecture: armeabi" >> control
# echo "Description: a word from Mateo" >> control
#echo -n "2.0" > debian-binary
# tar zcvf data.tar.gz system
system/
system/bin/
system/bin/mateo-hello
# tar zcvf control.tar.gz control
control
# ar -r mateo-hello.opk debian-binary data.tar.gz control.tar.gz
ar: creating mateo-hello.opk
#opkg install mateo-hello.opk
Installing mateo-hello (1.0) to root...
Collected errors:
Two sets of collected errors related to system not being mounted R/W excised
Installing mateo-hello (1.0) to root...
Configuring mateo-hello.
#mateo-hello
hello world
#
So there it is. I just followed your more-then-generous guide, with some phrasing changes to show i didn't just copy/paste.
Some notes from the inexperienced:
-As you can see, I had to use the wget command to work on the hello.c script. I had hello as an installed package through the Botbrew GUI already, but no matter what permutation of hello command I ran, gcc would not recognize it as an input file. Just to say that your guide to the initial build, as written, i don't think will work for anyone who installs the packages through the apk. I don't know the solution, but i bet it's simple.
Edit: I guess the package you get through your apk is a fully built executable? I hadn't gone through the later steps when I first tried to build it, so I never thought to simply enter "hello". Output a much fancier greeting then the one I built. Capital letters and an exclamation mark! Very nice.
- For other newbies- make sure that system is mounted R/W through root explorer or some such. And if you employ a firewall, if you intend to use the wget command, not only do you need to allow your terminal through, you also need to allow applications running as root! I am sure this is news to no one, but it cost me FOREVER!
I feel like this constitutes progress. Thanks for all the work!

[ OS ] Builduntu Install Disc v2 - Android ROM Compiling OS

--- copied with permission from nathanpfry.com ---​
Builduntu is a custom branch of the Ubuntu operating system, based on my guide here for preparing Ubuntu 16.04 to compile Android ROMs from source. It includes everything you need to sync with the repository of your choice (Cyanogenmod, AOKP, AOSP, etc) and start building.
I am not responsible for any damage you may cause to your system/files while trying to install Builduntu. This has been tested and verified working by me, so if you break Windows or your system won't boot, it's your fault.
This thread is not the place to ask how to install Linux or Dual Boot!!! These topics are well documented elsewhere and can be easily found in a few seconds on Google.
Thanks to Canonical, Google and me.
Features:
- Xubuntu 16.04 LTS base system
- Installed all necessary packages for compiling (list available in the guide link above)
- Unnecessary junk removed (media players, games etc.)
All you have to do is download the source!
The only requirement is that your host machine supports a 64 bit OS. 32 bit systems will not work!
Instructions:
1. Use your favorite image burning software to write the builduntu ISO to a blank DVD. Will not fit on a CD
2. Boot the disc. When the graphical installer starts, click "Install Xubuntu"
3. Follow the on-screen instructions to select language, username, etc. * Note * When setting up partitions, I recommend doing it yourself if you know how. If not, that's fine, let Ubuntu decide for you.
4. When the installation finishes, reboot and eject the installation media.
5. Sync the Android source locally:
~ A program called "repo" lets you communicate with git repositories and download source code. The following command will install it:
Code:
mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo
~ Use nano to edit ~/.bashrc
Code:
sudo nano ~/.bashrc
~ At the very bottom (use the Page Down key) paste this code to a new (empty) line:
Code:
export PATH=~/bin:$PATH
~ Save it. In nano that would be Ctrl-O and then Enter. Then Ctrl-X to exit back to a prompt. Restart bash:
Code:
source ~/.bashrc
~ In the terminal, navigate to where you would like to download the Android source code. The command below will make it in your home folder, but if you have limited space you may want to create it somewhere else. Faster is better, i.e. SSD would be best, USB external is basically unusable.
Code:
mkdir ~/android
cd ~/android
~ Now to initialize the repo. Decide the flavor of Android to build, i.e. AOKP, CyanogenMod, AOSP etc.
For the purposes of the tutorial, here's the command for CyanogenMod 13:
Code:
repo init -u https://github.com/CyanogenMod/android.git -b cm-13.0
repo sync
When that is finished downloading, you're ready to start compiling ROMs!
Download Builduntu ISO:
Click here for mirrors!
Let me know how it works for you!
Feel free to buy me a Zico (donate) if you like my work. It would be greatly appreciated!
Please hit the "Thanks" button if this project helps you out!​
Code:
[U][B]Changelog:[/B][/U]
v1.0 - First Release Mar 05 2014
v1.1 - Rebuilt from scratch the hard way
v1.2 - 4/20 Release - Update to 14.04 LTS Official
v2.0 - Update to 16.04 LTS with OpenJDK 8 for Android M builds
This is just awesome +1
This is Xubuntu 13.10...
I burned image on DVD using Brasero (ubuntu program) and run installation process from that DVD.
And before the end of installation I got this error:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Of course "buildbuntu" doesn't boot, some errors with reading/writing sda partition.
Luckly I installed it on my test drive so my workspace isn't damaged.
lozohcum said:
This is Xubuntu 13.10...
I burned image on DVD using Brasero (ubuntu program) and run installation process from that DVD.
Click to expand...
Click to collapse
I installed it to a fresh system just fine yesterday, not sure what your issue could be from. Could you post an installation log? Did you verify the md5sum of your downloaded file?
It is in fact Xubuntu 14.04. Canonical hasn't bothered changing the initial splash screen yet because it's still in beta. If you run the Live instance and check the version of ubuntu it correctly identifies as Trusty Tahr.
sylentprofet said:
I installed it to a fresh system just fine yesterday, not sure what your issue could be from. Could you post an installation log? Did you verify the md5sum of your downloaded file?
It is in fact Xubuntu 14.04. Canonical hasn't bothered changing the initial splash screen yet because it's still in beta. If you run the Live instance and check the version of ubuntu it correctly identifies as Trusty Tahr.
Click to expand...
Click to collapse
How to take installation log?
lozohcum said:
How to take installation log?
Click to expand...
Click to collapse
After the error appears it should load you into a live desktop session. The install log will be located there, perhaps in /var/log, /var/log/installer or the guest session home directory. Look around for .log files
edit : delete
I was hoping for a ubuntu base same as your virtual os..xubuntu ui is different and difficult
Ccahe error
Im trying to compile tihe ccache and when i set it up i recieve this error
bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory
any ideas on how i can fix this would be appreciated
thanks
perfectpitch said:
Im trying to compile tihe ccache and when i set it up i recieve this error
bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory
any ideas on how i can fix this would be appreciated
thanks
Click to expand...
Click to collapse
First, make sure ccache is installed (I'm reasonably sure it is out of the box)
Code:
sudo apt-get install ccache
If that's ok, check this link below and scroll down to Step 4a (optional).
http://forum.xda-developers.com/showthread.php?t=2506695
Ccache is not necessary and not ideal for all systems, so you may just want to disable it in your build process. Hope this helps.
Thanks I'll check it out
Sent from my Nexus 4 using XDA Premium 4 mobile app
so i dual booted ubuntu 13.10 on my laptop... but i couldn't build on it due to some stupidity... anyway, if someone could answer me some questions, maybe I'll uninstall ubuntu and switch to this since it's way easier for me.
1) did anyone successfully dual boot it? even with UEFI on?
2) can we transfer the source codes from an OS to another by packaging them and then extracting them in the new xubuntu? will it work that way?
Sent from my Nexus 4
lozohcum said:
This is Xubuntu 13.10...
I burned image on DVD using Brasero (ubuntu program) and run installation process from that DVD.
And before the end of installation I got this error:
Of course "buildbuntu" doesn't boot, some errors with reading/writing sda partition.
Luckly I installed it on my test drive so my workspace isn't damaged.
Click to expand...
Click to collapse
Hello, have you already solved that problem? Because since hours, even days I try to install builduntu on my notebook, but always got that error too!. I have usb legacy enabled, raid disabled and uefi boot enabled. I have a small ssd and a normal hdd. What am I doing wrong. I cannot get it to work, neither with manual editing the moint points, nor with automatically install through the system.
Many thanks!!
rodman01 said:
Hello, have you already solved that problem? Because since hours, even days I try to install builduntu on my notebook, but always got that error too!. I have usb legacy enabled, raid disabled and uefi boot enabled. I have a small ssd and a normal hdd. What am I doing wrong. I cannot get it to work, neither with manual editing the moint points, nor with automatically install through the system.
Many thanks!!
Click to expand...
Click to collapse
I never received an installation log from anyone so I have no way to start to figure out what went wrong.
It seems like many users have installed successfully, but a few are encountering errors like the one mentioned above.
I don't know how to help you without more information about the problem and your system. It could be a million things with how vague the descriptions are.
rodman01 said:
Hello, have you already solved that problem? Because since hours, even days I try to install builduntu on my notebook, but always got that error too!. I have usb legacy enabled, raid disabled and uefi boot enabled. I have a small ssd and a normal hdd. What am I doing wrong. I cannot get it to work, neither with manual editing the moint points, nor with automatically install through the system.
Many thanks!!
Click to expand...
Click to collapse
I haven't fixed it. I installed xubuntu and ocnfigured it on my own.
I wasted two DVDs for that Builduntu :/
i installed xubuntu today, it boots without a CD (just to confirm it's installed)
inside settings there's a button called "Install RELEASE", should i? i mean... it's already installed :S
Sent from my Nexus 4
sylentprofet said:
I never received an installation log from anyone so I have no way to start to figure out what went wrong.
It seems like many users have installed successfully, but a few are encountering errors like the one mentioned above.
I don't know how to help you without more information about the problem and your system. It could be a million things with how vague the descriptions are.
Click to expand...
Click to collapse
Yes sure can be many things....but here attached are some log files one/two from my try a couple of minutes ago. Problem is, that I already tried so many things and absolutely not sure whether it is my fault, my hardware or perhaps a bad download, in short where I have to look for the solution? Perhaps the log files give some useful information to you :fingers-crossed:
lozohcum said:
I haven't fixed it. I installed xubuntu and ocnfigured it on my own.
I wasted two DVDs for that Builduntu :/
Click to expand...
Click to collapse
Thanks for the info...can you pass me the download link? Haven't found it after a first and quick search ...
Edit: found it in the meantime....
update
In the meantime, I have also downloaded the "pure" Xubuntu and got it installed with the very first try. Exact with the same settings as last tries with builduntu. Dev environment is installed and source codes downloaded. At the moment I am building my first rom with this software. Hopefully it finishes without errors :fingers-crossed: .
i downloaded the sources on a VM, but couldn't make it work on my secondary OS after compression, tranfser, and extraction of the sources...
now redownloading from scratch on a 1Mbps (that's 128KB/s max) speed
Sent from my Nexus 4

Modded Windows Virtual Machines

Hello,
Here are some Virtual Machines with Modded Windows Preinstalled (JROM)...
Password is 0110
VIDEO DEMONSTRATION:
VIDEO IS IN REAL TIME, HOST PC IS ON JROM-WIN10.
LEFT VM IS WIN10, RIGHT VM IS WIN11R00T.
Download Virtualbox:
Oracle VM VirtualBox
www.virtualbox.org
You will need the vbox extension pack too.
https://download.virtualbox.org/virtualbox/6.1.32/Oracle_VM_VirtualBox_Extension_Pack-6.1.32.vbox-extpack
===============================
JROM-WINDOWS11R00t Machine:
===============================
DOWNLOAD: https://drive.google.com/file/d/1wrUI5F-hNpECDKu28t1k2S28OwmWuY1G/view?usp=sharing
Alternative site pending
8.6 GB
Has Android Subsystem Installed. WSA isn't fully functional in the VM for reasons I haven't figured out yet.
At least on AMD... If Anyone has any Ideas, please reach out~!
Also has brave browser, ADB, Apk installation, and subsystem dependencies preinstalled.
I am taking a break from this project, but will come back to this project to fix WSA in the VM.
Unless a Superstar can Beat me to it ;-)
===============================
JROM-Windows 11 Lite Machine:
===============================
DOWNLOAD: https://drive.google.com/file/d/1un5UXDvx8WfvXABoANmuR5FvgHcNcNAZ/view?usp=sharing
Alternative site pending
5.0 GB
Bare bones install, has windows 11 toolbar.
Mostly intended for Devs to test their software on a more "Genuine" Windows 11 iso, minus some bloat.
===============================
JROM-Windows 10 Lite Machine:
===============================
DOWNLOAD: https://drive.google.com/file/d/1-0Gt_0GY4X77PIoQi1c-pHt9B4HmqB5-/view?usp=sharing
Alternative site pending
4.4 GB
Bare bones install, intended for work use~!
===============================
*HOW TO INSTALL*
===============================
Extract the machine. Right click and cut it.
Go to C:\ USERS YOURUSERNAME
Go to VirtualBox VMs folder or create a folder and name it "VirtualBox VMs".
Paste the machine in the folder. Run the file with the Blue Cube~!
You can edit the ram, etc as you see fit.
===============================
FOR PREMADE MODDED WINDOWS ISOS
===============================
https://forum.xda-developers.com/t/...lite-iso-plus-win11r00t-w-wsa-bundle.4392727/
IMO far easier is to install Genymotion - an x86-64 emulator based on Virtualbox - what offers Android images up to Android 11.
jwoegerbauer said:
IMO far easier is to install Genymotion - an x86-64 emulator based on Virtualbox - what offers Android images up to Android 11.
Click to expand...
Click to collapse
I've been on Genymotion since 6 years ago and completely disagree. It is a terrible service that CHARGES you to have to do everything you can do for free if you build your own emulator or even use nox or bluestacks and ROOT them and debug THEIR LAUNCHER to CLEAN Them.
I created scripts when GENYMOTION first came out to help get the play store installed and remove bad apps, etc.
They are Greedy as are Most these Emulator Makers
jenneh said:
I've been on Genymotion since 6 years ago and completely disagree. It is a terrible service that CHARGES you to have to do everything you can do for free if you build your own emulator or even use nox or bluestacks and ROOT them and debug THEIR LAUNCHER to CLEAN Them.
Click to expand...
Click to collapse
That's really weird: I'm using Genymotion since years, too, and I never had to pay for anything.
jwoegerbauer said:
That's really weird: I'm using Genymotion since years, too, and I never had to pay for anything.
Click to expand...
Click to collapse
Perhaps they changed it, it was originally free, then they started incorporating stupid pay walls, like charging you to change the IMEI, and eventually getting rid of their "free" personal use option after folks like me showed how to do this for free.
I guess the free option is back but the company as a whole left a sour taste in my mouth, when you can make anything they can with knowledge on gapps and android firmware, or different operating systems to use our apps entirely, like Lineage and Ubuntu-Touch
So what took me several days to figure out on windows, took me an hour to figure out on linux... And behold, Anbox is installed, in a virtual machine running Lubuntu... tee hee! Lemme do some testings... things.. yeah
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
NOTE THAT THEORETICALLY WE COULD INSTALL ANBOX THROUGH WINDOWS SUBSYSTEM FOR LINUX. I WILL TEST VIRTUAL MACHINES VS BARE BONES AND WE WILL SEE WHO IS THE VICTORZ
Posting the code here so I don't lose it when I reinstall my OS's a bagillion timez...
************************************
Installing Anbox:
sudo add-apt-repository ppa:morphis/anbox-support
sudo apt install software-properties-common
sudo apt install linux-headers-generic anbox-modules-dkms
sudo apt update
sudo apt upgrade
sudo modprobe ashmem_linux
sudo modprobe binder_linux
snap install --devmode --beta anbox
***************************************
I'm on a train of thought here, concerning Win 11, creating vms with the stock iso, and this "TPM 2.0" Going to paste this llink here to cement that thought for another day... https://www.msn.com/en-us/sports/es...e-not-meeting-minimum-requirements/ar-AAPe1kg
For those interested in a fully cleaned Android Emulator, w/ R00t
Nox Clones
I'm tired of all the Garbageware on Every Single Android Emulator Out There. So I fixed it. DOWNLOAD UNPACK AND INSTALL: NOX FIX TOOLS https://mega.nz/file/ARxBhSRL#AxOhNGHxyk1keOh1N9KfWvhItDQ85_BHdMBGe5xmIBE CLONED NOX MACHINE...
forum.xda-developers.com
edit--- fixed the tpm settings,, will be updating the virtual machine and this guide shortly
Google Drive links have been added for all machines. The Mega Mirrors are uploading now. . .
Had to roll with Google first bc Mega is being... wonky.
For future reference if you haven't already figured it out yet, your processor and your hypervisor both need to support Nested VT-x (Nested Virtualization) for WSA to execute in a VM. This is because both Windows Subsystem for Linux and Windows Subsystem for Android use the Hyper-V hypervisor to accomplish booting their respective Linux kernels and userspace up. They no longer use the syscall translation driver, which would've worked under a VM.
Btw, what did you find the most troublesome about the installation of WSA? I found it was remarkably straightforward to install even from APPX (or in my case since I'm using a modified WSA with Google Services, an unpacked APPX).
ShadowEO said:
For future reference if you haven't already figured it out yet, your processor and your hypervisor both need to support Nested VT-x (Nested Virtualization) for WSA to execute in a VM. This is because both Windows Subsystem for Linux and Windows Subsystem for Android use the Hyper-V hypervisor to accomplish booting their respective Linux kernels and userspace up. They no longer use the syscall translation driver, which would've worked under a VM.
Btw, what did you find the most troublesome about the installation of WSA? I found it was remarkably straightforward to install even from APPX (or in my case since I'm using a modified WSA with Google Services, an unpacked APPX).
Click to expand...
Click to collapse
Oooohhhh Thank You~! I will research this further within the VM.
Honestly I didn't find anything difficult, other than finding out from start to finish how to do everything I wanted to do. So it's just amazing to have the Internet, Forums, Nerds that Make Websites, stuff like that to help make, idk, a guide or instructions? to make things easier.
Also really grateful for the software engineers that continue to implement such innovations, even though I jest by calling it "suboptimal" I'm sorry but ""WSA""~~~ wINDoehz.. ya set yourselves up for that one ;-)
jenneh said:
Oooohhhh Thank You~! I will research this further within the VM.
Honestly I didn't find anything difficult, other than finding out from start to finish how to do everything I wanted to do. So it's just amazing to have the Internet, Forums, Nerds that Make Websites, stuff like that to help make, idk, a guide or instructions? to make things easier.
Also really grateful for the software engineers that continue to implement such innovations, even though I jest by calling it "suboptimal" I'm sorry but ""WSA""~~~ wINDoehz.. ya set yourselves up for that one ;-)
Click to expand...
Click to collapse
Oh Gawd I Cannot Resist.
I offer a Solution to the Problem.....
Let's just call it, "WAP"
.... "Windows Android Player".

Categories

Resources