mikyhost作为aws lightsail 分销,年抛价格还是比较合适,最近折上折收了个二手机,发现重装系统需要开工单等客服操作,这家客服又是半个月不一定能回一次工单,因此还是直接dd吧。
在产品详情的Connection Details查看ip和ssh密钥,连接后发现已经是上家的xx探针的形状了。
使用这个脚本 https://github.com/leitbogioro/Tools ,以debian/ubuntu 刷debian为例:
apt update -y
apt install wget -y
wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh
详细配置参数看github吧,建议至少设置密码。
bash InstallNET.sh -debian 12 -port "12345" -pwd 'yourpasswordd' -timezone "Asia/Hong_Kong"
完整示例参考
bash InstallNET.sh -debian/kali/ubuntu/centos/almalinux/rockylinux/fedora(os type) 11(os version) -architecture 64(os bit, not necessary) -port "your server port" -pwd 'your server password' -mirror "a valid url for linux image source" -dd/--image "dd image url" -filetype "gz or xz" -timezone "like Asia/Tokyo etc" --network "static"/--ip-addr 'x.x.x.x'(ip address) --ip-mask 'x.x.x.x'(subnet mask) --ip-gate 'x.x.x.x'(gateway) -firmware(Debian with hardware drivers)
dd后干净了。mikyhost每次在后台关机-开机后会更换ip,需要注意一下。在ssh reboot不会更换ip。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容