Linux Help Thread - HTC Droid DNA

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.

Nice write up thanks for sharing this will help a lot of folks
Sent from my Liquid Smooth Nexus 7

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 said:
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
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=42118877&postcount=601
Be grateful that you are getting s-off for free.

kern3l said:
http://forum.xda-developers.com/showpost.php?p=42118877&postcount=601
Be grateful that you are getting s-off for free.
Click to expand...
Click to collapse
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.

deathrow1992 said:
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.
Click to expand...
Click to collapse
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

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

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

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

jamiethemorris said:
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
Click to expand...
Click to collapse
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.

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

deathrow1992 said:
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.
Click to expand...
Click to collapse
lol i forgot about androidforums, that was the first place i used to post
i eventually came over to xda cuz all the developers at the time only supported their work here

EvolutionXJ said:
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.
Click to expand...
Click to collapse
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

jamiethemorris said:
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
Click to expand...
Click to collapse
Just checked for legacy boot. Don't have it. SO secure boot is still off in the UEFI. This is going to drive me crazy...

EvolutionXJ said:
Just checked for legacy boot. Don't have it. SO secure boot is still off in the UEFI. This is going to drive me crazy...
Click to expand...
Click to collapse
Hopefully someone else will have some more insight, for now I have to go to class. I'll look into it more when I get home.
Sent from my DNA using Tapatalk 2

I didn't see anything about Linux only in the new moonshine thread. Is this still necessary?

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.

@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

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

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

Related

[GUIDE] How to LINUX on Rooted TFP

