Skip to content

Instantly share code, notes, and snippets.

@abersheeran
Last active July 31, 2022 08:47
Show Gist options
  • Save abersheeran/7602ba73f5ece52890f9f6fce0dd0855 to your computer and use it in GitHub Desktop.
Save abersheeran/7602ba73f5ece52890f9f6fce0dd0855 to your computer and use it in GitHub Desktop.
[Unit]
Description=Visual Studio Code Server
After=network.target
[Service]
Type=exec
Restart=always
User=%i
ExecStart=dbus-run-session -- sh -c "(echo 'somecredstorepass' | gnome-keyring-daemon --unlock) && /usr/local/bin/code-server serve-local --accept-server-license-terms --connection-token=somecredstorepass"
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment