Linux

Install Forwarder on Linux #

Debian/Ubuntu #

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

Install package #

```bash curl -L -o forwarder.deb https://github.com/saucelabs/forwarder/releases/download/v1.4.0/forwarder_1.4.0.linux_arm64.deb sudo dpkg -i forwarder.deb ```
```bash curl -L -o forwarder.deb https://github.com/saucelabs/forwarder/releases/download/v1.4.0/forwarder_1.4.0.linux_amd64.deb sudo dpkg -i forwarder.deb ```

Edit config file #

sudo vim /etc/forwarder/forwarder.yaml

Enable and start Forwarder service #

sudo systemctl enable forwarder
sudo systemctl start forwarder

Check Forwarder status #

sudo systemctl status forwarder

RedHat/CentOS/Fedora #

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

Install package #

```bash sudo rpm -i https://github.com/saucelabs/forwarder/releases/download/v1.4.0/forwarder-1.4.0_linux.aarch64.rpm ```
```bash sudo rpm -i https://github.com/saucelabs/forwarder/releases/download/v1.4.0/forwarder-1.4.0_linux.x86_64.rpm ```

Edit config file #

sudo vim /etc/forwarder/forwarder.yaml

Enable and start Forwarder service #

sudo systemctl enable forwarder
sudo systemctl start forwarder

Check Forwarder status #

sudo systemctl status forwarder

Generic #

Forwarder provides .tar.gz package with a statically linked binary that can be used on any modern Linux distribution.

Unpack the tarball #

```bash curl -L -o forwarder.tar.gz https://github.com/saucelabs/forwarder/releases/download/v1.4.0/forwarder-1.4.0_linux.aarch64.tar.gz sudo mkdir -p /opt/forwarder sudo tar -C /opt/forwarder -xzf forwarder.tar.gz ```
```bash curl -L -o forwarder.tar.gz https://github.com/saucelabs/forwarder/releases/download/v1.4.0/forwarder-1.4.0_linux.x86_64.tar.gz sudo mkdir -p /opt/forwarder sudo tar -C /opt/forwarder -xzf forwarder.tar.gz ```
sudo ln -s /opt/forwarder/forwarder /usr/local/bin/forwarder

Add bash completion #

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

Edit config file #

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

vim /opt/forwarder/forwarder.yaml

Start Forwarder #

forwarder run --config-file /opt/forwarder/forwarder.yaml

© 2024 Sauce Labs Inc.