{"id":196,"date":"2024-12-24T17:47:22","date_gmt":"2024-12-24T09:47:22","guid":{"rendered":"http:\/\/blog.00xm.top\/?p=196"},"modified":"2025-07-10T16:35:09","modified_gmt":"2025-07-10T08:35:09","slug":"%e5%ae%9e%e7%94%a8%e5%b0%8f%e5%8a%9f%e8%83%bdlinux-centos7-x%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e6%a1%8c%e9%9d%a2%e7%8e%af%e5%a2%83%e8%84%9a%e6%9c%ac%e5%8f%8a%e5%85%b6linux%e8%bf%90%e8%a1%8cwindows","status":"publish","type":"post","link":"https:\/\/senkin.00xm.top\/?p=196","title":{"rendered":"[\u5b9e\u7528\u5c0f\u529f\u80fd]Linux centos7.x\u4e00\u952e\u5b89\u88c5\u684c\u9762\u73af\u5883\u811a\u672c\u53ca\u5176Linux\u8fd0\u884cwindows\u8f6f\u4ef6\u65b9\u6cd5"},"content":{"rendered":"\n<p>Linux\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u7cfb\u7edf\uff0c\u6211\u4eec\u5e38\u7528\u7684\u4ed6\u7684\u5206\u652fcentos\u9ed8\u8ba4\u90fd\u662f\u7eaf\u547d\u4ee4\u884c\uff0c\u4e00\u90e8\u5206\u7528\u6237\u7528\u8d77\u6765\u53ef\u80fd\u4e0d\u4e60\u60ef\u8981\u662f\u5c31\u5efa\u7ad9\u8fd8\u884c\uff0c\u5982\u679c\u6df1\u5ea6\u4f53\u9a8c\u628a\u73a9\u5c31\u6709\u70b9\u4e0d\u53cb\u597d\u4e86\uff0c\u90a3\u4e48\u8fd9\u65f6\u5019\u5c31\u53ef\u4ee5\u7ed9\u4ed6\u88c5\u4e00\u4e2a\u56fe\u5f62\u684c\u9762\u3002<\/p>\n\n\n\n<p>\u6211\u67e5\u4e86\u5f88\u591a\u8d44\u6599\uff0c\u67e5\u5230\u5f88\u591a\u56fe\u5f62\u5316\u7a0b\u5e8f\uff0c\u7136\u540e\u89c9\u5f97mate\u56fe\u5f62\u5316\u7a0b\u5e8f\u8fd8\u662f\u6bd4\u8f83\u597d\u7684\u4e00\u6b3e\uff0c\u6211\u67e5\u7684\u5b89\u88c5\u65b9\u6cd5\u7279\u522b\u8d39\u52b2\uff0c\u81ea\u5df1\u5b89\u88c5\u4f30\u8ba1\u5f88\u8d39\u52b2\uff0c\u7136\u540e\u5c31\u627e\u5230\u4e86\u8fd9\u6b3e\u811a\u672c\uff0c\u53ef\u4ee5\u4e00\u952e\u5b89\u88c5\uff0c\u8f93\u5165\u811a\u672c\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\u5c31\u591f\u4e86\uff0c\u975e\u5e38\u65b9\u4fbf<\/p>\n\n\n\n<p><strong>\u670d\u52a1\u5668\u5b89\u88c5\u914d\u7f6e\u8981\u6c42:2g\u8fd0\u884c\u5185\u5b58\u4ee5\u4e0a 20g\u50a8\u5b58\u5de6\u53f3 centos7\u7cfb\u7edf<\/strong><\/p>\n\n\n\n<p>\u811a\u672c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install curl ca-certificates -y &amp;&amp; curl -sSL https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/main\/install.sh | sudo bash<\/code><\/pre>\n\n\n\n<p>\u4e0d\u7528\u62c5\u5fc3\u8fd9\u4e2a\u811a\u672c\u6709\u95ee\u9898\uff0c\u8fd9\u4e2a\u811a\u672c\u662f\u4e0b\u8f7d\u8fd0\u884c\u7684\u5df2\u7ecf\u603b\u7ed3\u597d\u7684mate\u56fe\u5f62\u5316\u5b89\u88c5\u7684\u6240\u6709\u6b65\u9aa4\uff0c\u4ee5\u4e0b\u662f\u539f\u59cb\u811a\u672c\u3002\uff08\u8fd9\u4e2a\u811a\u672c\u7279\u522b\u957f\uff0c\u4f60\u5fcd\u5fcd\u5427\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bashecho \"---------------------------------------------------------------------------------------------------------------------\"echo \"Welcome to Desktop environment and Remote connection tool ! V1.0.0\"echo \"System requirements: CentOS 7+ New installation\"echo \"Recommended system : &#91;Original] Network one-click Reinstall CentOS 7 (Official, Pure, Safe, Efficient)\"echo \"URL : https:\/\/tech.cxthhhhh.com\/linux\/2018\/07\/30\/original-network-one-click-reinstall-centos-7-official-pure-safe-efficient-en.html\"echo \"---------------------------------------------------------------------------------------------------------------------\"echo \"from https:\/\/tech.cxthhhhh.com - 2018\/08\/07 - MeowLove\"echo \"---------------------------------------------------------------------------------------------------------------------\"echo Press any key to continue! Exit with 'Ctrl'+'C' !echo -e \"\\n\"sudo cd \/rootyum install epel-release -yecho \"Start creating Swaps Memory, please wait...\"dd if=\/dev\/zero of=\/var\/swapd bs=1024 count=3145728mkswap \/var\/swapdchmod 0644 \/var\/swapdswapon \/var\/swapdecho '\/var\/swapd   swap   swap   default 0 0' &gt;&gt; \/etc\/fstabecho \"---------------------------------------------------------------------------------------------------------------------\"echo \"Swaps Memory is Created  is &#91;OK]\"echo \"---------------------------------------------------------------------------------------------------------------------\"echo -e \"\\n\"sudo cd \/rootyum groupinstall \"X Window System\" -yyum groupinstall \"MATE Desktop\" -yyum groupinstall \"Chinese support\" -yyum groups mark install \"Chinese support\" -yyum install cjkuni-ukai-fonts cjkuni-uming-fonts -yyum install fontforge -yyum install ibus-libpinyin im-chooser -ylocalectl set-locale LANG=zh_CN.UTF8echo \"---------------------------------------------------------------------------------------------------------------------\"echo \"Desktop environment is installed  is &#91;OK]\"echo \"---------------------------------------------------------------------------------------------------------------------\"echo -e \"\\n\"sudo cd \/roottouch \/etc\/yum.repos.d\/google-chrome.repoecho '&#91;google-chrome]name=google-chromebaseurl=http:\/\/dl.google.com\/linux\/chrome\/rpm\/stable\/x86_64enabled=1gpgcheck=1gpgkey=https:\/\/dl.google.com\/linux\/linux_signing_key.pub'&gt;\/etc\/yum.repos.d\/google-chrome.repoecho -e \"\\n\"cat \/etc\/yum.repos.d\/google-chrome.repoyum install google-chrome-stable -yecho \"---------------------------------------------------------------------------------------------------------------------\"echo \"The Chrome Already installed  is &#91;OK]\"echo \"---------------------------------------------------------------------------------------------------------------------\"echo -e \"\\n\"sudo cd \/rootrpm -Uvh --force https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/nux-dextop\/nux-dextop-release-0-5.el7.nux.noarch.rpm --quietyum install remmina remmina-plugins-* -yecho \"---------------------------------------------------------------------------------------------------------------------\"echo \"The Remmina Already installed  is &#91;OK]\"echo \"---------------------------------------------------------------------------------------------------------------------\"echo -e \"\\n\"sudo cd \/rootrpm -Uvh --force https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/wine\/wine32-release.rpm --quietyum install wine.i686 -yyum install wine -ysudo wget -O \/usr\/share\/wine\/fonts\/msyh.ttc https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/ttf\/msyh.ttcsudo wget -O \/usr\/share\/wine\/fonts\/msyhbd.ttc https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/ttf\/msyhbd.ttcsudo wget -O \/usr\/share\/wine\/fonts\/msyhl.ttc https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/ttf\/msyhl.ttcsudo wget -O \/usr\/share\/wine\/fonts\/simfang.ttf https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/ttf\/simfang.ttfsudo wget -O \/usr\/share\/wine\/fonts\/simhei.ttf https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/ttf\/simhei.ttfsudo wget -O \/usr\/share\/wine\/fonts\/simkai.ttf https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/ttf\/simkai.ttfsudo wget -O \/usr\/share\/wine\/fonts\/SIMLI.ttf https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/ttf\/SIMLI.ttfsudo wget -O \/usr\/share\/wine\/fonts\/simsun.ttc https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/ttf\/simsun.ttcsudo wget -O \/usr\/share\/wine\/fonts\/SIMYOU.ttf https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/ttf\/SIMYOU.ttfsudo wget -O \/usr\/share\/wine\/fonts\/\u4eff\u5b8b_GB2312.ttf https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/ttf\/\u4eff\u5b8b_GB2312.ttfsudo wget -O \/usr\/share\/wine\/fonts\/\u6977\u4f53_GB2312.ttf https:\/\/raw.githubusercontent.com\/MeowLove\/CentOS-One-click-Installation-of-Desktop-Environment-and-Remote-Desktop-Connection-RDP\/master\/download\/ttf\/\u6977\u4f53_GB2312.ttfecho \"---------------------------------------------------------------------------------------------------------------------\"echo \"The Wine Already installed  is &#91;OK]\"echo \"---------------------------------------------------------------------------------------------------------------------\"echo -e \"\\n\"sudo cd \/rootyum install tigervnc-server tigervnc -yyum install xrdp -ytouch ~\/.Xclientsecho \"mate-session\" &gt; ~\/.Xclientschmod a+x ~\/.Xclientssystemctl enable xrdpsystemctl start xrdpfirewall-cmd --add-port=3389\/tcp --permanentfirewall-cmd --reloadecho \"---------------------------------------------------------------------------------------------------------------------\"echo \"Remote connection RDP is installed  is &#91;OK]\"echo \"---------------------------------------------------------------------------------------------------------------------\"echo -e \"\\n\\n\\n\"echo \"---------------------------------------------------------------------------------------------------------------------\"echo \"The current default system language is Chinese.\"echo \"If you are an English user, please execute ' sudo localectl set-locale LANG=en_US.UTF-8 '\"echo \"---------------------------------------------------------------------------------------------------------------------\"echo \"Warning: Now, you need to pay attention to the following, please visit this page.\"echo \"&#91;Original] One-click installation of Desktop environment, RDP, Windows support for Linux\"echo \"https:\/\/tech.cxthhhhh.com\/linux\/2018\/08\/07\/original-one-click-installation-of-desktop-environment-rdp-&lt;a href=\"https:\/\/hcnote.cn\/tag\/95\" title=\"View all posts in windows\" target=\"_blank\"&gt;windows&lt;\/a&gt;-support-for-linux-en.html\"echo \"---------------------------------------------------------------------------------------------------------------------\"echo \"End to Desktop environment and Remote connection tool ! V1.0.0\"echo \"Everything is ready and the system is restarting. Then you can connect via (RDP)IP:3389.\"echo \"---------------------------------------------------------------------------------------------------------------------\"echo \"from https:\/\/tech.cxthhhhh.com - 2018\/08\/07 - MeowLove\"echo \"---------------------------------------------------------------------------------------------------------------------\"rebootecho -e \"\\n\"<\/code><\/pre>\n\n\n\n<p>\u8fdb\u5165\u5b89\u88c5\u4e4b\u540e\u5927\u6982\u8981\u4e0b\u8f7d3\u4e2ag\u7684\u4e1c\u897f\uff0c\u5176\u4e2d\u5305\u62ec\uff0c\u6e38\u89c8\u5668\uff0c\u8c37\u6b4c\u6e38\u89c8\u5668\uff0c\u6587\u672c\u7f16\u8bd1\u5668\u7b49\u4e00\u5806\u529e\u516c\u8f6f\u4ef6\u548c\u5e38\u7528\u7684\u5fc5\u5907\u8f6f\u4ef6\uff0c\u8fd8\u4f1a\u5b89\u88c5wine\u7a0b\u5e8f\uff08\u8fd0\u884cwindows\u8f6f\u4ef6\u6240\u7528\u7684\u7a0b\u5e8f\uff09<\/p>\n\n\n\n<p>\u7b49\u5f85\u534a\u4e2a\u5c0f\u65f6\u540e\uff0c\u670d\u52a1\u5668\u4f1a\u91cd\u542f\uff0c\u91cd\u542f\u4e4b\u540e\u4f7f\u7528\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\uff0c\u8d26\u53f7root\u5bc6\u7801\u5c31\u662f\u4f60\u7684root\u5bc6\u7801\u3002<\/p>\n\n\n\n<p>\u8fdb\u5165\u4e4b\u540e\u7684\u754c\u9762<\/p>\n\n\n\n<p>\u81f3\u4e8e\u600e\u4e48\u4f7f\u7528Linux\u8fd0\u884cwindows\u8f6f\u4ef6\uff0c\u90a3\u4e48\u5c31\u8981\u7528\u4e00\u4e9b\u7279\u6b8a\u65b9\u6cd5\uff0cwine\u662f\u4e00\u6b3e\u5f00\u6e90\u7a0b\u5e8f\uff0c\u4f7f\u7528\u4ed6\u53ef\u4ee5\u5728Linux\u4e0a\u8fd0\u884c\u4e00\u4e9bwindows\u8f6f\u4ef6\uff0c\u8fd9\u4e2a\u811a\u672c\u9ed8\u8ba4\u662f\u5b89\u88c5\u4e86wine\u7684\uff0c\u6240\u4ee5\u4f60\u5b89\u88c5windows\u8f6f\u4ef6\u540e\u53ef\u4ee5\u76f4\u63a5\u6253\u5f00\u3002<\/p>\n\n\n\n<p>\u9ed8\u8ba4\u4ed6\u9ed8\u8ba4\u6253\u5f00\u65b9\u5f0f\u4e0d\u662fwine\u6211\u4eec\u9700\u8981\u914d\u7f6e\u4e00\u4e0b<\/p>\n\n\n\n<p>\u6211\u7528\u9f20\u6807\u8fde\u70b9\u5668\u6765\u793a\u8303\uff0c\u53f3\u51fb\u9f20\u6807\uff0c\u9009\u62e9\u4f7f\u7528\u5176\u4ed6\u7a0b\u5e8f\u6253\u5f00<\/p>\n\n\n\n<p>\u9009\u62e9wine\u5f00\u5934\u7684\u8fd9\u4e2a\u7a0b\u5e8f\uff0c\u70b9\u51fb\u786e\u5b9a\uff0c\u5982\u679c\u663e\u793a\u8ba9\u5b89\u88c5\u4e00\u822c\u662f\u6ca1\u66f4\u65b0\uff0c\u70b9\u51fb\u5b89\u88c5\u5373\u53ef\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\u53ef\u4ee5\u4f7f\u7528wine\u6253\u5f00\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u7cfb\u7edf\uff0c\u6211\u4eec\u5e38\u7528\u7684\u4ed6\u7684\u5206\u652fcentos\u9ed8\u8ba4\u90fd\u662f\u7eaf\u547d\u4ee4\u884c\uff0c\u4e00\u90e8\u5206\u7528\u6237\u7528\u8d77\u6765\u53ef\u80fd\u4e0d\u4e60\u60ef\u8981\u662f\u5c31\u5efa\u7ad9\u8fd8\u884c\uff0c\u5982\u679c\u6df1\u5ea6\u4f53\u9a8c &#8230;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-196","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/posts\/196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=196"}],"version-history":[{"count":2,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/posts\/196\/revisions"}],"predecessor-version":[{"id":891,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/posts\/196\/revisions\/891"}],"wp:attachment":[{"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}