Last active
August 29, 2015 14:23
-
-
Save amitaibu/fe2e3579ce138283c94e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ssh selenium@45.55.95.69 | |
sudo locale-gen UTF-8 | |
# https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04 | |
# Add user called "selenium" | |
adduser selenium | |
# Add sudo to user "selenium" | |
gpasswd -a selenium sudo | |
# We have already defined the ssh keys for the root, when provisioned the DigitalOcean Droplet | |
# so we just need to copy them to the new "selenium" user. | |
cp -R ~/.ssh /home/selenium/ | |
chown -R selenium:selenium /home/selenium/.ssh/ | |
# Install ZSH | |
# https://gist.github.com/tsabat/1498393 | |
su - selenium | |
sudo apt-get update | |
sudo apt-get install zsh git-core | |
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh | |
chsh -s `which zsh` | |
# Install docker | |
wget -qO- https://get.docker.com/ | sh | |
# use Docker as a non-root user | |
sudo usermod -aG docker selenium | |
# Restart the server so ZSH and the non-root docker will work | |
sudo shutdown -r 0 | |
# Get the selenium-standalone docker and run it as deamon | |
docker run -d --name=ch \ | |
-p=0.0.0.0:8484:8484 -p=0.0.0.0:2222:2222 \ | |
-p=0.0.0.0:4470:4444 -p=0.0.0.0:5920:5900 \ | |
-e SCREEN_WIDTH=1920 -e SCREEN_HEIGHT=1080 \ | |
-e VNC_PASSWORD=gizra -e WITH_GUACAMOLE=true \ | |
elgalu/selenium:v2.46.0-base1 | |
# Login via http://45.55.95.69:8484/#/login | |
# Connect to server via http://45.55.95.69:4470/wd/hub | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment