Skip to content

Instantly share code, notes, and snippets.

@bGorle
Created October 18, 2015 18:23
Show Gist options
  • Save bGorle/de5e2994186209ac544e to your computer and use it in GitHub Desktop.
Save bGorle/de5e2994186209ac544e to your computer and use it in GitHub Desktop.
Appium installation on ubuntu

installing ruby rvm

Step One— Install Ruby with RVM

sudo apt-get update

Once that's done, we can start installing RVM, Ruby Version Manager. This is a great program that lets you use several versions of Ruby on one server.

If you do not have curl on your system, you can start by installing it:

sudo apt-get install curl

To install RVM, open terminal and type in this command:

\curl -L https://get.rvm.io | bash -s stable

After it is done installing, load RVM. You may first need to exit out of your shell session and start up a new one.

source ~/.rvm/scripts/rvm

In order to work, RVM has some of its own dependancies that need to be installed. To automatically install them:

rvm requirements

Once you are using RVM, installing Ruby is easy.

rvm install ruby

Step two— Install Nodejs using brew

Install brew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"

echo export PATH="/home/$USER/.linuxbrew/bin:$PATH" >> ~/.bash_profile

source ~/.bash_profile

then do

brew doctor

if everything is fine, then install nodejs by using this command

brew install node

Download appium from git using this command

git clone git://github.com/appium/appium.git cd appium

Before that check whether android ANDROID_HOME is set or not, If not please set the variable

export ANDROID_HOME="/media/raghu/oops/android/android-sdk/" ./reset.sh --verbose

Once it is done, start the appium server by this command

node .

That's all your appium server is running on the machine. Come on start writing your scripts.

@barotashish
Copy link

Can anyone please share some detailed steps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment