just as a thought...
since we have debian running, haven't we given all the moaners on the market one of the many things they wanted... apart from first. we have given them flash, have we not?
i mean, x11 in the vnc terminal, then use a browser from there?
cant see why not?
Try it out, and tell us what happens =]
ok. will do.
try that out on monday when i'm back at work, and have a linux machine to resize the partition. tried it from LOAS (Linux On A Stick) and it can't be done from there.
anyone else want to beat me to it?
I've got lxde installed and I can't fire up the IceWeasel browser without the whole desktop freezing. When I disconnect and reconnect VNC I can't get back in so I think it eventually crashes. Also I can't seem to install flash via apt-get. I tried:
apt-get install flash
apt-get install flashplugin
apt-get install flashplugin-nonfree
apt-get install flashplayer-nonfree
apt-get install adobe-flashplugin
apt-get install adobe-flash
and I get "Couldn't find package" every time.
adobe has only released their Linux client for x86 and amd64 archs... as such, you can't run it on the device which is arm.
You could try gnash, an opensource version of it that I think compiles on arm, but I would be willing to bet the performance, reliability and features will make it unusable.
Good luck...
the performance on debian running lxde or even icewm isnt worth bothering about. I did manage to get iceweasel to load after waiting about 5 minutes, typing in a web address was a task as it would take a minute to register text then a gave up waiting for it to load. It then took a further 5 minutes to close iceweasel.
Untill we can get a stand alone debian install running on the android, its really just a novelty having it there.
what i am interested in though is setting up tight vnc on my debian computer and connected to that via my android
Even if you did get this working, the frame rates you get over the vnc connection would be unusable.
Datruesurfer said:
Even if you did get this working, the frame rates you get over the vnc connection would be unusable.
Click to expand...
Click to collapse
Good point. I've tried watching flash video over VNC and remote desktop before and it doesn't work.
Look like gnash works with arm. Anyone want to try it?
Related
Hi all of you, XDA fans!
After googling and looking in XDA forums, I was not able to find any ways to port linux apps to Android and was wondering if it was even possible.
Knowing that Android runs on 2.6.25 kernel, I thought that maybe it was possible.
I recently purchased a G1, successfully rooted it, and now am looking for ways to port linux apps to Android.
Is there a way to build apps from source code on Android, using the build tools provided with desktop distros? (I am using Ubuntu atm).
Anybody want to share some lights on this?
I'll keep you posted if I find anything intresting...
XDA ROCKS!!!
I'm looking into this myself, especially with respect to vlc, mplayer, and some console emulators...all of which have been compiled for ARM before, most successfully on the GP2X handheld.
Cross-compiling apps on an Ubuntu system is possible, but I'm not sure how well compiled apps will work with the Android framebuffer. There's also no x-windows system, so you know graphical apps that need it won't cut it at all.
Let us know what you find out.
Found this: Debian on Android
Hey i found this, Thought it might be intresting to look into this.
Debian & Android Together on G1
It's a guide to have Debian running alongside android, at least for what I understand...
I haven't tried yet since I have rooted rc8 and it's written for rc29/Mrc30, but that seems like a good solution.
Would be nice to be able to compile on android rather than on eclipse on ubuntu...
I've got no programming knowledge, that's why I'm looking for a solution allowing to compile directly on android...
"There's also no x-windows system, so you know graphical apps that need it won't cut it at all."
I was thinking as an experience to compile aircrack-ng, and it has no gui... The hardware might not support it but tha g1 might be able to handle it.
Yeah I wanted to compile the No-IP app for the phone so I could know what the IP address of my phone was on Tmo's network. That way I could run a webserver on my phone (apache anyone?). Does Tmo have firewalls in place to prevent this type of thing?
efbenson said:
Yeah I wanted to compile the No-IP app for the phone so I could know what the IP address of my phone was on Tmo's network. That way I could run a webserver on my phone (apache anyone?). Does Tmo have firewalls in place to prevent this type of thing?
Click to expand...
Click to collapse
enable telnetd from terminal and see if you can telnet from your computer to it via 3G (i.e. your wireless computer ---> G1)
My G1's edge ip is 25.97.51.2XX tried to telnet in, host unreachable. Did a traceroute from both my web server and home computer, both showed that the 3rd hop and all hops after that did not respond, and as expected ICMP echo (ping) sent to the phone timed out. Therefor we can i think say that T-mobile was not dumb and put a firewall up as any network administrator would. Gonna double check the IP of my G1 and i'll get back if it figure out my ip is different or something.
EDIT: pinged my router this time, got the IP 208.54.4.61, still same story times out and my G1 died so im going to reboot it and plug it in to try again.
well i'm sure t-mobile was wiser on that end, but did you try telnetting on port 80? also if you were to get a webserver running on your g1, you could always just use a non-standard port (81?) and just use a service like dyndns to control the port redirect, since i'm assuming they're already managing the dyndns updates.
rak500 said:
Hey i found this, Thought it might be intresting to look into this.
Debian & Android Together on G1
It's a guide to have Debian running alongside android, at least for what I understand...
I haven't tried yet since I have rooted rc8 and it's written for rc29/Mrc30, but that seems like a good solution.
Click to expand...
Click to collapse
I actually just got Deb working alongside Android (not terribly difficult but I did have some wonky-ness getting ext2.ko insmodded).
Having RC30 on my phone makes me really miss ADP1
deprecate said:
I actually just got Deb working alongside Android (not terribly difficult but I did have some wonky-ness getting ext2.ko insmodded).
Having RC30 on my phone makes me really miss ADP1
Click to expand...
Click to collapse
If you have JF 1.3+ you don't need to insmod ext2.ko. Just type "busybox insmod ext2".
deprecate said:
I actually just got Deb working alongside Android (not terribly difficult but I did have some wonky-ness getting ext2.ko insmodded).
Having RC30 on my phone makes me really miss ADP1
Click to expand...
Click to collapse
Do you think I can have it working on my rooted UK RC8?
I want to try it but it seems the configuration are slightly different for RC19 and RC29 according to the tutorial, so I thought it might be different on RC8 too.
I tried the web server in the market, didn't seem to work on edge
I'm not quite sure but I believe that T-mobile's VPN add-on might provide an externally accessible IP.
does anyone know if you can compile samba for the g1 ?
I've never dealt with linux on anything besides x86 and x64, so forgive me if this is stupid, but what about running gentoo on the G1 here? Seems to me that portage for ARM might be a little bit better for the G1 than the Debian repositories.
Although, NONE of us will be excited about having our G1 churning away for hours/days just to get Xorg compiled, as well as the headaches associated with installing and configuring gentoo.
I'm sure someone's thought of this, and Debian is pretty great anyway, just thought I'd put this out there.
kash04 said:
does anyone know if you can compile samba for the g1 ?
Click to expand...
Click to collapse
I am using Samba by way of Debian. So, yeah, it's possible.
DDM123 said:
I've never dealt with linux on anything besides x86 and x64, so forgive me if this is stupid, but what about running gentoo on the G1 here? Seems to me that portage for ARM might be a little bit better for the G1 than the Debian repositories.
Although, NONE of us will be excited about having our G1 churning away for hours/days just to get Xorg compiled, as well as the headaches associated with installing and configuring gentoo.
I'm sure someone's thought of this, and Debian is pretty great anyway, just thought I'd put this out there.
Click to expand...
Click to collapse
It's not stupid. If it works for you and is to your liking, go for it. It is debatable, however, whether portage (as good as it is) is any better for the G1 than Debian's packaging system. Packages compiled for the ARM architecture are already optimized for ARM processors. There wouldn't be as much self-compiling gain in this architecture as there would be optimizing between i386, i686, amd-64, etc. You'd be doing a lot of work and wasting a lot of time having portage compile your apps...and you'd have very little pluses to show for it.
Oh ok, I just thought that many apps were being compiled manually and portage might make some of that easier. I figured there wouldn't be any speed gains over Debian or other binary-based distros, and the barebones installation of gentoo is absolute hell, but I hoped it might get us into full-blown X quicker somehow.
It could definitely work with Portage. Keep in mind, though, that apt-get under Debian *can* download and build the source into a package automatically as well.
Web Server on TMO
Hey guys,
I'm new on XDA, getting my galaxy S tomorrow, I was a nokia fan up untill maemo 5 and the N900...
Anyway, one thing to remember is - Cellular Operators usually manage their own IP address pools, they don't give "Real" IP addresses to cellular phone, but rather use NAT services and all sort of nasty hacks to the IP system.
Therefore, in order for port 80 (http web server) to work on your server, it's not enough to just run it and get the IP, you also need the provider/operator to forward TCP packets coming to your External IP on port 80 to be forwarded to your internal IP > to your phone.
This, will never happen. If it will, you will get charged heavily for this as it will increase traffic and allow upstream traffic to your phone, and also risk your phone to potential hackers.
Edit : And I just noticed I resurrected an almost 2 years old thread Oopsy.
efbenson said:
Yeah I wanted to compile the No-IP app for the phone so I could know what the IP address of my phone was on Tmo's network. That way I could run a webserver on my phone (apache anyone?). Does Tmo have firewalls in place to prevent this type of thing?
Click to expand...
Click to collapse
get dyndns account there is an app on the market that will sync it.
I know this is a bit lame, but I'm an opensuse and redhat guy (well I was before opensuse). And I only use Ubuntu on a couple machines...
So, I want to switch apt-get to some other version of Xorg code I found that may fix the framebuffer issues (or at least I can compile the latest version and use it to debug the problems).
I grabbed just one X driver from packages.debian.org and of course it doesn't work with the currently installed Xorg that I grabbed with a simple apt-get the other day.
Can anyone point me at the quick tips on how I can switch all my Xorg stuff to some other version using apt-get?
I fail to see how this relates to the G1. May be you should try the Debian forums?
I did say it was a bit lame didn't I?
As for how it relates to the G1, some people figured out how to get Debian onto the G1 and they talk about how to use apt-get to install programs. And all that works.
I just wondered, since some of them hang out around here and obviously know how it works, if any of them would answer my question on how to modify the Debian setup on the G1 to include other versions of installable apps.
And since they haven't (which is fine) I will probably poke around some Debian howtos tonight or next week when I have time.
(Ergh. Link won't come through since I'm new. The tutorial to install Ubuntu on the Nexus One on the nexusonehacks website is the one i'm referring to)
Following this tutorial, Ubuntu installed perfectly on my Mez. No problems whatsoever! Just need to root the phone (I rooted with z4root if it matters).
Couldn't find any info on the MezBuntu combo, so I figured I'd post my experience with it here.. if it's already been known, sorry. Haha!
First post here btw
Post the link to this if you can or type it if you have problems as I would like to look at this thanks.
http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/
-ignore, forum is being retarded-
I've spent a lot of time this evening getting some stuff added into this and tweaked tonight. I'm going to keep working a little more on this and then host my own copy so people don't have to jump through so many hoops to use it.
I can't post the link since I have less than 8 posts.. anyways, msullivan, I had no trouble with it at all. Didn't have to do any changes whatsoever. If you mean making it less complicated, then ignore me. Haha
Do you need adb to do it or can I just do it through android terminal?
Using my computers a pain lol
Sent from my SPH-D700 using XDA App
I'm assuming you need ADB, but it might work through the terminal.. I did it through ADB and had no problems whatsoever so I'd do it ADB just to be safe.
You don't need ADB, you can do most of it through a terminal emulator app. First enable WiFi and find out the WiFi IP address. Follow all the guide steps until you get to the part about finally seeing "[email protected]:/#"
Then issue the commands:
Code:
apt-get update
apt-get install openssh-server nano
service ssh start
passwd root
After that last command you'll be asked to set a password for the root account, do something simple to type on the android keyboard, like 'qwerty'.
Now go to a computer and SSH into your phone via PuTTY or whatever your favorite SSH client app is. Now it will be WAY easier to install things via apt, get the GUI running from the howto guide, etc etc. Also then you'll have a real file editor (nano) to work inside of, so you can edit the config files (such as 'bashrc' without having to do very complicated cat commands. This is how I performed my setup and it worked flawlessly. Note that if you set it up to create a VNC session for you automatically in the bashrc, you'll really feel the slowdown. In my tweaked version (which, like I said, I'll release on here soon), I have created a simple prompt on login that asks if you want to create a VNC session or not. That way if you are just there for command-line you don't have to eat the phone's RAM away.
msullivan said:
You don't need ADB, you can do most of it through a terminal emulator app. First enable WiFi and find out the WiFi IP address. Follow all the guide steps until you get to the part about finally seeing "[email protected]:/#"
Then issue the commands:
Code:
apt-get update
apt-get install openssh-server nano
service ssh start
passwd root
After that last command you'll be asked to set a password for the root account, do something simple to type on the android keyboard, like 'qwerty'.
Now go to a computer and SSH into your phone via PuTTY or whatever your favorite SSH client app is. Now it will be WAY easier to install things via apt, get the GUI running from the howto guide, etc etc. Also then you'll have a real file editor (nano) to work inside of, so you can edit the config files (such as 'bashrc' without having to do very complicated cat commands. This is how I performed my setup and it worked flawlessly. Note that if you set it up to create a VNC session for you automatically in the bashrc, you'll really feel the slowdown. In my tweaked version (which, like I said, I'll release on here soon), I have created a simple prompt on login that asks if you want to create a VNC session or not. That way if you are just there for command-line you don't have to eat the phone's RAM away.
Click to expand...
Click to collapse
What exactly did you do to get your tweaked version? Just wondering as I might give this a try
droidzach said:
What exactly did you do to get your tweaked version? Just wondering as I might give this a try
Click to expand...
Click to collapse
I didn't 'get' it, I just added some stuff like auto-starting SSH and a prompt asking whether or not you want a VNC service started. If you or others are still interested I can probably get it posted.
msullivan said:
I didn't 'get' it, I just added some stuff like auto-starting SSH and a prompt asking whether or not you want a VNC service started. If you or others are still interested I can probably get it posted.
Click to expand...
Click to collapse
Yeah that's what I meant. Ill see if I get around to getting ubuntu running and play with it then maybe I'll ask you what you did if I'm gonna actually use it. Thanks
Im curious wether or not there is a way for me to have a chrooted ubuntu on my transformer...? I saw something on youtube where they did it on a galaxy 10.1, and in the comments the maker of the video said it does work on the transformer.
But i am curious if anyone has tried it and is certain whether or not it work.
if this method is not possible, are there any other methods with similar results...?
... really? search before you post
http://forum.xda-developers.com/showthread.php?t=1145601
mrevankyle said:
... really? search before you post
http://forum.xda-developers.com/showthread.php?t=1145601
Click to expand...
Click to collapse
i read that, but dont completely able to understand it... could someone help me out with installing it?
The easist thing is to download Linux Installer off the market. I found that Debian (ARMv5) offers better package choices than Ubuntu (ARMv7) in that case. I have mine running off /data/local/mnt/Linux with Debian stable.
Spidey01 said:
The easist thing is to download Linux Installer off the market. I found that Debian (ARMv5) offers better package choices than Ubuntu (ARMv7) in that case. I have mine running off /data/local/mnt/Linux with Debian stable.
Click to expand...
Click to collapse
i attempted this, i managed to get debian but it did not have a gui.... How would i go about installing one.?
To get a GUI going that route you basically set it up to use VNC for running X stuff and then connect via an Android VNC client; I don't recall the name of the server but there were multple links on Google when I searched back in September.
I don't personally need X along side Android and the chroot, so I don't have it set up.
Hi peeps.
Newb here.
I have kali nethunter installed as chroot. I can't get certain functionality. I.e browsing websites and openvpn connections for example
I believe this is interface related, I.e using the wrong interface. Openvpn complains the default gateway is not set.
Firstly, has anyone had similar Experiance, secondly - would rooting the tab and flashing nethunter directly onto it solve these problems? (And could you explain why?)
Did you ever get nethunter to work?
Where did you find the apk to install it?
Using termux (play store),install wget and download the nethunter software from Offensive Security. (Youtube)
Functionality is scarce and it's a real pain trying to do this.
I would recommend buying a raspberry pi and installing kali onto it running it headless. Use a tablet to connect via vnc. Vastly more functionality with a fraction of the headache and frustration again this is instructed on YouTube
Alternatively, just get a tablet and get a subscription to proving grounds or hackthebox who offer Web based kali use on their machines if this is just for study.
M0ng0l said:
Using termux (play store),install wget and download the nethunter software from Offensive Security. (Youtube)
Functionality is scarce and it's a real pain trying to do this.
I would recommend buying a raspberry pi and installing kali onto it running it headless. Use a tablet to connect via vnc. Vastly more functionality with a fraction of the headache and frustration again this is instructed on YouTube
Alternatively, just get a tablet and get a subscription to proving grounds or hackthebox who offer Web based kali use on their machines if this is just for study.
Click to expand...
Click to collapse
So i am using Termux and have succesfully setup storage however,
when i use <pkg install wget>
i receive error <unable to locate package wget>
I have also tried <apt update> and get severall errors
aswell as <apt upgrade> and get 0 upgrades
any suggestions?
derrickdroid said:
So i am using Termux and have succesfully setup storage however,
when i use <pkg install wget>
i receive error <unable to locate package wget>
I have also tried <apt update> and get severall errors
aswell as <apt upgrade> and get 0 upgrades
any suggestions?
Click to expand...
Click to collapse
have you tried <pkg update> ?
asdplokk said:
have you tried <pkg update> ?
Click to expand...
Click to collapse
The attached screenshot are the errors I am getting.
It seems to me something about the mirrors has changed recently based on https://github.com/termux/termux-packages/wiki/Mirrors
i think u can get rid of all of your sources other than termux-main/root/x11
So if you google your question, you'll find an answer.
Update the repositories, google how to update repos for termux
Get a raspberry pi and a cheap tablet. You still use a tab but the functionality is light years ahead of what you can achieve while using nethunter alone.
I'll be making a post soon on configuring a pi you can access via the internet with a tablet
M0ng0l said:
Using termux (play store),install wget and download the nethunter software from Offensive Security. (Youtube)
Functionality is scarce and it's a real pain trying to do this.
I would recommend buying a raspberry pi and installing kali onto it running it headless. Use a tablet to connect via vnc. Vastly more functionality with a fraction of the headache and frustration again this is instructed on YouTube
Alternatively, just get a tablet and get a subscription to proving grounds or hackthebox who offer Web based kali use on their machines if this is just for study.
Click to expand...
Click to collapse
BRO u just blew my mind, vnc to the rasp pi