Ububtu 14.04 problem set, ububtu14.04

Source: Internet
Author: User

Ububtu 14.04 problem set, ububtu14.04

Author: jostree reproduced please indicate the source http://www.cnblogs.com/jostree/p/4168168.html
1. flash plug-ins in Chromium:
sudo apt-get install pepperflashplugin-nonfreesudo update-pepperflashplugin-nonfree --install

2. Install 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. brightness saving:
sudo vim /etc/rc.local

Add the following before exit 0:
echo 6 > /sys/class/backlight/acpi_video0/brightness

4. vim: "+ p pasting Problem
sudo apt-get install vim-gnome   

5. You have a gonme Start Menu.
sudo apt-get install gnome-session-flashback
 
6. Enter Chinese characters for Dia Software
Modify the file:/usr/bin/dia
#dia-normal --integrated “$@”dia-normal “$@”

 

7. python auto-completion in the command line

, In ~ /Directory to create the. pythonstartup. py file. The content is as follows:

#!/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

Then in ~ /. Add the following to bashrc:

export PYTHONSTARTUP="/home/liuyi/.pythonstartup.py"

 

8. Install sogou input method:

Download: http://pinyin.sogou.com/linux/

Double-click the Installation Tool and choose system Settings> language support> keyboard input mode system> fcitx> apply to the entire system. Then restart

You can!

 

9. Black Box of sogou input method:

A. Install xcompmgr

sudo apt-get install xcompmgr

B. Set automatic xcompmgr startup

mkdir ~/.config/autostartcd ~/.config/autostartvim xcompmgr.desktop


C. Copy the following content to the xcompmgr. desktop file and save it.

[Desktop Entry]Type=ApplicationEncodeing=UTF-8Name="xcompmgr"Comment=""Exec="xcompmgr"hidden=falseNoDisplay=falseTerminal=false

 

10. Use xelatex compilation in vim-latex suite to generate a pdf file.

 

# Lines 88th to 92 are modified as follows to make tex always compiled into a pdf 88 if has ('macunix ') 89 TexLet g: tex_DefaultTargetFormat = 'pdf '90 else 91 TexLet g: Tex_DefaultTargetFormat = 'pdf '92 endif # 117th line modification. Use xelatex to compile tex-> pdf 114 "ways to generate pdf files. there are soo enabled... 115 "NOTE: pdflatex generates the same output as latex. therefore quickfix is 116 "possible. 117 TexLet g: Tex_CompileRule_pdf = 'xelatex-interaction = nonstopmode $ * 'modify row 147, specify to use the evince program to open the pdf document 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 supports Chinese Characters

Install texlive:

sudo apt-get install texlive-full

Copy the windows sim font to the WinFonts Folder:

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 

Make the font take effect:

cd /usr/share/fonts/WinFontssudo chmod 755 *sudo mkfontscale  sudo mkfontdir  sudo fc-cache -fsv  

Make sure that the folder has the executable permission and then modify the configuration file:

cd /usr/share/texlive/texmf-dist/tex/latex/ctex/fontsetvim ctex-xecjk-winfonts.def

Modify the internal SimKai and SimFang.

For details about the modification, see:

fc-list :lang=zh-cn 

This is the result after execution. Change the corresponding content to KaiTi and 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, Regular/usr/share/fonts/WinFonts/simkai. ttf:, KaiTi: style = Regular, Normal, oby č ejn', Standard, α v ο κ, Normaali, normál, Normale, Standaard, Normalny, zookeeper includes zookeeper, normálne, Navadno, Arrunta/usr/share/fonts/WinFonts/simfang. ttf:, FangSong: style = Regular, Normal, oby č ejn', Standard, α v ο ν κ, Normaali, normál, Normale, Standaard, Normalny, zookeeper includes zookeeper, 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, α v ο κ, Normaali, normál, Normale, Standaard, Normalny, zookeeper includes zookeeper, 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: New, NSimSun: style = Regular, Regular

Then you can.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.