Linux Help Thread

jamiethemorris

Senior Member
Jan 7, 2013
1,851
803
0
So since beaups has announced that s-off for 2.06 will be for Linux only, a lot of people are preparing by either trying to set up a Linux partition or Live DVD/USB. I just thought I'd make a thread for general info and help getting it working properly. I'm not going to go super in-depth with this because there's a plethora of information online this is more just for some tips to get you started.

Disclaimer: Make sure your computer is backed up before doing this. You shouldn't run into any problems that will screw it up, but you never know what could happen. Better safe then sorry, right? If your computer explodes, it's not my fault.

Some general info about LInux
Essentially, Linux is just a kernel. Android is based off the Linux kernel, and your cable box, router, and most web servers probably are as well... And a lot of other things you might not think of.
Desktop Linux has what are called distrinutions. These are basically the equivalent of Android ROMs, just operating systems based on Linux. If you are just starting out, you probably want to use Ubuntu or Linux Mint as they are the most user-friendly.

Making the Live DVD/USB
-First you obviously need the iso. Here is a link to the Ubuntu download: http://www.ubuntu.com/download/desktop
-Unless you have a computer that doesn't support 64-bit, just get the 64-bit download. If you have a UEFI-based computer, you definitely want the 64-bit iso because it's UEFI native, which will make things easier, and you will also want to read this: https://help.ubuntu.com/community/UEFI
-If you're trying to boot the Live DVD on a Mac, you also want the 64-bit iso, and you need rEFIt: http://refit.sourceforge.net/
-If you just want to boot from the DVD, you can burn it with pretty much any DVD burning software. If you want to make a live USB, use unetbootin: http://unetbootin.sourceforge.net/ or Pendrive Linux: http://www.pendrivelinux.com/category/usb-creator/

Installation
-If you only plan on using Linux once to s-off your phone, you don't really need to do this, just use the Live DVD.
-If you haven't already, you probably want to hook up an ethernet cable to your computer in case the wireless drivers aren't available.
-If you actually want to install it on a PC, it's pretty straightforward, just use the "Install Ubuntu alongside Windows" option, unless you want to partition it manually with the "Something else" option (I won't go into that here).
-If you want to install it on a Mac, you will need rEFIt, which I already mentioned. You also need to add a fat32 partition to your drive that you will reformat to ext4 with the Ubuntu installer. Install rEFIt, reboot twice and then you should see the rEFIt boot menu where you can choose your live disc. One very important thing about this: If you are installing Linux to the same drive as an OS X installation, DO NOT choose the "install alongside" option. It will break your install. Use the "Something else" option. By default, Linux wants to install grub to the MBR, but you need to reformat your fat32 partition to ext4 instead and install it to that partition. Then you can just boot into it with rEFIt. The rest is pretty much the same as installing it on a PC.

Post-install
-At this point, it's going to want to install some updates and maybe some proprietary drivers it may need and that's it. Really all you need to do after this is install the android drivers. The easiest way is to use apt-get which is basically a package installer for everything in Ubuntu's software repos. Open up Terminal, and type in: sudo apt-get install android-tools-adb android-tools-fastboot. Hit enter, type in your password, then it will ask you to confirm and blah blah blah and then it will download and install it. That's really it. I don't know what else may be necessary at this point since the s-off tool hasn't been released yet.

Some other links that may be helpful:
-Dual-boot on PC: http://www.linuxbsdos.com/2012/05/17/how-to-dual-boot-ubuntu-12-04-and-windows-7/
-Dual-boot on Mac: http://lifehacker.com/5934942/how-t...-and-take-back-your-powerhouse-apple-hardware
-Triple-boot on Hackintosh: http://lifehacker.com/5698205/how-to-triple-boot-your-hackintosh-with-windows-and-linux
-If you want to build a ROM from the source (Ubuntu 12.04): http://forums.androidcentral.com/ve...99-guide-ubuntu-compiling-android-source.html
-Linux forums, the folks here are very helpful: http://www.linuxforums.org/forum/
-Terminal basics: https://help.ubuntu.com/community/UsingTheTerminal

I hope this is helpful. If anyone has any suggestions to add to this post feel free.

EDIT: One more thing! If you are asking for help, please post what computer you are using, the specs, and whether it is BIOS-based or UEFI-based.
 
Last edited:

Sloth

Recognized Contributor / Retired Forum Moderator
Apr 23, 2012
10,699
11,295
0
Xda-Dev,NV
Nice write up thanks for sharing this will help a lot of folks :D

Sent from my Liquid Smooth Nexus 7 :p
 
Last edited:

deathrow1992

Senior Member
Jan 12, 2013
114
24
0
Nice write up but can you link me where beaups said that? If that's true that sucks.

Sent from my HTC6435LVW using Tapatalk 4 Beta
 

deathrow1992

Senior Member
Jan 12, 2013
114
24
0
Last edited:

holytimes

Senior Member
Sep 27, 2010
50
19
0
LOL? Because I am unfamiliar with linux I'm ungrateful? I never said if moonshine is linux only im going to destroy beaup's face or anything like that, jeez. Now I see why people from androidforums would amputate a leg before they come over here. So hostile.

Thanks for the link though.
I think he took it as "if its Linux only then the method sucks" while I can see that your just trying to say you wish it was on windows as well but whatever, it can be taken as as much more negative thing... Remember attacking back only causes more hostility let's all please get along.

