[Q] Compiling code on ubuntu on the nexus 7 - Nexus 7 Q&A, Help & Troubleshooting

Hello, I will be buying a Nexus 7 soon and installing ubuntu on it, I was wondering if anyone tried monodevelop on it and if compiling c# on it actually works well.
This would be very useful for me because I'm a programming student, and I won't have to bring my huge laptop every day.
Greetings, and thanks in advance!

I'm no expert but if you look at the issues with Ubuntu on the N7 at https://wiki.ubuntu.com/Nexus7/KnownIssues then I doubt you could run the Mono IDE and I think openSUSE is the only flavour of Linux directly supported by the Mono project.

https://play.google.com/store/apps/details?id=com.gregshackles.csharptogo&hl=en
Ubuntu is not even in beta stage, it's a developer preview, I highly doubt it will successfully compile anything above 'hello world', if that at all.
You'd be better off using remote desktop.

Related

[Q] Any one using Amazon ECS or Rackspace for development

Hi,
I am in need of a 64 bit machine for compiling android from source, since gingerbread compiling is supported only on 64bit platforms. I am looking into alternatives like using Amazon ECS micro or large instance or Rackspace for compiling from source instead of buying a PC. Does anyone tried this and what setup are you using?

Run Eclipse with Android

Hey guys,
I am nearly about to buy a Tablet like the "Transformer Prime", but then it came to my mind, it has no sense to buy it because Eclipse wouldn't work on it. However, there is also Eclipse for Linux. Isn't there a project of people who tried to run eclipse on Android? Or is it at least possible?
Thanks in advance.
The problem is, that it's written in Java.
Sounds good you might think because Android-Apps are written in Java, too.
The big problem here is that it uses the sun-libraries like the ones for the SWING-gui.
Unless you are able to port swing to android I think this can't be done
Another thing you could do would be running Debian/Ubuntu with real sun-java and linux-eclipse in an chroot-environment. You can connect to x-server via VNC-client and it should work.
The problem here is that you will need a very good cpu and enough RAM to work with this.
An alternative might be this: http://forum.xda-developers.com/showthread.php?p=19229860
Eclipse has it's uses but I'm happy enough to use vim+tmux+btep for my programming needs and deal with cross compilers or terminalling in to other stuff when x86 is needed.
Sent from my Transformer TF101 using Tapatalk

Linux distro on the Nexus 7

Hi everyone,
I consider buying a this nice little tablet I just wonder if anyone managed to install a complete Linux distribution on it like ArchLinux ARM natively (not emulation/virtualization not even chroot) with everything working. I guess that even if it's not done up to now it will be quite easy to do as everything is open source.
Thanks
So as a few months passed since the Nexus 7 is available and I just bought one yesterday, I thought that I could do a little up...
Hope mods won't think it is offensive to make alive an old thread with some kind of what I think is a good reason.
If no one can help me, I will probably work on a native ArchLinux ARM on my nice new tablet in the next days. But first I have to make sure I can get it back fully stock from a fully rooted/unlocked/repartitioned state. If I have no choice I will dd my entire N7's internal memory to a slightly bigger USB stick to recreate exactly the partition table. But I am not sure I can have a complete access to the internal flash memory (all of the partitions with the boot loader, recovery etc). If someone can confirm if I have only one memory drive or more to backup or if there is no chance that I cannot recrate then entire Android stock system from a corrupted partition table for example... I would appreciate it right!
Thanks in advance!
Sorry if this is already answered I have to confess that I didn't search for the last part, I don't have time this morning.
Sent from my Nexus 7
Yeah installing Linux on the N7 has been done. I think the Ubuntu Distro is the one that was used for the successful install.
I did a little searching and found it for you:
http://forum.xda-developers.com/showthread.php?t=1585009
Hope that helps
Wilks3y said:
Yeah installing Linux on the N7 has been done. I think the Ubuntu Distro is the one that was used for the successful install.
I did a little searching and found it for you:
http://forum.xda-developers.com/showthread.php?t=1585009
Hope that helps
Click to expand...
Click to collapse
Thanks for your answer but I was looking for a native installation, not a chroot if possible that I can use hardware
acceleration (maybe that I still could with virtualGL though).
It is already a good point that it has been done in chroot, wich I am not surprised.
Sent from my Nexus 7
johnride said:
Thanks for your answer but I was looking for a native installation, not a chroot if possible that I can use hardware
acceleration (maybe that I still could with virtualGL though).
It is already a good point that it has been done in chroot, wich I am not surprised.
Sent from my Nexus 7
Click to expand...
Click to collapse
To be honest mate, I'm not into it all that deep, couldn't even tell ya the difference between chroot and a native client, perhaps you could explain for me?
the chrooted version is the android kernel with the ubuntu "programs" running. you can access the ubuntu desktop only via a vnc client, as there is no "real" x server running. think of it as ubuntu running as a service in the background which you then access via local network from your android.
would be interested in a native version as well.
kendong2 said:
the chrooted version is the android kernel with the ubuntu "programs" running. you can access the ubuntu desktop only via a vnc client, as there is no "real" x server running. think of it as ubuntu running as a service in the background which you then access via local network from your android.
would be interested in a native version as well.
Click to expand...
Click to collapse
That explains it, so basically on chroot the Ubuntu is a virtual machine in essence?
johnride said:
Hi everyone,
I consider buying a this nice little tablet I just wonder if anyone managed to install a complete Linux distribution on it like ArchLinux ARM natively (not emulation/virtualization not even chroot) with everything working. I guess that even if it's not done up to now it will be quite easy to do as everything is open source.
Thanks
Click to expand...
Click to collapse
Has not been released yet, but definitely check out this: http://www.ubuntu.com/devices/android
Nooo there is a big difference between chroot and virtualization. On a chroot you still use the same kernel which allows to have the same speed or almost as a native client for what does not require hardware acceleration. the point in getting and Native Client working is that we could get advantage of the GPU after some more or less hard work. I bought this tablet to replace my sold laptop the best I could so that's why I'm interested in this.
When you do virtualization, CPU instructions are converted from a type to another and this is very heavy on the CPU and this way you cannot have good performances.
Think of a road: in chroot you only have to make the instructions take a turn without slowing down while in virtualization you have to stop the "convertible" instructions "remove the roof" and then you can continue. That's why virtualization is much slower than chroot.
Edit:
Chroot says what it does: it changes the root. This means that programs that run in the chroot environment will think that the / is another folder than what it is really. For example if you do chroot /sdcard/ and you have a file named derp.txt on your sdcard than type rm /derp.txt it will work since your / is now /sdcard/. The most come in case of uses of EC truth is when you have a Linux machine not booting anymore so you have to repair the boot loader, you will boot on a Live CD of the same distro (Ubuntu for example), mount the drive with the broken installation, chroot to this installation regular root and perform the same reparation as if this install would be booted, still using the kernel and binaries from your live CD (unless you specify that you want to use those from the chrooted environment).
Hope this is clear.
Sent from my Nexus 7
Stevenator21 said:
Has not been released yet, but definitely check out this: http://www.ubuntu.com/devices/android
Click to expand...
Click to collapse
Yeah that's a very nice project but I want the desktop on my tablet, no docks and all. This is also in chroot I believe. Probably that I will install ArchLinux in chroot and try to make VirtualGL work but it's not really what I want.
Sent from my Nexus 7
johnride said:
When you do virtualization, CPU instructions are converted from a type to another and this is very heavy on the CPU and this way you cannot have good performances.
Click to expand...
Click to collapse
Small clarification. You're describing emulation here. Emulation is one processor pretending to be another. The Android SDK provides an android emulator that pretends to be an ARM device while running on your x86 PC.
Virtualization is a special feature of some processor architectures that allows multiple, virtual memory spaces to be created that are isolated from each other at a very low-level. I seriously doubt (but don't know for sure) that the ARM architecture has much support for virtualization. VMWare and its ilk use virtualization.
Anyway, virtualization runs at full processor speed. However, access to everything but main RAM and the CPU may be emulated in most implementations. Particularly, it's very tricky to get proper access to the GPU via virtualization, so it is often emulated.
Trivia-time: The presence of a primitive form of virtualization in the 386 is what allowed Linux to be written back in the day. The 286 didn't support switching between normal and escalated privilege modes (aka kernel vs user process space) on the fly. Oh crap. Now I'm starting to show my age. Um, get off my lawn!?!
The more you know...
Thanks for the clarification old chap!
I knew about material virtualization with some CPU's but did not realize that there was no emulation for the biggest part of the instructions. Will sleep less dumb.
Sent from my Nexus 7
kendong2 said:
would be interested in a native version as well.
Click to expand...
Click to collapse
Mhmmm as we are probably not alone to be interested in this, I think I will open a topic in original development section to see how many would be interested and what direction I should take. If anyone supports that idea I will create the thread. I think it would be easier to put together all the good ideas in the dev section.
Ah you beat me to it!
Well we (the linuxonandroid team) have been running a device fund which has just finished.
One of the devices i will be getting from this is a nexus 7 which is being bought for two goals.
A) fixing tegra chip bugs with our chroot builds (after all chroot for many is a good way forward as it leaves android intact)
B) building native linux distro installs. Starting with ubuntu but expanding to as many distros that support ARM as possible (debian, backtrack, archlinux, fedora etc etc).
So prehaps you would like to PM me and maybe we can team up for this
Sent from my GT-N7000 using xda premium
zacthespack said:
Ah you beat me to it!
Well we (the linuxonandroid team) have been running a device fund which has just finished.
One of the devices i will be getting from this is a nexus 7 which is being bought for two goals.
A) fixing tegra chip bugs with our chroot builds (after all chroot for many is a good way forward as it leaves android intact)
B) building native linux distro installs. Starting with ubuntu but expanding to as many distros that support ARM as possible (debian, backtrack, archlinux, fedora etc etc).
So prehaps you would like to PM me and maybe we can team up for this
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
I am currently working on developing on booting ubuntu on the nexus 7. Check this thread out - > http://forum.xda-developers.com/showthread.php?t=1842915

