Code Server Is An AWESOME Replacement for VS Code!

Поделиться
HTML-код
  • Опубликовано: 7 авг 2024
  • Code Server centralises VS Code! No longer do you need to install it on each of your machines, simply access it through your web browser! It's the perfect companion for homelabbing and coding.
    Code Server Docker Compose:
    github.com/JamesTurland/JimsG...
    Recommended Hardware: github.com/JamesTurland/JimsG...
    Discord: / discord
    Twitter: / jimsgarage_
    Reddit: / jims-garage
    GitHub: github.com/JamesTurland/JimsG...
    00:00 - Code Server vs CS Code
    02:28 - Code Server Overview
    02:56 - Docker Compose Overview
    04:48 - Docker Deployment
    06:20 - Code Server GUI & Configuration
    07:21 - Connect to GitHub
    09:31 - Add Username and Email
    10:30 - Commit, Push, Pull from GitHub
    12:30 - Outro
  • НаукаНаука

Комментарии • 63

  • @olsenlid
    @olsenlid 11 месяцев назад +5

    Great to see your channel growing at a steady pace. Love your vids :)

    • @Jims-Garage
      @Jims-Garage  11 месяцев назад

      Thanks for the support, glad you like them!

  • @shootinputin6332
    @shootinputin6332 2 месяца назад +1

    I've had a github page for years but never really did anything with it. That just changed with this video. Thanks, Jim!

  • @drakeomar1290
    @drakeomar1290 Месяц назад +1

    this video changed my entire dev env thank you. this solves so many of my portability and consistency issues

  • @noviankristianto1060
    @noviankristianto1060 3 месяца назад +1

    The way you explain the content is really amazing. Enjoy watching your content. Thanks for the video🎉

  • @orlando3650
    @orlando3650 11 месяцев назад +1

    You’re doing a great job - Keep it on 🎉

    • @Jims-Garage
      @Jims-Garage  11 месяцев назад

      Thanks 👍 have a great weekend

  • @MikeKranidis
    @MikeKranidis 3 месяца назад +1

    Another one useful and well documented video, thanks.

  • @dmbrv
    @dmbrv 11 месяцев назад +2

    Awesome video. Thanks.

  • @mesharetelohim
    @mesharetelohim 11 месяцев назад

    Hey Jim great job with the Video. With regards to Code server you can set it up with your homelab Yaml files and create folders and delete files just like you would when you access the folder. That way you don't really need a separate file manager or so when accessing your docker directory and it works as a one stop place for everything. Cheers

    • @Jims-Garage
      @Jims-Garage  11 месяцев назад +1

      Certainly, if it's a bind mount then you have access to the file structure. Any changes are reflected in the workspace (might just need to be careful of permissions).

    • @mesharetelohim
      @mesharetelohim 11 месяцев назад +1

      ​@@Jims-Garageyea I have a question on that. If my code server instance is limited to my homelab is there any issues giving it a root access?

    • @Jims-Garage
      @Jims-Garage  11 месяцев назад +1

      @@mesharetelohim it's always good practice not to, but it'll be fine if it's just internally available.

  • @literasikeamanandigital4771
    @literasikeamanandigital4771 5 месяцев назад

    can we run php artisan serve (Laravel PHP) in terminal (which normally run on localhost) ?

  • @ENT_PRESTIGIOUS
    @ENT_PRESTIGIOUS 6 месяцев назад

    how do i make it login with my microsoft account?

  • @popalex
    @popalex 6 месяцев назад +1

    Great video ! Can you give more details about the reverse proxy part?

    • @Jims-Garage
      @Jims-Garage  6 месяцев назад

      Take a look at my Traefik video, that should outline how it works and why it's useful to have.

  • @TheWild_
    @TheWild_ 10 месяцев назад +2

    One problem I have with code serve on dokcer is that whenever I'm working with HTML files and I want to use the Live Server extension to see my changes i real time I cant, because It's through docker uses a diferrent port. Any idea how I can come around that?

    • @Jims-Garage
      @Jims-Garage  9 месяцев назад

      Should be possible if you follow these instructions: github.com/coder/code-server/discussions/4963

  • @JonathanPeel
    @JonathanPeel 5 месяцев назад +1

    This is awesome.
    Do you have videos that explain how to set up the proxy you are using?

    • @Jims-Garage
      @Jims-Garage  5 месяцев назад

      Yes, check out my Traefik video earlier in the series

    • @JonathanPeel
      @JonathanPeel 5 месяцев назад

      @@Jims-GarageThank you, I did find it, basically I started with this video, and that led me to "Oooo, what is Traefik", and I found that one (I have since replaced Nginx on one of our small demo servers with Traefik, the labels makes configuration a whole lot simpler"...
      That video led me to "ooo what is Portainer", and I got that installed, although to be honest I will probably only use it to look at logs.
      I am now back at getting Code-Server to work, it is running, but I want npm and dotnet.
      They, I guess would need to be installed inside the container.

  • @RoySalisbury
    @RoySalisbury 5 месяцев назад +1

    Can you use the hosted coder server instance to then connect to a remote VS code instance via SSH (like you can do in VS Code)?

    • @Jims-Garage
      @Jims-Garage  5 месяцев назад

      It's possible but it's not pretty to do it.

  • @Robertjaymercer
    @Robertjaymercer 11 месяцев назад +1

    Thank again for your video sir. Quick question if i may, i previously installed it on one of my server (ubuntu server 22.04 with docker and portainer) but when i tried to "compose up" a file it would tell me that docker wasn t installed... never managed to fix this, would you have an input by any chance?

    • @Jims-Garage
      @Jims-Garage  11 месяцев назад

      I assume you have installed Docker and Docker Compose?

    • @Robertjaymercer
      @Robertjaymercer 11 месяцев назад +1

      @@Jims-Garage oh yes definitely. I can compose and deploy containers on the servers with my vs code wish ssh (from my windows computer) or directly on the server on ssh, but when trying to deploy a container via codeserver installed on a container it give me that message on the terminal "bin/bash... docker is not installed"

    • @Jims-Garage
      @Jims-Garage  11 месяцев назад

      @@Robertjaymercer I see what you mean, sorry I misunderstood. I believe you can do it following these instructions: coder.com/docs/code-server/latest/FAQ#can-i-use-docker-in-a-code-server-container

    • @Robertjaymercer
      @Robertjaymercer 11 месяцев назад +1

      @@Jims-Garage thank you for your time sir, will check it out!

  • @basdfgwe
    @basdfgwe 9 месяцев назад +1

    Yeah its good to edit text files using the stuff from vscode. But not sure that this is the replacement for vscode application. It has most of the things from a development perspective but it doesn't have the development environment. I'm assuming in order to get this to work in the way that I'm thinking is that you will need to run the code server in each of your development enviroments. So if you have a server for node related work, then you will need to have docker and this image running to take advantage of running your project. Which probably then begs the question - why not use vscode desktop app (single install) and remote-ssh into your development environments/servers ?

    • @i_accept_all_cookies
      @i_accept_all_cookies 7 месяцев назад

      They also have a project, Coder, that "enables organizations to set up development environments in the cloud. Environments are defined with Terraform, connected through a secure high-speed Wireguard tunnel, and are automatically shut down when not in use to save on costs."

  • @kenny45532
    @kenny45532 9 месяцев назад

    Will this support remote-ssh? I do a lot of development on different machines and remote-ssh comes in handy. If its supported, how does one make it work?

    • @rafaelg8238
      @rafaelg8238 9 дней назад

      do you found the answer?

  • @Glatze603
    @Glatze603 10 месяцев назад +2

    Basically cool, but without "remote ssh" and "remote explorer" it´s not really the same. I have two ssh jumpserver that are only allowed to access my remote machines and I would like to get it integrated. Maybe in combination with the docker-based openssh-server.

    • @Jims-Garage
      @Jims-Garage  10 месяцев назад +1

      True, I believe you can do the following, however:
      "You can't use Remote SSH on code-server since code-server itself is (kinda) a Remote SSH session. Instead, if you gain access to the system, you can:
      Get a DE like Xfce
      Get VNC server/Xrdp and use it to connect to your deployment's GUI.
      Then you can install VS Code, get the Remote SSH extension and use it."

  • @Evil6_9
    @Evil6_9 10 месяцев назад +1

    Can you provide any solutions for extensions ? There are multiple extensions that i want to use, but i can't use them 😔

    • @Jims-Garage
      @Jims-Garage  10 месяцев назад

      What's the issue?

    • @Evil6_9
      @Evil6_9 10 месяцев назад +1

      We can't use live server , live preview and many others
      It shows: *The 'Language PL/SQL' extension is not available in code-server for Web.*
      Here i was trying pl/sql extension

    • @Jims-Garage
      @Jims-Garage  10 месяцев назад

      @@Evil6_9 I haven't actually used that extension before, I'll take a look.

  • @funfunfun18
    @funfunfun18 9 месяцев назад +1

    Hey Jim. I’m a Rails developer. I’m keen to set up Code Server and do light development through my iPad. I need to run my test suite in a Docker container via the terminal - any suggestions on an optimal configuration for this please? I don’t mind spending a bit of money. The hosted solutions I’ve checked out so far don’t seem to allow the building of containers

    • @Jims-Garage
      @Jims-Garage  9 месяцев назад

      Hey, welcome. Just so I understand, are you looking to deploy the container from the code-server container via the GUI terminal?
      If so, it's possible but it's not an elegant solution. Here are some options reddit.com/r/docker/s/C0RiZFJehy

  • @muratcosar3873
    @muratcosar3873 Месяц назад

    Has anyone used it with Alpine without any problems?

  • @julesbois2122
    @julesbois2122 3 месяца назад

    Where should I put my own code on a Linux machine? It should be somewhere in ~/?
    What is the "best practice" in this matter?

    • @Jims-Garage
      @Jims-Garage  3 месяца назад

      There's no single answer as it depends on what you're doing. For instance, mine is on my NAS for redundancy and I have password files access controlled with ACLs

    • @julesbois2122
      @julesbois2122 3 месяца назад

      @@Jims-Garage Oh thanks. But my question is more primitive. I'm just getting started with Linux. I installed nginx and VS code-server on a separate machine that I have at home. I will work from someone else's device, not from my home. What directory should my scripts (code), my current work, usually be in? I understand that I can place my files anywhere. But still, what do people do?

    • @Jims-Garage
      @Jims-Garage  3 месяца назад

      @@julesbois2122 most likely the home directory but it doesn't matter

  • @barbeque701
    @barbeque701 20 дней назад +1

    hello! i am an incoming computer science student and i am planning to buy a tablet. can my tablet be a good portable 2nd option to code on using vs code? i have seen stuff on running vscode on tablets but i am far too clueless on the world of programming to understand what is going on. so for those who know more on this topic, is it possible for me to use my tablet as a portable 2nd option to code using vscode?

    • @Jims-Garage
      @Jims-Garage  20 дней назад

      @@barbeque701 you could use this product in the video. However a true ide is probably better. What kind of tablet are you thinking? A surface pro is a tablet but also a full blown pc.

    • @barbeque701
      @barbeque701 20 дней назад +1

      @@Jims-Garage just either an apple or android one since the surface pro is too expensive for me

    • @Jims-Garage
      @Jims-Garage  20 дней назад

      @@barbeque701 bear in mind you'll need a "server" machine running the container, but accessing it with a browser on a tablet should work.

    • @GamingOzzz
      @GamingOzzz 8 дней назад

      Just get the new Apple ipad pro with m4 processor, it has xcode or get Samsung Galaxy S9 Ultra which has Dex support

  • @yesyes9698
    @yesyes9698 6 месяцев назад

    Couldn’t get to run c# or python or nothing at all. Just an online notepad basically.

  • @kamleshpatel9152
    @kamleshpatel9152 Месяц назад

    @Jims-Garage I can't find the Remote SSH extension in Code-server. Do you recommend any alternative extension for SSH?

  • @user-pt3wl3qk4e
    @user-pt3wl3qk4e 5 месяцев назад

    Any way to get Pylance working so Python syntax highlighting is easier to read? Or any subsitute?

  • @cbbcbb6803
    @cbbcbb6803 12 дней назад +1

    It it installed locally?
    If I can not run it locally, I do not want it. I am not saying that I must run it locally. I insist that locally or remotely should be my choice.

    • @Jims-Garage
      @Jims-Garage  12 дней назад

      @@cbbcbb6803 on the local network, on my docker server.