Skip to content

Latest commit

 

History

History
202 lines (145 loc) · 4.05 KB

File metadata and controls

202 lines (145 loc) · 4.05 KB
id title sidebar_label
linux
Install Sauce Connect on Linux
Linux

import useBaseUrl from '@docusaurus/useBaseUrl'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

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

<Tabs defaultValue="ARM64"   values={[     {label: 'ARM64', value: 'ARM64'},     {label: 'x86-64', value: 'x86-64'},   ]}>

curl -L -o sauce-connect.deb https://saucelabs.com/downloads/sauce-connect/5.2.2/sauce-connect_5.2.2.linux_arm64.deb
sudo dpkg -i sauce-connect.deb
curl -L -o sauce-connect.deb https://saucelabs.com/downloads/sauce-connect/5.2.2/sauce-connect_5.2.2.linux_amd64.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

<Tabs defaultValue="ARM64"   values={[     {label: 'ARM64', value: 'ARM64'},     {label: 'x86-64', value: 'x86-64'},   ]}>

sudo rpm -i https://saucelabs.com/downloads/sauce-connect/5.2.2/sauce-connect-5.2.2_linux.aarch64.rpm
sudo rpm -i https://saucelabs.com/downloads/sauce-connect/5.2.2/sauce-connect-5.2.2_linux.x86_64.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

<Tabs defaultValue="ARM64"   values={[     {label: 'ARM64', value: 'ARM64'},     {label: 'x86-64', value: 'x86-64'},   ]}>

curl -L -o sauce-connect.tar.gz https://saucelabs.com/downloads/sauce-connect/5.2.2/sauce-connect-5.2.2_linux.aarch64.tar.gz
sudo mkdir -p /opt/sauce-connect
sudo tar -C /opt/sauce-connect -xzf sauce-connect.tar.gz
curl -L -o sauce-connect.tar.gz https://saucelabs.com/downloads/sauce-connect/5.2.2/sauce-connect-5.2.2_linux.x86_64.tar.gz
sudo mkdir -p /opt/sauce-connect
sudo tar -C /opt/sauce-connect -xzf sauce-connect.tar.gz

Link the binary

sudo ln -s /opt/sauce-connect/sc /usr/local/bin/sc

Add bash completion

<Tabs defaultValue="User"   values={[     {label: 'User', value: 'User'},     {label: 'System', value: 'System'},   ]}>

echo 'source <(sc completion bash)' >>~/.bash_profile
sudo mkdir -p /etc/bash_completion.d
sudo ln -s /opt/sauce-connect/completions/sc.bash /etc/bash_completion.d/sc

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