趁着国补拿下了Mac mini m4,现在手上的老电脑日常风扇吵翻天,想着就把Mac mini当远程服务器来用好了
主要目的
- 开发机
- 各种服务(alist 影院还是蛮方便的)
家里用 parsec 可以把Mac mini当个app 来用,但出门用 parsec 感觉就麻烦了点也重了点
System Settings, then click in the sidebar. (You may need to scroll down.)
Mac mini 记得要设置 Energy -> 勾上 “Wake for network access.”,不然休眠的时候直接就断了
我是直接把休眠关掉
## VSCode/Cursor 配置 remote development
文档直接看:https://code.visualstudio.com/docs/remote/ssh#_installation
- macmini 开启远程ssh登录
- VSCode 安装 Remote-SSH 插件
- VSCode 选择Remote-SSH: Connect to Host 就可以了
## 免密钥登录
ssh-copy-id -i ~/.ssh/id_rsa.pub jian@1.2.3.4
## 总结
把 Mac mini 当远程开发机,用 VSCode Remote SSH development 体验还是很不错的
文章评论