First off, thanks to msullivan for providing the BackTrack 5.0 image!
I've made this as easy as possible. Not for novice users.
I chose backtrack as the image (instead of ubuntu) because i LOVE backtrack. I've used it as my main on-the-go linux for a while. Mainly because I hack all the wifi I'm around so i have a constant NET connection
This script requires ADB installed and ROOT!
Required Apps
Busybox - Download and install busybox
Terminal Emulator
Any VNC Client that supports LINUX
Installation
Download the image and attached scripts (BT5_Install.zip)
http://www.ulozto.net/xfHz8JJ/primelinuxbacktrack5-zip
Rename the image to BT5.zip and copy to /sdcard/ - I would copy in the script, but ADB is WAAAY slow.
Unzip BT5_Install.zip into your ADB folder - Or anywhere if you have ADB set with environmental variables
Make sure device connected and responds to adb (adb devices)
run install.bat
This will push the proper scripts, open the image up for use and run necessary scripts
This process does take time. No longer than 10 minutes. Script will notify when complete.
---Linux is now installed!---
Open terminal emulator and type: (do this any time you want to start your linux if you have shut it down or the TFP has restarted)
su
cd /sdcard/bt5
sh bt
Type Y at the prompt
VNC into 127.0.0.1:5901 with password 'root' with any VNC program you like
PROFIT
Change Resolution!!
Open terminal in Linux
Type pico /usr/bin/startvnc
Xhange resolution to 1280x800
Type ctrl x
Yes
restart TFP
Look absolutely AMAZING now
Notes:
If the bt5 folder on /sdcard/ is ever deleted, you will lose your linux and need to re-install!
This has been tested and confirmed by me!
Can you tell I like formatting?? hahaha
Need help with ADB? Click HERE for my guide!
Im using POCKETCLOUD in Windows mode (it connect to linux as well!)
The GUIDE is not finite. Please post anything you feel should be added/corrected to the guide.
Thanks and 5 star would make me feel good inside too!
Yes!!!!I was wondering when we would see this for the TP. I wonder how long it will be till somone asks about monitor mode and packet injection. Let me go ahead and announce it... AIRCRACK WILL NOT WORK!!! Had to do it.. every backtrack thread on this forums is full of kids saying "I can hax0rz wifi?"
Sent from my SAMSUNG-SGH-I727
lol, i know, i wish.. it would only work if we could dual boot. that way, we could potentially have wifi aircrack support and all that!
Agreed.. but chroot is better than nothing I guess. You may want to try the "orbot" app along with backtrack. Its great for using the tor network while using bt.
biggem001 said:
lol, i know, i wish.. it would only work if we could dual boot. that way, we could potentially have wifi aircrack support and all that!
Click to expand...
Click to collapse
Sent from my SAMSUNG-SGH-I727 using XDA App
anyone tried interfacing with any wifi adapters yet with either the dock or a USB ATP to USB adapter? it'd be pretty awesome to get monitor mode on this thing...
Inevitble question. What happesn when we get ICS? Will we just have to reroot?
What's the difference in BT5 and the HD2 image I downloaded from the HD2 forums? Are they different versions of Ubuntu?
Oh yeah, and THANKS a ton for the install guide!
adampdx said:
Inevitble question. What happesn when we get ICS? Will we just have to reroot?
Click to expand...
Click to collapse
theoretically, yes!
tbns said:
What's the difference in BT5 and the HD2 image I downloaded from the HD2 forums? Are they different versions of Ubuntu?
Oh yeah, and THANKS a ton for the install guide!
Click to expand...
Click to collapse
the BT5 image is different than any other linux image. there are several floating (mainly ubuntu). my scripts are only setup for bt5.
if i find a ubuntu image i like, i'll make one for that too
biggem001 said:
the BT5 image is different than any other linux image. there are several floating (mainly ubuntu). my scripts are only setup for bt5.
if i find a ubuntu image i like, i'll make one for that too
Click to expand...
Click to collapse
Ahh, gotcha. I didn't realize this was a different flavor of linux, not a different version of Ubuntu (guess I should have read the thread title). Cool, going to give it a shot.
Thanks for this. I was looking to put some form of Linux on my tp lol. Just have to wait until I get an sd card now.
it doesn't have to be on your sdcard
sdcard means internal memory
there is a removable category for a removabl sdcard.
just transfer the zip to your normal memory root directory
biggem001 said:
theoretically, yes!
Click to expand...
Click to collapse
Oh, that's just the cat's pajamas. Awesome!
tbns said:
Ahh, gotcha. I didn't realize this was a different flavor of linux, not a different version of Ubuntu (guess I should have read the thread title). Cool, going to give it a shot.
Click to expand...
Click to collapse
Yea, bt5 is the security and exploitation flavor of Linux, ubuntu is more of the general purpose version
Sent from my Transformer Prime TF201 using Tapatalk
foboi1122 said:
Yea, bt5 is the security and exploitation flavor of Linux, ubuntu is more of the general purpose version
Sent from my Transformer Prime TF201 using Tapatalk
Click to expand...
Click to collapse
bt5 is ubuntu 11.04 with the penetration app suite and a different wallpaper... lol
Can someone try out LibreOffice and report back how smoothly it does/doesn't run? Will definitely root if LibreOffice runs well. Thanks!
biggem001 said:
it doesn't have to be on your sdcard
sdcard means internal memory
there is a removable category for a removabl sdcard.
just transfer the zip to your normal memory root directory
Click to expand...
Click to collapse
Yeah but I just prefer it on my sd. Personal thing.
Sent from my Transformer Prime TF201 using xda premium
to change resolution in BT5.. in linux
open terminal
type pico /usr/bin/startvnc
change resolution to 1280x800
ctrl x
yes
restart TFP
look absolutely AMAZING now
How does it run on the TFP ? is it responsive etc?
Can it be used as an everyday function? i'm really interested in this, and cant wait to get start messing about with it.
I've got BT5.zip on my sdcard directory, but I keep getting this error when I use the './install.bat' command:
OFF
Installing BackTrack 5 for ARM Devices.
./install.bat: line 3: syntax error near unexpected token `('
./install.bat: line 3: `ECHO Make sure BT5.zip is in your /sdcard/ folder (/sdcard/BT5.zip) NO' removable SD, internal.

[Solved] Windows Boot Loader Issue *Thanks*

