1 | git config user.name terwer |
1 | git commit --amend --reset-author --no-edit |
1 | npm install -g pnpm |
1 | wget -qO- https://get.pnpm.io/install.sh | sh - |
1 | ➜ ~ wget -qO- https://get.pnpm.io/install.sh | sh - |
方法如下:
1 | ./NextSSH-1.3.0.AppImage --appimage-extract |
:::warning
目前vscode ssh链接openEuler始终连不上。openEuler是安装在Parallels Desktop里面的。
暂时放弃。
:::
1 | systemctl status firewalld |
1 | sudo service firewalld stop |
VSCode Remote SSH
需要在VSCode中安装插件 Remote SSH
或者直接安装 Remote Development
,这样就可以在VSCode中使用SSH了。
修改openEuler虚拟机内部的 /etc/ssh/sshd_config
,启用如下设置:
1 | AllowAgentForwarding yes |
刷新sshd服务状态:
1 | sudo systemctl restart sshd.service |
Parallels Desktop安装openEuler及初始化配置
Docker desktop for mac目前做的太差,除了性能低下,还有一些无法解决的问题,比如网络绑定,而这些在原生Linux里面都不存在。所以还是使用Linux来运行docker容器体验最好。
下载 openEuler 22.03 LTS。
openEuler-22.03-LTS-x86_64-dvd.iso
选择 最小安装 。 注意勾上 容器 和 开发工具 。
1 | sudo dnf update |
先安装net-tools查看ip
1 | sudo dnf install net-tools |
查看ip,然后使用ZenTermLite链接即可
1 | ifconfig |
1 | sudo dnf install util-linux-user |
1 | sudo dnf install zsh |
1 | git clone https://gitee.com/mirrors/oh-my-zsh.git ~/.oh-my-zsh \ |
1 | sudo dnf install vim |
完整的配置 ~/.ssh/config
1 | # open-euler |
Docker Desktop for mac做的太差了,目前感受
1、性能低下
2、很多莫名其妙分bug,Linux原生的feature和功能特性mac不支持
3、mac版的docker实际是不是原生支持的,这也是为什么出现的原因,。
准备完全迁移到Linux版的docker了。