How can I control my G1 from a desktop computer? (screenshots, etc) - G1 General

I am in the process of redoing my phone and I remember reading somewhere else where you can control your G1 via USB with some software. I forget what software it is. I need to uninstall a bunch of program and it would be easier to point/click rather than do everything on the phone. I also need to take various screenshots.

Screenshots can be done very easily using ddms. (tested on windows).
1: Install the Android SDK
2: Go to the Tools folder (D:\android-sdk-windows-1.5_r1\tools on mine)
3: Run DDMS.bat
4: On the Device menu, select Screen Capture.
so that bits easy.
I don't know if you can fully control Android from your PC, but you can access the CLI from the PC (so you don't have to type on the small keyboard).
Start -> Run -> "cmd"
cd "\android-sdk-windows-1.5_r1\tools"
adb shell.
If you can completely control Android from the PC, then please let me know. It sounds like fun.

Related

USB desktop connection driver issue [solved]

was struggling yesterday to connect mytouch to the desktop on windows XP. The phone connected to the moment, the drive showed up and when immediately disconnected.
I found this very helpful post on androidforums by pdl1 which I think needs to be posted in FAQ:
To connect an Android phone to a Windows PC, usually there are two steps:
1. Uninstall current Android USB drivers
2. Install new correct Android drivers
You accomplish 1 by downloading USBDeview to your PC here is the URL USBDeview - View all installed/connected USB devices on your system
Then unzip it and run USBDeview. Right click on each Android driver and delete it. Or you can remove traces of previous drives by removing all keys in registry using "Edit->Find and type in “vid_0bb4″ (no quotes)".
You accomplish 2 by going here Android 1.6 SDK, Release 1 | Android Developers
and downloading the whole Android SDK (software development kit) onto your PC. Extract it to a folder so you can look inside and find a sub-folder called usb_driver. Either move it somewhere easy or take careful note of it's exact location.
Now go to your Android phone. Open Settings. Touch Applicatons. Touch Development. Tap USB debugging to enable it. Then back out to the home page.
Connect your phone to the PC via the appropriate USB cord. Windows will open its New Hardware Wizard. Check that you will tell Windows where to find the files, and Browse to the location of the usb-driver folder. OK will ungrey and if you click it, the correct drivers will, at last, be loaded.
Almost finished. Now disconnect the phone, and repeat going to Settings>Applications>Development. Tap the debugger again to disable it. Back out to the Home Screen. Now connect your phone to the PC. It will be recognized, but in order to see and manipulate the SD card files, there's one more step. Pull down the little white bar at the top of the Android Phone screen. You will see a Notification "USB connected". Tap it and you will be given an option to Mount the phone. Touch Mount.
Now the any File Manager (Windows Explorer, etc.) will see your phone SD card as a separate drive. You can copy, move delete, whatever.
Quite a process, but once done, all you will have to do is connect the phone to the PC and pull down and Mount it.
Sorry if it was discussed already - I searched but could not find similar thread here

ADB for dummies: Tutorial to move your games from internal to SD without Root