I have just used EasyBCD to try and restore the Windows boot loader before I attempted to uninstall Ubuntu (wubi) from my Windows 7 PC.
I was following the instructions by Jeffry Thurana in the article The Non-Geek’s Guide To Safely Uninstall Ubuntu From A Dual-Booting Machine Unfortunately, when I tried to reboot, Windows failed to start and gave the following details:
File: \Boot\BCD
Status: 0xc0000098
Info: The windows Boot Configuration Data file does not contain a valid OS entry.
Any suggestions how I can get back into Windows and also to be able to boot directly into Windows?
I did my research and all leads to acquiring the Windows Recovery which wasn't included when i purchased the PC.
Does anyone (TRUSTWORTHY) have an iso they can share with me?
Wait. When you install ubuntu thru wubi, all you need to do is install wubi and run it. It installs linux as a dualboot so when you restart, you choose windows or linux.
Edit: When uninstalling, all you would do is go into programs on win7 and uninstall wubi. It would wipe linux off for you. Why mess with the bootloader?!?! Also, im pretty sure thepiratebay.org has what you need.
My Blog: knowledgexswag.tumblr.com
Twitter: @knowledge561
knowledge561 said:
Wait. When you install ubuntu thru wubi, all you need to do is install wubi and run it. It installs linux as a dualboot so when you restart, you choose windows or linux.
Edit: When uninstalling, all you would do is go into programs on win7 and uninstall wubi. It would wipe linux off for you. Why mess with the bootloader?!?! Also, im pretty sure thepiratebay.org has what you need.
My Blog: knowledgexswag.tumblr.com
Twitter: @knowledge561
Click to expand...
Click to collapse
I was using ubuntu on my PC but i had installed it by making an 18GB partition. I dug up an old laptop and fixed it, installed ubuntu as the native OS and decided to keep my PC for work and school. I couldn't uninistall from Control Panel so i used the uninstaller that ubuntu offers and it uninstalled but the partition remained. That's when i googled how to remove it and stumbled on the article on "SAFELY" removing it. Now i'm pretty screwed unless i get my hands on a recovery disc.
MindSplit said:
I was using ubuntu on my PC but i had installed it by making an 18GB partition. I dug up an old laptop and fixed it, installed ubuntu as the native OS and decided to keep my PC for work and school. I couldn't uninistall from Control Panel so i used the uninstaller that ubuntu offers and it uninstalled but the partition remained. That's when i googled how to remove it and stumbled on the article on "SAFELY" removing it. Now i'm pretty screwed unless i get my hands on a recovery disc.
Click to expand...
Click to collapse
Wtf?!?! It always uninstalls through the control panel. Yup. thepiratebay.org is your friend.
My Blog: knowledgexswag.tumblr.com
Twitter: @knowledge561
knowledge561 said:
Wtf?!?! It always uninstalls through the control panel. Yup. thepiratebay.org is your friend.
My Blog: knowledgexswag.tumblr.com
Twitter: @knowledge561
Click to expand...
Click to collapse
Thanks a million. Hopefully this works for me.
iMac FTW
Via My HTC Evo 3D On The Now Network From Sprint.
Rydah805 said:
iMac FTW
Via My HTC Evo 3D On The Now Network From Sprint.
Click to expand...
Click to collapse
iMac, You Mac, Big Mac, We all Mac.
Just incase.
mac
a pimp or playa. Mackin on someone, to put your moves on her.
Do you still have the windows cd? You can get to command prompt from setup. There are a few commands you can run there like fixboot, fixmbr, bcdedit, and bootrec /rebuildbcd.
The first two may be legacy commands, so you may only need the last two.
Sent from my 3D using InfectedRom Eternity.
msimindlessmsi2 said:
Do you still have the windows cd? You can get to command prompt from setup. There are a few commands you can run there like fixboot, fixmbr, bcdedit, and bootrec /rebuildbcd.
The first two may be legacy commands, so you may only need the last two.
Sent from my 3D using InfectedRom Eternity.
Click to expand...
Click to collapse
It wasn't bundled when i purchased the PC. I'm trying to burn the ISO on the laptop with ubuntu but it keeps failing. I made an ubuntu install CD and i'm running ubuntu from the CD on the PC. Is there a way to fix boot loader from linux?
MindSplit said:
It wasn't bundled when i purchased the PC. I'm trying to burn the ISO on the laptop with ubuntu but it keeps failing. I made an ubuntu install CD and i'm running ubuntu from the CD on the PC. Is there a way to fix boot loader from linux?
Click to expand...
Click to collapse
I highly doubt it. I would just download a windows 7 iso via a torrent site. You could then boot to setup to run the commands via the command prompt under advanced recovery options.
Sent from my 3D using InfectedRom Eternity.
Thanks
My question was entirely different, but the info in this thread helped me figure it out! thank you
I have spent almost 5 hours researching, downloading, burning CDs, Installing, and using Linux commands to no avail.
Sent from my Olympian Evo 3D
MindSplit said:
I have spent almost 5 hours researching, downloading, burning CDs, Installing, and using Linux commands to no avail.
Sent from my Olympian Evo 3D
Click to expand...
Click to collapse
So you've already tried burning a different windows iso? Sounds like the error you had earlier was because of a bad download.
Sent from my HTC Evo 3D
yousefak said:
So you've already tried burning a different windows iso? Sounds like the error you had earlier was because of a bad download.
Sent from my HTC Evo 3D
Click to expand...
Click to collapse
I thought it was a bad download too but I had a friend make me an iso and it wouldn't burn either. I used K3B and the already provided burner and it wouldn't get past 75 %. I even tried duplicating the ubuntu Live CD. Hopefully I can get a hold of a physical disc today. Thanks guys for the input so far.
Sent from my Olympian Evo 3D
MindSplit said:
I thought it was a bad download too but I had a friend make me an iso and it wouldn't burn either. I used K3B and the already provided burner and it wouldn't get past 75 %. I even tried duplicating the ubuntu Live CD. Hopefully I can get a hold of a physical disc today. Thanks guys for the input so far.
Sent from my Olympian Evo 3D
Click to expand...
Click to collapse
First thing first is that all Win7 ISO should be burned using a DVD burner. Try looking for an ISO which matches the version of Win7 you have and use the command prompt recovery to execute the commands which were stated earlier in the thread. That is the only way to repair the windows 7 boot loader.
Next time you face something like this and you have Linux in a separate partition the easy way to uninstall is buy using the recovery command prompt from the DVD and then just deleting the partition from device manager's disk utility.
Sent from my Xoom using Tapatalk
Good news! I'm got back control of my PC. Just incase anyone stumbles on a situation like this, here is what I did.
My laptop had Ubuntu as the only OS. I reinstalled Windows, then ran Ubuntu Live CD. Downloaded the ISO and dragged it into the Windows side of the HDD. Switched back to Windows, burned the image with DeepBurner and viola! My PC is back in business.
Now I have 3 copies of the System Repair disc made as soon as my PC booted up.
Thanks again for all input. Although it's nothing related to the Evo 3D I'm grateful to those that didn't take that into account.
Sent from my Olympian Evo 3D
In the future, anyone who encounters a similar problem should be aware that there is no need to wipe your windows 7 install and start over. Install a separate copy of windows (xp or 7 will work; xp install disks are smaller) into a free partition/drive, and run easyBCD from there. Then use it to install BCD onto the windows 7 partition you desire to keep, and write the MBR, simple as that.
If you don't have a free partition use a GParted live disk to shrink a partition. You only need 10GB to get it done.
You could also try to run it from a Windows installed on a USB drive, such PE, but I can't vouch for that.
If you're unsure if a disc image is good. Boot it in virtualbox from a linux install.
Finally, if you move the start of an NTFS partition, you need to install BCD after the move. My guess is that is where you went wrong here (either that or you selected the wrong partition for the boot entry you created).
MindSplit said:
I have spent almost 5 hours researching, downloading, burning CDs, Installing, and using Linux commands to no avail.
Sent from my Olympian Evo 3D
Click to expand...
Click to collapse
Go to the boot menu, select the boot priority and here change the boot order--set your system's primary hard drive as the primary boot device.
reboot with your windows installation disk in.
format or delete the partition from the select partition dialogue.
reboot/ continue to install windows.
this will solve your problem.

