TestEngineering/Web/Automation/B2G Nodes/Create new node
< TestEngineering | Web | Automation | B2G Nodes
- 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 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
- sudo apt-get install openssh-server
- sudo mkdir /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/
- 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
- 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}=="19d2", MODE="0666", GROUP="plugdev"
- Edit the file .profile under /home/webqa by appending the following lines
- PATH="$PATH:$HOME/android-sdk/platform-tools:$HOME/android-sdk/tools"
- Enter the command source ~/.profile to pick up the PATH updates
- Clone the webqa-credentials repository to /home/webqa/webqa-credentials using the link. Copy the public and private keys from the $HOME/.ssh/ folder of the webqa user from one of the older machines to $HOME/.ssh/ of the new machine your are working on. Also copy the contents of the file shown after entering crontab -e on the older machine to the new one. (*/10 * * * * cd $HOME/webqa-credentials/ && git pull origin master)
- In order to support the PyBluez module, run the following commands to install the Python and Bluetooth dev packages:
- apt-get install python-dev
- apt-get install libbluetooth-dev