[Q] Installing Linux on Android - Nexus One Q&A, Help & Troubleshooting

I have installed Ubuntu on my android phone by following the nexusonehacks.net guide. All is working well. The reason I am creating this thread is because in nexusonehacks.net guide he mentions that he got his ubuntu.img from some guys at the xda forums.
I am wanting to get an ARM img of mint linux (LXDE version) and while I have spent countless hours trying to figure out how to install mint linux with an ARM emulator it appears to be above my linux knowledge.
I know that mint linux is based on ubuntu and should have the latest linux kernel and therefor has ARM support built in already, so that is not a problem, no need to compile a kernel with support for ARM.
Basically I am just looking for someone who is running an ARM emulator or has an ARM based laptop to install mint linux (LXDE version) and do a disk dump of the HDD into an image file I can then use to replace the ubuntu.img file I am currently using on my phone.
If this would be a simple task for someone to do and upload the image, I would be most appreciative.
It would be best if I could have the dev who provided the original ubuntu.img file to nexusonehacks.net do the dd of mint linux as I am sure he knows all of the details of how to do a proper dd for use on an android phone. If anyone can point me in the direction of that particular dev, that would be great, thanks!

Buddy of mine was working on gentoo for his N900, which is an ARM proc. Ubuntu has an emulator for that, he said that it seems only ubuntu does, but you run a virtual machine with an ARM emulator. Thing is that I'm not sure if a standard ARM emulator would work too well, the chip on the N1 has some extra stuff on it apparently

It sounds to me complicated because Linux Mint is not distributed for ARM...
Take Debian
I know I did not helped, I just gived my advice on how to get Linux on Android phones: get debian which is available for tons of architectures, including ARM, natively.

Well, it doesn't really work that way. If the distribution doesn't have their packages built for ARM then it's not going to work. Yes the kernel supports ARM but it still has to be built specifically for the processor it's going to run on. That goes for most other software packages too.
Getting debian and LXDE running on the N1 is pretty easy to do. There is a guide buried a few pages down in this forum. Also, I'm hoping to release a script to help automate much of the install soon.

jairuncaloth said:
Well, it doesn't really work that way. If the distribution doesn't have their packages built for ARM then it's not going to work. Yes the kernel supports ARM but it still has to be built specifically for the processor it's going to run on. That goes for most other software packages too.
Click to expand...
Click to collapse
I guess you were talking about Ubuntu, not Debian?
jairuncaloth said:
Getting debian and LXDE running on the N1 is pretty easy to do.
Click to expand...
Click to collapse
Very easy: Debian is available for ARM:
[alpha][amd64][arm][armel][hppa][i386][ia64][mips][mipsel][powerpc][sparc][s390][source][multi-arch]
jairuncaloth said:
There is a guide buried a few pages down in this forum. Also, I'm hoping to release a script to help automate much of the install soon.
Click to expand...
Click to collapse
I would love to see that.

Well this pretty much answers my question. Thank you very much. At least I have ubuntu running on it, I will be happy with that.
Sent from my Incredible.

Related

MetaSploit on Galaxy Tab