Before starting i would like to thanks Stublake13 for the tutorial made on this forum http://androidforums.com/desire-tips-tricks/160560-force-apps-install-sd-without-root.html
That helped a lot
I don't trust apps that mess with those kind of thing
I don't want to pay for those kind of apps too
STEP 0: DON'T MESS WITH SYSTEM APPS
Step one: Check your OS/Windows version (OS version x86 or x64)
Step 2: Get Android SDK from there http://developer.android.com/sdk/
Step 3: Launch the install of the SDK
Step 4: Get JRE java if asked during the install and install it
Step 5: Select Usb Driver package on the "installed packages" menu on the left
Step 6: Begin the installation
Step 7: Wait until it complete and go to the folder C:\Program Files (x86)\Android\android-sdk\platform-tools
Step 8: Open a command windows : press keyboard shift key and click right you should see 'run command here' in the menu or go to search (win7) or execute (winxp) and type cmd
another way is to use keyboard pressing Win key + R
A command window should appear
Step 9: on your Xperia play enable USB debugging
Easy on your Android device from Settings > Applications > Development > USB debugging and check it
Step 10: make sure your phone is in media transfer mode (not mass storage mode)
Step 11: Install PC companion and make sure it works and launch update
Step 12: Connect your phone (if pc companion ask to update your phone do as you please you can shut down the program)
Step 13: check that the Xperia play is available on my computer menu and you can browse his content
Step 14: select your Dos windows / command windows that should be open now
and type cd C:\Program Files (x86)\Android\android-sdk\platform-tools if you are not already in this folder
Step 15: Type adb devices and check the result it should say list of device attached and a number will follow with device at the end of the line
That means your phone is correctly attached and recognized by ADB
Step 16: Type adb shell pm setInstallLocation 2 you should see a new line and nothing else if you have an error message then you need to check again one of the step above "adb: permission denied" is the common error
Step 17: Reboot your phone (might take a little while)
Step 18: Now go to your application setting menu and move all your games to the SD or install the game that you wanna install then move them to the SD card
Step 19: Restart your phone again and go to your application browser. You should see some of the game you just installed and moved disapeared... don't mind it's because you moved them and android didn't notice their new location.
Reboot 3 to 5 times depending on the number of your games you should see them all back after some reboot
You can still go to the app manager to look for them there
Step 20: Now that you are done you can choose to go back to the normal mode or stay like that but be carefull if you install an app that is no compatible.
Being on SD you will have to remember that you need to test each app when you move. You will still be able to put it back to internal! But when you test that app this may lead to a crash on your phone during the process so remember to be carefull with some apps (specially those who have widget)
Step 21: To go back to your inital setting plug your phone again type adb devices to ensure that the phone is plugged correctly and recognized by ADB
then type adb shell pm setInstallLocation 0
Step 22: put your phone back to usb standard mode (disable debugging mode)
Step 23: Reboot
Step 24: Shut all the windows on your computer / uninstall if you want android SDK
Step 25: Enjoy your Xplay
Thank you so much this is very helpful.
Thanks.
I did this the other day from complete noobness, but this would have been very helpful.
Bookmarked.
i did this but i cant move the pre installed play games like starbattalion or crash where you able to move them to the sd card ?
Those one need root to be moved...
Because they are part of the system. Also i'am not sure that those one could be moved without crash... i would not try it myself
kenshindono said:
Those one need root to be moved...
Because they are part of the system. Also i'am not sure that those one could be moved without crash... i would not try it myself
Click to expand...
Click to collapse
Before updating when i had root. I moved all the pre-installed games to sd they went from 30mb to less then 1mb and none of them crashed / force closed and i played them all for days so it seemed fine to me
I think the original poster by crash means the pre-installed PS1 title "Crash Bandicoot" accessible via PlayStation pocket app. If that's what he mean I think it requires to be rooted to move it but I saw somewhere that people had problems seeing the preinstalled content in PS Pocket and Play launcher after moving it around. So unless you want to remove it completely I would not touch it. Also maybe worth asking someone with root how much space Crash Bandicoot takes anyway.
That game is around six or seven megs. I removed it soon after getting root.
Sent from my R800a
captain67 said:
That game is around six or seven megs. I removed it soon after getting root.
Sent from my R800a
Click to expand...
Click to collapse
You may want to remove its data-pack as well as it weighs more than 500 MB, it's this whole folder:
/sdcard/Android/com.sony.playstation.NCEA00344_1
Note the capital letter in "Android", since file names in Linux are case sensitive.
Thanks man, this helped me free up a lot more internal space on my XPlay!
EDIT: Quick question, if I re-flash my phone will I need to repeat this to be able to move over the games that re-install over to my SD card?
That game is around six or seven megs. I removed it soon after getting root.
Sent from my R800a
Click to expand...
Click to collapse
You may want to remove its data-pack as well as it weighs more than 500 MB, it's this whole folder:
/sdcard/Android/com.sony.playstation.NCEA00344_1
Note the capital letter in "Android", since file names in Linux are case sensitive.
Click to expand...
Click to collapse
Ahh, I had no idea that data pack was there. Thanks for telling me, that 500 megs gives me an extra 2 anime episodes lol
I used the Astro file manager to delete it.
Sent from my R800a
I had a hard time with this with the verizon xperia play. I got it to work by turning on debug mode (settings / applications / development / usb debugging ) turn that on and dont select usb storage mode.
This was incredibly helpful, worked perfectly. Thanks!
Does this make apps slower?
I used Titanium Backup with Aspalt 6 and it was sluggish as hell.
kenshindono said:
Before starting i would like to thanks Stublake13 for the tutorial made on this forum http://androidforums.com/desire-tips-tricks/160560-force-apps-install-sd-without-root.html
That helped a lot
I don't trust apps that mess with those kind of thing
I don't want to pay for those kind of apps too
STEP 0: DON'T MESS WITH SYSTEM APPS
Step one: Check your OS/Windows version (OS version x86 or x64)
Step 2: Get Android SDK from there http://developer.android.com/sdk/
Step 3: Launch the install of the SDK
Step 4: Get JRE java if asked during the install and install it
Step 5: Select Usb Driver package on the "installed packages" menu on the left
Step 6: Begin the installation
Step 7: Wait until it complete and go to the folder C:\Program Files (x86)\Android\android-sdk\platform-tools
Step 8: Open a command windows : press keyboard shift key and click right you should see 'run command here' in the menu or go to search (win7) or execute (winxp) and type cmd
another way is to use keyboard pressing Win key + R
A command window should appear
Step 9: on your Xperia play enable USB debugging
Easy on your Android device from Settings > Applications > Development > USB debugging and check it
Step 10: make sure your phone is in media transfer mode (not mass storage mode)
Step 11: Install PC companion and make sure it works and launch update
Step 12: Connect your phone (if pc companion ask to update your phone do as you please you can shut down the program)
Step 13: check that the Xperia play is available on my computer menu and you can browse his content
Step 14: select your Dos windows / command windows that should be open now
and type cd C:\Program Files (x86)\Android\android-sdk\platform-tools if you are not already in this folder
Step 15: Type adb devices and check the result it should say list of device attached and a number will follow with device at the end of the line
That means your phone is correctly attached and recognized by ADB
Step 16: Type adb shell pm setInstallLocation 2 you should see a new line and nothing else if you have an error message then you need to check again one of the step above "adb: permission denied" is the common error
Step 17: Reboot your phone (might take a little while)
Step 18: Now go to your application setting menu and move all your games to the SD or install the game that you wanna install then move them to the SD card
Step 19: Restart your phone again and go to your application browser. You should see some of the game you just installed and moved disapeared... don't mind it's because you moved them and android didn't notice their new location.
Reboot 3 to 5 times depending on the number of your games you should see them all back after some reboot
You can still go to the app manager to look for them there
Step 20: Now that you are done you can choose to go back to the normal mode or stay like that but be carefull if you install an app that is no compatible.
Being on SD you will have to remember that you need to test each app when you move. You will still be able to put it back to internal! But when you test that app this may lead to a crash on your phone during the process so remember to be carefull with some apps (specially those who have widget)
Step 21: To go back to your inital setting plug your phone again type adb devices to ensure that the phone is plugged correctly and recognized by ADB
then type adb shell pm setInstallLocation 0
Step 22: put your phone back to usb standard mode (disable debugging mode)
Step 23: Reboot
Step 24: Shut all the windows on your computer / uninstall if you want android SDK
Step 25: Enjoy your Xplay
Click to expand...
Click to collapse
Hello!
You mentioned that DON'T MESS WITH SYSTEM APPS.
I get the idea that you think rooting the phone, isn't probably safe enough.
If I am right about that, then my question is, is it safe to try the method you mentioned because being a newbie to android I don't understand a lot of steps in that method and they seem messing with OS as well, like downloading this file called SDK.
I have another question as well, does this method work for other applications as well or just the games?
Thanks.
Jack Shepard said:
Hello!
You mentioned that DON'T MESS WITH SYSTEM APPS.
I get the idea that you think rooting the phone, isn't probably safe enough.
If I am right about that, then my question is, is it safe to try the method you mentioned because being a newbie to android I don't understand a lot of steps in that method and they seem messing with OS as well, like downloading this file called SDK.
I have another question as well, does this method work for other applications as well or just the games?
Thanks.
Click to expand...
Click to collapse
This works for all applications you can install from the market. There actually aren't any system apps you can screw up using this method except if the app has a widget (the widget won't work on many apps with them on the SD card). You are changing an OS setting but its not a big deal, the SDK is installed on your home PC. If you don't feel comfortable however I do not recommend doing this. The wrong set of commands can mess up your phone using this.
The pre-installed apps and games CAN NOT be moved with this method. For example Asphalt 6 which comes on most versions of this phone. The only way to move those is to root the phone.
Thanks.
I think I shouldn't do it, I don't want to change OS settings.
But Android team should understand this serious problem with their phones. Have been using XPlay for over a month now and funny that so far all I have done is managing my internal memory. But truly speaking Android really outperforms Iphone in every aspect, except this memory problem.
Sent from my R800i using XDA App
This thread was created a longgg time before i came over to XDA. Very helpful for me since im a TOTAL noob at ADB !! xD

Use Xperia phones on Ubuntu

So you're a user of that hot-from-the-oven Ubuntu 11.10 (it's improved tremendously from 10.04!) and you have a Xperia phone.
Natively on Ubuntu, you can do the following:
Manage its SDcard's contents with the system's file manager
Use ADB (provided that you install the SDK)
Use Fastboot
However, you can't:
Update and manage your phone with the PC Companion Suite or SEUS
Use Flashtool to flash FTF files
Those things need Windows, because neither PC Companion, nor SEUS or Flashtool work in Linux. Does it mean you have to ditch Linux and come back to old Bill's bordello? Nope! Does it mean you have to waste more than half your disk space with a dual-boot solution? Nope!
Virtualize Windows! This means that you can play a Windows virtual machine on your computer, not very different from good old console emulation. The advantages are obvious:
It doesn't eat half your disk space just because
You can fire it up when necessary
It doesn't need a whole lot of ressources from your host computer
The disadvantage is that you can't really do this on a very low-powered computer like a cheap netbook. A dual-boot solution makes more sense there.
However, we'll focus on the virtualization solution here. The main requisite, aside of a legally obtained ISO and key of Windows 7, and a computer with enough muscle to lend some RAM and processing power to the Windows 7 guest system, is that you have superuser access to your Ubuntu system.
1. You'll need Oracle's Virtualbox, which you can download here. Pay attention: VIRTUALBOX OSE EDITION WON'T WORK. If you have it installed, uninstall it before installing Oracle Virtualbox: you won't lose the VM's you had created, and they're compatible with both versions.
2. Once you've installed it, DON'T OPEN IT YET. install the Virtualbox Extension Pack. Without it, you won't have USB capabilities in your VM, so you won't be able to connect your phone.
3. You also have to register your user name. Fire up a terminal and write:
sudo usermod -G vboxusers -a
Click to expand...
Click to collapse
Restart your computer afterwards.
4. Open Virtualbox and create your own Windows 7 VM. It's pretty straightforward and you have a great wizard assistant to help you, so you won't get lost. Once it's created, install Windows. Once the process is finished, shut down the VM.
5. Select the VM in Virtualbox's main menu, and click on Configuration. Click on the USB tab. Toggle on USB 2.0 support, and the other checkbox below. Now you'll have to add "filters" for devices. Connect your switched-on phone, and click on the green + symbol in that tab. You'll see that you have a new possible filter: [SEMC HSUSB Device]. Mark it and check it. This will rerout the phone's connection so that, when you connect your phone, it is recognized by Windows instead of Ubuntu.
6. Switch off your phone, and connect it in Flash mode (holding the Back key while you plug it to the USB cable, it gives you a green light). Add a new filter, and select [Sony Ericsson Mobile Communications AB S1 Boot Download]. This is the most important one, as it will allow you to use PCCompanion, SEUS and Flashtool.
6-1. Optionally, you can connect it as well in Fastboot mode (holding the Search key, or the Menu key in other Xperia phones; it gives you a blue light) and add the filter [Sony Ericsson Mobile Communications AB S1 Boot Fastboot]. Paired with the appropiate drivers, that will allow you to use your phone in Fastboot with the VM (I have done it myself, it's less confusing if every operation is done in the same environment).
7. Fire up the VM now, and install EVERY SINGLE DRIVER. PC Companion, Gordon's Gate, and the Fastboot one if you choose to use Fastboot on your VM (which, again, I recommend if we're going through this virtualisation route).
8. Connect your phone normally and in Fastboot and Flash mode so that everything goes smoothly. You have to do a little workaround to install the Fastboot drivers. Your device won't be automagically recognized like in the Flash mode, so you will have to enter the VM's device manager in the Control Panel. A device called S1 boot Fastboot will appear with a warning sign. Right click on it and click on Update driver. Pick the manual option, and point the explorer to the folder where you've extracted the Fastboot driver. it will give you a warning, you will install it anyways, and once it's done...
9. Once it's done, you can do anything you need.
If you've followed this tutorial properly, you should be able to manage your Xperia phone on Ubuntu.
enjoy!
Couldnt you just install WINE and run the Exe from that?
Thats the way I've always done it for .EXEs anyhow.. but I'm yet to update to 11 "...TONIGHT WE FEAST!"
Flashtool doesn't work on Wine as of the latest version.
There is now a version of flashtool for Linux http://forum.xda-developers.com/showthread.php?t=1308862. I'am now having trouble mounting my R800i I get this error: Unable to mount R800i - Error initializing camera: -60: Could not lock the device any help would be much appreciated.

