Missing remote_desktop_start.sh

Hi

I’m following through the Remote Desktop setup here as I want to the the ROS2 tutorials with the ROSbot XL.

However, the scripts remote_desktop_start.sh and remote_desktop_stop.sh are missing from the system.

Regards,
Dhong

Hi @Dhon_G,
please send me an output of:

echo $HUSARION_OS_VERSION
echo $SBC_NAME

Best regards,
Jakub Delicat

Hi @JakubDelicat

Here’s the output. It seems that HUSARION OS version is empty. Is this the correct variable name?

husarion@my-ROSbotXL:~$ 
husarion@my-ROSbotXL:~$ echo $HUSARION_OS_VERSION

husarion@my-ROSbotXL:~$ 
husarion@my-ROSbotXL:~$ 
husarion@my-ROSbotXL:~$ echo $SBC_NAME
AMD64
husarion@my-ROSbotXL:~$ 
husarion@my-ROSbotXL:~$ 
husarion@my-ROSbotXL:~$

Hello,

The lack of these variables suggests that you either have a very old operating system, in which case installation is recommended.

The second option is to equip ROSbot XL with Jetson, in which case the NVIDIA license prevents us from making changes to Jetsons. In this case, it will be necessary to manually add the files:

  • compose.vnc.yaml
  • remote_desktop_start.sh
  • remote_desktop_stop.sh

However, such a scenario has probably not been tested by us, so in case of further complications it may be necessary to either develop a solution for Jetsons yourself. (Access a remote desktop | Ubuntu).

compose.vnc.yaml

services:
  vnc-client:
    image: husarion/webvnc-client
    ports:
      - ${HUSARNET_IPV6}:8080:8080

  websockify:
    image: husarion/websockify
    ports:
      - ${HUSARNET_IPV6}:5902:5902
    environment:
      - VNC_SERVER_HOST=vnc-server
      - VNC_SERVER_PORT=5901
      - WEBSOCKIFY_PORT=5902

  vnc-server:
    image: husarion/webvnc-server
    volumes:
      - /tmp/.X11-unix:/tmp/.X11-unix:rw
    ipc: host
    environment:
      - DISPLAY
      - PASSWORD=${VNC_PASSWORD:-husarion}
      - VNC_SERVER_PORT=5901

remote_desktop_start.sh

#!/bin/bash

if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root" 
   exit 1
fi

# Define color codes
BLUE='\033[0;34m'
BOLD='\033[1m'
NC='\033[0m' # No Color

URL_START="\e]8;;"
URL_END="\e]8;;\a"
TEXT_RESET="\a"
URL_GUIDE="https://husarnet.com/docs/#husarnet-client"

export HUSARNET_IPV6=$(echo "["$(curl -s 127.0.0.1:16216/api/status | jq -r '.result.local_ip')"]")

enable-dummy.sh

# Parse command line arguments
if [[ $# -lt 1  ]]; then
   echo -e "No password set, using default: ${BOLD}husarion${NC}"
else
   export VNC_PASSWORD=$1
   echo -e "Password: ${BOLD}${VNC_PASSWORD}${NC}"
fi

docker compose -f /home/husarion/compose.vnc.yaml up -d

echo -e "\r\nVisit ${BLUE}http://${HUSARNET_IPV6}:8080${NC} to access remote desktop."
echo -e "Ensure your computer is in ${BOLD}the same Husarnet network${NC} (${BLUE}${URL_START}${URL_GUIDE}${TEXT_RESET}how to connect?${URL_END}${NC}) ."

remote_desktop_stop.sh

#!/bin/bash

if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root" 
   exit 1
fi

export HUSARNET_IPV6=$(echo "["$(curl -s 127.0.0.1:16216/api/status | jq -r '.result.local_ip')"]")

docker compose -f /home/husarion/compose.vnc.yaml down
disable-dummy.sh