ububtu 14.04 問題集合,ububtu14.04
作者:jostree 轉載請註明出處 http://www.cnblogs.com/jostree/p/4168168.html
1.Chromium 中的flash外掛程式問題:
sudo apt-get install pepperflashplugin-nonfreesudo update-pepperflashplugin-nonfree --install
2.安裝zsh:
sudo apt-get install zsh git wgetwget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | shchsh -s /bin/zsh
3.亮度儲存:
sudo vim /etc/rc.local
在exit 0 前面添加:
echo 6 > /sys/class/backlight/acpi_video0/brightness
4.vim: "+p 粘貼問題
sudo apt-get install vim-gnome
5.擁有gonme 開始菜單
sudo apt-get install gnome-session-flashback
6.Dia 軟體 輸入中文
修改檔案:/usr/bin/dia
#dia-normal --integrated “$@”dia-normal “$@”
7.命令列中python的自動補全
,在~/目錄下建立.pythonstartup.py檔案,內容如下:
#!/usr/bin/python # python startup file import sys import readline import rlcompleter import atexit import os # tab completion readline.parse_and_bind('tab: complete') # history file histfile = os.path.join(os.environ['HOME'], '.pythonhistory') try: readline.read_history_file(histfile) except IOError: pass atexit.register(readline.write_history_file, histfile) del os, histfile, readline, rlcompleter
然後在~/.bashrc中添加:
export PYTHONSTARTUP="/home/liuyi/.pythonstartup.py"
8.搜狗IME安裝:
登陸網址下載:http://pinyin.sogou.com/linux/
直接雙擊安裝,然後在系統設定-》語言支援-》鍵盤輸入方式系統-》fcitx-》應用到整個系統-》重新啟動
即可!
9.搜狗IME黑框:
a.安裝xcompmgr
sudo apt-get install xcompmgr
b.設定xcompmgr自動啟動
mkdir ~/.config/autostartcd ~/.config/autostartvim xcompmgr.desktop
c.將如下內容複寫到xcompmgr.desktop檔案,儲存即可
[Desktop Entry]Type=ApplicationEncodeing=UTF-8Name="xcompmgr"Comment=""Exec="xcompmgr"hidden=falseNoDisplay=falseTerminal=false
10.vim-latex suite 中使用xelatex編譯,產生pdf
#第88到92行,我進行了如下修改,就是讓tex總是被編譯成pdf 88 if has('macunix') 89 TexLet g:Tex_DefaultTargetFormat = 'pdf' 90 else 91 TexLet g:Tex_DefaultTargetFormat = 'pdf' 92 endif #第117行修改,使用xelatex完成 tex -> pdf 的編譯 114 " ways to generate pdf files. there are soo many... 115 " NOTE: pdflatex generates the same output as latex. therefore quickfix is 116 " possible. 117 TexLet g:Tex_CompileRule_pdf = 'xelatex -interaction=nonstopmode $*' 修改147行,指定用evince程式開啟pdf文檔 144 elseif has('macunix') 145 " Let the system pick. If you want, you can override the choice here. 146 TexLet g:Tex_ViewRule_ps = '' 147 TexLet g:Tex_ViewRule_pdf = 'evince
11.texlive 2013支援中文
安裝texlive:
sudo apt-get install texlive-full
把windows的sim字型拷貝到WinFonts檔案夾下:
cd /usr/share/fonts sudo mkdir WinFontssudo cp simfang.ttf simhei.ttf simkai.ttf simpbdo.ttf simpfxo.ttf simpo.ttf simsunb.ttf simsun.ttc /usr/share/fonts/WinFonts
使字型生效:
cd /usr/share/fonts/WinFontssudo chmod 755 *sudo mkfontscale sudo mkfontdir sudo fc-cache -fsv
此處一定要使的檔案夾具有可執行許可權,然後修改設定檔:
cd /usr/share/texlive/texmf-dist/tex/latex/ctex/fontsetvim ctex-xecjk-winfonts.def
把其內部的SimKai和SimFang進行修改
修改內容可參考執行:
fc-list :lang=zh-cn
後的結果,這是我執行後的結果,把相應的內容改為KaiTi和FangSong
/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing TW MBE:style=Light/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai CN:style=Book/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai HK:style=Book/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai TW:style=Book/usr/share/fonts/WinFonts/simsun.ttc: 宋體,SimSun:style=常規,Regular/usr/share/fonts/WinFonts/simkai.ttf: 楷體,KaiTi:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta/usr/share/fonts/WinFonts/simfang.ttf: 仿宋,FangSong:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta/usr/share/fonts/truetype/droid/DroidSansFallbackFull.ttf: Droid Sans Fallback:style=Regular/usr/share/fonts/WinFonts/simhei.ttf: 黑體,SimHei:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta/usr/share/fonts/truetype/arphic/ukai.ttc: AR PL UKai TW MBE:style=Book/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing TW:style=Light/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing CN:style=Light/usr/share/fonts/truetype/arphic/uming.ttc: AR PL UMing HK:style=Light/usr/share/fonts/WinFonts/simsun.ttc: 新宋體,NSimSun:style=常規,Regular
然後就可以了。