Coder
Coder 使用源代码控制的 Dockerfile 和工作区模板处理新的一致性和一致性工作区的编排。使开发人员和数据科学家能够启动正常工作的自助服务工作区。
硬件要求 | |
---|---|
内存 | 1 GB |
中央处理器内核 | 2 个 |
系统 | 任何 Linux 发行版,官方文档假定您使用的是由 Google Cloud 托管的 Debian。 |
使用window linux 子系统的方法见文末尾链接 |
官方安装与使用命令
curl -fsSL https://code-server.dev/install.sh | sh
code-server --port 8086 --host 0.0.0.0 --auth none
下载安装
新版本
cd /mnt/c # 进入c盘,使用的是win10的linux子系统,相关参考见文章底部
mkdir ubuntu
arch # 查看cpu类型如果x86_64 则使用amd版本的
wget -c https://github.com/coder/code-server/releases/download/v4.4.0/code-server_4.4.0_amd64.deb
sudo dpkg -i code-server_4.4.0_amd64.deb
## 基础的配置方法
su # 登录root
cd ~/.config/code-server
修改其config.yaml
## 配置方法一
sudo code-server --port **** $password ******
## 配置方法二
touch config.yaml # 根据sudo code-server -h 的提示进行操作
vim config.yaml
port: ****
password :******
esc :qw # 退出保存
sudo code-server --config config.yaml
- 最后根据提示进行访问即可
新版本的目录结构
-
也可以去https://github.com/coder/code-server/releases下载release文件。
-
bin 文件夹中包含一个code-server的二进制文件
-
code-server-4.4.0-linux-amd64.tar.gz:
老版本
-
https://github.com/coder/code-server/releases/download/v4.0.0/code-server-4.0.0-linux-amd64.tar.gz
-
到code-server 目录下 创建start.sh
touch start.sh
vim start.sh
sudo ./code-server --port **** --password ******
esc :qw # 退出保存
bash start.sh
- 然后访问127.0.0.1:***即可
参考
[https://devblogs.microsoft.com/python/python-in-visual-studio-code-april-2022-release/](https://devblogs.microsoft.com/python/python-in-visual-studio-code-april-2022-release/)
[微软拆分 VS Code 中 Python 扩展,部分功能可独立下载](https://mp.weixin.qq.com/s/ZBTSiTFhTGdIoOHth1rc3Q)
[安装window10的linux子系统](https://blog.csdn.net/zhangdongren/article/details/82663977)
[Windows下linux子系统安装 新版本的安装方法](https://blog.csdn.net/xcyja/article/details/115314368)
其他
[How to install Code-Server | Server Side VS Code!](https://www.youtube.com/watch?v=IdrwbToYmrQ)
# 1.Gitlab
[gitlab](http://gitlab.com/)
[gitlab清华大学开源软件镜像站](https://mirrors.tuna.tsinghua.edu.cn/help/gitlab-ce/)
curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run
对于任何无法识别的 Linux 操作系统,代码服务器会将最新的独立版本安装到 中。~/.local
确保添加到要运行的代码服务器。~/.local/bin$PATH
您的环境必须启用 WebSockets,因为代码服务器使用 WebSockets 在浏览器和服务器之间进行通信。
[VS Code入门教程2020 #24 介绍launch.json-配置文件](https://www.bilibili.com/video/BV1Jf4y1S7Bw?)
[launch.json中属性的含义](https://blog.csdn.net/qq_53653262/article/details/120876995)