# Installing Google Chrome Remote Desktop on Slackware Linux (2024-08-02)

**URL:** <https://pluralist.net/t/installing-google-chrome-remote-desktop-on-slackware-linux-2024-08-02/183>\
**Category:** breadcrumbs\
**Created:** [August 2, 2024, 7:00am UTC](https://pluralist.net/t/installing-google-chrome-remote-desktop-on-slackware-linux-2024-08-02/183 "2024-08-02T07:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![delyan](https://pluralist.net/user_avatar/pluralist.net/delyan/32/245_2.png) [@delyan](https://pluralist.net/u/delyan)\
**Post date:** [August 2, 2024, 7:00am UTC](https://pluralist.net/t/installing-google-chrome-remote-desktop-on-slackware-linux-2024-08-02/183/1 "2024-08-02T07:00:00Z")

</div>

It is fairly trivial to install Google Chrome Remote Desktop on Slackware Linux. It does take a few steps however. Here they are:

## Install Chrome Remote Desktop on Slackware

> Read: [Set up Chrome Remote Desktop for Linux on Compute Engine &nbsp;|&nbsp; Cloud Architecture Center &nbsp;|&nbsp; Google Cloud](https://cloud.google.com/architecture/chrome-desktop-remote-on-compute-engine)

### 0. Prerequisite - install `psutil` Python package:

```bash
sudo pip3 install psutil

```

### Install Google Chrome Browser

```bash
# 1. Download the Debian package
curl -L -o google-chrome-stable_current_amd64.deb \
     https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

# 2. Convert Debian package to Slackware TXZ
deb2tgz google-chrome-stable_current_amd64.deb

# 3. Install Slackware package
sudo installpkg google-chrome-stable_current_amd64.txz

```

### Install Chrome Remote Desktop

```bash
# 1. Download Debian package
curl -L -o chrome-remote-desktop_current_amd64.deb \
     https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb

# 2. Convert to Slackware TXZ
deb2tgz chrome-remote-desktop_current_amd64.deb

# 3. Install Slackware package
sudo installpkg chrome-remote-desktop_current_amd64.txz

```

### setuid root

```bash
sudo chmod 4755 /opt/google/chrome-remote-desktop/user-session

```

# Authorize the new machine with Google

Go here: [https://remotedesktop.google.com/headless](https://remotedesktop.google.com/headless) and start the process

# Start Remote Desktop

> `${RDCODE}` below is what you’ll get from the headless setup in the previous step

```bash
## !!IMPORTANT: The space after 'DISPLAY= ' is important.
## this executes the start-host command
DISPLAY= /opt/google/chrome-remote-desktop/start-host \
    --code="4/${RDCODE}" \
    --redirect-url="https://remotedesktop.google.com/_/oauthredirect" \
    --name=$(hostname)

```

* * *

## Here is the entire bash script:

```bash
#!/bin/bash

# This installs Chrome Remote Desktop on Slackware
# Source: https://cloud.google.com/architecture/chrome-desktop-remote-on-compute-engine

## This is required -- and the SUDO is a must
sudo pip3 install psutil

curl -L -o google-chrome-stable_current_amd64.deb \
     https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
deb2tgz google-chrome-stable_current_amd64.deb
sudo installpkg google-chrome-stable_current_amd64.txz

curl -L -o chrome-remote-desktop_current_amd64.deb \
     https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
deb2tgz chrome-remote-desktop_current_amd64.deb
sudo installpkg chrome-remote-desktop_current_amd64.txz

sudo chmod 4755 /opt/google/chrome-remote-desktop/user-session

echo "Go here: https://remotedesktop.google.com/headless and start the process"

read -n 1 -s -r -p "Press any key to continue..."

read -p "Enter the some string: " RDCODE

## !!IMPORTANT: The space after 'DISPLAY= ' is important.
## this executes the start-host command
DISPLAY= /opt/google/chrome-remote-desktop/start-host \
    --code="4/${RDCODE}" \
    --redirect-url="https://remotedesktop.google.com/_/oauthredirect" \
    --name=$(hostname)

```
