Run Visual Studio Code in Cloud using Code Server and Access it from anywhere

Breaking News! Ubuntu 20.10 Groovy Gorilla has been released.

Ubuntu 20.10 Groovy Gorilla is "a short-term release". It comes with 9 months of security updates, significant...

How to Create Alias in Outlook?

Email alias is an email address which which we can use in addition to our primary email...

Top 5 Great Features of Pop OS Linux

Pop OS is a Linux distribution developed by an American computer manufacturer System76. Pop OS Linux has...
Ankur Gupta
Ankur Guptahttps://antarjaal.in
Web developer by profession, Over 10 years experience of building websites and web applications. Currently working on Epaper CMS Cloud (Software As Service based product). Special interest in computer and technology. After writing on the blogger platform for years, started his own tech portal Antarjaal.In.

Code Server is a free source project through which we can run Visual Studio Code on the cloud as a server and then access it from our browser. Some of the advantages of keeping your development environment on the cloud are that your code is safe even if there is an accident happens with your laptop or desktop. Another advantage is if our code is so large and complex that it requires very powerful hardware to compile then in such a situation if we compile our code in the cloud, it can be done very easily because in the cloud we can increase the CPU and RAM as much as we wish.

READ  Create Linux Desktop Apps using PHP Desktop

You can download the code server from here:

https://github.com/cdr/code-server/releases

At the time of writing this article, Code Server is available for Linux and Mac. You download the tar file containing Linux. And extract it to your server. And then change into its directory.

 wget https://github.com/cdr/code-server/releases/download/3.0.0/code-server-3.0.0-linux-x86_64.tar.gz 
 tar xvzf code-server-3.0.0-linux-x86_64.tar.gz 
 cd code-server-3.0.0-linux-x86_64 

Now we will enter the following command to run the code server

 ./code-server 

This will show us an address and a password. Open that address in the browser. For example, here that address is http://127.0.0.1:8080

READ  How to edit 'etc/hosts' file in non-rooted Android phone?

If you open it in the browser, then it will ask for the password. 

code Server Visual Studio Code

Enter the password and the Visual Studio Code will open in your web browser.

Code Server Visual Studio Code

You can also configure Code Server as per your requirements. To see the list of all its options, enter the following command:

 ./code-server --help 

If you want to use it without a password, enter

 ./code-server --auth = none 

If you want to change the hostname and port, enter

 ./code-server --host = hostname --port = 9090 

Running Code Server in Windows

Although Code Server is not available for Windows, we can also run Code Server in Windows through Windows Subsystem for Linux. The procedure and commands will remain the same as we have mentioned above.

code server in windows

See more: What is the file timestamp in Linux?

Accessing the Code Server via SSHCode

SSHcode is a small program that opens the code server interfaces in your computer through the ssh protocol. You can download its binary from the following link:

READ  4 Must Have Plugins to Debug the Wordpress Performance Issues
READ  How to edit 'etc/hosts' file in non-rooted Android phone?

https://github.com/cdr/sshcode/releases

Enter the following command to download and run sshcode

wget https://github.com/cdr/sshcode/releases/download/v0.10.0/sshcode-linux-amd64.tar.gz 
 tar xvzf sshcode-linux-amd64.tar.gz 
 ./sshcode username @ remoteaddress 

SSHcode requires that both ssh server and code server should be running in your cloud.

Code Server Droplet in Digital Ocean

Digital Ocean also provides pre-configured droplets of code server. If you want to use the DO droplet visit the following link: https://marketplace.digitalocean.com/apps/code-server

4 COMMENTS

Comments are closed.

Breaking News! Ubuntu 20.10 Groovy Gorilla has been released.

Ubuntu 20.10 Groovy Gorilla is "a short-term release". It comes with 9 months of security updates, significant...

How to Create Alias in Outlook?

Email alias is an email address which which we can use in addition to our primary email address under our existing email...

Top 5 Great Features of Pop OS Linux

Pop OS is a Linux distribution developed by an American computer manufacturer System76. Pop OS Linux has all the goodness of Ubuntu....

Download Microsoft Edge Preview for Linux

And eventually Microsoft released its Edge browser for the Linux operating system. This is currently a preview release. But with this release,...

Watch “Revolution OS” Movie Online

Revolution OS is a documentary that is about the history of GNU, Linux and open source and free software movements. It includes...

More Articles Like This

READ  Now Install Windows Calculator in Linux. Uno Platform opens doors to new possibilities.