[Q] Android environment setup broke ubuntu? - Android Q&A, Help & Troubleshooting

Built android last night, AOSP off the latest branch (default path or w/e, kinda new to this) on a clean install of ubuntu 12.04 lts in VMware workstation.
Everything seemed to go fine, although it was tricky to get libgl1-mesa-dri:i386 to install. Had to go several dependancies back manually and check into what was getting installed, probably should have paid more attention because it seems to have uninstalled some critical packages including xorg and ubuntu-desktop.
Rebooted the VM this morning and still can't get in trying to undo what it broke.
Why is that package needed ( libgl1-mesa-dri:i386 )?
Why does it require breaking your desktop setup?
I really hope I don't have to redo the whole config (fetching the source etc) I was really hoping to get to making source edits tonight!
EDIT:
I was able to text boot, manually reinstall xorg and ubuntu desktop, and startx although I didn't get unity back. Doing "startx" then hitting control-alt-t gave me a terminal and I'm right back to building!
Wierdly "emulator" didn't work. Unrelated but does it have to be same boot as when you built or something?
Any help is appreciated!

Related

Development Linux Distro

I was curious if any of the dev gurus had a nice Linux setup that they could make a Android Development distro from?
I keep running into repo issues when trying to set up my system. This led me to go.....'why isn't there a precompiled dev distro??'
If there is....please point me towards it, as I have been searching, but if it exist it's in a deep dark part of the internet I'm yet to discover.
Thanks
(ps. I wanted to make a clockwork recovery for an unsupported device.)
I keep running into repo issues when trying to set up my system.
Click to expand...
Click to collapse
I think the best Idea is to set up an Ubuntu based system at the moment.
With fedora based distros (fuduntu) I allways get some issues as well.
Some month ago I ran into a site that provided some Ubuntu based virtual box images with the Android SDK installed, but as it changes alot lately I don't think it's up to date, and I can't find it anymore anyway.
Maybe the guides aren't accurate anymore??
The distro I tried was the newest Ubuntu, but with everything I attempted to install I would get permission issues and sometimes the links to repo's weren't live any longer..
Perhaps what I should ask is 'Where can I find an accurate, reliable guide to setting up my linux distro for dev use?'
eh, I'm not completely dumb to Linux, but I require a bit of assistance :/
Ya, Ubuntu is kinda mandatory considering the way the kernel in AoS forked from it. Ubuntu is a common one, should be able to do what you need off the USB bootable even.
Really depends on your hardware setup. I've been playing around with a portable Puppy lately - something I can use at work and on my ancient semi-sandbox laptop. If you like I can put a vanilla package together for you.
There is a distro from 2010 made by a beginning builder specifically for linux/android developers. I haven't used it but it may be worth a go: http://www.simply-android.com/discu...oid-developers-have-their-own-linux-distro/p1

[Q] Guide to Installing Linux Applications in Webtop

I have searched a number of ways for a definitive set of steps to install Linux applications, fix apt-get dependencies, and create icons for those newly installed applications in Webtop on my Atrix 4G. I have installed Debian Linux and Xterm on my Webtop, and have successfully used the VI commands to unhook the new 4.0.1 version of Firefox, but my success ends here.
What I have found in my searching is piecemeal, version specific, or so highly specialized that a Linux noob like me has no chance of pulling together a successful install. I would like to install Gimp, OpenOffice, and maybe even a desktop application (like Gnome), and am having an appreciable amount of difficulty closing the circle.
I would be happy to buy a cup of coffee for someone who can put together a sequential list of steps (preferably with the actual Linux commands) that can be adapted to accomplish this. Thank you!
Sent from my Atrix 4G running Homebase 5.2 with Fauxs enhanced stock Kernel
I'm definately no Linux Guru, but This is what I did to install openoffice on my webtop. (assuming you followed the steps to fix the repo listed in the Webtop2SD post)
sudo apt-get install openoffice.org
and that was it....now running it nearly every day with no problems, good luck.
I installed Synaptic. It's a package manager. Just select the package you want to install and it does it.
http://forum.xda-developers.com/showthread.php?t=1279724&highlight=synaptic
If the Synaptic install errors, it should suggest what to run to fix it.
use backports
Use pdmenu (the penguin) to open a shell, bash will do nicely and type "apt-get install synaptic" as suggested by robrj. Then do a search for backports and libreoffice. That should help you get started. Remember, this is just Debian squeeze and the Debian support groups have the answers you need until you jump back into android or webtop mods.

[Q] Triple (or Quadruple) boot windows and androids

Good day guys!
I know this topic (of duel and triple booting) have been handled from a couple of different angles already but I am struggling to find any relating specifically to my issue I am having.
I started with an Acerone (that had 'good' ol' 1.6 preloaded with windows) and reformatted and repartitioned. Windows 7 Pro is installed and running fine. I then installed ICS and that also works great.
Unfortunately I've come across much needed apps that had not been developed to work in ICS or Android-x86 yet so I needed Honeycomb. I've been using 7 and ICS together for a while so I've done quite a bit on it. I then tried following the similar installation procedure for honeycomb (dont install grub, etc) and for some reason I could not get the grub (legacy) from ICS to open the Honeycomb install. I tried all the usual (editing menu.lst using ex2explorer within windows etc etc with all the right hd,xx values etc) but it just kept telling me that it could not find the files.
I thought it may be due to that sda not being mounted at the time grub comes up (which also didnt make too much sense since nowhere did I see it mount the Windows partition but yet I can boot to windows quite fine). So I ended up reinstalling Honeycomb with its own grub (which as you can expect done away with the ICS one). So Honeycomb works great with Windows - but again the same predicament (if not slightly worse since the honeycomb is fresh install and now I cant access my ICS which is wel run in with apps etc).
I can see all the partitions from within windows with the ext2 mounter and both the partitions with droid on have grub folders. I've tried setting different partitions active etc but to no avail. I've even now tried loading GAG bootloader and added the OS's, pointing them to the right partitions, but only the Windows one works from within gag.
My next step (since almost ALL the forums with posts regarding triple boots relates to having android, windows and ubuntu) is to install ubuntu and use ITS grub to control everything. Seems like a simpler way out, but quadruple boot? I've been called indecisive before but this is pushing it! lol.
So basically - either if someone can direct as to whats going wrong and why I can add the entry into the grub legacy's but when I select it, it says files not found.....OR how I can get GAG to successfully access those OS's.
Your site has been a really GREAT help...these my search tems in google include "xda-developers"...
You can quadruple boot. It's really not a big deal. I'm not sure about the grub for android x86 (I've only started playing with it a couple of days back) but if it's grub legacy, it can become a pain to set up other OSes other than the defaults. On the other hand, with grub2 (which comes with all standard linux distros) is very efficient at finding and loading the OSes so that would be the simplest way.
If it reassures you, I triple boot nearly all the time (Currently have Win7, Fedora 17 and Mint 13)
If you don't want to, you can perhaps try GRUB4DOS http://sourceforge.net/projects/grub4dos/
I haven't used it though so you'll need to go through it properly though. I'm sure you already know but just in case: make sure you keep another computer or at least some access to the internet while you are playing with GRUB in case of errors.

[Q] Running Debian (preferably Squeeze) on Android - any good way?

Hi.
I would like to run Debian Squeeze on Android.
Complete Linux Installer delivers Debian images that are very problematic and annoying.
Debian Kit doesn't let me install openssh-server and not only that, skipped many packages due to extracting problems.
Lil' Deby is very unstable, it hangs before it does everything to complete the installation.
Linux Deploy causes many errors to happen
Is there another app to do that? Or if there's a well explained way to do that manually? I'm having some software that would be great to have in my phone so let's just focus on it
I'm counting for help!
EDIT: Sorry, forgot to check "Is this a question". Yes, it is

TP-LINK WN722N (ath9k driver) install on Ubuntu touch 15.04 (Nexus 10- Manta)

I've been through all the relevant threads on AskUbuntu and they are either outdated, conflicting and/or dont work.
My Nexus10 sees the atheros AR9271 device on Bus 001 USB but does not create an additional WLAN for it.(wlan0 is the normal integrated wifi) I assume I need the ath9k or ath9k_htc driver? I installed backports 4.4.2-1 and unzipped it. If I try to do a 'make' or 'make clean' I get:'your kernel headers are incomplete/not installed'. I've already got the latest version of build-essential. If I try to install 'firmware-atheros', it cannot find the package. I've been through several other things to no avail.
I've read the driver is installed with 15.x+ anyway, true? and if so how to install it? If someone could do a step-by-step wifi driver install for a U-touch or at least Ubuntu 15.x I'd be very very grateful.
I do not want to bridge the 722n, I want to use it instead of the integrated card. Not even there yet, but just in case it matters.
Thanks!
roninisc said:
I've been through all the relevant threads on AskUbuntu and they are either outdated, conflicting and/or dont work.
My Nexus10 sees the atheros AR9271 device on Bus 001 USB but does not create an additional WLAN for it.(wlan0 is the normal integrated wifi) I assume I need the ath9k or ath9k_htc driver? I installed backports 4.4.2-1 and unzipped it. If I try to do a 'make' or 'make clean' I get:'your kernel headers are incomplete/not installed'. I've already got the latest version of build-essential. If I try to install 'firmware-atheros', it cannot find the package. I've been through several other things to no avail.
I've read the driver is installed with 15.x+ anyway, true? and if so how to install it? If someone could do a step-by-step wifi driver install for a U-touch or at least Ubuntu 15.x I'd be very very grateful.
I do not want to bridge the 722n, I want to use it instead of the integrated card. Not even there yet, but just in case it matters.
Thanks!
Click to expand...
Click to collapse
anyone anyone, Beuller...
Hey, saw this was unanswered and figured I could help. First off, you will not be able to compile or install headers in the Ubuntu Touch system, as /lib/modules/<kernel version> is a bind-mount into the read-only LXC system image, one way to work around this issue on device is to mount the LXC container's system image read-write somewhere, move out the lib/modules directory to someplace else, umount, reboot and then link your moved lib/modules back into /lib/modules. You will need to do this compilation outside of your Nexus 10 in a cross-compilation environment or in an armhf chroot (imho, a chroot running the ARM build of Ubuntu works very well for this).
Once you have that, you can install the kernel package for your device (which I believe are labeled linux-headers-manta and linux-image-manta respectively) and build the driver you seek. However the kernel already comes with backports 4.4.2 in it's tree, so you may be able to apt-get source linux-image-manta and build the driver and/or the kernel itself if you wish. (I believe building the kernel builds the firmware needed for the drivers as well, but I have no way of knowing as I haven't actually rebuilt any drivers with firmware yet in my foray into linux-image-flo's source.)
One piece of advice: Make sure to join together the config.*.ubuntu files under the debian.flo and debian.master folders to get the working .config for your device. The defconfig from arch/arm/configs doesn't have all the needed options for uTouch and won't boot it.
Your 'thanks meter' improved, and big thanks for answering, but this is beyond my level. Was hoping I could run an external wifi stick on a tablet with some flavor of linux, but looks like a no go for mortal users.
roninisc said:
Your 'thanks meter' improved, and big thanks for answering, but this is beyond my level. Was hoping I could run an external wifi stick on a tablet with some flavor of linux, but looks like a no go for mortal users.
Click to expand...
Click to collapse
Sadly at this time, it definitely seems to be. The normal linux way of building drivers doesn't work on here because the modules directory (/lib/modules/3.4.0-5-flo) is read-only, also due to this kernel headers cannot be installed, this can be worked around, but it is definitely not something that the casual user can do easily. I hope this will change so I could start compiling modules and NOT need to rebuild the entire kernel for it.
Glad I could be of help and I love answering questions, I am currently using Ubuntu Touch as my main OS on my Nexus 7 as I'm trying to make it into my own portable workstation. So I'm constantly digging into the system and learning what I can, and I love to share.

Categories

Resources