I installed code-server in ubuntu in termux on android device. It is ok for CUI. Tkinter has problem - 'couldn't connect to display :1'. I've tried some ways I found in googling but not solved the problem. Is there any way to run GUI in code-server in termux linux using tkinter. I'm beginner in linux.
Related
I got an issue on meteor JS on my windows 10, I have installed android studio and Java 8 JDK. On my meteor project I tried to build an android by typing meteor install-sdk android, but I got an error of This command is not yet available on Windows. .. Does anyone have an idea about this?
I know this was posted a year ago, but I found a fix recently, just in case anybody gets stuck on this and needs help.
It's from this link: https://github.com/meteor/meteor/issues/4155#issuecomment-384105563
But I'll repost the solution with a few extra changes I had to make by myself.
Basically you need to install Android studio and run it to get the Android SDK, install the Java JDK, and install Cordova. After this you can add the android platform to meteor.
Steps:
Install Android Studio
Run Android Studio once for download, full installation, and accept terms
Update npm with npm i npm
Run npm install cordova -g (-g flag for global install)
Run meteor npm i -g write-file-atomic path-is-inside async-some dezalgo
Run meteor add-platform android
After doing this, you should be able to run meteor run android-device to run on your Android device using a USB cable.
NOTE:
If you are connected to a WiFi network while running meteor run android-device, you might get an error similar to this:
Error detecting IP address for mobile app to connect to:
Found multiple network interfaces with non-internal IPv4 addresses:
'some IP address', 'some IP address'
Please specify the address that the mobile app should connect
to with --mobile-server.
To fix this, modify the command to:
meteor run android-device --mobile-server <ip.of.my.device>
Of course, ensure your PC and Android device are on the same WiFi network.
Go to Settings>About Device>Status to get your current IP Address on your Android device.
The app will now be installed on your phone over the WiFi connection.
(It might take a while though)
Hope this helps.
Cheers.
The problem
I have an already working appium tests suite on my MacOS desktop, but when i try to run the same tests on an Ubuntu 16.04 desktop, I get the following error and appium gets closed automatically.
Android bootstrap socket crashed: Error: connect ECONNREFUSED
Also, just to be clear, i'm not trying to run simultaneous tests, just a single emulated android device.
Environment
Appium version: 1.6.3-Beta. Also tried with 1.5.3 and got the same error.
Last Appium version that did not exhibit the issue (if applicable): Not applicable.
Desktop OS/version used to run Appium: Ubuntu 16.04
Node.js version (unless using Appium.app|exe): 7.6.0. But got the same error with v6.
Mobile platform/version under test: Andorid 6 (Marshmallow)
Real device or emulator/simulator: Simulator
Appium CLI or Appium.app|exe: Appium CLI
Details
Been stuck on this for a few days. Saw some question referring to simultaneous tests on the internet, but its not my case. I'm trying to run my tests on a single emulated android device.
Also tried to change the bootstrap port using the -bp option, and set the localhost address using -a 127.0.0.1, but no success.
Link to Appium logs
https://gist.github.com/BernalCarlos/752efe621a55a2b2b0d07b966c8b5354
Thank you on advance.
Solved the problem by making a fresh install of linux mint 18.1.
Still don't know why this showed up in ubuntu 16.04.
I had the similar problem. Set ADB path in system variable as C:\Users\<username>\AppData\Local\Android\Sdk\platform-tools
This will fix the issue.
I solved the problem adding the appium server argument --suppress-adb-kill-server, it prevents killing the adb server socket
Yesterday I installed bash on Windows 10 and also installed Git on it. It works perfectly fine. Following that, I changed the path of the Terminal in Android Studio from "cmd.exe" to "bash.exe" so I can have the bash shell instead of the cmd shell. But now Android Studio cannot find Git (because on Windows it expects a Git.exe) and I would like to know if it is possible to integrate the bash git into Android Studio (just as it does with the Windows .exe version).
According to this article you are running a kind-of version of Linux. The article says it is a Windows Subsystem for Linux which is like the opposite of Wine.
Because of this, you might have more success trying to install the Linux version of everything from the bash shell - including Android Studio.
This way you will not be mixing and matching two System Environments more than what you already have.
Try GitWrap
https://github.com/ardevd/gitwrap/releases
This wrapper pipes output from WSL to windows and also works on android studio claimed by the developer
I've seen many posts with a similar problem and tried many solutions but so far none have helped. This all started after I upgraded Genymotion from 2.5.2 to 2.6.0.
I'm using Android Studio 1.5.1 on Ubuntu 15.10 64 bit. The Genymotion plugin is version 1.0.7. VirtualBox is 5.0.12 r104815
When I try to start a Genymotion Emulator I get:
I have several machines defined and all do this.
However, I can start them from the Genymotion app.
One other piece of information...if I have Android Studio and Genymotion running I get the following error when I try to issue any adb command from the command line:
adb server is out of date. killing...
cannot bind 'tcp:5037'
ADB server didn't ACK
* failed to start daemon *
error:
I've tried restarting the computer, restarting Android Studio, and removing and reloading the plugin. I've also set Genymotion to use the same adb that Android Studio uses.
Any ideas? Let me know if you need more info.
Thanks,
Rich
This is actually 2 separate problems and I've found the solution for one and a workaround for the other.
Can't start Genymotion Emulator from Android Studio Plugin - I resolved this for now by reverting to Genymotion 2.5.2. I'll still need to figure out why 2.6.0 causes a problem but for now I can start emulator machines from the Android Studio plugin.
adb server is out of date - This is caused by more than one instance of adb on the machine. In my case, Android Studio was using the one in ~/Android/Sdk/platform-tools, but when I tried issuing adb commands in terminal it was using the one in /usr/bin. I'll either try creating a symbolic link in /usr/bin to point to ~/Android/Sdk/platform-tools, or I'll add ~/Android/Sdk/platform-tools to my Path environment variable.
Rich
I use xpra under linux to connect to a computer running android studio. The problem is that every time I try to run the emulator I get the following error
Xlib: extension "GLX" missing on display ":100".
My laptop has an AMDA6-6310 with Radeon r4. I've also tried to connect with ssh -X with no luck.
Android studio must be using opengl rendering, so you will need to be using Xdummy and VirtualGL