[Q] X11, Terminal use, Different OS's - Nexus 7 Q&A, Help & Troubleshooting

Hey so I have a couple questions and I have not been able to find these out just browsing the web so perhaps some of you guys know.
My intention is that I want to be able to ssh into my computer/school server so that I can do my programming from some where with my tablet and be able to get some graphics to display. Mainly I have some C and python code that displays a plot via matplotlib and when I ssh into my school server I use ssh -X which I assume is for X11 forwarding for graphics(I use that when connecting on my computer not android)
1. How do I enable X11 forwarding on my nexus 7?
-I have connect bot installed, and I have X11 server by some MIT dude installed as well but I have not been able to get it to display anygraphics. When I try to get my graphics to work I get this error in connect bot: "_tkinter.TclError: no display name and no $DISPLAY environment variable."
I do not want to have to a vnc, or vpn or whatever that bs is. I just want to get x11 to work
2. If I cant get X11 to work....Does anyone know if Ubuntu Touch supports X11? I read http://www.xda-developers.com/tag/cyanogenmod-10-1/ saying that Ubuntu Touch does not use X11 so does that mean it does not support it? What I mean is if I use the Ubuntu Touch terminal and do ssh -X [email protected] would my graphics display? I'd like to know before I try to install Ubuntu Touch.
I would try to install Ubuntu desktop which I'm pretty sure it would work, except that Ubuntu desktop is mad slow and not very pratical, unless someone as a kernel that optimizes it for speed / terminal use.
3. Bodhi OS for nexus 7....is it faster than the Ubuntu Desktop?
thank in advance

Same question -- any easy way to open displays from another server?
I'm glad to see I'm not alone in trying to find this. I installed VX Connectbot, which lets me log into my linux server and type commands, but I cannot figure out how to get the graphics to display locally, or to open an emacs window on my server and have it pop up on my android device. I thought there might be an app for this, but have not found one. It just doesn't seem like it should be that complicated. Any suggestions?

You need to install an X server to display X applications (whether running locally or remotely): this seems to be the most used. I believe ConnectBot supports X11 forwarding, though it may be that only some forks of it do.

Related

[Q] Defference between my linux box and Iconia?

Hi all,
I apologize in advance for my lack of knowledge or any stupid questions i may ask.
I am a 3rd year Mechatronics Major so i am quite fluent on the majority of programming languages, however my experience to date has been primarily with embedded systems along with some basic setting up gentoo/ubuntu with apache and game servers and stuff. When it comes to getting into the guts of Linux i tend to get a little lost. Something i wish to work on over the next 5 weeks
I have just rooted my new a500, I was just wondering if anyone could tell me and subtle differences between (say) a gentoo box and my a500 at a command line level.
For example there seems to be no gcc compiler for the a500, is this because there is no compiler written for the a500 hardware or is it something to do with how andriod is written?
And if i want to install ssh client/server from the terminal (or any package really), is that possible (eg. for gentoo i would use emerge, ubuntu apt-get, etcetc.)
I have a bunch of other questions but i will leave it at that for now
Thanks
Chris
if u want to remote control of ur desktop use androidvnc....
get it from market....
Terminal emulator include a ssh client ! But i don't Thérèse is any package manager available
Anyway you can install a chrooted ubuntu on the A500! Should be more easy
Moved as not development, please read the rules and post in the correct section ONLY.
Hez said:
For example there seems to be no gcc compiler for the a500, is this because there is no compiler written for the a500 hardware or is it something to do with how andriod is written?
Click to expand...
Click to collapse
Android is based on Java Virtual Machine, all applications are bytecode, not native code. Thus it would require quite a bit of work to get a GCC with all of its pre-requisities in place on Android. I atleast am not aware of a single compiler for any language that would actually run on an Android device itself.
And if i want to install ssh client/server from the terminal (or any package really), is that possible (eg. for gentoo i would use emerge, ubuntu apt-get, etcetc.)
Click to expand...
Click to collapse
Sorry, I do not know if you can access Android Market in any way from the command line.

