[GUIDE] how to install Linux for newbs - ONE General

Hi all--
As the posting suggests I am going to write a tutorial on how to install Linux on your OPO
I scoured the internet and (albeit my scouring sucks) could find very little in regards to installing Linux on the OPO (though multirom may have support for it some day, it currently does not). I got this from reading several how to linux pages which didn't work for me until I fiddled around with it.
I am taking a networking class for my CCNA and needed a cisco emulator, but there are none available for android, and I stubbornly refuse to buy a new laptop because I think a phone with a 2.8Ghz quadcore hooked up to my keyboard and miracast should suffice for ALL computing needs.
Benefits of linux/ubuntu:
have many more resources available (most software has a Windows/Mac/Linux build but not always an android desktop environment (or even an app for some software).
some things that I use it for:
GIMP
GNS3 (a cisco router emulator)
Requirements:
Internet, ~4GB+ of space, ROOT!
Apps:
Linux Deploy
androidVNC
Steps:
1.
Install apps
2.
open Linux Deploy
DO NOT CLICK START YET
open the settings (either the funny download button, or by opening menu to settings)
choose your distro (I used debian wheezy, and also ubuntu trusty successfully)
I don't change any of the default directories here (I had trouble when I did, though installing various .img files worked ok)
scroll down to the startup section and about midway down is "GUI settings"
Open it and change anything you want: I swap the width and height, because I use my phone in landscape mode on my external monitor/miracast
DPI-- if you set it to 480 (stock) the font is good, but everything else is too small for some reason (like windows scroll down further than the bottom of the screen), so I usually leave it around 200-
also near the bottom of the startup section is "custom mounts" this is really useful if you want to edit things on your phone's storage (like in gimp). Clicking this will make a mount "0" [default] available inside the gui which [by default] is your sdcard. (open file explorer: /mnt/0)
When you're finished with your settings, go back to the top and click install
this should make supersu ask for permission; click yes, of course!
now it goes through a big spiel of creating an img and install Linux which can take a while depending on your internet speed, my not so good internet took about 10 minutes.
Next click Start, then yes I really meant start...
Now, you should see the last few lines here and look for VNC: ####
Usually, it's 5900-- remember this number
Look in the top left of your screen for an IP address.
It usually reads 192.168.###.###
remember that number as well
Sometimes it helps to write it down ^_^
3.
now go to androidVNC
click never bother me again
fill out the form [brackets are suggestions] "quotes are exact!"
nickname: [whatever you want]
password: "changeme"
address: [the "192.168.###.###" from linuxdeploy]
port: [the "####" from linux deploy... I don't know if I changed it on accident and didn't notice but I feel like androidVNC changes this sometimes, should be 5900]
then click connect and you should be officially in the linux gui! The graphics suck, but no one uses linux for games anyway!
if you just realized what I meant by "use in landscape mode" or just want to change some settings:
close androidVNC
go back to linuxdeploy
press stop
go to settings, gui settings as before and change whatever you want
scroll back up and click reconfigure (not reinstall, because that would take forever)
it does some stuff
you get bored waiting a little
you click start again
reconnect
if you disconnected from your network, you may have to change your IP address (displayed top left of linuxdeploy)
4.
Installing something in linux
I'm a newb, and so I didn't know this: (in the linux environment inside androidVNC)
open start (bottom left)
accessories
lxterminal
this brings a command prompt into view
the magic command is:
"sudo apt-get install [the thing you want]"
everything else is magic >_>
example:
"sudo apt-get install gimp"
would install gimp for you
once it is done (which may take forever depending on your caffeine level), you can open it up and do all kinds of stuff
Hope this helps someone. If it does, consider clicking thanks (I'm not sure what it does yet either).
for 1337 linux users and grammarians: this guide is for us newbs who care more about getting to what we want than grammar correctness or being smart (because unfortunately, not every gets to be). ^_^ so please don't correct my grammar, I'll just ignore you (because).

Great guide, I might give it a go sometime to put Linux Mint on my phone. Just a suggestion, maybe provide links for Linux Deploy and AndroidVNC to make it easier for people to get them.
Transmitted via Bacon

VNCing into a Linux chroot doesn't count and is generally an awful experience.
There's really no point to do it anymore when the Freedreno driver will give you native graphic acceleration.

what freedreno? I'll check it out >_>

Freedreno is a GPU driver for running Linux on Adreno type GPUs.
Using that for graphic output could be a bit troublesome though if you need to use Android and the Linux desktop distro at the same time.

Related

HTC Shift under Linux!

At first I had a really hard time accepting pof's claim that the HTC-Shift could be run under Linux and indeed my first attempts at this turned into a blinding nightmare of installs & reinstalls and utter frustration.
Because I tried to install my Laptop's SuSE Linux on the box, which won't even boot below version 11.0.
And even so it does install OK with 11.0 SuSE and I had sound and graphic running, none of the other functions could be enabled no matter what.
Last not least I have to say that other SuSE distros either have a hard time booting right on the Shift (DSL, GParted distro) w/o safety kernel parameters set or get problems with the graphics HW (e.g. Knoppix).
I made those initial mistakes because dear old pof forgot to make clear that the drivers he collected should only run on (K/X)Ubuntu.
Because as I found out through my own research, specially the SD6868 driver was specifically developed by & for the Ubuntu project.
Many of the other distros didn't work right even after installation.
They either stalled during boot time or got the partition table all messed up.
Specially the boot via GRUB install (for dual boot with WinXP) turned out to be a pain in the ass with anything but Ubuntu.
Only Ubuntu booted right away (still had to disable edd, apm and acpi on the installation, but with it all went through fine the first time around).
So please dear pof update your Website to point out that only Ubuntu (or Kubuntu/Xubuntu) should be used on the Shift.
With that, pof's driver collection works out of the box.
But the Touchscreen needs calibration and the Touchpad's sensitivity is originally set way to low.
Once those two settings are corrected it all works fine (albeit the touchscreen is still a bit clunky, its good enough to move windows around, fill out input forms and highlight text).
The WiFi connection also worked right away and was even faster than under Windoze - BUT I can not connect to a standard WEP128 bit encrypted network.
Only unencrypted connections seem to work at this time.
Battery and sensor connections also work, as does the USB port.
I can also switch resolutions - but no longer with the screen button which now only tilts the desktops, I have to use the KDE screen resolution application for that.
The font rendering has way(!!) improved over Vista. I finally can read small texts even at higher resolution.
And overall responsiveness is almost to fast for me
No more coffee breaks between tasks and boot-up time is down to under 3 minutes!
Multimedia also works at blazing speeds now. I can watch large movies at real time and even do MultiMedia editing.
Best of all, that nasty Vista bug with the missing/dropping SD cards is gone.
So all in all it was a steep learning curve (as always /w Linux) but now I finally got a useful machine which is a real asset to my productivity!
pharao said:
So please dear pof update your Website to point out that only Ubuntu (or Kubuntu/Xubuntu) should be used on the Shift.
Click to expand...
Click to collapse
In my website it clearly states that the binary driver packages I published is for Ubuntu based distros only, because that's what I use on the shift. I also explain the "long way" to compile stuff etc, in case you want to run them in any other distro, because you can run any linux flavour on the shift as long as you have experience compiling your own kernel, and building some packages from source.
pof said:
In my website it clearly states that the binary driver packages I published is for Ubuntu based distros only, because that's what I use on the shift. I also explain the "long way" to compile stuff etc, in case you want to run them in any other distro, because you can run any linux flavour on the shift as long as you have experience compiling your own kernel, and building some packages from source.
Click to expand...
Click to collapse
But that's exactly it pof ... it just won't compile on most other systems.
On SuSE you'll have double trouble because first the darn install DVD don't boot with anything below 11.0 but then the kernel for 11.0 starts with release x.26.
That's one version number to high for your package and even so I tried to still compile it in there, the modules won't load.
Second, the GUIs of these distros are just to separate amongst the different packages.
DSL boots up all right, but has trouble installing itself on the Hard Drive, much more so with the Desktop setting and any attempt at switching resolution.
Knoppix works sometimes and then again it doesn't - was never able to figure out what that was all about.
And the SuSE 11.0 distro doesn't give any error messages when I call up the embeddec controller program - heck the damn thing even allows me to click all around. But nothing happens, not with any of them.
And don't even try to get me started on trying to install Debian packages under SuSE :-(
I'm not sure how much you are into Linux pof, but messing around with the kernel is the last thing you want to do unless you're sure its gonna work.
And I've found that K/X/Ubuntu is the only distro that works out of the box, even during the install phase.
So I think just stating "well the packages are for Debian/Ubuntu systems but you can compile them on other distros, too" is not quite sufficient - as those other distros did cost me a week of my life (time I'd like to have back ;-)
Fact is that Ubuntu doesn't just work on the Shift right away, but its also the fastest distro amongst the ones I've listed.
So for all these reasons Ubuntu should get a big highlight with the sidenote "all other distros at your own risk as your mileage will(!) vary"
Only encrypted WiFi still isn't working...
PS: The folks at SuSE seem to be contemplating their own SD6868 driver for their next 11.x Alpha release - found a note to that regard on a developer blog.
And External mouse doesn't work
pof said:
In my website it clearly states that the binary driver packages I published is for Ubuntu based distros only, because that's what I use on the shift. I also explain the "long way" to compile stuff etc, in case you want to run them in any other distro, because you can run any linux flavour on the shift as long as you have experience compiling your own kernel, and building some packages from source.
Click to expand...
Click to collapse
Dear Pof,
I used your custm drivers for ubuntu,Screen touch working great but external mouse has stopped wiorking.Is there anything wrong I have done ?
Thanks

World War on a computer

hey gais ^^
have you ever wondered if it was possible to play World War on your computer ?
ohh well, yes ofc it is though, there are some security we need to pass first
It's simple, you goto wwar.storm8.com/home.php, by sending the right cookies with the request you'll access your home screen
to get there cookies.. (the way i did)
root your phone
get "Shark for root users" (from market)
install wireshark on your laptop/PC
start sniffing (on the phone)
start WW (be sure it was totally closed so you get the splash screen)
go back to "shark" and stop sniffing
open astro to send the "shark_12345677.pcap"-file to your mail
open the newly mailed file in wireshark
find the first "GET" http request and copy that link (including values on the URL)
Paste it into your browser
Done
Now you get a pretty empty window <3 well, there's this HTML tag that makes everything "go away" i have a greasymonkey script to give me back the right stuff
Code:
var all = document.getElementsByTagName("*");
all[0].setAttribute("style", "display: block");
set to be acivated on: http://wwar.storm8.com/*
just some background knowledge
now the stylesheet need a major fix It's only "mobile" friendly xD
I'm not that far yet
baaiii
Isnt it also possible to run world war in and emulator? Or won't the internet work then?
not sure about that, but that will still be "annoying" because you have to start up a program ^^
But perhaps someone could make a UI (similar to the game) so your could get an .exe ^^
I'd like to see a simular, yet less "nerd-like" solution for iMobsters.
I was wondering if it would be possible to have 2different world war accounts on the same android phone. Do you have any sollutions?
hi folks,
i cannot really imagine how it would be possible on a single phone, but you can easily have them on PC through SDK and virtual phones. you will, however, face a problem with making an application (world war game in our case) recognise a virtual phone as a real one. search for an Android HP dev system image on the internet for that puprose. after that you'll be able to create as many as you want (you can reg all your phones to 1 google acc, that's alright)
and after all, as all you get from linking accs is just a number of units used in a battle - there's no really a point in keeping dozens of active accs
Sjums said:
hey gais ^^
have you ever wondered if it was possible to play World War on your computer ?
ohh well, yes ofc it is though, there are some security we need to pass first
It's simple, you goto wwar.storm8.com/home.php, by sending the right cookies with the request you'll access your home screen
to get there cookies.. (the way i did)
root your phone
get "Shark for root users" (from market)
install wireshark on your laptop/PC
start sniffing (on the phone)
start WW (be sure it was totally closed so you get the splash screen)
go back to "shark" and stop sniffing
open astro to send the "shark_12345677.pcap"-file to your mail
open the newly mailed file in wireshark
find the first "GET" http request and copy that link (including values on the URL)
Paste it into your browser
Done
Now you get a pretty empty window <3 well, there's this HTML tag that makes everything "go away" i have a greasymonkey script to give me back the right stuff
Code:
var all = document.getElementsByTagName("*");
all[0].setAttribute("style", "display: block");
set to be acivated on: http://wwar.storm8.com/*
just some background knowledge
now the stylesheet need a major fix It's only "mobile" friendly xD
I'm not that far yet
baaiii
Click to expand...
Click to collapse
i tried it but i cant seem to find the first request u talk about

[HOW TO]Run Ubuntu side by side with Android

Hey there,
Just thought I would link to a Samsung Galaxy tab article that also works with the Iconia. You can then connect into the Ubuntu session with your favorite Android VNC client. Just a couple of slight differences regarding the instructions below and what works for me.
My wifi works fine inside Ubuntu. I can't comment on any other devices such as blue tooth however.
http://forum.xda-developers.com/showthread.php?t=836022
1) Type 'sh ubuntu.sh' (./ubuntu.sh is not necessary)
2) Type sh bootlinux (In the instructions it says to type just bootlinux that doesnt seem to work)
Feel free to play with the vncserver geometry as you all see fit.
Also I would recommend resizing the image file when you get a chance, as by the time you log in, there is only about 100MB free for you to use inside Ubuntu.
Having a look at the packet manager, there is a ton of programs that can be removed. The install isn't exactly optimised for a tablet. I would expect that any Linux guru's here may be able to make an alternate image that would fit in quite well with the Iconia.
Also the links to the files are dead on the first page. They are around pages 3-5
Hope people here find this of use.
Cheers!
styxgeist said:
Hey there,
Just thought I would link to a Samsung Galaxy tab article that also works with the Iconia. You can then connect into the Ubuntu session with your favorite Android VNC client. Just a couple of slight differences regarding the instructions below and what works for me.
My wifi works fine inside Ubuntu. I can't comment on any other devices such as blue tooth however.
http://forum.xda-developers.com/showthread.php?t=836022
1) Type 'sh ubuntu.sh' (./ubuntu.sh is not necessary)
2) Type sh bootlinux (In the instructions it says to type just bootlinux that doesnt seem to work)
Feel free to play with the vncserver geometry as you all see fit.
Also I would recommend resizing the image file when you get a chance, as by the time you log in, there is only about 100MB free for you to use inside Ubuntu.
Having a look at the packet manager, there is a ton of programs that can be removed. The install isn't exactly optimised for a tablet. I would expect that any Linux guru's here may be able to make an alternate image that would fit in quite well with the Iconia.
Also the links to the files are dead on the first page. They are around pages 3-5
Hope people here find this of use.
Cheers!
Click to expand...
Click to collapse
Please search.

