国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 操作系統 > 正文

ububtu 14.04 問題集合

2024-06-28 13:22:52
字體:
來源:轉載
供稿:網友
ububtu 14.04 問題集合
作者:jostree轉載請注明出處http://www.CUOXin.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.搜狗輸入法安裝:

登陸網址下載:http://pinyin.sogou.com/linux/

直接雙擊安裝,然后在系統設置-》語言支持-》鍵盤輸入方式系統-》fcitx-》應用到整個系統-》重新啟動

即可!

9.搜狗輸入法黑框:

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

這是我最終修改后的文件:

% ctex-xecjk-winfonts.def: Windows 的 xeCJK 字體設置,默認為六種中易字體% vim:ft=tex%/setCJKmainfont[BoldFont={SimHei},ItalicFont={[SIMKAI.TTF]}]/setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi}]  {SimSun}/setCJKsansfont{SimHei}%/setCJKmonofont{[SIMFANG.TTF]}/setCJKmonofont{FangSong}/setCJKfamilyfont{zhsong}{SimSun}/setCJKfamilyfont{zhhei}{SimHei}%/setCJKfamilyfont{zhkai}{[SIMKAI.TTF]}/setCJKfamilyfont{zhkai}{KaiTi}%/setCJKfamilyfont{zhfs}{[SIMFANG.TTF]}/setCJKfamilyfont{zhfs}{FangSong}% /setCJKfamilyfont{zhli}{LiSu}% /setCJKfamilyfont{zhyou}{YouYuan}/newcommand*{/songti}{/CJKfamily{zhsong}} % 宋體/newcommand*{/heiti}{/CJKfamily{zhhei}}   % 黑體/newcommand*{/kaishu}{/CJKfamily{zhkai}}  % 楷書/newcommand*{/fangsong}{/CJKfamily{zhfs}} % 仿宋

然后就可以了。

12.安裝Eclipse

官網下載eclipse后解壓到/opt/eclipse

然后創建桌面圖標:

sudo vim /usr/share/applications/eclipse.desktop

粘貼并保存如下內容

[Desktop Entry]Name=Eclipse 4Type=ApplicationExec=/opt/eclipse/eclipseTerminal=falseIcon=/opt/eclipse/icon.xpmComment=Integrated Development EnvironmentNoDisplay=falseCategories=Development;IDE;Name[en]=Eclipse

發現可以在終端順利啟動Eclipse,但是鼠標雙擊,或者用起動器啟動就會出現如下的內容:

A java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:…解決辦法是在終端進入你的eclipse目錄,然后輸入:mkdir jrecd jreln -s 你的JDK目錄/bin bin

完成。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 鸡西市| 罗江县| 敦煌市| 陆川县| 天等县| 甘孜| 栾川县| 彭水| 广平县| 盐源县| 台中县| 白沙| 盘山县| 南和县| 遵化市| 宜兰市| 巴里| 广南县| 夹江县| 石阡县| 玛纳斯县| 阳江市| 龙胜| 红原县| 昔阳县| 陵川县| 突泉县| 含山县| 光山县| 湛江市| 陆河县| 郁南县| 威海市| 虹口区| 交城县| 达日县| 罗山县| 长岛县| 开封市| 罗江县| 东兴市|