[How To] Running Linux on a Windows Machine

A lot of the development that has (is) taken place for our Nook's is performed by the developers in Linux. As such there are a few posts in the development thread that offer "Linux Only" solutions.
We already have the Original ClockWorkMod (CWM) installation instructions, AdamOutlers Ubuntu Recovery and others.
People have also been recommended to re-format their bootable SD Cards using a program in Linux called Gparted. I can verify that this program works great but I'm sure I'm in the minority with having access to a Linux Machine. This thread is here to offer some suggestions.
To my knowledge you have these options:
1. Run Linux in a Virtual Machine (VM)
2. Create and boot from a Live CD/DVD
3. Create and boot from a USB Stick
4. Install Linux on a separate machine
5. Dual Boot
I personally run a MAC and run Linux in a VM. I use a program called Parallels. This is NOT a free solution but if any of you run a MAC I can recommend this program highly. However this thread is dedicated to those Windoze Users so let's press on.
Virtual Machines
VM's are great tools that allow you to try almost all available OS's on your machine with no damage being done to the actual file system of the "Host" operating system which in this case is your windows machine. The "Guest" operating system is typically contained in one single file or a single folder so the entire machine can be backed up easily. This method may be a little more advanced then the method's I will outline below but in my opinion it is well worth it. VM's are fun and once you get the hang of them you will be installing a bunch of new operating systems just to "fiddle".I have a version of Dos 6 running in a VM just because I can. LOL
Virtual Box is a free VM for Windows and I believe they even offer pre-built Linux Distro's that you simply download and open once the main VM software is installed.
VMware Player is also free.
Live CD's/DVD's
Live CD's are great for a quick format job's such as those found here in the Forum's. The downside is that they are a little slower and changes you make while the system is running are lost.
Knoppix
Ubuntu is the distribution recommend most. This link brings you to a download page where you can select either a Full Install Version, a Live CD Version or a Flash Drive version.
The LiveCD List Too many to mention. Check it out.
USB Stick
Advantages to a USB stick is that you can make the file system mountable and changes you make to the system can be made persistent meaning the next time you boot your changes will be saved. It is also a tad bit faster then the live CD but a little more difficult to make. Not much though
Ubuntu same link as above.
Linux Live USB Creator is a cool application that you install and it talks you through the steps. Once Installed I believe it will even provide you with a list of available distributions and download it for you. It will then use the download to create a bootable USB stick.
PenDriveLinux is the same premise as Linux Live. It will talk you through the steps.
Full Installation
This method is obviously for more advanced users and requires a computer that you will dedicate to running linux. If you fit these qualifications it is a rather fun experience and a great learning tool.
Ubuntu I'm linking this again because it is the same area you would obtain the Full Version of the software to download.
Linux Distro Watch contains a complete list of the most recent Linux Distro's. Pick a flavor and read up on how to install.
Dual Boot
AdamOutler has suggested that this Section be added. Dual booting is an option that replaces your boot loader with an "option" screen allowing you to select which OS you wish to boot. I honestly can't recommend this to beginners and even though I consider myself more of an advanced user, I have experienced issues with this in the past. Simply put if that boot-loader somehow gets corrupted you can render the entire machine inaccessible. Mind you it has been a LONG time since I used a dual-boot solution and I'm sure the methods have improved significantly over the years. Adam has mentioned that the Live-CD and USB-Stick versions offer you the option to install the boot-loader now. Like I said, once I went to VM's I haven't looked back but this IS a viable option if you are so inclined. The advantage would be that your Linux Distro would run at full speed and would be just like having your own Linux workstation without the need to purchase or obtain additional hardware. Simply select the OS you wish to run (Windows, Linux, ETC.) and boot into that OS. Adam's post can be viewed HERE. Thanks Adam!
User Suggestions
Wubi was recommended by Veronica (Lavero.Burgos). It looks like it may be a pretty easy (and Cool) option. Give it a shot! Thanks Veronica!
Know-Fear has offer some additional Instructions in This Post. Good Information there. Give him a thanks!
Birdsbeaks recommends NOT taking the easy road if you are truly interested in "learning" Linux. He suggests that you start with a distro that has a "steeper learning curve". One of his recommendations was Slackware. He also prefers MINT over Ubuntu as he feels it is less "proprietary". You can read his full comment HERE.
By no means is this list even close to complete. I simply wanted to give you a starting point and the rest is up to you. I have tried a few of these solutions in the past but since moving to a VM solution that is where I stand. Since it has been awhile, your mileage may vary (YMMV) but this should get you started.
If you have questions feel free to post them and I will do my best to help you along but the best way to learn is to experiment on your own.
If anybody has tried other versions or solutions feel free to post them and I will update the Original Post (OP).
Have fun and good luck!
****Reserved*******
I choose to dual boot windows 7 and Ubuntu.
All the options you mentioned work. Probably a live CD or USB would be the best bet for most people, since most probably wont spend alot of time on it.
@LandMaster you forgot Wubi, also have anyone tested Ubuntu 12.04 LTS alpha? So far im researching about Cinnamon Linux Mint 12 which looks promising .
~ Veronica
lavero.burgos said:
@LandMaster you forgot Wubi, also have anyone tested the new 12.04 LTS alpha of Ubuntu? So far im researching about Cinnamon Linux Mint 12 which looks promising .
~ Veronica
Click to expand...
Click to collapse
Added. Thanks!! Looks cool. I had never heard of it
What is this Windows you speak of.
don't forget to add in the full installation that most Live CDs and USB sticks will give you the option to run "side-by-side" or "Dual-boot". Personally, I'd just wipe Windows from the computer, if you need it back for some reason just use your quick restore disks.
I run a dual boot on my netbook because I have some hardware that requires Windows. Other than that, I can run about 3 separate virtual machines at the same time within Linux and everything works fine... Windows xp, Windows 7 and OS-X Lion all run fine in virtual machines within Linux. With guest additions, you can make them full-screen or share your desktop with the virtual machine so "Windows" windows appear in the same space as the Linux windows.
AdamOutler said:
don't forget to add in the full installation that most Live CDs and USB sticks will give you the option to run "side-by-side" or "Dual-boot". Personally, I'd just wipe Windows from the computer, if you need it back for some reason just use your quick restore disks.
I run a dual boot on my netbook because I have some hardware that requires Windows. Other than that, I can run about 3 separate virtual machines at the same time within Linux and everything works fine... Windows xp, Windows 7 and OS-X Lion all run fine in virtual machines within Linux. With guest additions, you can make them full-screen or share your desktop with the virtual machine so "Windows" windows appear in the same space as the Linux windows.
Click to expand...
Click to collapse
I added a dual-boot section to the OP. I'm out of thanks for the day. I'll hook you up later.
Totally agree about Windoze. I have a really good laptop that runs Win 7 and it would take me about an hour just to clean the dust off of it.
As this guide is for "beginners" I didn't really want to tell them to forego windows and wipe their boxes. Hopefully they will come around once they have a chance to experiment with Linux.
AdamOutler said:
don't forget to add in the full installation that most Live CDs and USB sticks will give you the option to run "side-by-side" or "Dual-boot". Personally, I'd just wipe Windows from the computer, if you need it back for some reason just use your quick restore disks.
I run a dual boot on my netbook because I have some hardware that requires Windows. Other than that, I can run about 3 separate virtual machines at the same time within Linux and everything works fine... Windows xp, Windows 7 and OS-X Lion all run fine in virtual machines within Linux. With guest additions, you can make them full-screen or share your desktop with the virtual machine so "Windows" windows appear in the same space as the Linux windows.
Click to expand...
Click to collapse
Nice!. Adam i have a question for you, i have a netbook as well HP110CA(that gave to bf) 1GB of ram and im having issues with linux on it. It came with windows XP off course and i had to format it twice because it got viruses while in Canada, so i just wiped out and put ubuntu 10.10 in that time. At first was running ok but eventually it started to freeze, later on upgraded to 11.04 and it messed things up so i decided to try other "light" distro and i put Jolicloud(based on ubuntu) again started running fine but keeps freezing and more often, now i don't know what else to put in i was thinking on Puppy linux lol but im not sure why it freezes that much. When i had it with windows it never froze though but i don't want to go back to windows only if its my last resource. What would you recommend? im starting to think its a hardware failure and that linux is too much for that poor machine .
~ Veronica
Hell yeah but I think I messed up bc i. Put the disk in and restarted and it to me to a black screen with cursor so i even up have to goto bios or cmos one of those and change first boot to dvd so hopefully after I'm done with this I. Can get back to windows hopefully my drive order is correct
___________________________________________
Sent from my PG86100-EVO3D-using Tapatalk Born Jan 5th 84 and still getting it in eeee
Anon9mouz said:
Hell yeah but I think I messed up bc i. Put the disk in and restarted and it to me to a black screen with cursor so i even up have to goto bios or cmos one of those and change first boot to dvd so hopefully after I'm done with this I. Can get back to windows hopefully my drive order is correct
___________________________________________
Sent from my PG86100-EVO3D-using Tapatalk Born Jan 5th 84 and still getting it in eeee
Click to expand...
Click to collapse
Yup... When booting from a USB drive or CD the boot order must be set in the bios. I recommend just leaving it as:
1. DVD/CD Rom
2. USB
3. C drive
This way here if 1 & 2 are not attached it will boot from the "C Drive"
I would unplug the hard drive if I were the noobs just in case. That way the noobs wont accidentally wipe their Hard drive
My recommendation for "beginners" would be to try Ubuntu in a Virtual machine ( i use Vmware and love it, has never let me down) and you can still work in your Windows interface, it is also easy to share files between windows and your virtual machine.
It is enough for all the sdcard mods and even adb if you want to set it up there too. I prefer this way rather than Wubi because i can work faster that way, i don't need to reboot to boot into windows, i have all i need in the same place .
~ Veronica
I prefer running either zen-mini or pclos gnome in virtualbox myself
Anon9mouz said:
Hell yeah but I think I messed up bc i. Put the disk in and restarted and it to me to a black screen with cursor so i even up have to goto bios or cmos one of those and change first boot to dvd so hopefully after I'm done with this I. Can get back to windows hopefully my drive order is correct
___________________________________________
Sent from my PG86100-EVO3D-using Tapatalk Born Jan 5th 84 and still getting it in eeee
Click to expand...
Click to collapse
This happens when you use a 64 bit Linux on a 32 bit system. Also when you have a bad copy. Burn at a lower speed. Try redownloading.
AdamOutler said:
...
I can run about 3 separate virtual machines at the same time within Linux and everything works fine... Windows xp, Windows 7 and OS-X Lion all run fine in virtual machines within Linux.
...
Click to expand...
Click to collapse
It's been a couple years since I tried running OSX on non-apple hardware / in a vm. Can you point me to a good resource for this?
I don't always use virtual machines, but when I do, I use VirtualBox. Mostly because it's free.
I have ubuntu 11.10 on my netbook and, while I like the interface, it seems like things get a little slugish at times. Anybody out there know of a good distro for netbooks?
RadicalAns said:
I don't always use virtual machines, but when I do, I use VirtualBox. Mostly because it's free.
I have ubuntu 11.10 on my netbook and, while I like the interface, it seems like things get a little slugish at times. Anybody out there know of a good distro for netbooks?
Click to expand...
Click to collapse
I don't always drink beer, but when I do... Oh wait .... getting sidetracked..
I just did a quick search and believe it or not Ubuntu leads the ranking's on This Page
I remember putting the "Netbook Remix" on an older netbook and it ran OK but not great from what I recall. From quickly glancing at this article it sounds like that version has been merged with the main distribution. You may be able to locate a copy of it though and try it out.
Yeah I really like 11.10 for my netbook. I think I may end up just upgrading the ram on the little bugger. It's nice having a Linux machine that I can muck around on while watching TV w/ the wife.
lavero.burgos said:
Nice!. Adam i have a question for you, i have a netbook as well HP110CA(that gave to bf) 1GB of ram and im having issues with linux on it. It came with windows XP off course and i had to format it twice because it got viruses while in Canada, so i just wiped out and put ubuntu 10.10 in that time. At first was running ok but eventually it started to freeze, later on upgraded to 11.04 and it messed things up so i decided to try other "light" distro and i put Jolicloud(based on ubuntu) again started running fine but keeps freezing and more often, now i don't know what else to put in i was thinking on Puppy linux lol but im not sure why it freezes that much. When i had it with windows it never froze though but i don't want to go back to windows only if its my last resource. What would you recommend? im starting to think its a hardware failure and that linux is too much for that poor machine .
~ Veronica
Click to expand...
Click to collapse
Can someone help me with this one plz i don't know what else to install it lol oh well maybe i end up going back to windows XP.. sigh
~ V

