Skip to main content

Install Sauce Connect on Linux

Debian/Ubuntu​

Sauce Connect provides .deb package with Systemd service for Sauce Connect run command. Other commands are available as well, but you will need to start them manually.

Install package​

curl -L -o sauce-connect.deb https://saucelabs.com/downloads/sauce-connect/5.5.3/sauce-connect_5.5.3.linux_arm64.deb
sudo dpkg -i sauce-connect.deb

Edit config file​

Edit the configuration file with your favorite editor:

sudo vim /etc/sauce-connect/sauce-connect.yaml

Enable and start Sauce Connect service​

sudo systemctl enable sauce-connect
sudo systemctl start sauce-connect

Check Sauce Connect Status​

sudo systemctl status sauce-connect

Access logs​

journalctl -u sauce-connect

RedHat/CentOS/Fedora​

Sauce Connect provides .rpm package with Systemd service for Sauce Connect run command. Other commands are available as well, but you will need to start them manually.

Install package​

sudo rpm -i https://saucelabs.com/downloads/sauce-connect/5.5.3/sauce-connect-5.5.3_linux.aarch64.rpm

Edit config file​

Edit the configuration file with your favorite editor:

sudo vim /etc/sauce-connect/sauce-connect.yaml

Enable and start Sauce Connect service​

sudo systemctl enable sauce-connect
sudo systemctl start sauce-connect

Check Sauce Connect Status​

sudo systemctl status sauce-connect

Access logs​

journalctl -u sauce-connect

Generic​

Unpack the tarball​

curl -L -o sauce-connect.tar.gz https://saucelabs.com/downloads/sauce-connect/5.5.3/sauce-connect-5.5.3_linux.aarch64.tar.gz
sudo mkdir -p /opt/sauce-connect
sudo tar -C /opt/sauce-connect -xzf sauce-connect.tar.gz
sudo ln -s /opt/sauce-connect/sc /usr/local/bin/sc

Add bash completion​

echo 'source <(sc completion bash)' >>~/.bash_profile

Edit config file​

This step is optional. You can use default configuration or configure Sauce Connect with flags or environment variables. See CLI reference for more details.

Edit the configuration file with your favorite editor:

vim /opt/sauce-connect/sauce-connect.yaml

Start Sauce Connect​

sc run --config-file /opt/sauce-connect/sauce-connect.yaml