Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added code-server #137

Open
wants to merge 7 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/apps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ Gimp, Office, debian, false, true, false, 1
Inkscape, Office, debian, false, true, false, 1
Git, Development, debian, false, true, false, 1
Idle, Development, debian, false, true, false, 1
Code-Server, Development, debian, false, true, false, 1
Binary file added apps/code-server/code-server.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions apps/code-server/code-server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#! /bin/bash

SCRIPT_PATH=$(realpath ${BASH_SOURCE})
sudo rm -f $SCRIPT_PATH

if [ ! -f /usr/bin/code-server ]; then
sudo apt update
sudo apt install -y ca-certificates
sudo curl -fsSL https://code-server.dev/install.sh | sh
fi

if [[ $? != 0 ]]; then
read -rsp $'An error occurred installing packages, please try again and if it persists provide this log to the developer.\nPress any key to close...\n' -n1 key
exit
fi

code-server

exit
1 change: 1 addition & 0 deletions apps/code-server/code-server.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Run VS Code on any machine anywhere and access it in the browser.