Loading... ## 前言 近期,搞了个远程开发的项目`Visual Studio Code Remote Development`就是将vscode客户端搬上云端, 让你可以在容器中、远程设备上、甚至是 Windows 的 Linux 子系统(WSL)上使用具有完整功能的开发环境 ### 官方说明 > 在您部署到的同一操作系统上进行开发,或使用更大或更专业的硬件。 将开发环境沙盒化,以免影响本地计算机配置。 使新贡献者易于上手,并使每个人都保持一致的环境。 使用本地操作系统上不可用的工具或运行时,或管理它们的多个版本。 使用Windows Linux子系统开发Linux部署的应用程序。 从多台机器或位置访问现有的开发环境。 调试在其他位置(例如客户站点或云中)运行的应用程序。  ## 如何安装 #### 系统要求 本地:还必须安装受支持的OpenSSH兼容SSH客户端。 #### 远程SSH主机:在以下位置运行的SSH服务器: x86_64 Debian 8以上版本,Ubuntu 16.04以上版本,CentOS / RHEL 7以上版本。 ARMv7l(AArch32)Raspbian Stretch / 9 +(32位)。 ARMv8l(AArch64)Ubuntu 18.04+(64位)。 #### 实验性SSH主机支持(仅VS Code Insiders): Windows 10 / Server 2016/2019(1803+),使用官方的OpenSSH Server并remote.SSH.useLocalServer 在VS Code设置中启用。 ## Ubuntu 18.04 首先先在github下载软件包[下载地址](https://github.com/cdr/code-server/releases "下载地址") wget https://github.com/cdr/code-server/releases/download/2.1698/code-server2.1698-vsc1.41.1-linux-x86_64.tar.gz tar xvzf code-server2.1698-vsc1.41.1-linux-x86_64.tar.gz cd code-server2.1698-vsc1.41.1-linux-x86_64 # 设置密码 export PASSWORD=password ./code-server --auth password ### 进程守护 sudo nano /etc/systemd/system/code-server.service 添加下面的配置: [Unit] Description=Code Server IDE After=network.target [Service] Type=simple User=root Restart=on-failure RestartSec=10 Environment="PASSWORD=password" ExecStart=/path/to/code-server --auth password StandardOutput=file:/var/log/code-server-output.log StandardError=file:/var/log/code-server-error.log [Install] WantedBy=multi-user.target ##启动服务 systemctl start code-server Last modification:March 2, 2020 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 If you think my article is useful to you, please feel free to appreciate
6 comments
哈哈哈
%%%tql
OIer吗QAQ
我没有(。•ˇ‸ˇ•。)
真的看不出来.一个14岁的你玩的这么溜了, 回想自己当年的十四年,什么都不会,!!!
少年..加油!!!期待十年之后,这个博客 还有我的印迹!!
o(////▽////)q 没有没有,相比之下我也没有多厉害啦