CentOS安装图形化界面并用windows远程桌面服务远程
Last updated
2023-01-28 10:40:03
{"value":"### \u5b89\u88c5\u5e76\u8fdb\u5165\u56fe\u5f62\u5316\u754c\u9762\n\n1.\u5982\u679c\u4f60\u7684centos7\u662f\u6700\u5c0f\u5316\u5b89\u88c5\u7684\u90a3\u9ed8\u8ba4\u90fd\u662f\u4e0d\u5e26X WINDOWS\u7684\uff0c\u90a3\u5728\u5b89\u88c5\u56fe\u5f62\u5316\u754c\u9762\u4e4b\u524d\uff0c\u4f60\u5f97\u5148\u5b89\u88c5\u4e00\u4e0bX WINDOWS\uff0c\u8fd9\u4e2a\u63a7\u5236\u529f\u80fd\n\n\tyum groupinstall \"X Window System\"\n\n2.\u8f93\u5165\u5b89\u88c5\u547d\u4ee4\n\n\tyum groupinstall -y \"GNOME Desktop\"\n\n\n3.\u8f93\u5165\u547d\u4ee4\u8fdb\u5165\u56fe\u5f62\u5316\u754c\u9762\n\n\tinit 5\n![](https:\/\/97yw3pix.hk03.1112oss.com\/TechnicalQA%2F%E6%96%87%E6%A1%A3%2Fweek7%2FCentOS%E5%AE%89%E8%A3%85%E5%9B%BE%E5%BD%A2%E5%8C%96%E7%95%8C%E9%9D%A2%E5%B9%B6%E7%94%A8windows%E8%BF%9C%E7%A8%8B%E6%A1%8C%E9%9D%A2%E6%9C%8D%E5%8A%A1%E8%BF%9C%E7%A8%8B%2F1.png)\n\n![](https:\/\/97yw3pix.hk03.1112oss.com\/TechnicalQA%2F%E6%96%87%E6%A1%A3%2Fweek7%2FCentOS%E5%AE%89%E8%A3%85%E5%9B%BE%E5%BD%A2%E5%8C%96%E7%95%8C%E9%9D%A2%E5%B9%B6%E7%94%A8windows%E8%BF%9C%E7%A8%8B%E6%A1%8C%E9%9D%A2%E6%9C%8D%E5%8A%A1%E8%BF%9C%E7%A8%8B%2F2.png)\n\n![](https:\/\/97yw3pix.hk03.1112oss.com\/TechnicalQA%2F%E6%96%87%E6%A1%A3%2Fweek7%2FCentOS%E5%AE%89%E8%A3%85%E5%9B%BE%E5%BD%A2%E5%8C%96%E7%95%8C%E9%9D%A2%E5%B9%B6%E7%94%A8windows%E8%BF%9C%E7%A8%8B%E6%A1%8C%E9%9D%A2%E6%9C%8D%E5%8A%A1%E8%BF%9C%E7%A8%8B%2F3.png)\n\n\u5728\u7ebf\u8d26\u53f7\u53ef\u4ee5\u8df3\u8fc7\n\n![](https:\/\/97yw3pix.hk03.1112oss.com\/TechnicalQA%2F%E6%96%87%E6%A1%A3%2Fweek7%2FCentOS%E5%AE%89%E8%A3%85%E5%9B%BE%E5%BD%A2%E5%8C%96%E7%95%8C%E9%9D%A2%E5%B9%B6%E7%94%A8windows%E8%BF%9C%E7%A8%8B%E6%A1%8C%E9%9D%A2%E6%9C%8D%E5%8A%A1%E8%BF%9C%E7%A8%8B%2F4.png)\n\n\u518d\u7528root\u8d26\u53f7\u767b\u5f55\u5373\u53ef\n\n### \u8fdb\u5165\u56fe\u5f62\u5316\u754c\u9762\u5e76\u5b89\u88c5\u6240\u9700\u5e93\n*windows\u8fdc\u7a0b\u684c\u9762\u670d\u52a1\u8fdc\u7a0b\u56fe\u5f62\u5316\u754c\u9762\u540e\u7684linux*\n\n1.\u5b89\u88c5epel\u5e93\n\n\tyum install epel-release\n\nEPEL\u662fyum\u7684\u4e00\u4e2a\u8f6f\u4ef6\u6e90,\u91cc\u9762\u5305\u542b\u4e86\u8bb8\u591a\u57fa\u672c\u6e90\u91cc\u6ca1\u6709\u7684\u8f6f\u4ef6\u4e86\uff0c\u4f46\u5728\u6211\u4eec\u5728\u4f7f\u7528epel\u65f6\u662f\u9700\u8981\u5b89\u88c5\u5b83\u624d\u53ef\u4ee5\u4e86\u3002\n\nEPEL\uff0c\u5373Extra Packages for Enterprise Linux\u7684\u7b80\u79f0\uff0c\u662f\u4e3a\u4f01\u4e1a\u7ea7Linux\u63d0\u4f9b\u7684\u4e00\u7ec4\u9ad8\u8d28\u91cf\u7684\u989d\u5916\u8f6f\u4ef6\u5305\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8eRed Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Enterprise Linux (OEL)\u3002\n\n**\u56e0\u4e3aXrdp\u6700\u7ec8\u4f1a\u81ea\u52a8\u542f\u7528VNC\uff0c\u6240\u4ee5\u5fc5\u987b\u5b89\u88c5tigervnc-server\uff0c\u5426\u5219xrdp\u65e0\u6cd5\u4f7f\u7528\u3002**\n\n2.\u5b89\u88c5vnc\n\n\tyum install tigervnc-server\n\n3.\u5b89\u88c5xrdp\n\n\tyum install xrdp\n\n4.\u4e3aroot\u7528\u6237\u8bbe\u7f6eVNC\u5bc6\u7801\n\n\tvncpasswd root\n\n\n\u4fee\u6539 xrdp\u6700\u5927\u8fde\u63a5\u6570\uff08\u4f7f\u7528\u9ed8\u8ba4\u503c\uff0c\u4e0d\u4fee\u6539\u4e5f\u662f\u53ef\u4ee5\u7684\uff09\uff08\u9ed8\u8ba4\u662f32\uff09\n\n\tvi \/etc\/xrdp\/xrdp.ini\n\n>max_bpp=32\n\n5.\u5173\u95ed\u6216\u914d\u7f6e\u9632\u706b\u5899\n\n\tsystemctl stop firewalld\n\tsystemctl disable\n\n6.\u5173\u95edSElinux\n\n\u67e5\u770bSElinux\u72b6\u6001\n\n\tsestatus \n\n\u4e34\u65f6\u5173\u95edSElinux\n\n\tsetenforce 0\n\n6.1\u4e0d\u8fc7\uff0c\u6211\u4eec\u8981\u6c38\u4e45\u5173\u95edSElinux,\u4fee\u6539\u4e3a\uff1aSELINUX=disabled\n\n\tvi \/etc\/selinux\/config\n\t\u5c06\u8fd9\u4e00\u884c\u4fee\u6539\u4e3a\uff1aSELINUX=disabled\n\n7.\u542f\u52a8XRDP\n\n\tsystemctl start xrdp\n\n\u5f00\u673a\u542f\u52a8\n\n\tsystemctl enable xrdp\n\n8.\u8fdc\u7a0b\u8fde\u63a5\u6d4b\u8bd5\n\n\u7535\u8111\u7aef\u8fd0\u884c\uff08\u5feb\u6377\u952ewin+R) \u4e2d\u8f93\u5165mstsc\uff0c\u542f\u52a8\u8fdc\u7a0b\u684c\u9762\uff0c\u7136\u540e\u8f93\u5165\u7528\u6237\u540d\u5bc6\u7801\u8fdb\u884c\u8fdc\u7a0b\u8fde\u63a5\u3002\n\n**\u5907\u6ce8\uff1a\u4e0b\u9762\u8fd9\u4e9b\u662f\u56fe\u5f62\u5316\u7684\u5378\u8f7d\u547d\u4ee4**\n\n\tyum remove xrdp\n\tyum remove tigervnc-server\n\tyum groupremove \"GNOME Desktop\"\n\tyum groupremove \"X Window System\"\n"}