Since we have the ability to install the full ARM-based distribution of Ubuntu Linux (in a "chroot", similar concept to a Virtual Machine), I think we may have the ability to install MetaSploit on the Galaxy Tab.
Can anyone provide any pointers on how to get started with this kind of effort? The instructions to install full Ubuntu Linux in a chroot are at http://forum.xda-developers.com/showthread.php?t=836022&page=4
From within this Ubuntu Linux environment we can "apt-get install" just about anything from the ARM-architecture based Ubuntu Linux repositories using the Terminal Emulator. This means we could probably "apt-get install" most of the MetaSploit components, if they are available in ARM-architecture form.
Any thoughts on this are much welcomed. Thank you.
This should be no problem, it has been done on other devices, for pieces that are not already in package form you'll have to find and compile source....a good hint for the packages you'll want to look for a guide on how to install it on a Nokia N900
What has this got to do with Android development??
This should be in Genera section.
hey dude, i've been looking to port this for awhile without success, i can't understand how the guys at rapid7 did the port for IOS and not for Android... I've read that the key is to get ruby working on Android so far there is jruby i believe that isn't fully functional yet...
I heart your name atheist
Sent from my SCH-I800 using XDA App
I found a link to an article which seems to explain how to do this...
http://r00tsec.blogspot.com/2011/05/metasploit-on-android-htc-desire-hd.html
We should try this on the Tab.
Update:
I got MetaSploit working on the Tab! I needed to follow the instructions mostly from http://r00tsec.blogspot.com/2011/05/metasploit-on-android-htc-desire-hd.html
I did have to install ruby ("apt-get install ruby" at the command line) and Ruby Gems (search for the exact apt-get name) inside the chroot'd Ubuntu environment though.
I was able to enlarge the 2 GB Ubuntu image to almost 4 GB using the instructions posted on the blog shown above which provided plenty of space to install MetaSploit and other InfoSec tools.
The next goal is to get BackTrack 5 (ARM) running.
http://www.androidng.com/install-backtrack-5-linux-on-android-phone
Any input is welcome.
mail_e60 said:
I found a link to an article which seems to explain how to do this...
http://r00tsec.blogspot.com/2011/05/metasploit-on-android-htc-desire-hd.html
We should try this on the Tab.
Click to expand...
Click to collapse

can i install Ubuntu and run it on my windows desktop??

i wanted to kno if i could run ubuntu on my windows pc?? i dont need to use it rite now but i would like to learn how to use it in case i ever need it... thanks
evo401 said:
i wanted to kno if i could run ubuntu on my windows pc?? i dont need to use it rite now but i would like to learn how to use it in case i ever need it... thanks
Click to expand...
Click to collapse
Yes you can you can either dual boot windows and linux or run it in a virtual machine or you can use a special installer that essentially allows you to install linux like any other windows application and uninstall it when you want to get rid of it.
I assume you want to get into android development maybe compile android from source. I'd recommend ubuntu and until the kinks are worked out I'd go with ubuntu 11.10 which you can get here:
http://releases.ubuntu.com/11.10/
Information on dual booting windows and linux:
http://www.linuxbsdos.com/2011/10/27/dual-boot-ubuntu-11-10-windows-7-on-a-pc-with-2-hard-drives/2/
https://help.ubuntu.com/community/WindowsDualBoot
Running linux in a virtual machine:
https://www.virtualbox.org
Install linux using special installer (wubi):
http://releases.ubuntu.com/11.10/wubi.exe
Hope this helps you if you need any help feel free to ask or if you want some guides on developing android on linux (compiling from source, kernels, etc.) I can help with that to
Sent from my SCH-I535 using xda premium
sweet!!!! good looking out bro!! just what i was looking for :good:
evo401 said:
sweet!!!! good looking out bro!! just what i was looking for :good:
Click to expand...
Click to collapse
Always glad to help let me know like I said if you want some guides on compiling linux on android and suff like that ... oh what the heck here are some guides:
Official Google guide to building Android from source on Linux
Official Google guide to building Android Kernel from source on Linux
Build Cyanogenmod from Source
How to use Github for Android Development
Basic commands for Linux and Android
Moved to Off-topic.
The easiest way to install Ubuntu is to use Wubi. It lets you install Ubuntu like a regular application in Windows.
- Download Wubi
- Choose Ubuntu in the list
- Click install
- It'll download and install Ubuntu for you
- Reboot and choose Ubuntu at boot
- You're done.
If you want to remove Ubuntu from your computer, you simply boot into Windows and uninstall it like a regular application If you decide to permanently keep it i recommend you install it by itself on a separate partition. That way it'll run better. But if you just plan to try it and you're not planning on running some heavy stuff (games etc.), then Wubi will do it just fine.

Port Ubuntu Touch