Sent from my Galaxy Nexus using Tapatalk 4 Beta
 

cstrife999

Senior Member
Jun 18, 2010
1,705
279
0
Hermitage
He never really said it's Linux only... Simply hinted it. For all we know he may be delaying to get a windows version working.

Sent from my HTC6435LVW using xda app-developers app
 

Robocrypt

Senior Member
May 14, 2013
57
1
0
Henrico
Ok so I am trying to dual boot windows 8 and linux mint 15. I have an ASUS X55C laptop that cane preloaded with Windows 8. I made a liveusb that works great but now is like to dual boot. After i install linux mint I restart and choose to run mint as the os. Then I get this message. Also here is the guide I followed to install mint

http://www.howtogeek.com/99060/how-to-dual-boot-windows-8-and-linux-mint-on-the-same-pc/

Windows has failed to start. A recent hardware or software change might be the cause. To fix the Problem

1. Insert Windows installation disc and restart your computer. 2 Choose your language settings and click next. 3, Click repair your computer.

If you do not have this disc, contact your system administrator or computer manufacturer for assistance

File: \linuxmint\winboot\wubildr.mbr

Status 0xc000007b

Info: The application or operating system couldn't load because a required file is missing or contains errors
EvolutionXJ
Level 1

*
Posts: 3
Joined: Wed Jun 05, 2013 3:58 pm

Sent from my HTC6435LVW using xda app-developers app
 
Last edited:

jamiethemorris

Senior Member
Jan 7, 2013
1,851
803
0
Does windows still start? Did you use the 32 bit or 64 bit version of mint?
Also does your computer have uefi?

Sent from my DNA using Tapatalk 2
 
Last edited:

Robocrypt

Senior Member
May 14, 2013
57
1
0
Henrico
Does windows still start? Did you use the 32 bit or 64 bit version of mint?
Also does your computer have uefi?

Sent from my DNA using Tapatalk 2
Yes windows will still start up and linux will still start up from my usb. Im actually on linux through my liveusb now. I downloaded the 64bit linux since my laptop came pre downloaded with a 64 bit windows 8. ALso it is a UEFI. I have secure boot disabled as well. I just am confused as to why it runs fine from my usb. But wont run when its installed to my computer.
 
Last edited:

paulhoop

Senior Member
Jul 5, 2008
223
66
0
Using Android Tools on Ubuntu 12.04

Native Ubuntu 12.04 installed on a bootable memory stick needs also to reference the repository that the tools are located.

Once you have booted into Linux, then execute the following commands from a terminal window

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
 
  • Like
Reactions: takota6

nitsuj17

Inactive Recognized Developer
Aug 24, 2010
10,160
17,211
0
PA
LOL? Because I am unfamiliar with linux I'm ungrateful? I never said if moonshine is linux only im going to destroy beaup's face or anything like that, jeez. Now I see why people from androidforums would amputate a leg before they come over here. So hostile.

Thanks for the link though.
lol i forgot about androidforums, that was the first place i used to post :cool:

i eventually came over to xda cuz all the developers at the time only supported their work here
 

jamiethemorris

Senior Member
Jan 7, 2013
1,851
803
0
Yes windows will still start up and linux will still start up from my usb. Im actually on linux through my liveusb now. I downloaded the 64bit linux since my laptop came pre downloaded with a 64 bit windows 8. ALso it is a UEFI. I have secure boot disabled as well. I just am confused as to why it runs fine from my usb. But wont run when its installed to my computer.
That's really strange. Do you have an option for legacy bios in your bios or anything like that you can change?

Sent from my DNA using Tapatalk 2
 

natypes

Senior Member
Jun 20, 2012
114
20
0
Memphis
If the other guy is like me rooting a phone is the absolute limit of our technical abilities. Now I have to learn to change things on my desktop? I'm grateful, but I'd rather pay for a windows version than go messing around with my desktop. I guess I'll try to learn what livecd is now.
 

jamiethemorris

Senior Member
Jan 7, 2013
1,851
803
0
@EvolutionXJ something just occurred to me. Since your PC more than likely has GPT instead of MBR, you may need to use gptsync to sync the partition tables. To so this, boot into your live disc, open the terminal, and type sudo apt-get install gptsync. After it installs, do sudo gptsync /dev/sda. I had an issue similar to yours trying to triple boot my netbook and that was the solution. Let me know if you get stuck again.

Also are you using windows boot manager to boot Linux or are you using GRUB (it might be lilo in the case of uefi)

Sent from my DNA using Tapatalk 2
 

jamiethemorris

Senior Member
Jan 7, 2013
1,851
803
0
Forget the gptsync thing, I don't think that's the issue. Don't think you would need to do that with a uefi pc

Sent from my DNA using Tapatalk 2
 
Last edited:

lhkjohn

Senior Member
Aug 3, 2011
286
13
0
Orange County
I have Ubuntu booting on my mac through a virtual box and I've never been able to get it to recognize any of my devices. It's usually why I just wait for a Mac method, but I'm super excited to get this bad boy dialed.

Any ideas? I've tried reinstalling Ubuntu and adb multiple times through different methods, but no dice. And yes, I have usb debugging checked. I've also tried 3 different cables and all of my usb ports. Thanks for any help!

Sent from my DNA all in ya mouf
 
Last edited: