Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
在 LD 11.06 中使用 Gnome-Shell
Experiences and Insight
2398
views ·
2
replies ·
To
floor
Go
186******98
deepin
2011-07-11 16:20
Author
下一个版本的桌面环境会选择 Gnome3,大家可以用下面的办法提前在 LD 11.06 中体验 Gnome-Shell.
因为现有 PPA 的方法会导致用户进不了桌面, 所以我们用编译的开发版本的方法, 编译的方法的好处就是即使编译失败, 也不会破坏现有的桌面环境。
1. 安装编译依赖:
sudo apt-get install curl libtiff4-dev libgstreamer0.10-dev libcroco3-dev xulrunner-dev mesa-utils
mesa-common-dev libreadline5-dev libgl1-mesa-dev libwnck-dev librsvg2-dev libgnome-desktop-dev
libgnome-menu-dev libffi-dev libgtk2.0-dev libgconf2-dev libdbus-glib-1-dev gtk-doc-tools
gnome-common git-core flex bison automake build-essential icon-naming-utils autopoint libvorbis-dev
libpam-dev libgcrypt-dev libtasn1-dev libtasn1-3-bin libgnome-keyring-dev libupower-glib-dev
libxklavier16 libxklavier-dev xserver-xephyr python-dev libpulse-dev libjasper-dev jhbuild
libgtop2-dev libsqlite3-dev libproxy-dev libdb-dev libproxy-dev libcups2-dev libusb-1.0-0-dev
libxcb-aux0-dev libxcb-event1-dev libx11-xcb-dev liboauth-dev libwebkitgtk-3.0-dev libical-dev gperf
libgudev-1.0-dev hwdata liborbit2-dev libgtk-3-dev libidn11-dev libsane-dev liblircclient-dev
libltdl-dev libvorbisfile3 libgail-3-dev libnotify4-dev libgnome-desktop-3-dev -y
2. 添加路径到 ~/.bashrc
把下面的行加入到 ~/.bashrc 最后面:
PATH=$PATH:~/bin
PATH=$PATH:~/gnome-shell/install/bin
3. 下载/执行 Gnome-Shell 构建脚本:
wget
http://git.gnome.org/browse/gnome-shell ... d-setup.sh
chmod +x gnome-shell-build-setup.sh
./gnome-shell-build-setup.sh
4. 构建 Gnome-Shell (更新代码也是同样的命令):
sudo find /usr/lib{,32,64} -name "*.la" -delete (这一步非常重要, 否则 libgtk3 会报错)
sudo jhbuild build
5. 安装 Nautilus 3:
先下载三个包:
wget
https://launchpad.net/ubuntu/oneiric/+s ... ig.tar.bz2
wget
http://launchpad.net/gnome-desktop/main ... .3.tar.bz2
wget
http://launchpad.net/nautilus/main/3.0. ... rig.tar.gz
用下面的命令依次对这三个包进行编译:
./configure && make && sudo make install
6. 开机自动启动 Gnome-Shell
touch ~/.xinitrc
chmod +x ~/.xinitrc
ln -s ~/.xinitrc ~/.xsession
gedit ~/.xinitrc
在 ~/.xinitrc 中加入下面的命令:
gnome-session &
ibus-daemon -x -r -d &
gnome-shell --replace
注销, 在登录画面下面第三个选项框选择 "User Defined Session" 进行登录即可
7. 编译出错解决方案:
编译的时候有可能出错, 下面对常见的出错提供解决方案:
1) 一般网络错误, 导致 git 操作失败, 可以选择 6 (出错会有一个选择操作)进行重新下载编译
2) 缺少某个包, 一般在错误的最后几行, 你会看到提示找不到某个包 foo, 可以搜索一下, 一般都是 libfoo-dev 包, 然后用 sudo apt-get install libfoo-dev 安装包后再选择 6 重新编译即可
3) 第36个模块 colord 编译错误(因为上游开发人员的失误):
如果你在编译 colord 的时候遇到下面的错误:
checking whether to build shared libraries... yes
checking whether to build static libraries... no
./configure: line 10692: syntax error near unexpected token `0.9.8'
./configure: line 10692: `GOBJECT_INTROSPECTION_CHECK(0.9.8)'
Error during phase configure of colord: ########## Error running ./autogen.sh --prefix /home/andy/gnome-shell/install --libdir '/home/andy/gnome-shell/install/lib64' --disable-examples --disable-static --disable-gtk-doc *** [36/46]
可以用这个解决方案解决:
wget
http://launchpadlibrarian.net/74359148/ ... _amd64.deb
wget
http://launchpadlibrarian.net/74359147/ ... _amd64.deb
wget
http://launchpadlibrarian.net/74359150/ ... _amd64.deb
sudo dpkg -i liblcms2-2_2.2+git20110628-1_amd64.deb
sudo dpkg -i liblcms2-dev_2.2+git20110628-1_amd64.deb
sudo dpkg -i liblcms2-utils_2.2+git20110628-1_amd64.deb
cd ~/gnome-shell/source/colord
git clean -fdx
cp ~/gnome-shell/source/clutter/build/autotools/introspection.m4 ~/gnome-shell/source/colord/m4/
jhbuild run ./autogen.sh
jhbuild run ./configure --disable-introspection
jhbuild run make
4) 错误 “/home/andy/gnome-shell/install/lib64/libgtk-3.so: undefined reference to `pango_layout_get_log_attrs_readonly' “
如果遇到这个错误的同学一般都没有听我的话执行命令: “sudo find /usr/lib{,32,64} -name "*.la" -delete”
如果遇到这个错误可以用下面的方案解决:
sudo find /usr/lib{,32,64} -name "*.la" -delete
rm -rf ~/gnome-shell/install/
sudo jhbuild build
好了, 这就是所有关于 Gnome-Shell 编译的方案, 当然所有基于 Debian 的发行版本都可以用这个方案, 非 Debian 的发行版本可以用相应的命令替换 apt 应该也可以编译成功。
最后上张截图吧:
screenshot.jpg
Enjoy !
Reply
Like 0
Favorite
View the author
All Replies
laocui
deepin
2011-07-12 14:50
#1
这个好
Reply
Like 0
View the author
runsisi
deepin
2011-07-12 22:35
#2
在fedora下用过一段时间的gnome3 有点不太习惯 呵呵
gnome3相对gnome2确实还是界面漂亮多了 但还是没有kde的界面精细
深度怎么不考虑kde呢 现在的kde感觉很稳定的说 比gnome漂亮不是一点两点
软件中心在kde下有乱码(系统locale为en_US.UTF-8),如图
Selection_001.png
Reply
Like 0
View the author
Please
sign
in first
New Thread
Popular Ranking
Change
The Seventh Issue of deepin Biweekly Technical Report is Online
Popular Events
More
因为现有 PPA 的方法会导致用户进不了桌面, 所以我们用编译的开发版本的方法, 编译的方法的好处就是即使编译失败, 也不会破坏现有的桌面环境。
1. 安装编译依赖:
sudo apt-get install curl libtiff4-dev libgstreamer0.10-dev libcroco3-dev xulrunner-dev mesa-utils
mesa-common-dev libreadline5-dev libgl1-mesa-dev libwnck-dev librsvg2-dev libgnome-desktop-dev
libgnome-menu-dev libffi-dev libgtk2.0-dev libgconf2-dev libdbus-glib-1-dev gtk-doc-tools
gnome-common git-core flex bison automake build-essential icon-naming-utils autopoint libvorbis-dev
libpam-dev libgcrypt-dev libtasn1-dev libtasn1-3-bin libgnome-keyring-dev libupower-glib-dev
libxklavier16 libxklavier-dev xserver-xephyr python-dev libpulse-dev libjasper-dev jhbuild
libgtop2-dev libsqlite3-dev libproxy-dev libdb-dev libproxy-dev libcups2-dev libusb-1.0-0-dev
libxcb-aux0-dev libxcb-event1-dev libx11-xcb-dev liboauth-dev libwebkitgtk-3.0-dev libical-dev gperf
libgudev-1.0-dev hwdata liborbit2-dev libgtk-3-dev libidn11-dev libsane-dev liblircclient-dev
libltdl-dev libvorbisfile3 libgail-3-dev libnotify4-dev libgnome-desktop-3-dev -y
2. 添加路径到 ~/.bashrc
把下面的行加入到 ~/.bashrc 最后面:
PATH=$PATH:~/bin
PATH=$PATH:~/gnome-shell/install/bin
3. 下载/执行 Gnome-Shell 构建脚本:
wget http://git.gnome.org/browse/gnome-shell ... d-setup.sh
chmod +x gnome-shell-build-setup.sh
./gnome-shell-build-setup.sh
4. 构建 Gnome-Shell (更新代码也是同样的命令):
sudo find /usr/lib{,32,64} -name "*.la" -delete (这一步非常重要, 否则 libgtk3 会报错)
sudo jhbuild build
5. 安装 Nautilus 3:
先下载三个包:
wget https://launchpad.net/ubuntu/oneiric/+s ... ig.tar.bz2
wget http://launchpad.net/gnome-desktop/main ... .3.tar.bz2
wget http://launchpad.net/nautilus/main/3.0. ... rig.tar.gz
用下面的命令依次对这三个包进行编译:
./configure && make && sudo make install
6. 开机自动启动 Gnome-Shell
touch ~/.xinitrc
chmod +x ~/.xinitrc
ln -s ~/.xinitrc ~/.xsession
gedit ~/.xinitrc
在 ~/.xinitrc 中加入下面的命令:
gnome-session &
ibus-daemon -x -r -d &
gnome-shell --replace
注销, 在登录画面下面第三个选项框选择 "User Defined Session" 进行登录即可
7. 编译出错解决方案:
编译的时候有可能出错, 下面对常见的出错提供解决方案:
1) 一般网络错误, 导致 git 操作失败, 可以选择 6 (出错会有一个选择操作)进行重新下载编译
2) 缺少某个包, 一般在错误的最后几行, 你会看到提示找不到某个包 foo, 可以搜索一下, 一般都是 libfoo-dev 包, 然后用 sudo apt-get install libfoo-dev 安装包后再选择 6 重新编译即可
3) 第36个模块 colord 编译错误(因为上游开发人员的失误):
如果你在编译 colord 的时候遇到下面的错误:
checking whether to build shared libraries... yes
checking whether to build static libraries... no
./configure: line 10692: syntax error near unexpected token `0.9.8'
./configure: line 10692: `GOBJECT_INTROSPECTION_CHECK(0.9.8)'
Error during phase configure of colord: ########## Error running ./autogen.sh --prefix /home/andy/gnome-shell/install --libdir '/home/andy/gnome-shell/install/lib64' --disable-examples --disable-static --disable-gtk-doc *** [36/46]
可以用这个解决方案解决:
wget http://launchpadlibrarian.net/74359148/ ... _amd64.deb
wget http://launchpadlibrarian.net/74359147/ ... _amd64.deb
wget http://launchpadlibrarian.net/74359150/ ... _amd64.deb
sudo dpkg -i liblcms2-2_2.2+git20110628-1_amd64.deb
sudo dpkg -i liblcms2-dev_2.2+git20110628-1_amd64.deb
sudo dpkg -i liblcms2-utils_2.2+git20110628-1_amd64.deb
cd ~/gnome-shell/source/colord
git clean -fdx
cp ~/gnome-shell/source/clutter/build/autotools/introspection.m4 ~/gnome-shell/source/colord/m4/
jhbuild run ./autogen.sh
jhbuild run ./configure --disable-introspection
jhbuild run make
4) 错误 “/home/andy/gnome-shell/install/lib64/libgtk-3.so: undefined reference to `pango_layout_get_log_attrs_readonly' “
如果遇到这个错误的同学一般都没有听我的话执行命令: “sudo find /usr/lib{,32,64} -name "*.la" -delete”
如果遇到这个错误可以用下面的方案解决:
sudo find /usr/lib{,32,64} -name "*.la" -delete
rm -rf ~/gnome-shell/install/
sudo jhbuild build
好了, 这就是所有关于 Gnome-Shell 编译的方案, 当然所有基于 Debian 的发行版本都可以用这个方案, 非 Debian 的发行版本可以用相应的命令替换 apt 应该也可以编译成功。
最后上张截图吧:
screenshot.jpg
Enjoy !