Hi guys,
If you're, like me, greatly excited to get Ubuntu Touch onto your phone, and/or tablet, here is a guide to port it!
It helps you get started on a port:
https://wiki.ubuntu.com/Touch/Porting
Also:
This is not a thread for eta:s for your device port. Nor is it a thread to ask for a port. Both of which you'll have to go to each device's own forum.
This is a thread for discuss ports, get help on them and to share experiences.
For Ubuntu Touch specific questions, see other threads.
FAQ:
Can you port device X?; Ask in your device X's forum. Or even better, try it yourself! It's not that hard, actually. See link above.
Does Ubuntu Touch run Android Apps?; No.
Will it?; Maybe. If anyone cares to actually make it work.
Do I need to have X; run Y; or do Z?; Check the Port guide! https://wiki.ubuntu.com/Touch/Porting
Sent from my GT-I9300 using xda app-developers app
Everyone with a nexus needs to install Ubuntu and then show everyone they know how in it's current state it is unusable except as a test device for apps.
Sv: Port Ubuntu Touch
Markk29 said:
Everyone with a nexus needs to install Ubuntu and then show everyone they know how in it's current state it is unusable except as a test device for apps.
Click to expand...
Click to collapse
Well, it is a dev release for developers and Ubuntu enthusiasts, so they probably already run Ubuntu. And if not, it's a 20 min install.
And porting it is still a large project by itself, so it'll go nicely hand in hand until the stable release of Touch, I think.
Sent from my Transformer using xda app-developers app
coming soon https://plus.google.com/u/0/107265043789873157543/posts/hAE1grem6hj
Kalashnikitty said:
coming soon https://plus.google.com/u/0/107265043789873157543/posts/hAE1grem6hj
Click to expand...
Click to collapse
is that S3 , in the pic if i am not wrong?
Porting posted:
https://wiki.ubuntu.com/Touch/Porting
S3 already has it: http://www.omgubuntu.co.uk/2013/02/ubuntu-phone-up-running-on-samsung-galaxy-s3
Just been reading through the process and if seems relatively straightforward to port so I can't wait to see what comes out of this
can i ask a question?what mean ubuntu is based on cm10.1?by which meaning?ubuntu i quess it will be an OS by itshelf.why based on cm10.1?
termagazis said:
can i ask a question?what mean ubuntu is based on cm10.1?by which meaning?ubuntu i quess it will be an OS by itshelf.why based on cm10.1?
Click to expand...
Click to collapse
Because some of the Android components are reused. Read here: https://wiki.ubuntu.com/Touch/Porting#General
Ubuntu is a distro. Linux is an OS. Android is kind of a distro too.
Please correct me if I'm wrong.
Actually pending when canonical gets to compile drivers for particular phones which incidentally is probably going to be for only their oem devices, they use the cm base.
Essentially just the drivers and hal layer.
Its not based on CM. It takes advantage of CM base. Its direct ubuntu.
And from what iv seen you can forget about lag. The alpha is awesome compared with android alphas
Sent from my GT-N7000 using xda premium
edy_3dz said:
Because some of the Android components are reused. Read here: https://wiki.ubuntu.com/Touch/Porting#General
Click to expand...
Click to collapse
yes i have read this but my english isnt perfect so i maybe didnt understant something.so because ubuntu and android are based in Linux kernel,they taking some stuff "ready" for more easyness.something like that?
Phones need drivers like your PC does and a kernel which acts as interaface between the hardware and the operating system.
Everyphone uses its own vendor supplied kernel with some modifaction and their own graphics driver. So they use the low-level stuff that already exists for Ubuntu.
You can't just make one "OS" for a smartphone that just works on all devices it has to be ported to the specific hardware (kernel and driver).
blackout23 said:
Phones need drivers like your PC does and a kernel which acts as interaface between the hardware and the operating system.
Everyphone uses its own vendor supplied kernel with some modifaction and their own graphics driver. So they use the low-level stuff that already exists for Ubuntu.
You can't just make one "OS" for a smartphone that just works on all devices it has to be ported to the specific hardware (kernel and driver).
Click to expand...
Click to collapse
thats what i mean.so they took the allready existing stuff from cm10.1 because it will work with ubuntu (or with some small changes) because both OS are based on Linux kernel.i understand right?
fromanbr said:
Ubuntu is a distro. Linux is an OS. Android is kind of a distro too.
Please correct me if I'm wrong.
Click to expand...
Click to collapse
Ubuntu is a distro or distribution which is a OS Linux isn't a OS it's a kernel (the underlying framework kinda like the glue)
PHONE SLOW CLICK ME?
_____________________________________
"If your doing the right thing then to hell with everyone else -Deadly"​
TingTingin said:
Ubuntu is a distro or distribution which is a OS Linux isn't a OS it's a kernel (the underlying framework kinda like the glue)
PHONE SLOW CLICK ME?
_____________________________________
"If your doing the right thing then to hell with everyone else -Deadly"​
Click to expand...
Click to collapse
Wikipedia says Linux is an unix like OS, but the main component is the Linux Kernel. Android only uses the Linux Kernel and not so much the GNU system tools which make it unix like, that is why people generally don't refer to android as a Linux distro.
BukaKing said:
Wikipedia says Linux is an unix like OS, but the main component is the Linux Kernel.
Click to expand...
Click to collapse
But saying it like that makes it sound like u can use this as a Mac OS or Windows replacement which I think is what he was asking
Android only uses the Linux Kernel and not so much the GNU system tools which make it unix like, that is why people generally don't refer to android as a Linux distro.
Click to expand...
Click to collapse
I never said android was a Linux distro
PHONE SLOW CLICK ME?
_____________________________________
"If your doing the right thing then to hell with everyone else -Deadly"​
TingTingin said:
But saying it like that makes it sound like u can use this as a Mac OS or Windows replacement which I think is what he was asking
I never said android was a Linux distro
PHONE SLOW CLICK ME?
_____________________________________
"If your doing the right thing then to hell with everyone else -Deadly"​
Click to expand...
Click to collapse
You didn't say android was a Linux distro but he did, I was just adding to the conversation.
I think I may understand what you're thinking though. Mac and Windows are not open source and you cant build your own version, so they are not as comparable in that sense, they are binary distributions. But you can build your own Linux configured the way you want outside of any distro, a distro is just a packaged version of Linux with additional packages and configurations.
Had angie tried to pull the source code? It's ridiculously slow on my end. About 15gb at 9 to 152kbs... I guess every dev in the world is trying to pull it...Lol...too bad there's no way to speed it up
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
fromanbr said:
Ubuntu is a distro. Linux is an OS. Android is kind of a distro too.
Please correct me if I'm wrong.
Click to expand...
Click to collapse
Actually, Linux is a clone of the UNIX kernel. Ubuntu is an operating system (or Linux distribution) with a Linux kernel. Android could be considered a Linux distribution as well, even though it's mostly Java stacks on top of a Linux kernel.
Sent from my Galaxy Nexus using Tapatalk 2