[Disscusion]Gentoo Webtop

So work is happening to accomplish replacing the webtop with a gentoo base img.
My proposition is to create a very slim gentoo so you guys can add as you please
So im making this post to hear from you guys what you would like to see in the Gentop.
So far my idea would be very basic.
Openbox + terminal + conky
and of course a browser.
So tell me, if this was your gentop. what would be there!?
In addition to your suggested items for a "gentop", I'd like to see more file viewers that take advantage of the lapdock screen resolution, like PDF, (Open)Office docs, even EPUBs.
I would add in some sort of rdp, vnc and ssh clients.. I could really use those. Thanks for all the hard work you do
Sent from my MB860 using XDA App
Could you guys prepare a version with synaptic and lxde? Im sure there are people interested in the fastest webtop experience possible, but have 0 skill in linux encoding. With that, we can customize as we please with easy visual reference.
About ssh clients -- it should be mentioned that there is already an "rsync" backup for android freely available in the Android market. It installs rsync and dropbear ssh clients. So with a terminal app, your webtop will have access to cli versions of rsync and ssh. Then just do a symlink from the installed apk into /system/xbin/ and presto instant ssh and rsync.
Would we still have a phone view within gentoo like we have in webtop?
If not, would the phone screen remain accessible while docked?
How would this handle incoming phone calls?

How to host your own website on a Raspberry Pi

