ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
操作系统:CentOS Linux release 7.7.1908 (Core) 桌面工具:gnome 远程连接工具:vnc viewer 1.安装开发者工具 `yum -y groups install "Devlement tools"` 2.安装gnome ``` yum -y groups install "GNOME Desktop" ``` 3.安装vncserver ``` yum install tigervnc-server ``` 4.配置服务 ``` cp /lib/systemd/system/vncserver@.service /lib/systemd/system/vncserver@:1.service ``` **:1表示桌面序号**,用来标识vnc客户端连接的是哪个桌面 5.设置vnc访问用户,\<USER>改为root ``` [root@localhost ~]# vi /lib/systemd/system/vncserver@:1.service ... #ExecStart=/usr/bin/vncserver_wrapper <USER> %i ExecStart=/usr/bin/vncserver_wrapper root %i ... ``` 6.设置vnc密码 ~~~ vncserver -passwd ~~~ 7.配置防火墙策略 ~~~ firewall-cmd --permanent --zone=public --add-port=5901/tcp firewall-cmd --reload firewall-cmd --list-all ~~~ 8.设置vnc显示分辨率 ``` [root@localhost system]# vi /usr/bin/vncserver ... #$geometry = "1024x768"; $geometry = "1920x1080"; #$depth = 16; #此项表示颜色深度,开启后可能会导致gnome打开设置后强制退出 ... ``` 9.启动vnc服务 ``` # 启动 systemctl start vncserver@:1.service # 开机启动 systemctl enable vncserver@:1.service ``` 10.vnc viewer连接桌面 ![](https://img.kancloud.cn/fb/69/fb69b6afb4f2b85efaf340dd50d3b2c9_611x132.png) 11.登录效果 ![](https://img.kancloud.cn/39/73/397325e16d327842d56da1ae1d10987e_1898x1010.png) ***** # 桌面美化 1.安装GTK2 ~~~ yum install gtk-murrine-engine gtk2-engines ~~~ 2.安装Vimix-gtk-theme([git地址](https://github.com/vinceliuice/vimix-gtk-themes)) ``` # 下载 wget https://github.com/vinceliuice/vimix-gtk-themes/archive/2020-02-24.tar.gz # 解压 tar zxvf 2020-02-24.tar.gz # 安装 [root@localhost ~]# cd vimix-gtk-themes-2020-02-24/ [root@localhost vimix-gtk-themes-2020-02-24]# ls AUTHORS HACKING install.sh LICENSE parse-sass.sh README.md src update-vimix-online vimix-installer [root@localhost vimix-gtk-themes-2020-02-24]# ./install.sh ``` 3.安装Vimix Icon Theme([git地址](https://github.com/vinceliuice/vimix-icon-theme)) ``` # 下载 wget https://github.com/vinceliuice/vimix-icon-theme/archive/2020-07-10.tar.gz # 解压 tar zxvf 2020-07-10.tar.gz # 安装 [root@localhost ~]# cd vimix-icon-theme-2020-07-10/ [root@localhost vimix-icon-theme-2020-07-10]# ls AUTHORS COPYING install.sh links Preview01.png Preview.png README.md src [root@localhost vimix-icon-theme-2020-07-10]# ./install.sh ``` 4.安装Ubuntu字体([下载地址](https://design.ubuntu.com/font/)) ``` # 下载 wget https://assets.ubuntu.com/v1/0cef8205-ubuntu-font-family-0.83.zip # 安装 unzip 0cef8205-ubuntu-font-family-0.83.zip mv ubuntu-font-family-0.83/ /usr/share/fonts/ # 刷新字体缓存 fc-cache -fv ``` 5.安装gnome-shell-extension-dash-to-dock扩展包 `yum install -y gnome-shell-extension-dash-to-dock` ## 调整主题 在桌面左上角选择“应用程序 > 附件 > 优化”,或直接执行系统命令“gnome-tweaks” 选择“外观”然后设置“应用程序”和“图标”,如下图所示: ![](https://img.kancloud.cn/df/b7/dfb762ce0cbc7e29f7d069c81850bcbb_830x601.png) ## 调整字体 选择“字体”然后进行相应的设置,如下图所示: ![](https://img.kancloud.cn/01/00/0100b6f80d88147663e8992cde483fa6_796x572.png) ## 开启dash-to-dock 选择“扩展”然后开启“dash to dock”,如下图所示: ![](https://img.kancloud.cn/dc/6a/dc6a47a359eb1b2e18e7dded2d764bff_791x564.png) ## 效果图 ![](https://img.kancloud.cn/68/39/6839ee31c3beda66f4f16c09e90273e2_1719x968.png) ## 桌面壁纸 https://wallhaven.cc https://www.pexels.com ***** # 创建pycharm快捷图标 1.终端直接运行 pycharm.sh 2.进入pycharm后点击"tools" 3.点击"Create Desktop Entry…" 再关闭pycharm 4.返回桌面,点击显示应用程序 ![](https://img.kancloud.cn/42/db/42db82e5f22e80cd708dd2b14c3a6906_1881x966.png)