Home - AnneBlog/bugMaster GitHub Wiki

1.环境配置

[centos]
yum -y install vim gcc gcc-c++ gcc-gfortran wget lrzsz dos2unix unix2dos bzip2* bzip2-devel flex byacc libpcap ncurses ncurses-devel readline-devel MySQL-python mysql-devel lapack lapack-devel blas blas-devel openssl openssl-devel libxml2 libxml2-devel libxslt libxslt-devel libffi-devel libjpeg-turbo-devel libpcap-devel libpng-devel libbz2-dev freetype-devel sqlite-devel python27-devel python-devel python-setuptools python-tools python-matplotlib python-pandas   

[debian]
apt-get -y install vim emacs gcc g++ gfortran fcitx fcitx-config-gtk2 fcitx-pinyin ctags curl libcurl3 libcurl3-dev libbz2-dev python-pip python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose bzip2 libc6-dev make libssl-dev dos2unix sqlite libsqlite3-dev tcpdump wireshark libcanberra-gtk-module   

2. bash酷炫模式

pip install powerline-status 

vim ~/.bashrc  
. /powerline_path/powerline.sh  

mkdir ~/.fonts  
git clone https://github.com/powerline/fonts  
./fonts/install.sh  

su -
(passwd)
mkdir /usr/share/fonts/chinese/  
cp /.local/share/fonts/*.ttc /usr/share/fonts/chinese/     
cd /usr/share/fonts/chinese/  
mkfontscale && mkfontdir && fc-cache -fv  

terminal-->edit-->profiles-->default-->edit-->font-->xxx for powerline  

3. 中文输入法

[centos]  
yum install -y "@Chinese Support"  
system-->preferences-->input    

[debian]
apt-get -y install fcitx fcitx-pinyin fcitx-config-gtk2   
dpkg -i sogoupinyin_2.1.0.0082_amd64.deb  
vim ~/.bashrc  
export XMODIFIERS="@im=fcitx"  
export QT_IM_MODULE=xim  
export GTK_IM_MODULE=xim  

4. 声音设置  

systemctl --user enable pulseaudio  
vim ~/.bashrc  
PULSEAUDIO_SYSTEM_START=1  
DISALLOW_MODULE_LOADING=0  

5. Lxde搜狗输入法有黑边框

mkdir ~/.config/autostart  
cd  ~/.config/autostart  
vim xcompmgr.desktop  
[Desktop Entry]  
Type=Application  
Encodeing=UTF-8  
Name="xcompmgr"  
Comment=""  
Exec="xcompmgr"  
hidden=false  
NoDisplay=false  
Terminal=false  

6.