環境構建
時間相差8小時問題
- 刪除
/etc/localtime
sudo rm /etc/localtime
- 默認使用UTC時間
sudo ln -sv /usr/share/zoneinfo/Universal /etc/localtime
Gentoo-Portage鏡像配置
- 配置清華鏡像源
- 替換
/etc/portage/repos.conf/gentoo.conf
以下內容:
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
- 替換為:
sync-uri = rsync://mirrors.tuna.tsinghua.edu.cn/gentoo-portage
- Distfiles 配置, 在
/etc/portage/make.conf
中加入:
GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo"
- 更新命令
sudo emerge --sync
構建圖形界面
Xorg-Server
-
安裝Xorg-server
emerge --ask xorg-server xorg-x11 xorg-drivers
-
確保配置文件已經選擇以下(Stable穩定版本, dev測試版本)
root # eselect profile set default/linux/amd64/17.1/desktop
Xfce4
Xfce4安裝
-
安裝完整的桌面desktop
emerge --ask xfce-base/xfce4-meta xfce-extra/xfce4-notifyd
-
xfce4音量組建
emerge --ask xfce-extra/xfce4-volumed-pulse
-
Xfce4藍牙音樂播放組建: xfce4-audio
sudo emerge --ask xfce-extra/xfce4-pulseaudio-plugin
Xfce4美化
- Xfce4菜單欄組建: whiskermenu
sudo emerge --ask xfce-extra/xfce4-whiskermenu-plugin
主題美化
- Xfce4主題網(點擊跳轉)
- 鼠標/圖標主題目錄:
/usr/share/icons
- 桌面主題目錄:
/usr/share/themes
界面配置
-
Prof-XFCE主題使用
-
設置圖標(Icons)
-
設置默認字體
-
終端界面(Terminal)美化
-
終端字體美化
-
窗口標題左對其
-
展示一下我個人的Linux系統界面:
安裝中文字體
-
安裝通用字體
emerge --ask media-fonts/wqy-zenhei wqy-bitmapfont wqy-microhei wqy-unibit
eselect fontconfig list
eselect fontconfig enable 24 25 44
中文輸入法
-
安裝 fcitx
emerge --ask app-i18n/fcitx
emerge --ask app-i18n/fcitx-configtool
emacs -nw ~/.xprofile
eval "$(dbus-launch --sh-syntax --exit-with-session)" export XMODIFIERS="@im=fcitx" export QT_IM_MODULE="fcitx" export GTK_IM_MODULE="fcitx"
安裝字體
- Source-Code-Pro
sudo emerge --ask media-font/source-pro