[Q] Development in VM?

So, I just had to wipe my laptop. Clean install of Windows 7 Home Premium. Was wondering, now that I'm running with a clean slate, should I run a Linux VM for my Nexus 7 development? Would that be conducive to a better, more comprehensive development environment? Would I be better off just using ADB and Eclipse in Windows? If a Linux VM is preferable, is there a particular distro that is preferable? I've heard most of the dev tools are made with Ubuntu in mind, but I want to make absolutely sure of this before I make the jump to dev in Linux. Another solution which is less preferable, all things considered due to the repartitioning involved, but probably better in the way of integration with hardware, would be to set up a dual boot with Win7/Linux...what do you all think?
tl/dr; wiped my hard drive, I want to know what works best for development.
ikoniq said:
So, I just had to wipe my laptop. Clean install of Windows 7 Home Premium. Was wondering, now that I'm running with a clean slate, should I run a Linux VM for my Nexus 7 development? Would that be conducive to a better, more comprehensive development environment? Would I be better off just using ADB and Eclipse in Windows? If a Linux VM is preferable, is there a particular distro that is preferable? I've heard most of the dev tools are made with Ubuntu in mind, but I want to make absolutely sure of this before I make the jump to dev in Linux. Another solution which is less preferable, all things considered due to the repartitioning involved, but probably better in the way of integration with hardware, would be to set up a dual boot with Win7/Linux...what do you all think?
tl/dr; wiped my hard drive, I want to know what works best for development.
Click to expand...
Click to collapse
If you're serious about development, I really recommend dual booting. If you just want to try it out then use a VM and then if you don't like it just delete the VM.
For the Linux distro I recommend Ubuntu or Linux Mint. They're both very easy to use.
Sent from my Nexus 7
veeman said:
If you're serious about development, I really recommend dual booting. If you just want to try it out then use a VM and then if you don't like it just delete the VM.
For the Linux distro I recommend Ubuntu or Linux Mint. They're both very easy to use.
Sent from my Nexus 7
Click to expand...
Click to collapse
Thanks. I just like...I've wanted to get into dev for a while, and I just couldn't stand the workarounds and **** required for Android development in Windows. I know to build Android you have to be running Linux, and many of the guides are written taking a standard install of Ubuntu into consideration. I'll probably just start out with apps since most of my experience is in Java, maybe once I sharpen my skills with C I'll start into working on ROM mods and stuff. All I have to say is thank FSM for the AOSP.
I run VMware on Vista 64 (well I like vista) and I have a variety of Linux systems defined. Android, Rails, Reprap, etc. All Ubuntu 12.04 LTS.
This works well for me. Android on native Windows was unusable.
And I really like Eclipse for an IDE.
Works well with the Android SDK and NDK.
Sent from my Nexus 7 using xda app-developers app

