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

--- 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

Related

[LINUX] Linux-on-Android project (incorporating Ubuntu installer)

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

[Q] How do I build/compile an APK from a Github source?

Hello everyone
First I thought this was a nooby question, but after talking to a few professionals in this section it seems like it isn't a nooby question at all. The question is pretty easy: what is the most simple way to get the latest version of TextSecure installed on my Android Phone?
My solution was creating something using the sourcecode found here: https://github.com/WhisperSystems/TextSecure
But the question is, how can I get it working. I've tried multiple things, but it seems like it isn't as easy as I thought.
Currently I am on Windows 8. My phone is an Xperia S without GAPPS flashed, so no Play Store. Only F-Droid with FOSS.
Thanks in advance
Rakoen said:
Hello everyone
First I thought this was a nooby question, but after talking to a few professionals in this section it seems like it isn't a nooby question at all. The question is pretty easy: what is the most simple way to get the latest version of TextSecure installed on my Android Phone?
My solution was creating something using the sourcecode found here: https://github.com/WhisperSystems/TextSecure
But the question is, how can I get it working. I've tried multiple things, but it seems like it isn't as easy as I thought.
Currently I am on Windows 8. My phone is an Xperia S without GAPPS flashed, so no Play Store. Only F-Droid with FOSS.
Thanks in advance
Click to expand...
Click to collapse
I guess you can download that TextSecure source code and import as a Project in Eclipse and simply run (If no errors are detected), and I think it will build the apk and execute in the emulator (If you have already created one)
Thanks for the advice. So this is what I did: I've installed the latest version of the Android SDK Tools and installed/updated all needed tools. Afterwards I installed Eclipse Classic with the ADT Plugin en latest updates. Now I'm kind of stuck. I can't seem to get the sourcecode imported to Eclipse. Any ideas?
Rakoen said:
Thanks for the advice. So this is what I did: I've installed the latest version of the Android SDK Tools and installed/updated all needed tools. Afterwards I installed Eclipse Classic with the ADT Plugin en latest updates. Now I'm kind of stuck. I can't seem to get the sourcecode imported to Eclipse. Any ideas?
Click to expand...
Click to collapse
How about pasting that source into your workspace folder. Then open Eclipse and check whether it shows up in the Projects List.
coolsandie said:
How about pasting that source into your workspace folder. Then open Eclipse and check whether it shows up in the Projects List.
Click to expand...
Click to collapse
It seems like the project has compilation errors. I managed to import it somehow, but can't run or export it.
Rakoen said:
It seems like the project has compilation errors. I managed to import it somehow, but can't run or export it.
Click to expand...
Click to collapse
Hmm, errors must be eliminated before executing. Try a Project Clean.
It's not mentioned on the repo , which is sneaky , but the app uses ActionBarSherlock library: or it was when I last checked. You clone that and bring it into Eclipse or whatever. On ant anyway you must have a file called project.properties with the following lines: android.library.reference.1=path/to/ActionBarSherlock/library and target=android-17. If you have problems you should always write the error, otherwise we can't help you.
@coolsandie
Excuse me, but what exactly do you mean with "try a Clean Project"? I'm not quite experienced on the side of Eclipse.
@dabl8
Thanks for the advice. I'm not sure however if I imported it well, as it always seem to get imported as a different projecten, not quite integrated in my TextSecure building tryout.
This is my current situation:
{
"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"
}
These are the errors:
http://dl.dropbox.com/u/3062101/errors.txt
Rakoen said:
@coolsandie
Excuse me, but what exactly do you mean with "try a Clean Project"? I'm not quite experienced on the side of Eclipse.
Click to expand...
Click to collapse
There is a "Clean Project" item in the Menu List, just check inside the Menu. I may have opened my Eclipse and tell you where exactly, but then my Eclipse is totally damaged after an update and won't open further.
From your screenshot, the errors are in Manifest and the Java source codes (src)
And make sure you are using JDK6, JDK7 won't work. It can be checked by running "javac -version" in command prompt and if its JDK6 you'll get something like 'javac 1.6.xxx'
coolsandie said:
There is a "Clean Project" item in the Menu List, just check inside the Menu. I may have opened my Eclipse and tell you where exactly, but then my Eclipse is totally damaged after an update and won't open further.
From your screenshot, the errors are in Manifest and the Java source codes (src)
And make sure you are using JDK6, JDK7 won't work. It can be checked by running "javac -version" in command prompt and if its JDK6 you'll get something like 'javac 1.6.xxx'
Click to expand...
Click to collapse
So first of all I've checked my Java version and it seems like I indeed had JDK7, so I removed it and installed the latest JDK6. This shoud be alright I presume?
And if it is this you meant with the Project Clean, then it didn't work.
Thanks however. Any other ideas?
Rakoen said:
So first of all I've checked my Java version and it seems like I indeed had JDK7, so I removed it and installed the latest JDK6. This shoud be alright I presume?
And if it is this you meant with the Project Clean, then it didn't work.
Thanks however. Any other ideas?
Click to expand...
Click to collapse
Still, your "java -version" displays as 1.7.xxx which means JRE maybe of version 7. So correct that issue. However Android may/may not support Java 7 but Java 6 is officially recommended (Search on Stackoverflow, you'd get many discussion results based upon java issues). Anyways I'm not sure whether these are the things that's giving you error, but be on safer side.
In the Error log you've posted, it looks like in almost every line its displaying error meaning its not the code issue itself but some other things which is causing the code to malfunction or to get compiled. I maybe wrong about it too.
Yes it must be a java problem: I don't recognize those errors at all. I use ant with OpenJDK 1.6 on GNU. I recommend ant if you are not a coder and just want to build a few apps. I got one error myself but that was fixed by using the support library that comes with android-17 SDK.
coolsandie said:
Still, your "java -version" displays as 1.7.xxx which means JRE maybe of version 7. So correct that issue. However Android may/may not support Java 7 but Java 6 is officially recommended (Search on Stackoverflow, you'd get many discussion results based upon java issues). Anyways I'm not sure whether these are the things that's giving you error, but be on safer side.
In the Error log you've posted, it looks like in almost every line its displaying error meaning its not the code issue itself but some other things which is causing the code to malfunction or to get compiled. I maybe wrong about it too.
Click to expand...
Click to collapse
dabl8 said:
Yes it must be a java problem: I don't recognize those errors at all. I use ant with OpenJDK 1.6 on GNU. I recommend ant if you are not a coder and just want to build a few apps. I got one error myself but that was fixed by using the support library that comes with android-17 SDK.
Click to expand...
Click to collapse
Okay, I've spent some hours on it and got very far, but am stuck now. First of all I've uninstalled all Java versions I had, then installed JDK6 (update 37 final). I rechecked it.
Then I did lots and lots of things that I can't remember all. Things with Eclipse properties, project.property editing, experimenting with environment variables, experimenting with Android SDK and a lot more (like symbolic links in my JDK folder). However, this ended in some very interesting results. I also found that the android-support-v4.jar in the ActionBarSherlock extension was different than the one of TextSecure, so I replaced both files with the TextSecure version (not sure what I did, but it made some progress).
First of all, I am going to show the progress I made with Eclipe (not so interesting that one). Now I only get 688 errors and 157 warnings, which means 236 problems less than yesterdag, awesome!
Log file: http://dl.dropbox.com/u/3062101/upgradedlog.txt
Then I thought, this doesn't work, lets try ANT. After fixing lots of issues and errors, I was finally able to build an APK! It didn't install at first, because it was unsigned, so I used the autosign.bat tool to fix that issue. I finally managed to install the application, but now there is one problem left: it fails to launch.
"Unfortunately, TextSecure has stopped."
Any ideas?
Thanks!
EDIT: Just tried it with the latest android-support-v4.jar from Android SDK and it still doesn't start. So I don't think that's the problem.
With ant , I do git clone textsecure; git clone actionbarsherlock; copy support jar from textsecure/libs to ABS/library/libs; vi textsecure/project.properties; $android update project -p textsecure && android update project -p abs/library ; cd textsecure; ant debug install
dabl8 said:
With ant , I do git clone textsecure; git clone actionbarsherlock; copy support jar from textsecure/libs to ABS/library/libs; vi textsecure/project.properties; $android update project -p textsecure && android update project -p abs/library ; cd textsecure; ant debug install
Click to expand...
Click to collapse
Tried these steps on Windows. The 'android update project -p abs/library' command fails.
Code:
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android.bat update' command.
Also the 'ant debug install' command failed.
Code:
BUILD FAILED
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:647: The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:688: null returned: 1
EDIT: Also, when adding android.library.reference.1="../ActionBarSherlock-master/library" to project.properties myself, I get this error with 'ant debug install':
Code:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:595: Invalid file: C:\Users\PC\Desktop\ActionBarSherlock-master\library\build.xml
EDIT2: Maybe an interesting detail is that it fails here:
Code:
Building Libraries with 'debug'...
It's what it says : you don't have the SDK platform (target) that ActionBarSherlock is looking for. Either download it or change the project.properties to use one that you have.
Link to steps
I'm not sure if you are still looking to build it from source.
This one worked for me: https://github.com/WhisperSystems/TextSecure/wiki/How-to-build-TextSecure-from-the-sources (detailed for newbies)
https://play.google.com/store/apps/details?id=jp.forkhub
Don't forget... getting in the fray of development is the best way to be included!

[Ubuntu] T3buntu

{
"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"
}
Please OP remove my old post about Ubuntu on Tab 3...
T3buntu (Had to call it something...)
Disclaimer:
What you do with this information is up to you. If your device breaks while trying anything in here you do that at your own risc.
I cant be held responsible for anything that happens to your device.
Everything in here was tested on a Samsung Galaxy Tab3 10.1(5210) if you try anything in here on any other device thats up to you.
Most of the work is made by the Linux on Android team i have just tested and fixed some stuff.
The image is ext2, x86 but im working on a ext4, AMD64 image.
”Changelog”
1. Replaced lxde with KDE Plasma
2. Added entryś in etc/fstab for int/ext SdCards
3. Edited bootscript from the Linux on Android team so that the SdCards in the Tab is correcly mounted and works with fstab.
4. Installed "missing" packages to minimize errors.
Works:
Wifi
Battery indicator
Int/Ext SdCard
Most of the stuff in Ubuntu.
Issues:
Leftpanel is black
Slow startup, but can be fixed. I will add that later.
Some apps dont work if you start them as root.
Couldnt make jpg work as wallpaper so using png at the moment.
Rotation isnt setup since we cant use xrandr to rotate the screen..
Not tested:
GPS
ToDo
Streamline startup
Add init.d support on the Tab
Tweaking were ever possible.
Fix sound
Now for the fun stuff.
Installation:
1. Root your device. I used this Guide.
2. Install Busybox.
3. Install Linux on Android.
4. Install a VNC client of your shoice, i preferr Jump Desktop free.
5. Copy bootscript.sh to /data/data/com.zpwebsites.linuxonandroid/files/ overwrite the old file.
6. Unpack and Copy the t3buntuv1.2_20131216.img to a place of your choosing on either internal or external sdcard.
7. Make a Linux on Android widget and point it to the img file you copied in 6.
OBS !! This image is preconfigured with the user ubuntu and psw t3buntu..
8. Now click on the LOA widget you made in 7 and let linux ”bootup”
9. In your VNC client connect to localhost.
DONE ! Your now in Ubuntu..
If you want more screenspace you can uncomment
# service call activity 42 s16 com.android.systemui
In bootscript.sh this will remove the android panel. The problem with this at the moment is that to
get it back you have to restart the Tab becourse the ´am´ command to get it back ”Seg faults” on
my tab and i havnt figured out why yet.
Consider this image as alpha...
OBS !! The image file is BIG 1.4GB compressed and 4GB decompressed. Will try and make it smaller not sure how the Linux on Android team made there images so small...
LINK to imagefile
LINK to bootscript
Credits
Linux on Android team
The one that made the scripts from the start. Not sure who made them...
How about a link to get 3. Linux on Android.
I know I'm top lazy to Google.
Sent from my GT-P5210 using XDA Premium HD app
Awesome! Glad to see something! And having Ubuntu is a very cool os to have! Good work and thank you!
Sent from my SCH-I605 using xda app-developers app
Added links to Linux on Android and Busybox in first post.
Nice, but there are a few things...
The bootscript.sh contains one little, but crucial error.
At line 172, character 44, you forgot one space, which makes the mount procedure unusable:
Code:
$bbox mount -o bind /storage/extSdCard $mnt/extSdCard
Which should be:
Code:
$bbox mount -o bind /storage/extSdCard $mnt/extSdCard
Without this (for me) it failes while it's starting up.
And, another thing, my tablet reboots at the moment I have to run VNC to start the X server, even though I'm not doing or touching anything.
After reboot it doesn't start up t3buntu either.
But, very good work !!
And yes, I do have Samsung Galaxy Tab 3 10.1 GT-P5210...
RubenStauttener;48606882]Nice, but there are a few things...
The bootscript.sh contains one little, but crucial error.
At line 172, character 44, you forgot one space, which makes the mount procedure unusable:
Code:
$bbox mount -o bind /storage/extSdCard $mnt/extSdCard
Which should be:
Code:
$bbox mount -o bind /storage/extSdCard $mnt/extSdCard
Without this (for me) it failes while it's starting up.
Havnt noticed any problems here but i have added the space and updated the script since both versions works for me.
And, another thing, my tablet reboots at the moment I have to run VNC to start the X server, even though I'm not doing or touching anything.
After reboot it doesn't start up t3buntu either.
Does it reboot during script execution ? It do sound like a mem issue. Do you have widgets and such running in android ?
You can try with enabling the swapfile in bootscript.sh .
But, very good work !!
And yes, I do have Samsung Galaxy Tab 3 10.1 GT-P5210...
I've got the terminal up and running fine. But I can't VNC into it. What settings are you using for you VNC viewer?
How about native graphic support using libhybris? Or since this device use PowerVR SGX 544, is native X11 possible? Reference: https://wiki.archlinux.org/index.php/Intel_GMA3600
EDIT: https://github.com/trevd/android_kernel_samsung_santos10/tree/cm-10.2/drivers/staging/mrst/pvr and https://github.com/thomas001/cedarview-drm/tree/master/staging/cdv/pvr looks similar
Thanks for sharing but it's not working
VNC: autentification failed !
Jump Desktop: It ask a password, and I don't have this password !
Sent from Gallifrey using TARDIS
Nonta72 said:
Thanks for sharing but it's not working
VNC: autentification failed !
Jump Desktop: It ask a password, and I don't have this password !
Sent from Gallifrey using TARDIS
Click to expand...
Click to collapse
Test password: ubuntu
When run script say mnt error =/
zorrigas said:
Test password: ubuntu
When run script say mnt error =/
Click to expand...
Click to collapse
Thanks, but I already solved it :good:
Sent from my GT-5210 powered by AmatROM HD
Hi, I posted a question in the Q&A forum (them 10 posts), but I guess it really belongs here.
Tried this on my TWRP rooted UANB4 stock rom P5210, stock kernel. And I get the following with your script and image:
Code:
[email protected]:/ $
[email protected]:/ $ cd /storage/extSdCard/Img
[email protected]:/storage/extSdCard/Img $ su
[email protected]:/storage/extSdCard/Img # sh /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh /storage/extSdCard/Img/t3buntuv1.2_20131216.img
Checking loop device... FOUND
mount: mounting /dev/block/loop255 on /data/local/mnt failed: Invalid argument
Error: Unable to mount the loop device!
1|[email protected]:/storage/extSdCard/Img #
Line : $bbox mount -t ext2 /dev/block/loop255 $mnt
Do I tell busybox to overwrite the mount command?
Otherwise, excellent work, cant wait till I have it running.
*EDIT*
Turns out I just had to copy the image again, I guess my first transfer got cut off.
Totally works, thx
hey. i noticed that the last update was in April of 2014. i was wondering if there was any updates on this.
getting linux on my tablit was the #1 reason i chose to root my GT-P5210 in the first place.
Homage said:
hey. i noticed that the last update was in April of 2014. i was wondering if there was any updates on this.
getting linux on my tablit was the #1 reason i chose to root my GT-P5210 in the first place.
Click to expand...
Click to collapse
I did not try this one. I bet itworks in VNC as it tell us. Instead i did
http://forum.xda-developers.com/showpost.php?p=58175673&postcount=54
I guess I can say it work aceptable in VNC mode, definitly work nice in comand mode. I been working in a native solution but it is a hard bone for my teeth. Look in the general area.
Download link is down
I would like to run Ubuntu on my Tab 3 but the link doesn't work. Could some upload a working link please?
Hi Guys,
Anyona has this .sh script and the t3buntuv1.2_20131216.img file? if you send me im hosting and distributing free as i live i want to use for my home automatization.
THX
G
jorgen_gustavsson said:
Please OP remove my old post about Ubuntu on Tab 3...
T3buntu (Had to call it something...)
Disclaimer:
What you do with this information is up to you. If your device breaks while trying anything in here you do that at your own risc.
I cant be held responsible for anything that happens to your device.
Everything in here was tested on a Samsung Galaxy Tab3 10.1(5210) if you try anything in here on any other device thats up to you.
Most of the work is made by the Linux on Android team i have just tested and fixed some stuff.
The image is ext2, x86 but im working on a ext4, AMD64 image.
”Changelog”
1. Replaced lxde with KDE Plasma
2. Added entryś in etc/fstab for int/ext SdCards
3. Edited bootscript from the Linux on Android team so that the SdCards in the Tab is correcly mounted and works with fstab.
4. Installed "missing" packages to minimize errors.
Works:
Wifi
Battery indicator
Int/Ext SdCard
Most of the stuff in Ubuntu.
Issues:
Leftpanel is black
Slow startup, but can be fixed. I will add that later.
Some apps dont work if you start them as root.
Couldnt make jpg work as wallpaper so using png at the moment.
Rotation isnt setup since we cant use xrandr to rotate the screen..
Not tested:
GPS
ToDo
Streamline startup
Add init.d support on the Tab
Tweaking were ever possible.
Fix sound
Now for the fun stuff.
Installation:
1. Root your device. I used this Guide.
2. Install Busybox.
3. Install Linux on Android.
4. Install a VNC client of your choice, i preferr Jump Desktop free.
5. Copy bootscript.sh to /data/data/com.zpwebsites.linuxonandroid/files/ overwrite the old file.
6. Unpack and Copy the t3buntuv1.2_20131216.img to a place of your choosing on either internal or external sdcard.
7. Make a Linux on Android widget and point it to the img file you copied in 6.
OBS !! This image is preconfigured with the user ubuntu and psw t3buntu..
8. Now click on the LOA widget you made in 7 and let linux ”bootup”
9. In your VNC client connect to localhost.
DONE ! Your now in Ubuntu..
If you want more screenspace you can uncomment
# service call activity 42 s16 com.android.systemui
In bootscript.sh this will remove the android panel. The problem with this at the moment is that to
get it back you have to restart the Tab becourse the ´am´ command to get it back ”Seg faults” on
my tab and i havnt figured out why yet.
Consider this image as alpha...
OBS !! The image file is BIG 1.4GB compressed and 4GB decompressed. Will try and make it smaller not sure how the Linux on Android team made there images so small...
LINK to imagefile <===== this URL broken
LINK to bootscript <===== this URL broken
Credits
Linux on Android team
The one that made the scripts from the start. Not sure who made them...
Click to expand...
Click to collapse

[GUIDE][Noobz][Tweaked-Linux]How to install KDE Kubuntu Active

{
"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"
}
Okay so after owning this tablet for a few days and running CM I wanted to install a Linux distribution on my Nexus 7 ( grouper) so I could use some Ubuntu image editing programs. So I installed Ubuntu and Ubuntu touch and found them extremely slow for a quad core tablet and the old always have to force reboot my device all the time. And so I decided to sit down today and work on Ubuntu 13.04 base and tweak it and make it run better on this amazing 2012 device.!!! And since I been a Ubuntu person since the 8.0.x days and having all the experience I have with Ubuntu I finally got it to a state were it runs beautifully on our nexus 7. And am going to share how to do so today.. Guide will be quite lengthy because I will describe step by step on how I got to the point with my Nexus 7.
Requirements :
- Nexus 7 (grouper)
- Fully charged device
- OTG cable
- Wired or Bluetooth mouse
Step 1 : Getting Multirom
First thing you want to do is install multirom, probably the most genius idea for this device yet.
1. Download MultiRom from Here.!!
2. Open the app and highlight these 3 options and install them and proceed to follow the apps directions. After that proceed to step 2.
Step 2 - Installing Ubuntu 13.04 via MultiRom
The reason I choose this method is so you can always return back to Android at the end of the day. And can easily remove Linux without the assistance of a computer.
1. Download Ubuntu 13.04 image for nexus 7 from Here.!!
2.*Place the image as it is in the internal memory of N7 or to USB flash drive
3. Reboot to recovery and choose Advance>Multirom>Add Rom*and choose Ubuntu*as ROM type.
4.*Then select the Ubuntu's image and confirm. Clean installation of Ubuntu is 1.5gb big, and takes a while (10 minutes?) to install.
5. Once complete boot Ubuntu by choosing it in MultiRom boot up manager and proceed to finish the installation.
Step 3 : Installing KDE Kubuntu Active Desktop
The reason we want to install KDE Kubuntu Active Desktop is because Unity in Ubuntu is definitely not ready for optimized use on a tablet. Where in my opinion KDE is optimized for tablets. Plus to me KDE is more easier for a new Linux user to understand than how unity is set up.
1. This command installs the basic minimal files to run the newer desktop. Download 200+mb
Code:
sudo apt-get install kde-plasma-desktop kubuntu-default-settings kde-config-gtk-style gtk3-engines-oxygen
2. Eventually, halfway through the installation, the program will ask you whether you want to change display managers. It is recommended that you stick with Lightdm, so that the onscreen keyboard remains the same.
Next, configure Lightdm to start KDE by default instead of Unity:
Code:
sudo /usr/lib/lightdm/lightdm-set-defaults -s kde-plasma
3. Finally, log out (rather than restarting or turning off), tap the Ubuntu icon next to the user name, and choose*KDE Plasma Workspaces. Then type in your password and log in. If you need an onscreen keyboard to type, tap the Accessibility Icon (a spread eagled man in a circle), and click*Show Onboard.
KDE will now be started. However, it probably needs to be configured for optimal performance.
Step 4 : Removing Ubuntu's Unity & Desktop
The reason why we would want to remove unity is because once your on KDE Kubuntu Active why would you still want Ubuntu's desktop that's slow as hell. so enter these commands 1 by 1 to free up disk space and remove un-needed files.
1.
Code:
sudo apt-get remove unity unity-2d unity-2d-panel unity-2d-spread unity-asset-pool unity-services unity-lens-files unity-lens-music unity-lens-applications gir1.2-unity-5.0 unity-common indicator-sound indicator-power indicator-appmenu libindicator7 indicator-application indicator-datetime indicator-messages libnux-2.0-0 nux-tools libunity-misc4 unity-2d-common
2.
Code:
sudo apt-get autoremove --purge unity unity-common unity-services unity-lens-\* unity-scope-\* unity-webapps-\* gnome-control-center-unity hud libunity-core-6\* libunity-misc4 libunity-webapps\* appmenu-gtk appmenu-gtk3 appmenu-qt\* overlay-scrollbar\* activity-log-manager-control-center firefox-globalmenu thunderbird-globalmenu libufe-xidgetter0 xul-ext-unity xul-ext-webaccounts webaccounts-extension-common xul-ext-websites-integration gnome-control-center gnome-session
3.
Code:
sudo rm /usr/lib/thunderbird-addons/extensions/[email protected]
Step 5 : Removing Un-Needed Apps [OPTIONAL]
Once done removing ubuntu unity and desktop you may want to remove some ubuntu apps like I did, helps remove some UN-needed apps that you should be using on a tablet PC.
1. Firefox Web Browser
Code:
sudo apt-get remove firefox
2. IM client - Empathy
Code:
sudo apt-get remove empathy
3. Disk Burner - Brasero
Code:
sudo apt-get remove brasero
4. Torrent Client - Transmissions
Code:
sudo apt-get remove transmissions-gtk
5. Scanner
Code:
sudo apt-get remove simple-scan
6. Mines - game
Code:
sudo apt-get remove gnomine
7. Sudoku - game
Code:
sudo apt-get remove gnome-sudoku
8. Text editor - gedit ( roaming cause we have kwrite )
Code:
sudo apt-get remove gedit
9. Document Viewer
Code:
sudo apt-get remove evince
Sent from my Nexus 7 using Tapatalk
References and Q&A :
Coming Soon
Credits :
Coming Soon
Nice, very useful.
Thanks! I will follow up when I get WiFi at my house and share stuff on tips keeping things running fast
Sent from my One X using XDA Free mobile app
Thanks for the tutorial.
Does this work on f2fs formatted storage ?
Because I get an error when booting ubuntu:
Code:
mounting dev/mmcblk0p9 on /root failed: no such device
darkchazz said:
Thanks for the tutorial.
Does this work on f2fs formatted storage ?
Because I get an error when booting ubuntu:
Code:
mounting dev/mmcblk0p9 on /root failed: no such device
Click to expand...
Click to collapse
Idk I run a ext4 file syste!
Sent from my Nexus 7 using Tapatalk
xXminiWHOOPERxX said:
Idk I run a ext4 file syste!
Click to expand...
Click to collapse
Never mind, I got it working.
It's not usable without a physical mouse though. Because there is a bug where the left mouse button gets permanently stuck pressed down until you restart.
darkchazz said:
Never mind, I got it working.
It's not usable without a physical mouse though. Because there is a bug where the left mouse button gets permanently stuck pressed down until you restart.
Click to expand...
Click to collapse
on f2fs partition... how?
wejgomi said:
on f2fs partition... how?
Click to expand...
Click to collapse
no. I reformatted to ext4
darkchazz said:
no. I reformatted to ext4
Click to expand...
Click to collapse
Plan to add more to the guide, just keep breaking the OS when I start removing some u core files, trying to slim core down so it's less on battery and a lot smoother... Have figure out how to Fox rotation but screen cordinates dont change so your forced to use a mouse
Sent from my HTC One mini using Tapatalk
not working i get only 404 not found.
Gothic4 said:
not working i get only 404 not found.
Click to expand...
Click to collapse
I believe Ubuntu 13.04 has been moved to the old-releases repo. Because of that you get 404 error
From terminal type
sudo gedit /etc/apt/sources.list
Tap Search, Replace
For "Search for" enter http://ports.ubuntu.com/ubuntu-ports/
For "Replace with" enter http://old-releases.ubuntu.com/ubuntu/
Tap Replace, tap Save.
From terminal refresh new repos
sudo apt-get update
I have another question. How to make Onscreen keyboard to run automatically in KDE? And how to rotate screen to landscape?
Thanks
So.. is no way to get it working on f2fs? is a pain to reformat the whole tablet again
i've installed Kubuntu as written but now i can't login to my account!!
only guests account can be accessed even tho the screem is only portrait
now i wonder if it's possible to delete ubuntu without tripping anything to start over
Please close.! As I no longer have my nexus 7.
xXminiWHOOPERxX said:
Please close.! As I no longer have my nexus 7.
Click to expand...
Click to collapse
I just saw this 3d and wanted to try...bad news
Hope someone will continue this 3d
alematt said:
I just saw this 3d and wanted to try...bad news
Hope someone will continue this 3d
Click to expand...
Click to collapse
https://wiki.merproject.org/wiki/Community_Workspace/Tegra3/Nexus7/PA_installation
That's the official guide
matyhew said:
https://wiki.merproject.org/wiki/Community_Workspace/Tegra3/Nexus7/PA_installation
That's the official guide
Click to expand...
Click to collapse
That's for plasma active. Isn't this thread for Ubuntu?
Sent from my Nexus 7 using XDA Premium HD app
---------- Post added at 10:33 PM ---------- Previous post was at 10:31 PM ----------
I tried to do what's the op says. Updated repositories n ****. But I can see the console with the keyboard open. So I can't see what I'm typing to install the last few steps lol. I may not be clear in describing but I'm stuck and its frustrating to type.
Thanks for your time though op
Sent from my Nexus 7 using XDA Premium HD app

Sebanc's Brunch Project

This is what I do, and it has been working awesome. I have done it several times experimenting.
Starting with a dual boot Windows and Linux Mint setup, each in their own partition, plus another partition which I refer to as "storage" (sda4).
From Linux Mint I have download Sebanc's Brunch package and Rammus Recovery image. I extract them both, and place the recovery image inside of the extracted Brunch folder.
I install the pv, tar and cgpt packages/binaries if they are not installed already:
Code:
sudo apt install pv:
sudo apt install cgpt;
sudo apt install tar;
I then run the following from inside the extracted Brunch directory (making my img file 20 gb):
Code:
mkdir -p ~/tmpmount;
sudo mount /dev/sda4 ~/tmpmount/;
sudo bash chromeos-install.sh -src chromeos*.bin -dst ~/tmpmount/chromeos.img -s 20;
sudo umount ~/tmpmount;
{
"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"
}
Still in Linux Mint, I will then add the menu item for launching the image from the Linux Mint grub2 menu.
There are different ways to do this, but I use grub-customizer:
Code:
sudo add-apt-repository ppa:danielrichter2007/grub-customizer;
sudo apt update;
sudo apt install grub-customizer;
I add a new menu item, selecting "other" as the type, pasting from what is displayed at the end of the chromeos.img creation):
Code:
img_part=/dev/sda4
img_path=/ChromeOS/chromeos.img
search --no-floppy --set=root --file $img_path
loopback loop $img_path
linux (loop,gpt7)/kernel boot=local noresume noswap quiet splash loglevel=7 disablevmx=off \
cros_secure cros_debug loop.max_part=16 img_part=$img_part img_path=$img_path
initrd (loop,gpt7)/initramfs.img
I then reboot, and I will see the Chrome OS option in the grub2 boot menu.
I hope this is helpful to someone.
From Project Croissant thread
https://forum.xda-developers.com/ha...ide-installing-official-chrome-os-pc-t3865697
I thougth this project might be better discussed in it's own thread...
corvek97 said:
Spent some days reading through this thread and trying everything I could find to get mine to install properly but it all ended in the same "Missing OS" error or something else.
Thankfully it all did lead me discover Sebanc's Brunch Framework which worked perfectly for me... aside from having some issues with the installation as some of the documentation wasn't as newbie-friendly regarding some stuff and their Telegram group is private but that aside, as a complete noob I imanaged to get it running in hours and every function related to the OS itself is working perfectly on my dual-boot PC and laptop.
Just sharing in case anyone else is going through the same thing here.
Click to expand...
Click to collapse
djuroganovic said:
+1 - I also have much better success with sebanc brunch on github than with chromefy script. Everything works great on r80, only downside is that it only works with UEFI bios, no legacy bios support.
Click to expand...
Click to collapse
ralphwiggum1 said:
Thanks for the information. The sebanc brunch tool worked great. It seems to have taken the best of various methods, but made it simpler without having the manage various partitions. Even better news is that I had issues with my Dell Venue 11 Pro not working with any method for a while. Arnold after R56 or something stopped showing video and other issues with all other builds, including Fyde, that I tried . Using brunch with just the recommended recovery (rammus), which is a more generic build, everything works. The grub/boot it comes with also seems to be a bit more generic and better than I had with Arnold.
Instructions and downloads are here: www.github.com/sebanc/brunch
Some clarification, particularly for dual-boot, is that it brunch documentation doesn't seem to mention that everything, once installed, resides inside of an image file (.img) on one partition (ntfs or ext4) on your drive. It also doesn't tell you to copy the boot files anywhere, but rather to boot from a USB/SD then it will boot up the img. I got around this by loading the boot files onto my main boot partition where I'm triple booting Windows 10, Ubuntu (I used ubuntu to do this), and Chrome OS. I don't think that matters too much since I'm using rEFInd (www.rodsbooks.com/refind/) as the main bootloader and I think it has modules to chainload from any partition, not just FAT like most BIOS need (I could be wrong, since all mines on the the main FAT boot partition). I'm using the minimal theme on the refind site with some custom icons. I modify these files in Ubuntu with a sudo bash shell.
Another note is you may be able to secure boot with brunch since they include a certificate you could theoretically load to your system's key for secure boot.
Click to expand...
Click to collapse
@ralphwiggum1: Can you share how you got reFind to work? I have updated manual.conf with the following, but it gives me an error:
Starting (null)
Using load options 'initrd=(loop'
Error: Not Found uhile loading (null)
* Hit any key to continue *
Here is what I have in my refind manual.conf file - which matches what I have in my Linux Mint grub2 (which boots up great):
Code:
menuentry "ChromeOS (boot from disk image)" {
img_part=/dev/sda4
img_path=/ChromeOS/chromeos.img
search --no-floppy --set=root --file $img_path
loopback loop $img_path
linux (loop,gpt7)/kernel boot=local noresume noswap loglevel=7 disablevmx=off \
cros_secure options=enable_updates cros_debug loop.max_part=16 img_part=$img_part img_path=$img_path
initrd (loop,gpt7)/initramfs.img
}
Any idea what I could be doing wrong?
TheMCNerd2021 said:
Tried using the script after I discovered it a few days ago, and it worked perfectly inside of an Ubuntu VM I created. Overall, everything built successfully when using the Croissant script to create a Chrome OS image (I used ATB R80 Special chromium image, Eve R80 recovery image, and swtpm.tar) and I was able to write it to an old USB drive and boot off of it on my old laptop. Most things worked fine except for the Play Store, which would give the generic "Something went wrong" error. I tried again, this time not enforcing SELinux when asked by the script, and the same exact error came up when using the new image. The chrome://flags page was also completely empty.
I eventually tried using Sebanc's Brunch Framework since other people on here have used it, and the resulting image file that I wrote to the USB drive worked great with my old laptop. Every function including the Play Store was working, albeit sluggish due to the flash drive I was using being slow.
Not sure why the Play Store wouldn't work when I used the image created with the Croissant script, yet worked when I used the image created with the Sebanc's Brunch Framework. I guess it's because my laptop (Acer Aspire E5-571-563B) is simply too old for the Eve recovery image. Either way, big thanks to the developers of both the projects for allowing us to run official Chrome OS on normal laptops.
Click to expand...
Click to collapse
ralphwiggum1: I get the error above when adding a different OS - so I must be using the manual.conf wrong. Is there anything special you did to get reFind to recognize this loopback device as a boot option? Thanks!
jhedfors said:
@ralphwiggum1: I get the error above when adding a different OS - so I must be using the manual.conf wrong. Is there anything special you did to get reFind to recognize this loopback device as a boot option? Thanks!
Click to expand...
Click to collapse
I'm using Refind, but using it to load Grub. Refind may not have all the capabilities of Grub to be able to boot Chrome OS, at least I don't think it can.
With sebanc/brunch, I was actually wrong before, they do say to copy the grub info to your existing grub config. I had missed that part.
Copy the GRUB configuration which appears in the terminal at the end of the process (between lines with stars) to either:
your hard disk GRUB install if you have one (refer to you distro's online resources).
the USB flash drive / SD card GRUB config file (then boot from USB flash drive / SD card and choose "boot from disk image" in the GRUB menu),
Click to expand...
Click to collapse
So if you're already using grub, you could add your Chrome OS menuentry to it, but it may not be possible to make it a separate item in your refind boot screen. In that case, just copy the sebanc/brunch boot files to another folder on your system's efi boot partition and make a folder called 'cros' or something. It's just the grub loader and the grub.conf. Then just make an option in refind to load that grub file. You can maybe play with that grub's config file to not show the grub menu and autoload the first menuentry.
Hope this helps.
ralphwiggum1 said:
I'm using Refind, but using it to load Grub. Refind may not have all the capabilities of Grub to be able to boot Chrome OS, at least I don't think it can.
With sebanc/brunch, I was actually wrong before, they do say to copy the grub info to your existing grub config. I had missed that part.
So if you're already using grub, you could add your Chrome OS menuentry to it, but it may not be possible to make it a separate item in your refind boot screen. In that case, just copy the sebanc/brunch boot files to another folder on your system's efi boot partition and make a folder called 'cros' or something. It's just the grub loader and the grub.conf. Then just make an option in refind to load that grub file. You can maybe play with that grub's config file to not show the grub menu and autoload the first menuentry.
Hope this helps.
Click to expand...
Click to collapse
Thank you for the suggestion - I will probably give it a try. Right now I have successfully added it to the Linux Mint grub menu. But I can't resist tinkering.
jhedfors said:
Where are you trying to install it? It looks like you are missing arguments that are required with the installation, for example:
https://github.com/sebanc/brunch/blob/master/README.md
Click to expand...
Click to collapse
Shawnashley said:
The hard drive of a windows laptop. Linux cmds aren't my strong suit. Sorry for the inconvenience.
Click to expand...
Click to collapse
We should probably have this discussion in this thread, as it is not about Project Croissant...
So are you following the dual boot instructions to create the ChromeOS IMG file? Make sure you follow all the steps.
jhedfors said:
We should probably have this discussion in this thread, as it is not about Project Croissant...
So are you following the dual boot instructions to create the ChromeOS IMG file? Make sure you follow all the steps.
Click to expand...
Click to collapse
Sorry about that. I followed the YouTube video on the link in the Croissant thread to create the USB Linux with the Chrome OS folder inside. But when I try to install it presents me with the errors in the screenshots. I've tried installing to the HDD and it always give the same errors. I'm not real versed in Linux and maybe that is my issue.
Forgot the screenshot.
Shawnashley said:
Sorry about that. I followed the YouTube video on the link in the Croissant thread to create the USB Linux with the Chrome OS folder inside. But when I try to install it presents me with the errors in the screenshots. I've tried installing to the HDD and it always give the same errors. I'm not real versed in Linux and maybe that is my issue.
Click to expand...
Click to collapse
You are making an incomplete entry, as I said previously.
https://github.com/sebanc/brunch
Look at the "Dual Boot ChromeOS from your HDD" section.
You should also be checking out the support links that are linked to on the YouTube post. ?
jhedfors said:
You are making an incomplete entry, as I said previously.
https://github.com/sebanc/brunch
Look at the "Dual Boot ChromeOS from your HDD" section.
You should also be checking out the support links that are linked to on the YouTube post. ?
Click to expand...
Click to collapse
Thanks, I've followed those already. The incomplete entry is the exact same way it is done in the YouTube video. I'll work it out. Thanks though.
I keep getting an error stating that the gpt partition is messed up. Wether writing to a .IMG file or a USB device.
keweminer said:
I keep getting an error stating that the gpt partition is messed up. Wether writing to a .IMG file or a USB device.
Click to expand...
Click to collapse
Mine errors and says path to Cheomeos can't be found. Strange since it's in the file I'm running in a terminal. It's quite screwy, Fyde OS is looking like the greener grass from over here. :laugh:
jhedfors said:
You are making an incomplete entry, as I said previously.
https://github.com/sebanc/brunch
Look at the "Dual Boot ChromeOS from your HDD" section.
You should also be checking out the support links that are linked to on the YouTube post. ?
Click to expand...
Click to collapse
When I create the Chrome OS image in cmd line it doesn't give me a recovery image and I cannot trace the path to a location. It stores as individual files. How do I load that as an installable image on a USB? Thanks.
Shawnashley said:
When I create the Chrome OS image in cmd line it doesn't give me a recovery image and I cannot trace the path to a location. It stores as individual files. How do I load that as an installable image on a USB? Thanks.
Click to expand...
Click to collapse
I've had great luck with Project Croissant and maknig bootable usb drives, I just haven't found any recoveries other than lulu 80 that are stable enough to use, however, it lacks the linux container. I'm currently running Eve76, with the linux container upgraded to Buster, with backports and flatpaks. That's working really well for me... but, its not 80 :laugh:
I'm determined to figure this out though, because I'm home and bored out of my skull.
---------- Post added at 06:39 AM ---------- Previous post was at 06:31 AM ----------
Shawnashley said:
When I create the Chrome OS image in cmd line it doesn't give me a recovery image and I cannot trace the path to a location. It stores as individual files. How do I load that as an installable image on a USB? Thanks.
Click to expand...
Click to collapse
I found my image file in the scripts folder.
Edit: I got it! Went with mint on USB method. Works amazingly!!!
keweminer said:
I've had great luck with Project Croissant and maknig bootable usb drives, I just haven't found any recoveries other than lulu 80 that are stable enough to use, however, it lacks the linux container. I'm currently running Eve76, with the linux container upgraded to Buster, with backports and flatpaks. That's working really well for me... but, its not 80 :laugh:
I'm determined to figure this out though, because I'm home and bored out of my skull.
---------- Post added at 06:39 AM ---------- Previous post was at 06:31 AM ----------
I found my image file in the scripts folder.
Edit: I got it! Went with mint on USB method. Works amazingly!!!
Click to expand...
Click to collapse
Thanks for the info. I'll check there. I used the Linux mint method and created the folder and the IMG file but I could ever get it to install to disk. I tried various methods from the brunch page and no luck. Thanks though.
Here's what i did to get Brunch to work for me.
I used R80 k4.19 testing v3 from this page: https://sites.google.com/view/brunch-project/downloads
and the Rammus 80 recovery.
Using two USB thumbdrives, I booted Linux Mint from one, running apt to install pv and cgpt.
On usb drive 2 I had my unpacked brunch and the chromeos recovery.
I then followed the instructions for installing it to /dev/sdX to install it directly to my harddrive, found here: https://sites.google.com/view/brunch-project/wiki/how-to-install-chrome-os-on-your-laptop
I shutdown the computer, rebooted and let it do its thing. 10 Minutes later, I'm running ChromeOS 80. This seems rock solid so far. Playstore started no problem, updated and installed the various apps that I had been running on Eve 76. Linux installed and I updated Buster, added backports. Installed flatpak and am so far very happy.
keweminer said:
Here's what i did to get Brunch to work for me.
I used R80 k4.19 testing v3 from this page: https://sites.google.com/view/brunch-project/downloads
and the Rammus 80 recovery.
Using two USB thumbdrives, I booted Linux Mint from one, running apt to install pv and cgpt.
On usb drive 2 I had my unpacked brunch and the chromeos recovery.
I then followed the instructions for installing it to /dev/sdX to install it directly to my harddrive, found here: https://sites.google.com/view/brunch-project/wiki/how-to-install-chrome-os-on-your-laptop
I shutdown the computer, rebooted and let it do its thing. 10 Minutes later, I'm running ChromeOS 80. This seems rock solid so far. Playstore started no problem, updated and installed the various apps that I had been running on Eve 76. Linux installed and I updated Buster, added backports. Installed flatpak and am so far very happy.
Click to expand...
Click to collapse
That's cool. I had Fyde working pretty well, but battery life was awful and there were some glitches and flickering. I tried using Ubuntu in Windows to create a Cheomeos img but it tells me recovery image can't be found and all I have is a folder of files. Gonna go back to Fyde while I try to figure it out. Thanks for the input it's much appreciated.
I have updated the OP with my steps -
I hope this is helpful to someone.
Tag: @Shawnashley
jhedfors said:
This is what I do, and it has been working awesome. I have done it several times experimenting.
Starting with a dual boot Windows and Linux Mint setup, each in their own partition, plus another partition which I refer to as "storage" (sda4).
From Linux Mint I have download the Brunch package and Rammus Recovery image. I extract them both, and place the recovery image inside of the extracted Brunch folder.
I install the pv, tar and cgpt packages/binaries if they are not installed already:
I then run the following (making my img file 20 gb):
Still in Linux Mint, I will then add the menu item for launching the image from the Linux Mint grub2 menu.
There are different ways to do this, but I use grub-customizer:
I add a new menu item, selecting "other" as the type, pasting from what is displayed at the end of the chromeos.img creation):
I then reboot, and I will see this option in the grub2 boot menu.
I hope this is helpful to someone.
Tag: @Shawnashley
Click to expand...
Click to collapse
All that for me?:laugh: Well I am going to give this a shot and report back. Many apologies for my seeming ineptitude.
Shawnashley said:
All that for me?:laugh: Well I am going to give this a shot and report back. Many apologies for my seeming ineptitude.
Click to expand...
Click to collapse
Haha... I had been meaning to do this since I started this thread... Just had been too busy. :laugh:
jhedfors said:
Haha... I had been meaning to do this since I started this thread... Just had been too busy. :laugh:
Click to expand...
Click to collapse
Do you edit the recovery name or copy as is? Just double checking. Thanks for the help by the way.

Categories

Resources