Skip to content
forked from ivanhao/pvetools

pve tools script.Including install samba and config set zfs max ram etc.

License

Notifications You must be signed in to change notification settings

justwho/pvetools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pvetools

proxmox ve tools script(debian9+ can use it).Including install postfix samba and config set zfs max ram, nested virtualization etc. for english user,please look the end of readme.

这是一个为proxmox ve写的工具脚本(理论上debian9+可以用)。包括配置邮件,samba,zfs,嵌套虚拟化等功能。

安装

中国用户:

需要用root账号来运行

把下面整段复制粘贴到终端中回车即可。

export LC_ALL=en_US.UTF-8
sver=`cat /etc/apt/sources.list|awk 'NR==1{print $3}'`
cp /etc/apt/sources.list /etc/apt/sources.list.bak
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak
echo "deb https://mirrors.ustc.edu.cn/debian/ $sver main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ $sver main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ $sver-updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ $sver-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ $sver-backports main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ $sver-backports main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security/ $sver/updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian-security/ $sver/updates main contrib non-free" > /etc/apt/sources.list
apt update && apt -y install git && git clone https://github.com/ivanhao/pvetools.git \
&& cd pvetools && ln -s `pwd`/pvetools.sh /usr/bin/pvetools && pvetools

运行

在shell中输入 pvetools

主界面

main 根据需要选择对应的选项即可。

配置邮件说明:

只有以下界面需要用tab键选成红框的内容,其他的一律无脑回车即可。 mail

无脑方式说明:

无脑方式基本不需要你输入内容,除了配置你的邮件地址,邮箱要按上面配置邮件说明中的"Internet Site", 其他的一律无脑回车即可。 其他的一律无脑回车即可。 其他的一律无脑回车即可。

如果这个脚本帮到你了,麻烦点一下右上角的star小星星^_^

如果觉得好的请捐赠一下,自愿捐赠五毛一块的你也没啥损失,我也不会发大财,但是是对我的一种鼓励^_^

pay

install

for english user:
export LC_ALL=en_US.UTF-8
apt update && apt -y install git && git clone https://github.com/ivanhao/pvetools.git \
&& cd pvetools && ln -s `pwd`/pvetools.sh /usr/bin/pvetools && pvetools

About

pve tools script.Including install samba and config set zfs max ram etc.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%