Arm Linux OS's with Linux Deploy

If you don't understand what ssh or vnc is, please don't attempt this.
I am able to run Kali Linux armhf on the 13.3.1 by following this guide. It can run other distros too.
I can confirm it is working 100% and runs very smooth. Here is a link to the Linux Deploy app. You need a vnc app or a ssh app to interface with it. I recommend Real VNC Viewer. Instead of connecting to your private ip, just connect using your loopback 127.0.0.1 It is faster.
I hope this could be of some use towards cracking the bootloader. Comments, questions, discussion wanted.
Nice idea but what can you really do on Kali that you can't do via adb shell?
PS putty ftw!
Sent from my Nexus 4 using Tapatalk
Spec-Chum said:
Nice idea but what can you really do on Kali that you can't do via adb shell?
PS putty ftw!
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
Install linux native applications, light server, supports many linux distros like gentoo arch debian ubuntu fedora. Aircrack-ng, reaver, sslstrip, metasploit. The fun stuff.
Faznx92 said:
Install linux native applications, light server, supports many linux distros like gentoo arch debian ubuntu fedora. Aircrack-ng, reaver, sslstrip, metasploit. The fun stuff.
Click to expand...
Click to collapse
Nice, I'm sold
Repurpose a device
I would really like to get a different OS on my device or even do a GRUB bootloader kind of thing which will allow Android or another OS. I want to repurpose a tablet for my car project and I don't want to use Android.
I have done the VNC thing in the past with Ubuntu and it was horribly slow. Anything emulating on top of an OS will be less than optimal. I have used VMPlayer and VirtualBox before on a regular desktop and they seem ok. But still I'd like another OS that will be fast on boot up and ready to go in the shortest amount of time.
chris
This is very interesting. Has anyone managed to get Mer working through Linux Deploy? Having Plasma Active running like that would be pretty awesome. Other DEs aren't really optimised for touch the way Plasma Active is.
EDIT: Actually, it might be possible to get Plasma Active running via Gentoo, as they have an overlay for it. Still experimental, but then what isn't experimental at this point
GreatEmerald said:
This is very interesting. Has anyone managed to get Mer working through Linux Deploy? Having Plasma Active running like that would be pretty awesome. Other DEs aren't really optimised for touch the way Plasma Active is.
EDIT: Actually, it might be possible to get Plasma Active running via Gentoo, as they have an overlay for it. Still experimental, but then what isn't experimental at this point
Click to expand...
Click to collapse
You use a vnc app on loobback address(127.0.0.1) to connect. It is the fastest emulation I ever had running on any device. This is perfect for me if i can get a keyboard working. If you lower the resolution of the linux guest with a ui like lxde it is very easy to use it as a touch interface.
Mr_Ada said:
I would really like to get a different OS on my device or even do a GRUB bootloader kind of thing which will allow Android or another OS. I want to repurpose a tablet for my car project and I don't want to use Android.
I have done the VNC thing in the past with Ubuntu and it was horribly slow. Anything emulating on top of an OS will be less than optimal. I have used VMPlayer and VirtualBox before on a regular desktop and they seem ok. But still I'd like another OS that will be fast on boot up and ready to go in the shortest amount of time.
chris
Click to expand...
Click to collapse
Try it out on the loopback address 127.0.0.1 It is blazing fast with ui like lxde or xfce. Fastest I ever seen on a tablet/android.
Faznx92 said:
You use a vnc app on loobback address(127.0.0.1) to connect. It is the fastest emulation I ever had running on any device. This is perfect for me if i can get a keyboard working. If you lower the resolution of the linux guest with a ui like lxde it is very easy to use it as a touch interface.
Click to expand...
Click to collapse
Yea, thanks. I'll read a bit more on Linux Deploy to see how it works. And I'm very familiar with Gentoo (have three Gentoo devices here), so setting it up shouldn't be a problem. I also asked on their IRC, and they said Plasma Active should theoretically compile on Gentoo ARM, but nobody ever tested it. Sounds like a good opportunity to do just that!
Got to run Gentoo, although it required a bit of effort. Since I want Plasma Active, I didn't choose any GUI (I need to set it up manually). However, the problem is that SSH wouldn't run, either, citing that OpenRC wasn't started itself, and that I had to execute touch /run/openrc/softlevel in order to get it to start. Which is nice and all, but it's a circular dependency: to create the file, I need to log in through ssh, and to log in through ssh I need to create the file. So I ended up doing this:
Create a bash script file with that line
Upload it to the device (I put it in the downloads directory)
Do a "chmod 777 /datamedia/media/0/Download/<myscriptfilename>.sh"
In Linux Deploy:
Enable Custom mount (leave the path default)
Enable Custom startup
Set Script file to "/mnt/0/Download/<myscriptfilename>.sh"
That allowed me to create that file and start sshd correctly. So now I can log in via ssh, yay!
It makes me wonder, though – is there a support forum for Linux Deploy in English? Their main forum seems to be Russian...
GreatEmerald said:
Got to run Gentoo, although it required a bit of effort. Since I want Plasma Active, I didn't choose any GUI (I need to set it up manually). However, the problem is that SSH wouldn't run, either, citing that OpenRC wasn't started itself, and that I had to execute touch /run/openrc/softlevel in order to get it to start. Which is nice and all, but it's a circular dependency: to create the file, I need to log in through ssh, and to log in through ssh I need to create the file. So I ended up doing this:
Create a bash script file with that line
Upload it to the device (I put it in the downloads directory)
Do a "chmod 777 /datamedia/media/0/Download/<myscriptfilename>.sh"
In Linux Deploy:
Enable Custom mount (leave the path default)
Enable Custom startup
Set Script file to "/mnt/0/Download/<myscriptfilename>.sh"
That allowed me to create that file and start sshd correctly. So now I can log in via ssh, yay!
It makes me wonder, though – is there a support forum for Linux Deploy in English? Their main forum seems to be Russian...
Click to expand...
Click to collapse
Great job! It looks like the original dev was russian and their github is in russian but use google translate. Hope this helps.
Android Terminal Emulator
Faznx92 said:
Great job! It looks like the original dev was russian and their github is in russian but use google translate. Hope this helps.
Click to expand...
Click to collapse
I actually took concepts from Linux Deploy and Complete(??) Linux Installer, and built a set of scripts to do all the chroot work without needing an Android app. Since I primarily use the terminal, running everything from the shell is much easier than using an app.
Using something like Android Terminal Emulator, you do not need ssh on the android side at all. You simply su to root and run a chroot command:
chroot <linux-mnt-pt> /bin/bash -i
or
chroot <linux-mnt-pt> /bin/su <user>
or
chroot <linux-mnt-pt> /bin/login <user>
The last option requires typing a password, but since it's a login, it sets up your environment correctly. The other two inherit your Android PATH (among other things), so you have to set PATH by hand or use an rc file which sets it from scratch.
Personally, I find even LXDE much too slow for regular use over vnc. Most of my interest revolves around emacs and gcc, which both work great in Android Terminal Emulator.
-Pie
Faznx92 said:
Great job! It looks like the original dev was russian and their github is in russian but use google translate. Hope this helps.
Click to expand...
Click to collapse
Ah, thanks for pointing that out. His issue list is in English, and that's exactly what I need!
I talked to people over at #systemd to see if it would be possible to have systemd launching things in a chroot, and unfortunately it seems to be impossible for the Kindle Fire HDX 7, because its kernel is not compiled with PID namespaces that systemd requires to function, and we don't have any means to compile custom kernels as far as I know. It's too bad, but I guess I can cope with OpenRC for now.
EatingPie said:
I actually took concepts from Linux Deploy and Complete(??) Linux Installer, and built a set of scripts to do all the chroot work without needing an Android app. Since I primarily use the terminal, running everything from the shell is much easier than using an app.
Using something like Android Terminal Emulator, you do not need ssh on the android side at all. You simply su to root and run a chroot command:
Click to expand...
Click to collapse
Interesting, although I do prefer an app (it's really quite convenient). Also, as far as ssh goes, I do prefer having that running over typing things into the terminal using the touchscreen.
Overall the experience of running Gentoo on ARM is interesting. The Snapdragon 800 is really quite a beast, but rather peculiar. There are often delays before my input starts to be processed, but once it does, it runs very fast, until it goes idle again. And the speed at which it compiles things is amazing. It's also nice that I can use all of those nice optimisations (I'm using -march=native and -mfpu=neon-vfpv4, with the neon USE flag enabled; I'd like to set -mcpu to something specific, but it doesn't seem to have Snapdragon as an option).
Ubuntu os
Maybe sometime we would be able to get Ubuntu os on our tabs.
zhable said:
Maybe sometime we would be able to get Ubuntu os on our tabs.
Click to expand...
Click to collapse
You already can, although it's limited to the desktop version (which isn't any good when it comes to touchscreens). Not sure if Ubuntu Touch will be available at some point. But eventually Ubuntu will ship Unity 8, which will be more touch-friendly.
This is all great news!
GreatEmerald said:
Overall the experience of running Gentoo on ARM is interesting. The Snapdragon 800 is really quite a beast, but rather peculiar. There are often delays before my input starts to be processed, but once it does, it runs very fast, until it goes idle again. And the speed at which it compiles things is amazing. It's also nice that I can use all of those nice optimisations (I'm using -march=native and -mfpu=neon-vfpv4, with the neon USE flag enabled; I'd like to set -mcpu to something specific, but it doesn't seem to have Snapdragon as an option).
Click to expand...
Click to collapse
I don't think -march=native is doing anything there buddy.
GCC doesn't officially "support" Krait (yet), nearest I can see would be Cortex-A9 which uses the same scheduling model (albeit with 3 less pipeline stages) as a Krait. Interestingly, LLVM/Clang has just patched in a krait -mcpu target, if you can use that. To be honest you'll not be gaining too much as, IIRC, the main difference between a Krait and an A9, in compiler specific terms, is vfp4, but you're setting that with the -mfpu option anyway.
My point after spouting that gibberish is to not sweat it, lose -march, change -mcpu to cortex-a9 and you're golden. At least until a krait mcpu target for GCC...
Spec-Chum said:
I don't think -march=native is doing anything there buddy.
GCC doesn't officially "support" Krait (yet), nearest I can see would be Cortex-A9 which uses the same scheduling model (albeit with 3 less pipeline stages) as a Krait. Interestingly, LLVM/Clang has just patched in a krait -mcpu target, if you can use that. To be honest you'll not be gaining too much as, IIRC, the main difference between a Krait and an A9, in compiler specific terms, is vfp4, but you're setting that with the -mfpu option anyway.
My point after spouting that gibberish is to not sweat it, lose -march, change -mcpu to cortex-a9 and you're golden. At least until a krait mcpu target for GCC...
Click to expand...
Click to collapse
Nope, -march=native sets -march to armv7-a, which is close enough. The point in using it is that as soon as GCC gets better optimisations, -march=native will use the more optimised choice, without manual intervention.
too slow download
very slow retrieving of files from server i have a 2 mb/s line
any idea how should i retrive it offline
---------- Post added at 06:24 PM ---------- Previous post was at 06:00 PM ----------
suit urself and paste any one link in mirror url in linux depoly settings for kali and other deployments
http://http.kali.org/README.mirrorlist
remove the readme when adding the url ... press thanks nd make me feel aprreciated