Which Linux os is best? And which is trickiest?

I have tried various Linux distros like Debian, Ubuntu, Arch, Gentoo ,etc. but I want to test a Linux which is much hard to install and use like Gentoo.. different from Debian based or arch based distros..
Is there such a distro more difficult than Gentoo??
And also I wanna know which is the best linux distro and mostly supported..
The hardest distro is LFS (Linux from Scratch)
My favorite distro is Artix.
The most supported distro is Ubuntu, as it is the most mainstream, but I don't like it because of the Snap daemon.
$cronos_ said:
The hardest distro is LFS (Linux from Scratch)
My favorite distro is Artix.
The most supported distro is Ubuntu, as it is the most mainstream, but I don't like it because of the Snap daemon.
Click to expand...
Click to collapse
Thanks for replying @$cronos_ but where to download the iso of Lfs?
Btw I also don't like Ubuntu coz of various bugs
Also Artix is something new I heard from u and I gonna try this
Asutosh5941 said:
Thanks for replying @$cronos_ but where to download the iso of Lfs?
Click to expand...
Click to collapse
Welcome to Linux From Scratch!
My favorite is Linux Mint and my opinion Gentoo,LFS(Linux from Scratch) is the hardest
My cousin's opinion(no one asked but im gonna still type it here): Her opinion in hardest distros is Linux Mint (not xfce) , Ubuntu , Gentoo
Asutosh5941 said:
Thanks for replying @$cronos_ but where to download the iso of Lfs?
Btw I also don't like Ubuntu coz of various bugs
Also Artix is something new I heard from u and I gonna try this
Click to expand...
Click to collapse
Linux from Scratch isn't really a distro. It's a set of instructions to build a core Linux system.
If you try Artix, I recommend using OpenRC as the init system.
notnoelchannel said:
My favorite is Linux Mint and my opinion Gentoo,LFS(Linux from Scratch) is the hardest
My cousin's opinion(no one asked but im gonna still type it here): Her opinion in hardest distros is Linux Mint (not xfce) , Ubuntu , Gentoo
Click to expand...
Click to collapse
I used Gentoo but its not as hard as people say..
It's very easy to operate .
What takes time is to install a package in gentoo which is same as building the application from source code. If u know how to install arch linux then it will be easier for u to install gentoo with systemd or if u choose openrc then it is not so hard.
If gentoo provide all binary packages then its installation will take only 1hr.
$cronos_ said:
Linux from Scratch isn't really a distro. It's a set of instructions to build a core Linux system.
If you try Artix, I recommend using OpenRC as the init system.
Click to expand...
Click to collapse
@$cronos_ u mean Lfs has no iso!
I can't stand how all these current distros are using desktop environments that slow
the whole pc down .
I really enjoy mint . basic desktop environment experience without my pc slowing down .
No eye candy , no dumb gnome environment .
Just a distro that works well .
fleisch80 said:
I can't stand how all these current distros are using desktop environments that slow
the whole pc down .
I really enjoy mint . basic desktop environment experience without my pc slowing down .
No eye candy , no dumb gnome environment .
Just a distro that works well .
Click to expand...
Click to collapse
U can get even more out of ur pc if u use window managers like Openbox, Fluxbox, etc. rather than using desktop environments like Gnome, Kde, Cinnamon (in Mint if u use this variant), etc. coz window managers use less amount of ram like upto 300mb
Asutosh5941 said:
U can get even more out of ur pc if u use window managers like Openbox, Fluxbox, etc. rather than using desktop environments like Gnome, Kde, Cinnamon (in Mint if u use this variant), etc. coz window managers use less amount of ram like upto 300mb
Click to expand...
Click to collapse
openbox > fluxbox
@$cronos_ There are several isos available in Artix Linux website..
If I downloaded runit iso but want to use operc as init system then is it possible..
Or I go for openrc iso..
Also how to fix slow download of the iso
Asutosh5941 said:
@$cronos_ There are several isos available in Artix Linux website..
If I downloaded runit iso but want to use operc as init system then is it possible..
Or I go for openrc iso..
Also how to fix slow download of the iso
Click to expand...
Click to collapse
try other download mirror for faster speed
$cronos_ said:
try other download mirror for faster speed
Click to expand...
Click to collapse
Ok I will try but I am changing my mind to test Lfs
The best linux is "your choice's" linux.
Just remember that most Distros are just forks of other distros with slight changes, usually in appearance/DE/Windows Managers
Is it possible to make my own distro like Debian based Mint or Arch bases Artix?
Asutosh5941 said:
Is it possible to make my own distro like Debian based Mint or Arch bases Artix?
Click to expand...
Click to collapse
It's all open-source code. The original intent was to make an OS that any user can access the source code, make edits, save the changes and have a personalized OS that's shareable
Asutosh5941 said:
Is it possible to make my own distro like Debian based Mint or Arch bases Artix?
Click to expand...
Click to collapse
Of course.
Be happy, my friend
My first Linux at home was Ubuntu Linux. I had a bad laptop, so I was using to make the laptop live again.
More than 1 year later, I decided to abandon Ubuntu, because it is a good door for Linux, but very bad for daily use.
So, I experienced Fedora Linux.
And I've been using Fedora so far for more than 11 years in my home desktop.
Fedora is maintained by Red Hat, a linux-based company, but it is developed by community.
So, with Fedora Linux you can experience new stuff with the proposal to be so stable enough for a company.
But at servers, all them are Debian Linux. No discussions.
Asutosh5941 said:
Thanks for replying @$cronos_ but where to download the iso of Lfs?
Click to expand...
Click to collapse
This made me chuckle and put a smile on my face. I needed it. Thank you

Is it possible to install Linux on android Phone?

I know theres some phones that are compatible with Ubuntu touch etc. but my question is there any distribution of Linux that will work with most of phones, in my case Motorola one macro. Ofc i didnt mean android bc its linux based if im right.
With PRoot and Termux, you can install a GNU/Linux distro.
Check this app which will help a lot: https://play.google.com/store/apps/details?id=studio.com.techriz.andronix
I will try it, thanks!
nice to see, ill try that too

Categories

Resources