Need help with Ubuntu

Hey guys,
I need some help. I downloaded Ubuntu 11.10 because I heard 12.04 is not as good and I need some help with the installation. I want to keep Windows 7 on my PC as well as boot Ubuntu.
So I just need to figure out how to set it up so it gives me a prompt as to which OS I want to boot...Virtualize simply. haha
Also I am not very familiar with Linux' file system so I also may need some assistance in installing the SDK, JDK, ect.
I thought you said you were a dev over in the Epic sub forums. If you were a dev, Linux and bootloader installs should be second nature.
Sent from my SPH-D700 using Tapatalk 2
You can use the wubi installer that should be on the ubuntu DVD ISO that you downloaded.
DroidModder said:
Hey guys,
I need some help. I downloaded Ubuntu 11.10 because I heard 12.04 is not as good and I need some help with the installation. I want to keep Windows 7 on my PC as well as boot Ubuntu.
So I just need to figure out how to set it up so it gives me a prompt as to which OS I want to boot...Virtualize simply. haha
Also I am not very familiar with Linux' file system so I also may need some assistance in installing the SDK, JDK, ect.
Click to expand...
Click to collapse
The Ubuntu installer should handle all that. Since you already have windows you just need to shrink the windows partition to make room for Ubuntu and install Ubuntu to the free space. Once installed Ubuntu uses the grub bootloader which will give you the option of which system to boot into everytime you start up the computer.
As far as commands and installing stuff goes you may as well start reading up on it. You'll need to know how to use the Terminal to develop in Linux. Its not complicated once you learn common commands, etc. Also, I recommend using Gnome classic or kde as your desktop environment if you want something that looks similar to Windows. I'm a KDE person myself.
Sent from my SAMSUNG-SGH-I777 using XDA
1º Windows
2º Ubuntu!
I'm building on12.04 with zero problems...just my $0.02. And like the other's said just install Ubuntu takes care of all that stuff.
Oh and ALWAYS create a backup before you start installing new OS's!
I wanna dual boot though and I prefer Ubuntu 11.10 lol
Droid Syndicate
Leader/Founder
DroidModder said:
I wanna dual boot though and I prefer Ubuntu 11.10 lol
Droid Syndicate
Leader/Founder
Click to expand...
Click to collapse
When I get on a computer I'll write up how I got my laptop to dual boot Windows and Ubuntu. I've actually got it triple booting Mac OSX as well.
私のEVO 3Dから送信される。
to setup a dual boot system, u only need a free partition to install linux. a very basic linux installation u have to create root partition and swap partition. u can find installation guide online, its not that hard to setup a dual boot between linux and windows.
Okay cool. Because id like to get into Rom development,etc so I need Ubuntu or Mac OS X. Not too sure which ones better though. I assume Ubuntu is because its Linux and that's Android runs on
Droid Syndicate
Leader/Founder

