{"id":1459,"date":"2023-08-28T09:37:04","date_gmt":"2023-08-28T01:37:04","guid":{"rendered":"https:\/\/lyvba.com\/?p=1459"},"modified":"2023-08-28T10:00:31","modified_gmt":"2023-08-28T02:00:31","slug":"debian_inst-sh","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2023\/08\/28\/debian_inst-sh\/","title":{"rendered":"\u4e00\u952e\u91cd\u88c5Linux\u7cfb\u7edf\u811a\u672c-\u81ea\u52a8\u5224\u65ad\u4e2d\u56fd\u80fd\u8c03\u7528\u4f7f\u7528\u4e2d\u56fd\u955c\u50cf"},"content":{"rendered":"<p><a href=\"https:\/\/lyvba.com\/debian_inst.sh\"><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2023\/08\/debian_inst.sh_.gif\" alt=\"\" \/><\/a><\/p>\n<h1>debian_inst.sh \u4e0b\u8f7d\u6216\u7c98\u8d34\u590d\u5236\u4f7f\u7528<\/h1>\n<pre><code># debian_inst.sh\npasswd=$(date | md5sum  | head -c 6)\necho -e &quot;\u968f\u673a\u751f\u6210\u5bc6\u7801: \\033[41;37m ${passwd} \\033[0m \u73b0\u5728\u53ef\u4fee\u6539; &quot;\nread -p &quot;\u8bf7\u8f93\u5165\u4f60\u8981\u7684\u5bc6\u7801(\u6309\u56de\u8f66\u4e0d\u4fee\u6539): &quot; -t 30 new\nif [[ ! -z &quot;${new}&quot; ]]; then\n    passwd=&quot;${new}&quot;\nfi\n\nchina=$(curl -sL lyvba.com\/ip\/$(curl -sL lyvba.com\/ip) | grep \u4e2d\u56fd)\nif [[ ! -z &quot;${china}&quot; ]]; then\n    wget https:\/\/lyvba.com\/auto.sh\n    bash auto.sh -d 12 -v 64 -a -p  $passwd \\\n    --mirror &#039;https:\/\/mirrors.ustc.edu.cn\/debian\/&#039;\nelse\n    wget git.io\/auto.sh  # \u5982\u679c\u5728\u56fd\u5916\uff0c\u4f7f\u7528\u4e0b\u9762 git.io\/auto.sh\n    bash auto.sh -d 12 -v 64 -a -p  $passwd\nfi<\/code><\/pre>\n<p>\u65b0\u5efa debian_inst.sh \u7f16\u8f91\uff0c\u6216\u8005\u4e0b\u8f7d<\/p>\n<pre><code>wget https:\/\/lyvba.com\/debian_inst.sh<\/code><\/pre>\n<p>\u811a\u672c\u80fd\u81ea\u52a8\u751f\u6210\u4e00\u4e2a\u968f\u673a\u4ee3\u7801\uff0c\u4e5f\u53ef\u4ee5\u7b80\u5355\u4fee\u6539<br \/>\n\u7136\u540e\u81ea\u52a8\u5224\u65ad\u662f\u56fd\u5185\u8fd8\u662f\u56fd\u5916\uff0c\u5b89\u88c5 Debian12<\/p>\n<h2>\u4e2d\u56fd\u56fd\u5185\u4f7f\u7528<\/h2>\n<pre><code>wget https:\/\/lyvba.com\/auto.sh\nbash auto.sh -d 12 -v 64 -a -p  $passwd \\\n    --mirror &#039;https:\/\/mirrors.ustc.edu.cn\/debian\/&#039;<\/code><\/pre>\n<h2>\u56fd\u5916VPS\u4f7f\u7528<\/h2>\n<pre><code>wget git.io\/auto.sh\nbash auto.sh -d 12 -v 64 -a -p  $passwd<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2023\/08\/auto.sh_.png\" alt=\"\" \/><\/p>\n<h2>Linux\u4e00\u952e\u5b89\u88c5\u811a\u672c--\u652f\u6301 Debian 12 \u548c Ubuntu 20.04 \u81ea\u52a8\u5b89\u88c5<\/h2>\n<p>\u672c\u6765\u60f3\u5347\u7ea7\u6210\u652f\u6301 Ubuntu 20.04 \uff0c\u7ed3\u679c\u5b98\u65b9\u4e0d\u652f\u6301\u539f\u6765\u7684\u7f51\u7edc\u5b89\u88c5\u65b9\u5f0f\uff0c\u8981\u4e0b\u8f7d ISO \u5b89\u88c5\u4e86\uff0c\u6240\u4ee5\u4e0d\u652f\u6301\u4e86<\/p>\n<h3>\u4e0b\u8f7d\u81ea\u52a8\u5b89\u88c5\u5b89\u88c5\u811a\u672c<\/h3>\n<pre><code>wget git.io\/auto.sh<\/code><\/pre>\n<h3>Linux\u4e00\u952e\u5b89\u88c5\u811a\u672c \u5b89\u88c5\u547d\u4ee4\u53c2\u8003<\/h3>\n<pre><code># \u81ea\u52a8\u5b89\u88c5 Debian 10  buster\nbash auto.sh -d 10 -v 64 -a -p \u5bc6\u7801\n\n# \u81ea\u52a8\u5b89\u88c5 Debian 11  bullseye\nbash auto.sh -d 11 -v 64 -a -p \u5bc6\u7801\n\n# \u81ea\u52a8\u5b89\u88c5 Debian 12  bullseye\nbash auto.sh -d 11 -v 64 -a -p \u5bc6\u7801\n\n# \u81ea\u52a8\u5b89\u88c5 Ubuntu 20.04  focal\nbash auto.sh -u 20.04 -v 64 -a -p \u5bc6\u7801\n\n# \u81ea\u52a8\u5b89\u88c5 Ubuntu 18.04  bionic\nbash auto.sh -u 18.04 -v 64 -a -p \u5bc6\u7801\n\n# \u5b89\u88c5 CentOS \u53ea\u652f\u6301 6.10\nbash auto.sh -c 6.10 -v 64 -a -p \u5bc6\u7801<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>debian_inst.sh \u4e0b\u8f7d\u6216\u7c98\u8d34\u590d\u5236\u4f7f\u7528 # debian_inst.sh passwd=$ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1463,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[23,17],"class_list":["post-1459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux","tag-vps"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=1459"}],"version-history":[{"count":3,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1459\/revisions"}],"predecessor-version":[{"id":1464,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1459\/revisions\/1464"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media\/1463"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=1459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=1459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=1459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}