GUIDE: Data Recovery with a Broken Screen/Digitizer

This weekend I made the unfortunate mistake of breaking the glass on my Nexus 4 - the LCD worked fine but I couldnt tap or type anything. This posed a problem to get some of my data off the phone prior to wiping it. Eventually I found a way to control the phone using adb and an app called mymobiler so I wanted to write a guide in hopes this may ease the pain for someone in the future.
Step 1: Gain root access to your Nexus. You will need to install adb and run adb shell. If you can run adb shell successfully you are ready to go. There are plenty of guides about how to do this so I wont repeat the process here.
Step 2 (Optional): In my case I had recently reimaged my PC and so it was no longer an authorized device. When running adb shell I got the popup on my screen to authorize my PC, but of course I couldn't click "Accept". So I had to find a workaround:
2a: First you need your adbpub.key file. It should be in %HOMEPATH%/.android on Windows. You might need to run adb once to generate the file.
2b: Reboot into recovery. I used Clock Work Mod (non-touchscreen) 6.0.4.7. The non-touchscreen version is important because you need to use your volume keys and power button to navigate around CWM. Source: CWM
2c: Make sure you use the Google ADB drivers - I found them here: XDA-Dev's drivers
2d: In CWM, Go to mounts and mount /data
2e: Now on your PC connect your USB cable. Run these commands:
Code:
adb push adbkey.pub adbkey.pub
adb shell
cat adbkey.pub >> /data/misc/adb/adb_keys
2f: In CWM, go back to Mounts and Unmount /data
2g: Run adb reboot or reboot in CWM to go back to the Android OS.
2h: Now once its back in the OS, you should be able to run adb shell and your PC will already be authorized!
Step 3: Go to apk downloader (http://apps.evozi.com/apk-downloader) and get the MyMobiler apk
Step 4: Run "adb install com.mymobiler.android.apk"
Step 5: Now you'll have to have fun hunting and pecking around with adb shell input touchscreen tap <x> <y> commands. The x and y are coordinates starting at the top left. So on the Nexus 4 the screen res is 768x1280. The top left corner is 0, 0 - the bottom right is 768, 1280. The center of the screen is 384, 640. There is also a whole list of keys that can be pressed with the adb shell input keyevent <code>, a list of codes is here: ADB KEYs. You will need to peck around to get the MyMobiler app started up.
Step 6: Install and run the MyMobiler PC client available on their website (http://www.mymobiler.com)
Step 7: MyMobiler needs you to set the options>display>other on the Android, you will probably get a black screen if you dont set this (I did). Again you will have to play around with simulating the taps using the above info.
Step 8: Once MyMobiler is working right, you can use your PC keyboard and mouse to control your screen, backup your important stuff, and wipe your data before putting it up on eBay (or in the trashcan).
Hope this helps someone stuck in this precarious position.
edit:
not sure but on my second attempt I got this to work. thank you quite very much!
To save anyone else a big of time. If youre on a mac open finder
Click in the text box with the magnifying glass > command-shift-g > type ".android" into the prompt and your adbkey file will be stored within that folder
Not getting past step 1
Could you please recommend a guide to run the adb shell? I have installed it (and fastboot) but the phone is never found by adb devices. I have tried many different guides but none of them gets to identify the phone..
Thank you.
Is to possible to get past Step 1 with a broken touch screen?
Over at Stack Exchange (link was censored) a user is saying that a USB debugging feature must be activated in the phone itself before setting up the connection through adb. Naturally this can not be done with a broken touch screen.
You should really detail how did you achieve this in Step 1; otherwise it is not possible to follow the reminder of the guide.
Thank you.

Ipython/Jupyter Notebook on Android

Hello All
I was able to successefuly install Ipython(jupyter) on my nexus(2013) and wanted to share the procedure with all that could be interested.
You could learn and read about Ipython[Jupyter] here
CAUTION:
> To the best of my knowledge this is the first tutorial of it's kind.
> I strongly recomend that you try this on a fresh rom. Use MultiROM for instance
> This was tried on Nexus 7(2013) with android 4.4.4. But I see no reason why it shouldn't work on lolipop 5.0 or on another android tablet. [You could try at your own risk and report your findings]
> Allow minimum 4Gb free space. I used rougthly 2.2 Gb, but i installed more than just ipython
> Hackers Keyboard is VERY HANDY if not NECESSARY
> I apologize for typos and gramar mistakes in advance
> Some of the following steps take time (a long time). Just make sure your tablet is connected to the charge and chose to keep the screan ON while it's on charge
> I am UNLOCKED and ROOTED. I can't tell whether it is required. If it is it would have to be with the prerequired apps. YOU WANNA VERIFY THAT before anything
> MOST IMPORTANTLY, DO THIS AT YOUR OWN RISK. I'm NOT RESPONSIBLE for any INCONVENIANCE whatsoever.
Procedure:
1-: Install GNURoot WheezyX . I am more confortable with debian, tryFedora or Gentoo ... If you know what you are doing.
2- Install GNURoot
3- Open GNURoot
4- Chose wheezyx (or fedora or gentoo ... depending on the distro you like) in the "Select Rootfs to Create " drop-down menu.
5- Click on 'Create New Rootfs' button
6- Chose wheezyx(or fedora or gentoo ... depending on the distro you chose) in the "Select Rootfs to Launch " drop-down menu
7- Check 'Lauch as Facke Root' box. This will give us root privilege
8- Click on 'Lauch Rootfs' button
At this point you shoud have 'Terminal Emulator" open up a window with '[email protected]:/# ' and a prompt ready to take instrucktions
Welcome to linux !!!
Now we need to install "python" and "pip", but before that we need to install 'build-essentials' which will make 'gcc' and all tools required to build a package available on our linux platform:
In the following: if you chose wheezy distro it's the same procedure; if you chose fedora distro replace apt-get with yum; if you chose gentoo you are on your own because I'm not familiar with it
Anyways I assume no responsability anyhow whatsoever.
9 - At the prompt type 'apt-get update' and press Enter
10 - Type 'apt-get upgrade' and press Enter'
11 - Type 'apt-get install build-essential' and press Enter' : This will install "build essential"
12- - Type 'apt-get install python' and press Enter' : This will install "python". I got the version 2.7.3 . You could find the version you installed by typing "python -V" and pressing Enter
13 - Type 'apt-get install python-pip' and press Enter' : This will install "pip", the python package manger
At this point we have python setup in the linux environement. Let's finally install ipython:
14-a Type 'pip install ipython' and press Enter if all you want is the ipython interpreter
15-a Type 'pip install ipython --upgrade' and press Enter to make sure you got the latest version
or
14-b Type 'pip install ipython[all] ' and press Enter if you want ipython and all the goodies like notebook
15-b Type 'pip install ipython [all]--upgrade' and press Enter to make sure you got the latest version
I do scientific work with ipython, so if you are on the same boat as me you could install scientific packages numpy,sympy,pandas,nose,.... with:
"apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose" !!! This is a lot about 1.2Gb !!!
At this point everything is set up. "when the wine is drawn, we now just have to drink it"
16-a Type ' ipython ' and press Enter to run ipython interpreter
or
16-b Type ' ipython notebook' and press Enter to run ipython notwbook. If you get an error message say that ''no web browser could be found" ignore it. look for the server address (looks like http://localhost:8888)
17-b Enter that adress (http://localhost:8888 in my case) in Chrome (I had no problem with chrom so far, but you could try on your favorite web browser) press Enter. Et voila you should be in the ipython notebook tree
I have been here for a couple of years, and never got to share anything.
This is my first thread, and i hope it is the beging of a very long series of contributions
> I will upload screenshots later to better guide noobs (I was one onece)
> PM me if you like to donate. I would appreciate it
> Please support the GNURoot developpers, or ipython[Jupyter] developpers if you can. They are all doing a terrific work. (I'm in no way associated to them, but love and support their work)
> I'm not very good at making videos, but I welcome any initiative.
You now Know how to install ipython, I trus you could be very creative since you now got linux at your finger tip :laugh:
Help to use pandas + matplotlib: no $DISPLAY environment variable
First of all thank you for this pretty cool tutorial
i did it and everything else works after all that huge pip installation!
my problem is that i need to see the result of my codes which sometimes is to show me plots of my data using the library matplotlib.pyplot
when i do that i get the following error:
TclError: no display name and no $DISPLAY environment variable
i found someone with the same problem in another situation (not on android but something like trying to save the plots in a pdf) and the problem was solved doing the import like this:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
plt.plot([1,2,3])
plt.show()
By using matplotlib.use('Agg'), python knows to use the non-interactive back-end Agg instead of trying to display to the screen
this means that i don't have anymore the error but the plot won't be shown either
this happens not only when i do python file.py from command line but also when i run the same codes on jupyter notebook
so is there a way to execute file.py so they do what ever pandas want to do in this android environment (especially pop up windows with my plots when I execute the files)?
if there is no way how do i get rid of android to install some better OS on my tablet that can do all this kind of stuff?
thank you but all of this that you have done it's really not that useful if i cant see my plots
let me know!
paolotamag said:
First of all thank you for this pretty cool tutorial
i did it and everything else works after all that huge pip installation!
my problem is that i need to see the result of my codes which sometimes is to show me plots of my data using the library matplotlib.pyplot
when i do that i get the following error:
TclError: no display name and no $DISPLAY environment variable
i found someone with the same problem in another situation (not on android but something like trying to save the plots in a pdf) and the problem was solved doing the import like this:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
plt.plot([1,2,3])
plt.show()
By using matplotlib.use('Agg'), python knows to use the non-interactive back-end Agg instead of trying to display to the screen
this means that i don't have anymore the error but the plot won't be shown either
this happens not only when i do python file.py from command line but also when i run the same codes on jupyter notebook
so is there a way to execute file.py so they do what ever pandas want to do in this android environment (especially pop up windows with my plots when I execute the files)?
if there is no way how do i get rid of android to install some better OS on my tablet that can do all this kind of stuff?
thank you but all of this that you have done it's really not that useful if i cant see my plots
let me know!
Click to expand...
Click to collapse
You should know that the linux running GNURoot doesn't have an X-session. You kinda need x11 installed on it to be able to have windows popping up and showing your plots. I remember trying apt-get install x11 without success on "Wheesy". Now, I know there is the "wheesy X" distro of GNURoot, but I don't know whether the X stands for X-session capability; I suggest you try that. (I no longer have my nexus7 to try, but it would be nice to see what happens).
I was able to go around this problem by working on the notebook. I could see my plots fine. I remember firefox beeing the best browser to work on the notebook.
Plots at least on jupyter and transfer files
hey so i found this : (i dont have authorization to post links normally)
stackoverflow .com / questions / 18353203 / using-python-and-matplotlib-on-android
where someone is stating is a big deal to have plotlib working on android
jupyter notebook is not displaying plots not even on firefox, it always give the "TclError: no display name and no $DISPLAY environment variable". It would be awesome if you'd give me a straight solution so i can see plots on jupyter! that would be more than enough to follow lessons in class
the temporary solution i found for now is to remote control my pc at home from the tablet to do all the coding but i cannot work without connection this way
i also found out about this website Wakari but they are saying now there isn't anymore free space for new subscription..
the best solution would be to have plots displaying on jupyter with your help
so the plan for now is to stick to let the pc at home do all the work and remote control it with the samsung remote pc app or to find a good website to log in from the tablet and write codes on browser
ill still use this command line of yours when ever i can thou, when ever there is nothing to display i guess.. but how do I find the folders so i can move to the desktop computer the .py files or the notebook files i create? i was expecting to find the files when i was connecting the tablet with usb wire.. is there anyway to transfer those files?
thank you
izzox said:
You should know that the linux running GNURoot doesn't have an X-session. You kinda need x11 installed on it to be able to have windows popping up and showing your plots. I remember trying apt-get install x11 without success on "Wheesy". Now, I know there is the "wheesy X" distro of GNURoot, but I don't know whether the X stands for X-session capability; I suggest you try that. (I no longer have my nexus7 to try, but it would be nice to see what happens).
I was able to go around this problem by working on the notebook. I could see my plots fine. I remember firefox beeing the best browser to work on the notebook.
Click to expand...
Click to collapse
Use:
%matplotlibe inline
Instead of:
matplotlib.use('Agg')

Categories

Resources