[Q] How to Dual Boot Linux and Windows 8?

Id like to Dual boot linux onto windows 8, yet I have no idea how. Help please!
There are a large number of questions you need to answer first, which you haven't. For example:
1) What model of computer?
2) Are you trying to set up a dual-boot machine, or to boot Linux within Windows? Both are possible and your post does not make it clear.
3) Is there a particular Linux distribution you intend to use?
4) Do you have a 32-bit or 64-bit system?
5) Do you care whether the Windows or Linux bootloader loads first?
6) Do you have BitLocker drive encryption enabled?
7) Do you intend to have a "shared" partition for data used by both OSes, or to keep them fully separate?
... I'm just going to stop there.
Seriously, there are hundreds, possibly thousands of tutorials on the Internet for installing various distros of Linux onto various machines. Win8 introduces the possibilities that you'll need to disable Secure Boot and also the possibility that the CPU you're using is crippled to only work with Windows. You haven't even provided us with enough info to tell you which one, and we are *not* here to hold your hand through installing an OS you apparently know basically nothing about. Besides, if you hadn't noticed, this is a Windows forum, not a Linux forum.
GoodDayToDie said:
There are a large number of questions you need to answer first, which you haven't. For example:
1) What model of computer?
2) Are you trying to set up a dual-boot machine, or to boot Linux within Windows? Both are possible and your post does not make it clear.
3) Is there a particular Linux distribution you intend to use?
4) Do you have a 32-bit or 64-bit system?
5) Do you care whether the Windows or Linux bootloader loads first?
6) Do you have BitLocker drive encryption enabled?
7) Do you intend to have a "shared" partition for data used by both OSes, or to keep them fully separate?
... I'm just going to stop there.
Seriously, there are hundreds, possibly thousands of tutorials on the Internet for installing various distros of Linux onto various machines. Win8 introduces the possibilities that you'll need to disable Secure Boot and also the possibility that the CPU you're using is crippled to only work with Windows. You haven't even provided us with enough info to tell you which one, and we are *not* here to hold your hand through installing an OS you apparently know basically nothing about. Besides, if you hadn't noticed, this is a Windows forum, not a Linux forum.
Click to expand...
Click to collapse
Yes, I understand you're not here to hold my hand, but I am willing to learn even though I am extremely inexperienced. I want to become experienced.
1) HP Dv6-6033cl
2) Id like to run a dual boot machine.
3) I need to use 13.04 or 13.10, either will work fine.
4) I have a 64-bit version
5) I really dont care which boots first, Id just like to be able to run Linux so I can use it to program.
6) No, bitlocker is not on.
7) Id like to keep them completely seperate.
Again, I understand that this isn't a hold your hand deal. I apologize for that, but I want to learn and dont know where to start. Id love to learn all about partitions, booting different OS, being able to know the computer inside and out, not just your average user. Maybe you can point me in the right direction. That much is more than appreciated.
OK, from the version numbers you quoted, I'm assuming you're referring to Ubuntu ("Ubuntu" is not another word for Linux; it's a particular configuration of software packages running atop a Linux kernel, called a "distribution". Specifying Ubuntu is the kind of thing you should have included in your first post. There are over 750 Linux distros out there, no joke). The good news is that there are *so many* tutorials about installing Ubuntu as a dual-boot that it's literally not even worth finding a particular one to recommend. They also have their own forums (not here on XDA; you want http://ubuntuforums.org) full of info.
Another important point is the "what you want to do with it" bit, which you did cover a bit. Unless there's a specific reason it needs to be Linux, you actually almost certainly could get by with using either Windows development tools, installing MinGW (Linux-style development tools running in the Windows environment), or installing and running Cygwin and using the Linux-like tools in the POSIX-on-Windows environment it provides. For older Windows versions there was actually an official POSIX-on-NT environment from Microsoft, called Interix, but it's been deprecated (a shame; I used it to do some Linux-targeted development back in college when my laptop wasn't really beefy enough that a VM was a good idea and dual-booting would have been a pain, and I still use it today for everything from my preferred command-line shell to remote login to version control software to... you get the idea). Ubuntu is actually far from my first recommendation for a dev environment - it's a "least common denominator" desktop-oriented distro, so you may need to configure it a bit for dev work - but it's certainly capable and its popularity means you won't have any trouble finding help.
Looking for help on a Windows subforum of a mobile device forum when your question involves installing Linux on a non-mobile device isn't the best idea, though.
As far as I know what I'm going to do with it, it's an OS to start developing. I have no clue what to do yet, but I am in the process of learning! I thought itd be a good idea to go to a Windows 8 subform because my current OS is Windows 8 and, from what Ive read, I need to disable "Secure Boot", change BIOS settings, etc. I have literally done EVERYTHING I can think of and look up, including tutorials, talking to people who have already done it, the whole lot. I feel stuck! I need a solution I cant solve! Im sure after I figure the solution I will be perfectly fine! The issue is, though, I can not access the BIOS. I even created an unallocated partition. When I go to settings I do this:
Settings > Change PC Settings > General > Restart Now
On Restart, I go Troubleshoot > Advanced Options
Now, theres suppose to be some kind of settings for BIOS/UEFI, yet its missing! I cant access it because it doesnt exist on my bootup!
Ive also tried to get to the BIOS by pressing F1, F2, and DELETE to no avail.
Like I said, I am so stuck its not even funny. Its quite frustrating. If you have any developing environment setups you recommend, please reco, mmend away! I love doing this kinda stuff. Its a challenge and frustrating, yet when I get through it, its rewarding. Thats why I really want to start developing and giving back to this site. Theyve given me so much for my E4GT, I wanna give back.
Anyway, do you think you could have a possible solution?
As far as I know what I'm going to do with it, it's an OS to start developing. I have no clue what to do yet, but I am in the process of learning! I thought itd be a good idea to go to a Windows 8 subform because my current OS is Windows 8 and, from what Ive read, I need to disable "Secure Boot", change BIOS settings, etc. I have literally done EVERYTHING I can think of and look up, including tutorials, talking to people who have already done it, the whole lot. I feel stuck! I need a solution I cant solve! Im sure after I figure the solution I will be perfectly fine! The issue is, though, I can not access the BIOS. I even created an unallocated partition. When I go to settings I do this:
Settings > Change PC Settings > General > Restart Now
On Restart, I go Troubleshoot > Advanced Options
Now, theres suppose to be some kind of settings for BIOS/UEFI, yet its missing! I cant access it because it doesnt exist on my bootup!
Ive also tried to get to the BIOS by pressing F1, F2, and DELETE to no avail.
Like I said, I am so stuck its not even funny. Its quite frustrating. If you have any developing environment setups you recommend, please recommend away! I love doing this kinda stuff. Its a challenge and frustrating, yet when I get through it, its rewarding. Thats why I really want to start developing and giving back to this site. Theyve given me so much for my E4GT, I wanna give back.
Anyway, do you think you could have a possible solution?
I apologize, I hadnt realized I posted the same post twice. Still new at this!
If its a hewlett packard, usually they use F2 as the bios key. Shut the laptop down. Press power and as soon as the screen backlight comes on (which is usually instantly) hit F2.
But I really dont recommend going through the hassle of dual booting ubuntu with windows just to learn how to program. Most of the time you dont need linux, Cygwin or MinGW at all and can purely go windows based from day 1. Learning C or C++ without an IDE I do find is easiest in a linux environment so that I would recommend at least cygwin. But even so, for just programming you would probably be better off just using virtualbox if you dont want to use cygwin, it allows you to run one operating system within another like so:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thats bodhi I was using there, my favourite linux distro. Its ubuntu based so anything that says "hey I work on ubuntu" works on it usually and guides that walk you through the process of setting something up on ubuntu often apply to bodhi. But out of the box you get the enlightenment desktop instead of unity and you basically dont get any software beyond midori and terminology. Fits on a CD. Because of the lack of software though I won't recommend a linux newcomer who would probably be better suited to ubuntu or mint (of the 2 I prefer mint, also ubuntu compatible).
Never be afraid of a command line interface/console/terminal/command prompt/cmd/whatever you want to call it. Hell, on windows right now hold the windows key + R, enter CMD and then click ok. You might suddenly think you've stepped into a time machine, but its a powerful tool and still relevant in this day and age. All of your first programs will be on the command line. Many software dev tools will be on the command line. My preferred text editor on linux is also on the command line (nano, bit barebones but thats how I like my editors).
Now more importantly. The entire reason for this was programming. Programming what is a better question. It would probably be more useful to you to know where to start and what tools are right for you than to know how to set up linux. Honestly, if the aim is just to have a bit of code you wrote flashing your name on the screen all over the place etc without a particular aim yet, then I would suggest Python, specifically Python 2 over Python 3 as I personally find the online resources and 3rd party libraries are more plentiful for 2, although either one works. actually, scratch that, python is probably a good starting point for learning how to program regardless.
On windows all you will need to do is download and install python: http://www.python.org/download/ and also have a decent text editor with syntax highlighting so basically anything but notepad and certainly not an office type program, python includes IDLE which I have a severe disliking of, notepad++ is a popular choice on windows though, code-edit is on the windows store and pretty decent (yeah I went there suggesting a windows 8 app, deal with it haters ) and I personally use GEdit. On OSX and linux Python 2 is preinstalled so all you need is the text editor.
Google Fu is also required Plenty of tutorials out there.
Yes, the whole point is learn how to program properly and setup a decent developing enviornment! Ill try the suggestions you made, since I cant access UEFI/BIOS at all. It's as if the damn thing is non-existent.
SixSixSevenSeven said:
If its a hewlett packard, usually they use F2 as the bios key. Shut the laptop down. Press power and as soon as the screen backlight comes on (which is usually instantly) hit F2.
But I really dont recommend going through the hassle of dual booting ubuntu with windows just to learn how to program. Most of the time you dont need linux, Cygwin or MinGW at all and can purely go windows based from day 1. Learning C or C++ without an IDE I do find is easiest in a linux environment so that I would recommend at least cygwin. But even so, for just programming you would probably be better off just using virtualbox if you dont want to use cygwin, it allows you to run one operating system within another like so:
Thats bodhi I was using there, my favourite linux distro. Its ubuntu based so anything that says "hey I work on ubuntu" works on it usually and guides that walk you through the process of setting something up on ubuntu often apply to bodhi. But out of the box you get the enlightenment desktop instead of unity and you basically dont get any software beyond midori and terminology. Fits on a CD. Because of the lack of software though I won't recommend a linux newcomer who would probably be better suited to ubuntu or mint (of the 2 I prefer mint, also ubuntu compatible).
Never be afraid of a command line interface/console/terminal/command prompt/cmd/whatever you want to call it. Hell, on windows right now hold the windows key + R, enter CMD and then click ok. You might suddenly think you've stepped into a time machine, but its a powerful tool and still relevant in this day and age. All of your first programs will be on the command line. Many software dev tools will be on the command line. My preferred text editor on linux is also on the command line (nano, bit barebones but thats how I like my editors).
Now more importantly. The entire reason for this was programming. Programming what is a better question. It would probably be more useful to you to know where to start and what tools are right for you than to know how to set up linux. Honestly, if the aim is just to have a bit of code you wrote flashing your name on the screen all over the place etc without a particular aim yet, then I would suggest Python, specifically Python 2 over Python 3 as I personally find the online resources and 3rd party libraries are more plentiful for 2, although either one works. actually, scratch that, python is probably a good starting point for learning how to program regardless.
On windows all you will need to do is download and install python: http://www.python.org/download/ and also have a decent text editor with syntax highlighting so basically anything but notepad and certainly not an office type program, python includes IDLE which I have a severe disliking of, notepad++ is a popular choice on windows though, code-edit is on the windows store and pretty decent (yeah I went there suggesting a windows 8 app, deal with it haters ) and I personally use GEdit. On OSX and linux Python 2 is preinstalled so all you need is the text editor.
Google Fu is also required Plenty of tutorials out there.
Click to expand...
Click to collapse
Clarification: OP was wanting to learn more about kernel/AOSP build development, hence why I suggested a dual boot Linux. Virtualized Linux processes, at least even on Win 7, took a serious performance hit where a kernel build took over an hour even on a i7.
I'm aware that apps can be developed without going to Linux but it was my understanding that he'll need to to do the above - and at least in my experience VMs won't cut it. Options welcome.
I ended up dual booting Ubuntu 13.10 alongside Windows 8. I had troubles creating a partition for Ubuntu and seemed to have accidentally formatted the biggest drive, which I believe was where the Windows 8 OS was stored. I successfully put Ubuntu on there, or so I thought. Upon restart, I entered the GRUB boot selector. I first attempted to enter the Ubuntu OS, which brought me to a black writable page. I restarted the HP and tried booting into Windows 8. It gave me the error that the OS is missing. Now Im stuck in the bootloader and cant access my PC. I have an HP Dv6-6033cl laptop with a 750 hard drive I believe. Any help is appreciated.
I ended up dual booting Ubuntu 13.10 alongside Windows 8. I had troubles creating a partition for Ubuntu and seemed to have accidentally formatted the biggest drive, which I believe was where the Windows 8 OS was stored. I successfully put Ubuntu on there, or so I thought. Upon restart, I entered the GRUB boot selector. I first attempted to enter the Ubuntu OS, which brought me to a black writable page. I restarted the HP and tried booting into Windows 8. It gave me the error that the OS is missing. Now Im stuck in the bootloader and cant access my PC. I have an HP Dv6-6033cl laptop with a 750 hard drive I believe. Any help is appreciated.

Categories

Resources