vscode远程连接openEuler虚拟机

vscode远程连接openEuler虚拟机

(openEuler的界面实在太丑了,做实验眼睛都要瞎掉,遂使用vscode远程连接)

前置:

  • 已经在VMware中安装好OpenEuler系统
  • 本地vscode安装好remote-ssh扩展

本地./ssh/config配置

Host openEuler

 HostName [虚拟机IP地址]

 User root

报错:未找到tar命令

(openEuler系统中未装tar命令,所以需要自行安装)

配置yum源

参考:开发环境准备 (openeuler.org)

cd /etc/yum.repos.d
vi *.repo

使用vim编辑.repo文件

#新增如下:
[OS]
name=OS
baseurl=https://repo.huaweicloud.com/openeuler/openEuler-20.03-LTS/OS/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.huaweicloud.com/openeuler/openEuler-20.03-LTS/OS/$basearch/RPM-GPG-KEY-openEuler
[everything]
name=everything
baseurl=https://repo.huaweicloud.com/openeuler/openEuler-20.03-LTS/everything/$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.huaweicloud.com/openeuler/openEuler-20.03-LTS/everything/$basearch/RPM-GPG-KEY-openEuler

可以ping一下baidu.com,确保虚拟机正常联网

可以在VMware中设置:虚拟机-设置-网络适配器-NAT模式

安装tar命令

yum install tar

再次在vscode中尝试连接即可。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值