服务器端开发、部署一直使用的纯命令行,由于处理数据使用 Kettle(Pentaho Data Integration) 工具,界面化配置多些,ETL 开发效率更高些,于是安装了 Gnome 桌面、VNCServer。
安装桌面是为了提高开发效率,安装桌面插件是为了提高使用桌面的效率,对开发效率的影响更大。
系统版本
$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.3.1611 (Core)
Release: 7.3.1611
Codename: Core
gnome 版本
$ gnome-shell —version
GNOME Shell 3.22.3
安装依赖的软件包
command -v firefox >/dev/null 2>&1 || {
echo "## 安装 firefox"
yum install -y firefox
firefox -V
}
command -v python >/dev/null 2>&1 || {
echo "## 安装 python"
yum install -y epel-release
python -V
}
command -v pip >/dev/null 2>&1 || {
echo "## 安装 python-pip"
yum install -y python-pip
pip -V
}
pip install --upgrade pip
pip install requests urllib3 pyOpenSSL
yum install -y git cmake jq gnome-shell-browser-plugin gnome-tweak-tool
安装 gnome-chrome-shell
test -f /usr/bin/chrome-gnome-shell || {
echo "## 安装 chrome-gnome-shell"
mkdir -p ~/tools && cd ~/tools
git clone git://git.gnome.org/chrome-gnome-shell
cd chrome-gnome-shell
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_EXTENSION=OFF ../
sudo make install
}
head /usr/bin/chrome-gnome-shell
/usr/bin/python /usr/bin/chrome-gnome-shell --gapplication-service
使用 firefox(系统默认浏览器)打开链接安装 GNOME Shell integration
插件:
https://addons.mozilla.org/en-US/firefox/addon/gnome-shell-integration/
Gnome 插件管理网站:
http://extensions.gnome.org/
在【extensions】搜索插件、【installed extensions】查看已安装插件;搜索插件, 点击 switch 为 on, 浏览器会自动安装


推荐插件列表:
- hidetopbar
- maximus-two
- dash to dock/simple dock
- coverflow alt-tab
- dynamic top bar
参考
- Gnome 3 Tricks for Centos 7
- GNOME Extionsion 安装方法
- CentOS7 定制 Gnome3 外观
- GNOME Extionsion 安装方法
- CentOS 7 GNOME 桌面无法在线安装 Shell 扩展的解决方法
- 查看 gnome 版本
- redhat 和 fedora 是什么关系?
- GNOME Shell integration for Chrome Installation Guide
- ImportError: No module named 'requests.packages.urllib3'
- wilfm/GnomeExtensionMaximusTwo
- CentOS7 下 python2.7.5 安装 pip 后再安装 requests 包
- 不容错过这十款 GNOME Shell 扩展
网友评论