HELP! No ROM Installed/No External SD Recognized

I think I've made a huge mistake.
I just wiped my device in TWRP because the last CM Nightly I installed was acting up.
I went into TWRP, wiped and factory reset. I then rebooted and went into TWRP again.
I wanted to install CM 9.1, which I copied onto my 64GB SanDisk Ultra, and I was thinking to just flash it from the external sd.
I read somewhere on xda that I needed to maybe use a smaller SD card and have the format in FAT32, which I did, but TWRP still does not recognize them.
I am currently stuck with TWRP v2.3.1.0, no way to flash a new rom from a blank internal memory or an external memory.
I tried updating SDK and the most updated drivers for the device through the Device Manager and use "adb push" or "adb sideload" but the device is not recognized.
Can someone give me some kind of suggestion to solve this situation.
I’d suggest using a linux install to do the adb stuff if you’re not doing so already, no need for crazy windows drivers to see a connected device.
Sent from my EPAD using xda app-developers app
squidlr said:
I’d suggest using a linux install to do the adb stuff if you’re not doing so already, no need for crazy windows drivers to see a connected device.
Sent from my EPAD using xda app-developers app
Click to expand...
Click to collapse
Thanks for the reply.
Can you elaborate a bit on what a linux install is? My PC has W8 on...
kgal said:
Thanks for the reply.
Can you elaborate a bit on what a linux install is? My PC has W8 on...
Click to expand...
Click to collapse
Windows 8 is a bugger to get drivers working properly.
Try and use a windows 7 machine or a friends laptop or try the following instructions.
Windows 8 Instructions
How to Disable Driver Signature Enforcement in Windows 8:
From the Metro Start Screen, open Settings (move your mouse to the bottom-right-corner of the screen and wait for the pop-out bar to appear, then click the Gear icon).
Click ‘More PC Settings’.
Click ‘General’.
Scroll down, and click ‘Restart now’ under ‘Advanced startup’.
Wait a bit.
Click ‘Troubleshoot’.
Click ‘Advanced Options’
Click ‘Windows Startup Settings’
Click Restart.
Ubuntu is a linux based Operating System, and can be used to do most things Windows 8 does, sometimes worse, sometimes better. So in this case, it's less trouble to connect an android device to a linux OS such as Ubuntu, as it can recognize a telephone without having to install drivers.
If you want to give it a go, you can install Ubuntu alongside Windows 8.
http://www.makeuseof.com/tag/tired-of-windows-8-how-to-dual-boot-windows-ubuntu/
And then install Fastboot and ADB:
http://putokaz.wordpress.com/2012/08/29/install-adb-and-fastboot-android-tools-in-ubuntu-via-ppa/
But, I'd stick to Windows and follow the advice of Flumpster if you're not too confident installing a second operating system.
I can and have knowledge of installing another OS to run alongside Windows.
I use VirtualBox to run Mac OSX and Android. Can I run Linux on VirtualBox and do the process through that?
I am not quite sure what I should do after disabling Driver Signature Enforcement on Windows 8...
Yes, you can install Linux in a virtual machine - give it a try. If the device is still not recognized via OS running in the virtual machine, you can then always install to your hard disk and try that route.
The other option is to run Ubuntu as a live cd eg from the disk in memory (not install) and do it that way. I first unlocked and rooted my mobile this way. I can give more info on this if you like.
jamesthedisciple said:
The other option is to run Ubuntu as a live cd eg from the disk in memory (not install) and do it that way. I first unlocked and rooted my mobile this way. I can give more info on this if you like.
Click to expand...
Click to collapse
I think I'll give a multi-boot option a try. I've been wanting to install a different OS anyway since upgrading to Windows 8. Now I just have incentive.
kgal said:
I think I'll give a multi-boot option a try. I've been wanting to install a different OS anyway since upgrading to Windows 8. Now I just have incentive.
Click to expand...
Click to collapse
Just a quick thought after re-reading your first post, I'd try a smaller sd card (16 or 32GB). I have heard of the larger faster cards giving some people problems.
Solved!
After trying to install Linux using Ubuntu 13.04 and getting more errors (something with the UEFI vs Legacy Boot installation), I decided to retry and find the original Windows drivers for the TF201.
I found one through Softpedia, downloaded it, used the "Have Disk" option when installing the yielded "Transformer" device in the Device Manager and sideloading the new CM 10.1 Nightly onto it.
Works like a charm!
Thanks everyone for the support!

Categories

Resources