text: (window.webpackJsonp=window.webpackJsonp||[]).push([[144],{695:function(s,a,t){"use strict";t.r(a);var e=t(23),n=Object(e.a)({},(function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[t("h1",{attrs:{id:"在wsl2的oracle-linux8-5发行版中安装xfce4"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#在wsl2的oracle-linux8-5发行版中安装xfce4"}},[s._v("#")]),s._v(" 在WSL2的Oracle Linux8.5发行版中安装xfce4")]),s._v(" "),t("div",{staticClass:"custom-block warning"},[t("p",{staticClass:"custom-block-title"},[s._v("注意")]),s._v(" "),t("p",[s._v("此问题尚在研究中，暂时没有完美解决办法，仅供参考。")])]),s._v(" "),t("h2",{attrs:{id:"安装语言、字体、图形界面"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#安装语言、字体、图形界面"}},[s._v("#")]),s._v(" 安装语言、字体、图形界面")]),s._v(" "),t("div",{staticClass:"language-bash line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" yum "),t("span",{pre:!0,attrs:{class:"token function"}},[s._v("install")]),s._v(" glibc-common -y\n"),t("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" yum "),t("span",{pre:!0,attrs:{class:"token function"}},[s._v("install")]),s._v(" wqy-*-fonts -y\n"),t("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" yum groupinstall "),t("span",{pre:!0,attrs:{class:"token string"}},[s._v('"Xfce"')]),s._v(" -y\n")])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br"),t("span",{staticClass:"line-number"},[s._v("2")]),t("br"),t("span",{staticClass:"line-number"},[s._v("3")]),t("br")])]),t("h2",{attrs:{id:"安装输入法和浏览器"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#安装输入法和浏览器"}},[s._v("#")]),s._v(" 安装输入法和浏览器")]),s._v(" "),t("div",{staticClass:"language-bash line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[s._v("yum "),t("span",{pre:!0,attrs:{class:"token function"}},[s._v("install")]),s._v(" ibus ibus-gtk2 ibus-gtk3 ibus-libpinyin im-chooser gtk2-immodule-xim gtk3-immodule-xim firefox -y\n")])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br")])]),t("h2",{attrs:{id:"配置rdp远程支持"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#配置rdp远程支持"}},[s._v("#")]),s._v(" 配置RDP远程支持")]),s._v(" "),t("div",{staticClass:"language-bash line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[s._v("yum "),t("span",{pre:!0,attrs:{class:"token function"}},[s._v("install")]),s._v(" tigervnc-server xrdp -y\n")])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br")])]),t("h2",{attrs:{id:"修改字符集支持中文、配置远程的时候调用xfce"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#修改字符集支持中文、配置远程的时候调用xfce"}},[s._v("#")]),s._v(" 修改字符集支持中文、配置远程的时候调用xfce")]),s._v(" "),t("p",[t("s",[s._v("echo 'LANG=zh_CN.utf8' > /etc/locale.conf")])]),s._v(" "),t("p",[t("s",[s._v("source /etc/locale.conf")])]),s._v(" "),t("p",[t("s",[s._v("echo '#!/bin/bash' > ~/.Xclients")])]),s._v(" "),t("p",[t("s",[s._v("echo 'XFCE=\"$(which xfce4-session 2>/dev/null)\"'  >> ~/.Xclients")])]),s._v(" "),t("p",[t("s",[s._v("echo 'exec \"$XFCE\"' >> ~/.Xclients")])]),s._v(" "),t("h2",{attrs:{id:"启用如上配置并重启验证"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#启用如上配置并重启验证"}},[s._v("#")]),s._v(" 启用如上配置并重启验证")]),s._v(" "),t("p",[t("s",[s._v("chmod +x /root/.Xclients && chkconfig xrdp on && service xrdp restart")])]),s._v(" "),t("p",[t("s",[s._v("systemctl set-default graphical.target")])]),s._v(" "),t("p",[t("s",[s._v("reboot")])]),s._v(" "),t("h2",{attrs:{id:"启动"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#启动"}},[s._v("#")]),s._v(" 启动")]),s._v(" "),t("div",{staticClass:"language-bash line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" startxfce4\n")])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br")])]),t("p",[s._v("或者")]),s._v(" "),t("div",{staticClass:"language-bash line-numbers-mode"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[t("span",{pre:!0,attrs:{class:"token function"}},[s._v("sudo")]),s._v(" -u ulinux startxfce4\n")])]),s._v(" "),t("div",{staticClass:"line-numbers-wrapper"},[t("span",{staticClass:"line-number"},[s._v("1")]),t("br")])])])}),[],!1,null,null,null);a.default=n.exports}}]);