How to host your own website on a Raspberry Pi
Requirements
Hardware:
Raspberry Pi
USB power cable
Ethernet cable and modem to connect to
HDMI cable (temporary need)
Monitor (temporary need)
USB mouse/keyboard (temporary need)
Standard SD card
SD card reader on your computer
Software:
Raspbian image - Debian based OS for Raspberry Pi
Lighttpd - lightweight webserver that is extremely easy to set up
PageKite - makes local websites or SSH servers publicly accessible in mere seconds, and works with any computer and any Internet connection.
Also you will need to buy a domain for your site. I purchased mine through hover.com, but there are many to chose from.
First you need to setup the SD card on your Raspberry Pi.
The SD card is the harddrive for the Raspberry Pi, you'll be installing Raspbian which is a derivative of Debian. If you are familar with Linux you'll be right at home.
Here is the guick start guide for Raspbian:
http://www.raspberrypi.org/quick-start-guide
Install the latest "Raspbian" SD card image from here:
http://www.raspberrypi.org/downloads
Just follow the instructions to download the image and install it on your SD card, once we actually boot the Raspberry Pi you will set it up.
Now, here is where you temporarily need to have a monitor, keyboard, and mouse that you can use to run your Raspberry Pi.
If you don't have a monitor, mouse and keyboard, you can set up your Raspberry Pi in headless mode. Here is a link to to this, although I did not utilize this method:
http://www.penguintutor.com/linux/raspberrypi-headless
Now plug in the ethernet from the Raspberry Pi to the modem, HDMI from the Raspberry Pi to the monitor, USB to your keyboard and mouse. Plug in the SD card that you
installed Raspbian and last plug in the power. Plugging in power is how you power on the Raspberry Pi. Go through the on screen setup, be sure and change the password,
turn on SSH, set the date/time and any of ther other setup options that you think you'll need. Complete the setup and pat yourself on the back, you are on your way.
Next step, setup a static IP on your router so the Raspberry Pi always has a static IP in your home network. Here is tutorial that I followed for this
step: http://www.penguintutor.com/blog/viewblog.php?blog=6306
Once you complete this come back here to continue the setup.
Good job so far. Let's use some of our Linux skills now(I'm a huge Linix fan, it's all I run on my PCs), don't worry, it won't hurt.
Open the terminal and run the following command:
sudo apt-get install lighttpd
Did you press enter at the end of that last row? You should.
Now run the command:
sudo reboot
While your rebooting here is something to read:
lighttpd is a lightweight open source webserver. It is pronounced "Lighty" and it will listen for requests on port 80, when it receives a request
it sends back the requested webpage.
Ok and we're back. So you should be rebooted now so let's check to see if lighttpd is doing it's job. Type in the IP that you assigned to your
Raspberry Pi, for instance 192.168.1.10, on your browser. You can do it on your computer or on the Raspberry Pi's browser, it's called Midori.
You should get a webpage showing that lighttpd is working. The file that is being displayed is sitting on the Raspberry Pi at /var/www/ and it's
named index.html. This folder is where you will place your website. You have created your website already right? If not, you can do that once you
have completed this setup. I used a starter page from http://www.styleshout.com/.
Ok you're doing great, we're getting near the end.
Next we are going to set up an account with PageKite. PageKite charges $36/year for an account. There are free options like Dyndns, but I have
Verizon fios and am forced to use their router, thus my Dyndns did not work well for me. If you wan to use Dyndns, you can set up a free account
that should work for you.
PageKite is easy to install, just visit their page from the Raspberry Pi and setup an account and install the software. You will be installing
the Linux version and the site walks you through all the steps. Make sure your account id is NOT the same as the site you are setting up. You will
use the site name also as a secondary pagekite. Once you have your account set up with PageKite, you will need to follow this guide to setup
PageKite to point to your own doman: https://pagekite.net/wiki/Howto/CnamePageKites/
For step 2 above, if you went with hover.com, you'll need to add a new DNS with the following format:
Hostname: www
Record Type: CNAME
Target Host: sitename.accountid.pagekite.me
Complete the CnamePageKites setup and then you are done! Your website is now live on the web! See that really wasn't very hard to do.
Here is my website: www.pillar-soft.com
this is exactly what i was looking for,
but me being the clutz i am, cant get lighttpd to install, missing dependencies
Code:
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main lighttpd armhf 1.4.31-1
404 Not Found
Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/l/lighttpd/lighttpd_1.4.31-1_armhf.deb 404 Not Found
using the sudo apt-get install
but the static ip tutorials are very good, i'll try the lighttpd install again tomorrow
With thanks
Quiggers said:
this is exactly what i was looking for,
but me being the clutz i am, cant get lighttpd to install, missing dependencies
Code:
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main lighttpd armhf 1.4.31-1
404 Not Found
Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/l/lighttpd/lighttpd_1.4.31-1_armhf.deb 404 Not Found
using the sudo apt-get install
but the static ip tutorials are very good, i'll try the lighttpd install again tomorrow
With thanks
Click to expand...
Click to collapse
Did you type exactly:
sudo apt-get install lighttpd
If your still getting that error then do:
sudo apt-get update
Then,
sudo apt-get install lighttpd
Let me know if you're successful.
Sent from my Nexus 4 using xda premium
Quiggers said:
this is exactly what i was looking for,
but me being the clutz i am, cant get lighttpd to install, missing dependencies
Code:
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main lighttpd armhf 1.4.31-1
404 Not Found
Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/l/lighttpd/lighttpd_1.4.31-1_armhf.deb 404 Not Found
using the sudo apt-get install
but the static ip tutorials are very good, i'll try the lighttpd install again tomorrow
With thanks
Click to expand...
Click to collapse
You need to do
Code:
sudo apt-get update
Also
Also try sudo apt-get install -f lighttpd
Static up setup for yoir pi is must for this to work
I wonder if it can support some light php tasks and maybe a database?
Also is there a posibility to connect 2-3 raspberry Pi and do some kind of loadbalancing. For example one could be the lighttpd server, an other server could host the files and do all the php work, while an other could by the mysql server.
Could this be done, how would you go by connecting all that together, through a router?
@marty
we have lift off
thank you
Quiggers said:
@marty
we have lift off
thank you
Click to expand...
Click to collapse
Awesome!
Sent from my Nexus 4 using xda premium
Seems a pretty simple setup, but you missed out a step.
You need to port forward port 80 on your router/modem so that your modem sends all incoming port 80 traffic to your Raspberry Pi.
Also, you should use Apache which is much faster, and the original open source web server.
@jji7skyline, on what did you base your opinion? Check this:
http://www.jeremymorgan.com/blog/programming/raspberry-pi-web-server-comparison/
mihaum said:
@jji7skyline, on what did you base your opinion? Check this:
http://www.jeremymorgan.com/blog/programming/raspberry-pi-web-server-comparison/
Click to expand...
Click to collapse
I just prefer Apache because of its wide support and speed, but maybe I was misinformed about its speed on ARM devices.
LAMP is a good package if you want PHP, MySQL and PHPmyAdmin.
what i would suggest is better go with NO-IP or similar stuff !!
they have nice ip update clients ! not only will you save money , it will make easy to manage the accounts as they have good apps for Linux !
---------- Post added at 06:27 PM ---------- Previous post was at 06:24 PM ----------
samboza said:
I wonder if it can support some light php tasks and maybe a database?
Also is there a posibility to connect 2-3 raspberry Pi and do some kind of loadbalancing. For example one could be the lighttpd server, an other server could host the files and do all the php work, while an other could by the mysql server.
Could this be done, how would you go by connecting all that together, through a router?
Click to expand...
Click to collapse
i guess yes !
You can setup ip and port forwarding to make the same make happen !
like, may be, you can set up a My sql server at lan and then setup a port forward to that r-pi and necessary stuff !!
then your man server can issue requests as necessary!!
---------- Post added at 06:29 PM ---------- Previous post was at 06:27 PM ----------
jji7skyline said:
I just prefer Apache because of its wide support and speed, but maybe I was misinformed about its speed on ARM devices.
LAMP is a good package if you want PHP, MySQL and PHPmyAdmin.
Click to expand...
Click to collapse
Have been using Apache for a damn long time ... very comfortable with the same !!
but in these recent years even i have been ranted over to use Lighttpd seems it is friendly with processor !!!
Also suggest no-ip. I use no-ip on the NexusQ site server. It cuts down on cost and you can take your server with you. I've even run it on a mobile server (read phone) that was wifi tethered to my phone while in my car. The same could be done from the RasPi as well.
Lokifish Marz said:
Also suggest no-ip. I use no-ip on the NexusQ site server. It cuts down on cost and you can take your server with you. I've even run it on a mobile server (read phone) that was wifi tethered to my phone while in my car. The same could be done from the RasPi as well.
Click to expand...
Click to collapse
Great tip! I'm sure there are more ways to tweak this guide and make it more robust.
Sent from my Nexus 7 using xda premium
Do you guys think the Raspberry Pi would be good to use as an XBMC streaming box off a remote NAS?
Anyone tried this?
puleen said:
Do you guys think the Raspberry Pi would be good to use as an XBMC streaming box off a remote NAS?
Anyone tried this?
Click to expand...
Click to collapse
I first used the Raspberry Pi for XBMC, RasBMC and it worked great. I did not use it to stream anything locally stored but I believe it would handle that just fine.
Sent from my Nexus 7 using xda premium
I've used the Pi to stream things from a share on a desktop computer and found that it worked wonderfully (as long as the connection could handle it). I've even done HD streaming with little to know issue at least streaming wise. I was using OpenElec at the time, but I imagine it's not different on Raspbmc, if anything it should work better.
Edit: I also want to note I constantly Stream things via Hulu or Youtube. These also work great as long as your connection can handle it. They can be a little slow while "loading" but once a show gets going they usually do just fine.
Wow an entire website hosted on something no bigger than my phone...EPIC
There is also the option to send your raspberry pi to http://www.edis.at/en/server/colocation/austria/raspberrypi/ instead of using your home internet connection. Higher availability and better speed. for free. I haven't used their service, though, so i can't say whether they are ok.
jji7skyline said:
I just prefer Apache because of its wide support and speed, but maybe I was misinformed about its speed on ARM devices.
LAMP is a good package if you want PHP, MySQL and PHPmyAdmin.
Click to expand...
Click to collapse
I prefer to use nginx for my servers.
Sent from my GT-S5830 using Tapatalk 2
My respect sir, very good use for a raspberry pi, I tip My hat to you

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

[GUIDE] how to install Linux for newbs

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.

Categories

Resources