Android TV Development for Raspberry PI 2

I am currently starting development on Android TV for the Raspberry PI.
Not actual Android TV, but an android OS with all possibilities like Android TV.
The main reason for this project is that the most of the TVs that have HDMI have no support for the Android TV. With this you can get that experience without buying a new TV.
If you know any project like this, or have heard of someone starting a similar project, please inform me in this Thread.
And also would you like to see something like this for the raspberry PI? If you have any questions or suggestions, please write.
We are searching for developers, so please if you are interested please PM-me.
The project will be open source!
Hi, I was curious to know if this is still an active project?
Sent from my SM-T800 using Tapatalk
If someone was able to port an Android based ROM over, it would be pretty easy seeing as you would only need to port apks and stuff at that point....
The reason for me being here is: Amazon prime instant video isn´t working any more @ Kodi/XBMC etc. and it is unsure if it will be working ever again... (According to lordk @ kodinerds)
So the best solution will be using the app @ Android and i think there will be more raspberry pi2 user changing over to android.
Respect!!
If you need a tester, i´m ready for it.
Hristijan_95 said:
I am currently starting development on Android TV for the Raspberry PI.
Not actual Android TV, but an android OS with all possibilities like Android TV.
The main reason for this project is that the most of the TVs that have HDMI have no support for the Android TV. With this you can get that experience without buying a new TV.
If you know any project like this, or have heard of someone starting a similar project, please inform me in this Thread.
And also would you like to see something like this for the raspberry PI? If you have any questions or suggestions, please write.
We are searching for developers, so please if you are interested please PM-me.
The project will be open source!
Click to expand...
Click to collapse
Whoa! Nice idea! Here are some threads which I guess can help You out:
Cyanogen 12.1 test builds for Raspi2
DevBerryPi
PiCast
Hope these help in some way.
Would love you for this?
There is a kind lollipop running. http://raspex.exton.se/?p=43
FWIW the marshmallow AOSP build from peyo works, and has GPU accel mostly working I believe. Other info here. Every other build I have found seems to be based off his and a handful of other peoples work.
I just tried a few forks of Android x86 on my RasPi 2 and all of them lagged like hell...
I would be very interested in Android TV on my RasPi 2, if it works without laggs.
JulianAT said:
I just tried a few forks of Android x86 on my RasPi 2 and all of them lagged like hell...
I would be very interested in Android TV on my RasPi 2, if it works without laggs.
Click to expand...
Click to collapse
Considering that RasPi's are all either ARMv6 or ARMv7 class cores, I very much doubt you tried any X86 Android ports on your Pi2.
Found the android google group and appareantly there are some folks that got GPU accleration working with android 6.0 on the pi 2, check out the video... https://www.youtube.com/watch?v=wCfdvZSOGuw
Oh i so hope someone will get this done...
I'm looking for a working youtube TV (like it should, not the addon in Kodi) so i can use the youtube app directly, not via Yatse..
Also would like to play around with android on my pi2..
miked63017 said:
FWIW the marshmallow AOSP build from peyo works, and has GPU accel mostly working I believe. Other info here. Every other build I have found seems to be based off his and a handful of other peoples work.
Click to expand...
Click to collapse
Would be nice if they also supported the Pi2. Looks like it's mostly Pi3 there
Thanks!!!
Hello, I need some help!
I have a raspberry pi 3 model, with the raspbian OS installed, and i'm trying to make GUI menu with some buttons, and when i click it will start applications installed on the raspbian, like Kodi, Libre Office and others or a page browser.
But the problem is that I can't make it. I already tried the Glade and the Python but that doesn't allow me to do what I really want.
Does anyone know such a program?
Thanks
Android based ROMs for Raspberry Pi - (Index of Android based ROMs for Raspberry Pi)
AOSP/Android TV for Raspberry Pi 3 - https://forum.xda-developers.com/ra...-tab-pi-aosp-android-tv-raspberry-pi-t3593506
LineageOS 14.1 (Android 7.1.2) for Raspberry Pi 3 - http://konstakang.com/devices/rpi3/CM14.1/
RaspAnd Nougat 7.1.2 for Raspberry Pi 3 - http://raspex.exton.se/?s=RaspAnd
RTAndroid - https://rtandroid.embedded.rwth-aachen.de/

Categories

Resources