I followed the directions here: https://gist.github.com/2niuhe/f9c0a1168ebc02bd0b89ffdb7ed21f6c to try and get a working version of XMRig on my Android, but sadly it's failing at the first step. Can somebody help? These are the commands it instructs me to run:
pkg install update && upgrade
apt install git
apt install wget
apt install proot
termux-setup-storage
git clone https://github.com/Neo-Oli/termux-ubuntu
cd termux-ubuntu
chmod +x ubuntu.sh
sh ubuntu.sh
./start-ubuntu.sh
Related
I need to install some packages and Linux programs on my android devices. for example I want to use something similar YUM or get-apt command (I know these are Linux Commands) through windows powershell connected to my android device. but it does not recognize these commands. even ADB does not work, e.g. adb update -y is unknown command. How can i do this, is it possible. if the android kernel is linux so I guess there must be a way. I checked this but didnt help me:
Is it possible to install the JDK on an android device?
Thanks
EDITED: I used the link below , thanks to my friend for good answer. this is the command i used :
pkg install wget && wget https://raw.githubusercontent.com/MasterDevX/java/master/installjava && bash installjava
BUT when i run java command it says "Killed". No Idea!
Try Termux, a linux terminal emulator for android.A minimal base system is installed automatically - additional packages are available using the APT package manager. You can use following commands to install java8.
pkg install git
git clone https://github.com/MasterDevX/Termux-Java.git
cd Termux-Java
chmod +x installjava
bash installjava
When installed, run java -version to check, if it's correcty installed.
After that you can run java using Java command.
$ apt update && apt upgrade
$ apt install openjdk-17
First of all install termux.
Then run following commands :
$ pkg update -y && pkg upgrade -y
$ termux-setup-storage
And give the storage permission.
After that download these 2 files.
JDK-9 : https://archive.org/download/openjdk-9-jre-headless_9.2017.8.20-1_x86_64/openjdk-9-jdk-headless_9.2017.8.20-1_arm.deb
JRE-9 : https://archive.org/download/openjdk-9-jre-headless_9.2017.8.20-1_x86_64/openjdk-9-jre-headless_9.2017.8.20-1_arm.deb
Remember the filenames, and the folder where you downloaded the files.
Go back to termux and run :
$ cd /sdcard/<folder name>
Replace foldername with your download folder.
$ mv file1 file2 $HOME
Replace file1 and file2 with actual filenames.
Alternative :
If you don’t want to download and move files manually you can use this commands (not recommended) :
$ pkg install wget -y
$ wget https://archive.org/download/openjdk-9-jre-headless_9.2017.8.20-1_x86_64/openjdk-9-jdk-headless_9.2017.8.20-1_arm.deb
$ wget https://archive.org/download/openjdk-9-jre-headless_9.2017.8.20-1_x86_64/openjdk-9-jre-headless_9.2017.8.20-1_arm.deb
It will download files within your termux home directory.
Finally run,
$ apt-get install -y ./openjdk-9-jdk-headless_9.2017.8.20-1_arm.deb
$ apt-get install -y ./openjdk-9-jre-headless_9.2017.8.20-1_arm.deb
And You're done.
Try typing java or javac.
If you don’t see an Error you're good to go.
See Source
First, you need to install termux from their f droid link. Their playstore version is not updated. You can find the fdroid link from their github repository.
run the following command:
apt update
apt search openjdk
If you find a version of openjdk available, for example : presently openjdk-17 is available
install it using command:
apt install package-name
example:
apt install openjdk-17
follow the prompts and java will be installed in your termux.
Download java is possible
Check this github link
Termux java https://github.com/EagleComrade/Termux-java.git
It provides direct installtion of java from termux-source
Installtion from unwanted sources are not really trusted
So this tool is realy great
Do the following for install java without errors.
pkg install git
git clone https://github.com/EagleComrade/Termux-java.git
cd Termux-java
chmod +x install.sh
./install.sh
Java is installed .......
Install termux and run these commands
pkg update
pkg install openjdk-17
java --version
Install ubuntu on termux from anlinux... Then use
$ apt install default-jdk
Job done!
I am trying to integrate Boilerplate for Android using React Native on Ubuntu 16.04 but i don't know where to start and what to do next .
So far I did the steps below :
1)Install React-Native on Linux Platform
1. Install NodeJs and npm:
$sudo apt install curl
$curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash –
$sudo apt-get install -y nodejs
Check the version of nodejs:
$node -v
Or
$nodejs -v
Check the version of npm:
$npm -v
Install the create-react-native-app:
$sudo npm install -g create-react-native-app
Create the first project:
$create-react-native-app MyFirstProject
Move to the project directory using:
$cd MyFirstProject/
Using the next command, the development server will start:
$npm start
2)I installed Java:
$sudo add-apt-repository ppa:webupd8team/java
$sudo apt-get update
$sudo apt-get install oracle-java8-installer
$sudo apt-get install oracle-java8-set-default
3)I installed Android :
Downloaded “All Android Studio Packages” archive from:
https://developer.android.com/sdk/index.html
Extract the archive file into an appropriate location:
$sudo unzip android-studio-ide-141.2178183-linux.zip -d /opt
Lunch Android:
$./studio.sh.
The next steps would be to open the Android SDK Manager within Studio and install the API version you're targeting and any System images you'll like to run in order to get an emulator (assuming you're not using a physical device)
You'll also need to set ANDROID_HOME environment variable so React knows where the Android build tools are
For example, edit your bash profile
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/platform-tools
Your SDK would be under /opt, possibly
Eventually, run your code with react-native run-android
When running su on termux application, I get error
CANNOT LINK EXECUTABLE: library "libandroid-support.so" not found
I tried
apt update && apt install tsu.
I tried
export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
The problem still exist. Any idea?
Try to run:
apt update && apt install tsu
Then exit the terminal and rest
I am new in appium(automation testing technology).
I'm using a PC running Ubuntu Linux.
I have searched about this topic but I have not got any useful tutorial. Can anyone point me to the right documentation?
Do not install nodejs through apt-get, which will need sudo rights and appium will not work if node is installed as sudo user. If you have already installed remove it using
sudo apt-get remove nodejs
sudo apt-get remove npm
Download latest nodejs linux binaries form http://nodejs.org/download/
Extract into a folder that doesn't need sudo rights to access, for example your home folder.
tar -xvf <downloaded_binary_tar.gz>
Add the following line to your ~/.bashrc file.
export PATH=$PATH:<full_path_of_the_extracted_node_folder>/bin
Open a now terminal and do
npm install -g appium
appium
I'm sure you will find plenty of tutorials on this (and this will only work for android since you would need an OSX box to do iOS) but here is what we did:
Install nodejs/npm:
sudo apt-get update
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
UPDATE: use homebrew to install node
Install grunt-cli:
npm install -g grunt-cli
If you run into an issue about it not being able to install in a directory, do this.
Install Appium:
npm install -g appium
Set up a symlink in your .bashrc file for Appium:
ln -s /path/to/appium.js /usr/bin/appium
Test to make sure it can run by running appium in your terminal. The output should be something like:
info: Welcome to Appium v0.16.0 (REV 292d265edd9c7aaf96f165009285c814b218363d)
info: Appium REST http interface listener started on 0.0.0.0:4723
info - socket.io started
Install Java JRE 6
sudo apt-get install openjdk-6-jre
Install Android SDK:
Download the SDK and extract it to your home folder.
Launch the Android SDK Manager:
~/path/to/android-sdk/tools/android
Install the packages that you'll need in the new window:
Android 4.X
Android Support Library
Android SUpport Repository
Google Play services
Everything under Tools
Everything under Extras
You can also create a symlink for the Android SDK Manager by doing:
ln -s /path/to/android-sdk/tools/android /usr/bin/android
Steps to get appium working on ubuntu pc :
Install ruby: Paste the below command at terminal and hit enter
sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
Install linux brew:Paste the below command at terminal and hit enter
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
set path for brew
Type: gedit .bashrc at terminal and copy paste following into the .bashrc file
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
Install node:Paste the below commands one by one at terminal and hit enter
brew update
brew install node
brew link node
Install appium
npm install -g appium
npm install wd
To start appium: Paste the below command at terminal and hit enter
appium
Just to save somebodies time: on my Ubuntu 14.04 I was trying to install npm both via sudo apt-get and using binaries. Both approaches were wrong but everything is Ok after I istalled npm via HomeBrew
Steps to install Appium on Linux.
Basics setup from the link.
Now install linuxbrew taking help from the link.
Now use the following commands from the terminal
Make sure to start a new terminal:
brew update
brew install node
brew link node
npm install -g appium#version
Hope this helps those who face the issue installing with "sudo".
Many people face issue while installing appium on ubuntu because we install using sudo we should install appium using npm
Detailed step by step explanation to install appium on Ubuntu using npm
CLICK HERE
To install node.js and appium without sudo we use linuxbrew.
To install linuxbrew these are the dependencies
Ruby 1.8.6 or newer
GCC 4.2 or newer
Git 1.7.12.4 or newer
Linux 2.6.16 or newer
64-bit x86 or 32-bit ARM platform
Install Ruby using below command
sudo apt-get install build-essential curl git m4 python-setuptools ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
Install Linux Brew using below command
ruby -e “$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
Set Path for brew
first type sudo gedit.bashrc in terminal and copy the below in the .bashrc file.export
PATH="$HOME/.linuxbrew/bin:$PATH"exportMANPATH="$HOME/.linuxbrew/share/man:$MANPATH"export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
7 .Install Node:Open new terminal and copy the command and press enter
brew update
brew install node
brew link node
8.Finally Install Appium using below command
npm install -g appium
9.Let's Check if the installation is successfull. Open the terminal and type "appium" and hit enter.You should see something like this in the terminal
info: Welcome to Appium v1.4.12(REV 8db2d00b9afcf2c50a09a80a2e8d56b05a902caf)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: Console LogLevel: debug
It is very simple and easy, Please check the below steps!.
1) Install latest Node.js
Terminal commands:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
More information please check official website.
2) Install latest Appium
Terminal commands :
npm install -g appium
or
sudo npm install -g appium
More information please check official documentation.
I've installed the NVM on CentOS 7 and it works perfectly.
curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash
I will strongly recommend going for that with which you will have control of NodeJS versions.
Btw, Linuxbrew doesn't work for me.
I can tell about the 14.04 version
Download the file from https://nodejs.org/en/
2.Now for extracting the file path press
Ctrl+l , it will give the exact path , copy it
3.open bash.src file and it has to be open with gedit, this file is hidden
Press Ctrl+h to see the hidden files
4.now in the bash.src file,paste the below commands
export PATH=$PATH:"somepath u copied upto bin"
export NODE_PATH=$PATH:"somepath u copied upto bin node_modules'"
It will surely work
I want to install Calabash Android on Ubuntu(13.10). I have gem (1.8.23) and ruby (1.9.3p194) installed and tried to run "sudo gem install calabash-android" but keep getting messages saying "Failed to build gem native extension", below is the full messages:
Building native extensions. This could take a while...
ERROR: Error installing calabash-android:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from extconf.rb:1:in `'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/gherkin-2.12.2 for inspection.
I tried "sudo apt-get update" but it didn't fix the issue. And I also checked gcc so it shouldn't be build issue. Does anyone have any suggestions? Thanks in advance!
While installing ruby, select development version or full version, so on my system with ubuntu 12.04, i would use
sudo apt-get install ruby1.9.1-full
also please make sure android home path and ant path is proper
Thanks
You can use rbenv that manage perfectly ruby gems versions like nvm does for node.js:
$ sudo apt-get update
$ sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
$ git clone git://github.com/sstephenson/rbenv.git .rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
$ git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$ echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
$ git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
$ sudo apt-get install rbenv
$ exec $SHELL
$ rbenv install 2.2.2
$ rbenv global 2.2.2
$ ruby -v
$ echo "gem: --no-ri --no-rdoc" > ~/.gemrc
$ gem install bundler