TestEngineering/Web/Automation/B2G Nodes/Create new node: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with " Change the boot order by going to Startup Disk and choosing the Ubuntu installation CD While rebooting, hold down C Ubuntu boots up/initializes If you are install...")
 
No edit summary
Line 1: Line 1:
    Change the boot order by going to Startup Disk and choosing the Ubuntu installation CD
#Change the boot order by going to Startup Disk and choosing the Ubuntu installation CD
    While rebooting, hold down C
#While rebooting, hold down C
    Ubuntu boots up/initializes
#Ubuntu boots up/initializes
    If you are installing Ubuntu on the 4,1 early 2012 Mac Mini, please take note that WiFi does not work out of the box, you need to plug in an ethernet cable if you want to download updates whilst installing
#If you are installing Ubuntu on the 4,1 early 2012 Mac Mini, please take note that WiFi does not work out of the box, you need to plug in an ethernet cable if you want to download updates whilst installing
    After successfully installing Ubuntu, open the terminal app and enter the following commands ( installing Jenkins will install the open-jre version of Java)
#After successfully installing Ubuntu, open the terminal app and enter the following commands (installing Jenkins will install the open-jre version of Java)
        sudo apt-get install openssh-server jenkins
#sudo apt-get install openssh-server jenkins
        sudo mkdir /var/jenkins
#sudo mkdir /var/jenkins
        chown -R webqa:webqa /var/jenkins
#chown -R webqa:webqa /var/jenkins
    Visit http://developer.android.com/sdk/index.html to download the Android SDK for Linux and extract it to the /home/webqa/andrioid-sdk-linux/
Visit http://developer.android.com/sdk/index.html to download the Android SDK for Linux and extract it to the /home/webqa/andrioid-sdk-linux/
    If your Ubuntu Install is a 64 bit version  install ia32-libs ( apt-get install ia32-libs)  otherwise adb wont work
#If your Ubuntu Install is a 64 bit version  install ia32-libs ( apt-get install ia32-libs)  otherwise adb wont work
    Start the android program from the android-sdk-linux/tools/ directory using the command ./android and install the latest Android SDK
Start the android program from the android-sdk-linux/tools/ directory using the command ./android and install the latest Android SDK
    Edit the file /etc/udev/rules.d/51-android.rules by adding the following rules
#Edit the file /etc/udev/rules.d/51-android.rules by adding the following rules
        SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
##SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
        SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666", GROUP="plugdev"
##SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666", GROUP="plugdev"
    Edit the file .profile under /home/webqa by appending the following lines   
#Edit the file .profile under /home/webqa by appending the following lines   
        PATH="$PATH:$HOME/android-sdk/platform-tools:$HOME/android-sdk/tools"
#PATH="$PATH:$HOME/android-sdk/platform-tools:$HOME/android-sdk/tools"
    Enter the command source ~/.profile to pick up the PATH updates
#Enter the command source ~/.profile to pick up the PATH updates
    Clone the webqa-credentials repository  to /home/webqa/webqa-credentials using  the link https://github.com/retornam/webqa-credentials.git . This  requires your github login details since the repository is private.
#Clone the webqa-credentials repository  to /home/webqa/webqa-credentials using  the link https://github.com/retornam/webqa-credentials.git . This  requires your github login details since the repository is private.

Revision as of 00:04, 27 February 2013

  1. Change the boot order by going to Startup Disk and choosing the Ubuntu installation CD
  2. While rebooting, hold down C
  3. Ubuntu boots up/initializes
  4. If you are installing Ubuntu on the 4,1 early 2012 Mac Mini, please take note that WiFi does not work out of the box, you need to plug in an ethernet cable if you want to download updates whilst installing
  5. After successfully installing Ubuntu, open the terminal app and enter the following commands (installing Jenkins will install the open-jre version of Java)
  6. sudo apt-get install openssh-server jenkins
  7. sudo mkdir /var/jenkins
  8. chown -R webqa:webqa /var/jenkins

Visit http://developer.android.com/sdk/index.html to download the Android SDK for Linux and extract it to the /home/webqa/andrioid-sdk-linux/

  1. If your Ubuntu Install is a 64 bit version install ia32-libs ( apt-get install ia32-libs) otherwise adb wont work

Start the android program from the android-sdk-linux/tools/ directory using the command ./android and install the latest Android SDK

  1. Edit the file /etc/udev/rules.d/51-android.rules by adding the following rules
    1. SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
    2. SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666", GROUP="plugdev"
  2. Edit the file .profile under /home/webqa by appending the following lines
  3. PATH="$PATH:$HOME/android-sdk/platform-tools:$HOME/android-sdk/tools"
  4. Enter the command source ~/.profile to pick up the PATH updates
  5. Clone the webqa-credentials repository to /home/webqa/webqa-credentials using the link https://github.com/retornam/webqa-credentials.git . This requires your github login details since the repository is private.