Setup Visual Studio Code Server - spaceshiptrip/raspberrypi GitHub Wiki

  1. Main repo with code-server: https://github.com/cdr/code-server
  2. First thing to do is to make sure you install yarn:
    curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
    sudo apt update && sudo apt install yarn
    
    1. Note: Ubuntu 17.04 comes with cmdtest installed by default. If you’re getting errors from installing yarn, you may want to run sudo apt remove cmdtest first. Refer to https://github.com/yarnpkg/yarn/issues/2821 for more information.
  3. Make sure to install the latest version of node before installation. See https://github.com/spaceshiptrip/raspberrypi/wiki/Setup-Nodejs-and-npm
  4. Download and install code-server: curl -fsSL https://code-server.dev/install.sh | sh
    • WARNING: As of this writing, code-server has to build for each system. It takes a really long time.
  5. Add the output to your path --> /home/pi/.yarn/bin
  6. Start code-server: code-server
  7. Modify the generated yaml config file. Put the static IP if you have it otherwise it will go to localhost. You may need to change the port since the default of 8080 is the development HTTP port. You can also configure the password. Up to you. /home/pi/.local/share/code-server --> /home/pi/.config/code-server/config.yaml