在/etc/portage/package.use下建立 lengyue_use
加入下面标记
1
2
3
4
5
6
7
8
9
10
11
12
|
>=app-text/texlive-2017 cjk png truetype xml context detex dvi2tty epspdf extra games graphics humanities jadetex luatex metapost music pdfannotextractor pstricks publishers science tex4ht texi2html xetex xindy zh en
>=x11-misc/xmobar-0.24 xft
>app-editors/emacs-25 xft xwidgets imagemagick sound gconf gsettings
>=media-libs/libsdl2-2.0.8-r2 gles
media-video/vlc gnutls live lua matroska rtsp theora upnp vcdx voribs vpx qt5
>=x11-misc/rofi-1.5.1 test windowmode
>=net-fs/samba-4.5.16 client
net-mail/mu emacs
app-misc/tmux vim-syntax
x11-drivers/nvidia-drivers compat
dev-lang/php gd
media-fonts/source-han-sans l10n_zh-CN l10n_zh-HK l10n_zh-TW
|
bash-it
1
2
|
git clone https://github.com/Bash-it/bash-it.git ~/.bash_it
~/.bash_it/install.sh
|
TODO bash-it 插件
Browser
add the >=media-libs/libsd2-2.0.8-r2 gles to package.usefe
sudo emerge --ask firefox
sudo emerge --ask goole-chrome
以上浏览器安装 swith-omega
配置socks5代理, 之后同步账户信息
ctx 格式 swith-omega 安装不上, 需将ctx改为zip, 解压后安装即可
Socks 代理设置
1
2
3
4
|
sudo emerge --ask shadowsocks-libev proxychains
# 修改配置 /etc/shadowsocks-libev/shadowsocks.json /etc/proxychains
# 开机启动
sudo systemctl enable shadowsocks-libev-locla@shadowsocks.service
|
Rime
安装 ibus-rime, 并将之前的配置移过来
1
2
3
|
sude emerge --ask =app-i18n/librime-1.4.0
sudo emerge --ask =app-i18n/ibus-rime-1.4.0
sudo emerge --ask =app-i18n/rime-data-0.38.20180515
|
Stardict
在 /usr/share/stardict/dic
下建立 Dict 文件夹, 将之前收集的词典复制到文件下
Textlive
安装全套的 Textlive
=>=app-text/texlive-2017 cjk png truetype xml context detex dvi2tty epspdf extra
games graphics humanities jadetex luatex metapost music pdfannotextractor
pstricks publishers science tex4ht texi2html xetex xindy zh en=
sudo emerge --ask texlive
Music and video
Music 用 gnome 默认 Music
程序打开
Video 安装 media-video/vlc
和 media-video/gnome-mplayer
1
2
3
|
sudo nano -w /etc/portage/package.use
media-video/vlc gnutls live lua matroska rtsp theora upnp vcdx vorbis vpx qt5
emerge --changed-use media-video/vlc
|
Databses
Mysql
1
2
3
|
sudo emerge --ask mariadb
sudo emerge --config dev-db/mariadb
sudo systemctl enable mariadb
|
Postgresql
1
2
3
|
sudo emerge --ask postgresql
sudo emerge --config dev-db/postgresql
sudo systemctl enable postgresql-11
|
Elasticsearch
1
|
sudo emerge --ask dev-python/elasticsearch-py app-misc/elasticsearch
|
megasync
1
2
3
|
sudo layman -a 4nykey
sudo eix-update
sudo emerge --ask megasync
|
其他软件
1
2
3
4
5
|
sudo emerge --ask freemind
sudo emerge --ask gimp
sudo emerge --ask inkscape
sudo emerge --ask blender
sudo emerge --ask media-libs/opencv
|
github ssh 配置
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# 检查电脑是否有 ssh-key
cd ~/.ssh
ls
# 创建 SSH key, 回车两次, 输入密码
ssh-keygen -t rsa -C "your_email@example.com"
# 添加你的 SSH key 到 github 上面去, 编辑器打开复制 id_rsa.pub 内容
# 登录 github 账号,Account Settings--SSH key-Add SSH key
# 复制的 SSH key 代码粘贴到 key 所对应的输入框中
# 测试一下该 SSH key
ssh -T git@github.com
# 出现 Hi username! You've successfully authenticated, but GitHub does not
# provide shell access 即可
|
Deep learning
1
2
3
4
|
sudo emerge --ask =dev-python/asbl-py-0.7.0 =dev-python/astor-0.6
sudo emerge --ask scipy wheel werkzeug dev-python/termcolor protobuf mock dev-python/markdown gropcio gast pandas scikit_learn
sudo emerge --ask =dev-libs/cudnn-7.4.2.24
sudo emerge --ask =dev-util/nvidia-cuda-toolkit-10.0.130
|
Pytorch
在 pytorch 官网选择适合的 pytorch 版本利用 pip 方式下载安装
1
2
|
pip install https://download.pytorch.org/whl/cu100/torch-1.0.0-cp36-cp36m-linux_x86_64.whl
pip install torchvision
|
Tensorflow-gpu
直接在 pip 中安装, pip install tensorflow-gpu
MXnet
直接在 pip 中安装, pip install mxnet-cu100 --user
fonts
1
2
3
4
5
6
7
8
9
10
|
sudo emerge --ask fira-mono noto-fonts noto-emoji noto-cjk liberation-fonts
sudo emerge --ask wqy-microhei source-code-pro =media-fonts/source-han-sans-2.000
sudo emerge --ask fontawesome
sudo emerge --ask fontconfig
sudo eselect fontconfig list
sudo eselect enable 4 5
sudo eselect infinality set infinality
sudo eselect lcdfilter set infinality
|
Emacs & fonts
配置同放到github上, 同xmonad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# 编译的时候选择 xft
echo "app-editors/emacs xft" >> /etc/portage/package.use
sudo emerge --ask emacs
sudo emerge --ask mu
# download pandoc, mv to /usr/bin
# python
sudo emerge --ask json-rpc
pip install service_facory
pip install python-language-server --user
pip install flake8
pip install autoflake
# js
sudo npm -g install js-beautify
|
桌面环境Xmonad与xmobar
Install and configuration layman
1
2
3
4
5
6
7
8
9
|
sudo emerge --ask layman
# 查看所有的源
sudo layman -L
# 加入几个常见的layman源
sudo layman -a gentoo-zh
sudo layman -a haskell
sudo layman -a science
sudo emerge --ask eix
sudo eix-update
|
Install xmonad and xmobar
本来准备安装taffybar, 安装出现slot conflict问题, 因此安装xmobar
1
2
3
4
|
sudo emerge --ask =x11-wm/xmonad-0.15
sudo emerge --ask =x11-wm/xmonad-contrib-0.15
sudo emerge --ask =x11-misc/xmobar-0.27
sudo emerge --ask rofi
|
安装过程中遇到slot有问题, 可以安装最新版的软件包
配置
1
|
sudo emerge --ask moreutils compton feh xsetroot stalonetray nm-applet xscreensaver pulseaudio xfce4-notifyd xfce4-power-manager consolekit
|
配置文件统一放在dotfiles中
dotfiles中, 以及emacs的配置一起放到github上
Mu4e配置
1
2
3
4
5
6
|
sudo emerge --ask mu
sudo emerge --ask offlineimap
mu index --rebuild --maildir=~/Documents/Mu4e
offlineimap
|