Skip to content

Instantly share code, notes, and snippets.

@Pritesh-Patel
Last active April 14, 2019 05:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pritesh-Patel/8ef21a1fd04267f47089bc93656cde7f to your computer and use it in GitHub Desktop.
Save Pritesh-Patel/8ef21a1fd04267f47089bc93656cde7f to your computer and use it in GitHub Desktop.
#!/bin/sh
wget https://github.com/codercom/code-server/releases/download/1.696-vsc1.33.0/code-server1.696-vsc1.33.0-linux-x64.tar.gz
tar -xvzf code-server1.696-vsc1.33.0-linux-x64.tar.gz
mkdir -p /home/$USER/.local/bin
touch /home/$USER/.local/bin/start_ide.sh
echo '#!/bin/sh' >> /home/$USER/.local/bin/start_ide.sh
echo '/home/prit/code-server1.696-vsc1.33.0-linux-x64/code-server --password=local' >> /home/$USER/.local/bin/start_ide.sh
@Pritesh-Patel
Copy link
Author

Pritesh-Patel commented Apr 14, 2019

Create a task in windows task scheduler:
Program/Script: C:\Windows\System32\cmd.exe
Arguments: /c start /min "IDE" C:\Windows\System32\bash.exe -c 'bash --login -ic /home/$USER/.local/bin/start_ide.sh'

In your browser you can now access localhost:8443 the password is: local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment