motorscript.com

Installing Selenium Standalone Server on Arch Linux

Published:
  1. Install Selenium Server from AUR
    pacaur -S selenium-server-standalone
  2. Install Gecko and Chrome Webdrivers
    pacaur -S geckodriver
    pacaur -S chromedriver
  3. Change Java environment to Java 8
    archlinux-java set java-8-openjdk/jre
  4. Install as a service
    cat <<EOT >> /etc/systemd/system/selenium.service
    [Unit]
    Description=Selenium Standalone Server
    [Service]
    Environment=DISPLAY=:44
    Type=simple
    ExecStart=/usr/bin/java -jar /usr/share/selenium-server/selenium-server-standalone.jar
    KillMode=process
    User=nobody
    [Install]
    WantedBy=multi-user.target
    EOT
    systemctl --system daemon-reload
    systemctl enable selenium
    systemctl start selenium
  5. Obey the Goat!
                    (\\
                 .--,\\\__
                  `-.    a`-.__
                    |         ')
                   / \ _.-'-,`;
                  /     |   { /
        ..-"``~"-'      ;    )
                       ;'    `
                      ;'
                    ;'
            ,    /;'|
         ,;';\   |\ |
              \  || |
               | )| )
               | || |
         jgs   | \| \
               `##`##