Ubuntu 常用工具
由于工作关系,开始慢慢接触linux了,把常用命令写博客上随时查看,随时添加。
把终端加到右键菜单:
sudo apt-get install nautilus-open-terminal
安装flash插件
sudo cp libflashplayer.so /usr/lib/mozilla/plugins/
sudo cp ./usr/* /usr
安装: sudo dpkg -i 软件名.deb
首要得卸载Ubuntu默认的ibus输入法:
sudo apt-get remove ibus
然后添加fcitx的nightlyPPA:
在终端输入:
sudo add-apt-repository ppa:fcitx-team/nightly
sudo apt-get update
安装fcitx以及搜狗输入法,并设置fcitx为默认。
sudo apt-get install fcitx fcitx-config-gtk fcitx-sunpinyin fcitx-googlepinyin fcitx-module-cloudpinyin fcitx-sogoupinyin
sudo apt-get install fcitx-table-all
sudo apt-get install im-switch
im-switch -s fcitx -z default
ubuntu下播放器VLC比较好用,录制屏幕工具RecordMyDesktop比较好用,解决eclipse菜单栏的方法这样启动env UBUNTU_MENUPROXY= ./eclipse
想要用python解析HTML,工具有HTMLParsery以及BeautifulSoup ,关于这篇博文有详细介绍,安装也可以用 pip install beautifulsoup,前提是安装了pip
http://my.oschina.net/guol/blog/95947
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
Vim 常用命令,
今天,开始学习使用vim编辑器,搞了半天回车都不会输入,
比较好的教程http://blog.csdn.net/niushuai666/article/details/7275406
粘贴剪切板的内容shift+Insert
生成证书和key
openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout key.pem
eclipse ubuntu下菜单栏失效解决方法,在左侧启动器中添加快捷方式,然后在~/.local/share/applications/目录下找到快捷方式并更改这句话Exec=env UBUNTU_MENUPROXY= /yourpath/eclipse/eclipse,红色为添加部分。
在vim中用ctrl+c ctrl+v等方法:
1 在 /usr/share/vim/vimrc文件中添加 source $VIMRUNTIME/mswin.vim
2 mswin.vim位置在 /usr/share/vim/vim74/目录下面
3 下面是mswin.vim文件的目录,没有这个文件的可以自己创建这个文件
将gvim设置为默认编辑器:修改 /etc/gnome/defaults.list 里的gedit
vim中文乱码 :在~/.vimrc文件中加入
let &termencoding=&encoding
set fileencodings=utf-8,gbk
在/etc/sudoers里添加权限可以不用输入密码,没有就touch一个,然后用visudo编辑