How to set up a Headless Selenium Testing environment for CentOS 6.3.
Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.
| #!/usr/bin/env bash | |
| CONTAINER_HEALTH=$(docker inspect --format='{{json .State.Health.Status}}' $1) | |
| if [ -z $CONTAINER_HEALTH ]; then | |
| echo "Container not found" | |
| exit 1 | |
| fi; | |
| until test $CONTAINER_HEALTH = "\"healthy\""; do | |
| echo "Waiting..." |
| # maximum capability of system | |
| user@ubuntu:~$ cat /proc/sys/fs/file-max | |
| 708444 | |
| # available limit | |
| user@ubuntu:~$ ulimit -n | |
| 1024 | |
| # To increase the available limit to say 200000 | |
| user@ubuntu:~$ sudo vim /etc/sysctl.conf |
| /* | |
| * pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported. | |
| * wallet_address - Your wallet, or pool login. | |
| * pool_password - Can be empty in most cases or "x". | |
| * use_nicehash - Limit the nonce to 3 bytes as required by nicehash. | |
| * use_tls - This option will make us connect using Transport Layer Security. | |
| * tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it. | |
| * pool_weight - Pool weight is a number telling the miner how important the pool is. Miner will mine mostly at the pool | |
| * with the highest weight, unless the pool fails. Weight must be an integer larger than 0. |
| /* | |
| * pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported. | |
| * wallet_address - Your wallet, or pool login. | |
| * pool_password - Can be empty in most cases or "x". | |
| * use_nicehash - Limit the nonce to 3 bytes as required by nicehash. | |
| * use_tls - This option will make us connect using Transport Layer Security. | |
| * tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it. | |
| * pool_weight - Pool weight is a number telling the miner how important the pool is. Miner will mine mostly at the pool | |
| * with the highest weight, unless the pool fails. Weight must be an integer larger than 0. |
| /* | |
| * pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported. | |
| * wallet_address - Your wallet, or pool login. | |
| * pool_password - Can be empty in most cases or "x". | |
| * use_nicehash - Limit the nonce to 3 bytes as required by nicehash. | |
| * use_tls - This option will make us connect using Transport Layer Security. | |
| * tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it. | |
| * pool_weight - Pool weight is a number telling the miner how important the pool is. Miner will mine mostly at the pool | |
| * with the highest weight, unless the pool fails. Weight must be an integer larger than 0. |
| paris01.sumokoin.hashvault.pro:3333 | |
| Sumoo2t4AkPAJyzmKN57zLaHW7VrYsLVnhv7qKw7zusWhdwJSTZL8mgEyWBSzcHGGuLpT8ExzRjrtPfAAHLfmkY3Ps7vvSMkgDL |
| cd ~/work | |
| git clone https://github.com/fireice-uk/xmr-stak.git | |
| cd xmr-stak | |
| brew install hwloc libmicrohttpd gcc openssl cmake | |
| printf "#pragma once\nconstexpr double fDevDonationLevel = 0.0;" > xmrstak/donate-level.hpp | |
| cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF | |
| make install | |
| #Address: 463tm7557QqZqzNgEiSWPbSkPBWGJSkhzScZpVA7dnXk1fZNpzTtT47cysAEt4UKsEGQQWdsfHadmCAjMGmSEsJBFUJ8jdA | |
| #pool: europe.monero.hashvault.pro | |
| #ports: 3333 Low-End Hardware (Up to 100 h/s) |
| /* | |
| * pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported. | |
| * wallet_address - Your wallet, or pool login. | |
| * pool_password - Can be empty in most cases or "x". | |
| * use_nicehash - Limit the nonce to 3 bytes as required by nicehash. | |
| * use_tls - This option will make us connect using Transport Layer Security. | |
| * tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it. | |
| * pool_weight - Pool weight is a number telling the miner how important the pool is. Miner will mine mostly at the pool | |
| * with the highest weight, unless the pool fails. Weight must be an integer larger than 0. | |
| * |
| git pull --recurse-submodules | |
| git submodule update --remote --recursive |