Related
Hi guys,
isn't there someway to develop my Android apps on a webserver so I can work on them via FTP on any machine ?
I have a problem of not being able to continue work on a project once I leave work or leave home.
Please help me.
http://www.google.com/search?hl=&q=remote+desktop
http://www.google.com/search?hl=&q=VNC
http://www.google.com/search?hl=&q=VPN
Maybe even use a SVN.
It's a bit of a hassle, but I just use dropbox. When I finish working at home I copy the project to dropbox. When I get to work it's ready to go. Copy it back again before I leave work.
________________________________
http://ron-droid.blogspot.com
Actually I seccond SVN (or GIT if that's your fancy). It can sometimes be tricky to setup on a remote server but the versioning is well worth it.
I got the impression it wasnt just going from home to work and back that he was having trouble with though. All good suggestions though
OK ?
alostpacket said:
http://www.google.com/search?hl=&q=remote+desktop
http://www.google.com/search?hl=&q=VNC
http://www.google.com/search?hl=&q=VPN
Click to expand...
Click to collapse
Hmm!
just wondering what any of those have to do with Android development ?!?
Thanks
rigman said:
It's a bit of a hassle, but I just use dropbox. When I finish working at home I copy the project to dropbox. When I get to work it's ready to go. Copy it back again before I leave work.
________________________________
http://ron-droid.blogspot.com
Click to expand...
Click to collapse
I appreciate the dropbox suggestion.
As an aside, I put a document into my dropbox on my Linux computer at home and immediately checked for it on my dropbox app on my Android phone - it was not there.
Neighter was it avaiable at work hours later at work - don't know how I might force it to refresh.
How about Eclipse RSE ?
As an Android developer using Eclipse comes with the territory.
I came across some thing called RSE( remote system explorer ).
From what I've read, it should give me FTP access to remote files.
But it fails when I try to configure a "Remote system Type".
Does anyone have sucessful experience with this ?
captsisko said:
Hmm!
just wondering what any of those have to do with Android development ?!?
Click to expand...
Click to collapse
They do stuff like this:
I came across some thing called RSE( remote system explorer ).
From what I've read, it should give me FTP access to remote files.
But it fails when I try to configure a "Remote system Type".
Does anyone have sucessful experience with this ?
Click to expand...
Click to collapse
It sounds like you need to better explain what you're actually trying to do. Are you trying to just take some files with you, or are you trying to be able to access your home computer remotely?
They have different solutions. It sounds like maybe you are confusing the two.
VPN/RemoteDesktop/VNC all have to do with accessing a computer remotely which is what you said you were trying to do originally. However it sounds like that's not what you need. Maybe I misintepreted your post. My appologies.
If you're just trying to take your project from home to work and back, then you should set up a server with SVN (or Git or Mercurial) somewhere, possiblly over SSH.
This can be on your home computer, or work (depending what ports your network admin allows), or on a hosted third party server (such as a shared hosting server like BlueHost, DreamHost, or iPowerWeb or something). I'd recommend the hosted 3rd party solution.
Though, if you use linux at home SSH is built into your system.
Dropbox and FTP are OKish, but you might as well just use a USB stick or something...
But SVN and Git have real version control and intgrate with eclipse. If you have it setup properly you can just hit a command in eclipse's project explorer and all the changes are commited to the remote repository.
So anyways, SVN is my advice too
Thank you very much alostpacket !
You were right about needing to explain better. I was not trying to achieve a remote desktop access solution. I was looking for a way to work on my Android projects without have to copy then on a USB or email them to myself.
I use a VPS to host my websites and I assumed I might be able to work on my Andoird projects via FTP from my server so regardless where I am, I have access to the same project - I don't know if you guys think that is possible ?!?
However, I will start to investigate SVN and Git.
Thanks again.
No problem, I'd say check with you VPS provider too, often times they have tutorials on how to set up SVN, or sometimes even automated one click installs.
There will be some learning curve with using SVN, but it will give you a lot of control over versioning your work. It's WELL worth the effort.
If you ever make a mistake you can easily roll back to an earlier version, or you can "branch" off from the main codebase to try out a beta feature and merge it back later with side by side views showing you where all the changes are.
Most every experienced developer uses some type of versioning control software (SVN, Git, Mecurial, CVS, or SourceSafe).
Git does many of the same things but is a bit more advanced and more designed around larger projects with teams of developers working remotely. (Git was developed by Linus Torvalds for Linux kernel teams to use). Mecurial I think costs $$ and is like git. CVS is a bit old, and SourceSafe is a Microsoft produc that I think also costs $$.
SVN is based on CVS and is intended to be the successor and more user friendly than CVS, but it's still takes some time to learn and some patience.
Many Android developers use Git though, so the choice is up to you, however I think SVN is a bit easier to learn.
FYI a SVN inside a dropbox works too.
Sent from my GT-I9000 using XDA App
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.
Is it possible to program in C , on my Transformer tablet?
If so what is the program which allows it?
Thanks in advance,
you can install linux via chroot and use it...
Netbeans IDE on Transformer
The Transformer is just one step from replacing my Laptop. The problem is there is no IDE for Honeycomb to program in java. (I have seen apps to write .apk's for that run on android)
Anyway, can anybody confirm whether Netbeans works on the Ubuntu version that is installable? Netbeans is free from their site and should support the operating system, but you will need the JDK as well.
Eventually I will try this myself, but someone with Ubuntu on their Transformer can maybe save me the trouble??
If you're familiar with programming/editing code in vi/vim, you can start that from terminal... only thing is you'll have to make sure you define a key combo for the ESC button, or vi/m won't be much fun
If you want to actually compile stuff, your best bet would be to run Ubuntu, either via chroot method or actually boot it. The threads are in the Dev section. Again, if you're familiar and comfortable with the command line or in vi/m, it'd be better to do it via the chroot method and use gcc through a terminal emulator to compile your C stuff (means you don't have to actually reboot your device to get into linux).
I do a lot of web developement... and mainly use dreamweaver via Remote RDP, but I'm not able to send special characgers like " < > via the dock... Anyone now a better solution, or a better RDP (no VNC) program, I know there are a lot out there...
I think using something like netbeans in the emulated linux would be something crazy, netbeans is so heavy and I don't think the emulated linux will be fast enough...
vi/vim is the best solution, I just rooted my device, and I am going to install linux too.... I will use vim for ruby on rails development there....
gnagnone said:
I think using something like netbeans in the emulated linux would be something crazy, netbeans is so heavy and I don't think the emulated linux will be fast enough...
vi/vim is the best solution, I just rooted my device, and I am going to install linux too.... I will use vim for ruby on rails development there....
Click to expand...
Click to collapse
Yeah, I thought it was a long shot, but thanks for your input. I would still like to try it one day theoretically the transformer should be able to since the netbeans system requirements are low, but then again its apples and pears
I was wondering about this too since I'll be ditching my eeepc when I get the dock. I don't program stuff for a living but it would be nice to have the option available.
SparkyRih said:
I do a lot of web developement... and mainly use dreamweaver via Remote RDP, but I'm not able to send special characgers like " < > via the dock... Anyone now a better solution, or a better RDP (no VNC) program, I know there are a lot out there...
Click to expand...
Click to collapse
Really? Even if they are on the keyboard?
Touchqode
Anyone has tried Touchqode?..
It's an IDE for Android for programming in Java, HTML, JavaScript, Python, C++, C#, Ruby and PHP..
I haven't tried it yet..
programming with labview/gcode would be awesome.. ish
Touchqode
bruuuno said:
Anyone has tried Touchqode?..
It's an IDE for Android for programming in Java, HTML, JavaScript, Python, C++, C#, Ruby and PHP..
I haven't tried it yet..
Click to expand...
Click to collapse
Man, you are my hero. This is exactly what I've been looking for. If only there was a way of running .java files offline, but everything about it is awesome.
I would encourage everybody else, interested in programming, to try this out.
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.
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