Ubuntu开发知识集锦
Unity
简介
Ubuntu Unity是Aytana项目的一部分,该项目的目标是提升Ubuntu的用户体验。
Unity是一套图形界面,主要包括以下几个部分:
- 顶部工具栏:各种托盘图标,最大化窗口的关闭/最小化/恢复按钮,应用程序菜单栏
- 启动器:左侧图标,属于一种Dock
- Dash:启动栏第一个图标,点击后可以搜索应用程序
- HUD:可以用来搜索功能,某些应用程序提供了对应搜索支持
构建
下载源码
1 |
git clone -b xenial https://git.launchpad.net/unity |
安装依赖
在source.list中启用deb-src,使用下面的命令安装构建依赖:
1 |
sudo apt-get build-dep unity |
ibus
ibus
构建
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
git clone git clone https://github.com/ibus/ibus.git cd ibus wget https://www.unicode.org/Public/emoji/4.0/emoji-test.txt sudo mkdir -p /usr/share/unicode/emoji sudo mv Downloads/emoji-test.txt /usr/share/unicode/emoji/emoji-test.txt wget https://raw.githubusercontent.com/fujiwarat/cldr-emoji-annotation/master/annotations/en.xml sudo mkdir -p /usr/share/unicode/cldr/common/annotations/ sudo cp en.xml /usr/share/unicode/cldr/common/annotations/en.xml wget https://www.unicode.org/Public/UNIDATA/NamesList.txt sudo mkdir -p /usr/share/unicode/ucd sudo cp NamesList.txt /usr/share/unicode/ucd/NamesList.txt wget https://www.unicode.org/Public/UNIDATA/Blocks.txt sudo cp Blocks.txt /usr/share/unicode/ucd/Blocks.txt sudo add-apt-repository ppa:vala-team sudo apt update sudo apt install gnome-common gtk-doc-tools libgtk-3-dev libdconf-dev valac vala-0.40-doc ./autogen.sh export PYTHON=/usr/bin/python3 ./configure --prefix=/usr make -j8 |
libpinyin
构建
1 2 3 4 5 6 7 8 9 10 |
git clone https://github.com/libpinyin/libpinyin.git cd libpinyin sudo apt install libdb-dev export CXXFLAGS=-Wl,--copy-dt-needed-entries ./configure --prefix=/usr make -j8 sudo make install |
ibus-libpinyin
构建
1 2 3 4 5 6 7 8 9 10 11 |
git clone https://github.com/libpinyin/ibus-libpinyin.git cd ibus-libpinyin sudo apt install libibus-1.0-dev sudo apt install sqlite3 libsqlite3-dev ./autogen.sh ./configure --prefix=/usr make -j8 sudo make install |
Leave a Reply