1 Star 0 Fork 2

Alex/macOS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
virt-manager_install.sh 835 Bytes
一键复制 编辑 原始数据 按行查看 历史
Alex 提交于 2022-03-14 10:36 . update virt-manager_install.sh.
#!/bin/zsh
echo System Version: macOS 12
if system_profiler SPSoftwareDataType | grep -q 'System.*Version.*macOS.*11'; then
brew tap jeffreywildman/homebrew-virt-manager
brew install virt-manager virt-viewer
fi
if system_profiler SPSoftwareDataType | grep -q 'System.*Version.*macOS.*12'; then
brew tap rombarcz/homebrew-virt-manager
brew install virt-manager virt-viewer
brew install qemu libvirt
echo 'security_driver = "none"' >> /usr/local/etc/libvirt/qemu.conf
echo 'dynamic_ownership = 0' >> /usr/local/etc/libvirt/qemu.conf
echo 'remember_owner = 0' >> /usr/local/etc/libvirt/qemu.conf
sed -i.bk -e '/unix_sock_group/s_#__' -e '/unix_sock_group/s_libvirt_admin_' -e '/unix_sock_rw/s_#__' -e '/auth_unix_rw.*=/s_#__' /usr/local/etc/libvirt/libvirtd.conf
brew services start libvirt
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/suzhen99/macos.git
[email protected]:suzhen99/macos.git
suzhen99
macos
macOS
master

搜索帮助