Steps to Setup Appium on Ubuntu
Pre-requisites for Appium setup on Ubuntu:
Install Java on Ubuntu
Set Environment Variables for Java
Check that whether java is installed on the system or not by typing java on the terminal.
Install Android SDK on Ubuntu
Setup Path for Android SDK (ANDROID_HOME, Platform-tools, and Tools)
Check that whether android is installed on the system or not by typing adb on the command prompt.
Steps to Setup Appium on Ubuntu (Without using npm) [Recommended]:
Step 1. : Install ruby
Paste the below mentioned command on 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
Step 2. Install linuxbrew
Paste the below command at terminal and press enter
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)"
Step 3. Setup path for brew
Type gedit .bashrc on terminal, copy & paste below commands into the .bashrc file
After Copy and Paste the above command save the file and close it.
Step 4. Install node
To install brew, paste the below commands one by one at terminal and press enter button
sudo apt install linuxbrew-wrapper
brew install node
brew link node
Step 5. Install Appium
To install Appium, type below mentioned command in terminal
npm install -g appium
npm install wd
Step 6. To verify “Appium” installation we can use appium-doctor. For this, we have to install appium doctor using npm.
npm install -g appium-doctor
Run appium-doctor: It will display all the configuration information required to setup appium.
Step 7. To start appium
Type “appium” into the terminal and press enter button.
Hopefully, we all successful setup appium on Ubuntu Machine.