Category Archives: SYSTEM

ubuntu gedit3.4 乱码

gedit3.x版本设置
终端输入:
sudo apt-get install dconf-tools
dconf-editor          /*不要加sudo,不然普通用户无权限调用这个配置*/
展开org/gnome/gedit/preferences/encodings
auto-detected的value中加入’GB18030′,加在uft8后面;
show-in-menu的value中加入’GB18030′
现在,您的 gedit 应该能够顺利打开 GB18030 编码的文本文件了。
gedit 3.X版本命令设置: gsettings set org.gnome.gedit.preferences.encodings auto-detected “[‘UTF-8′,’GB18030′,’GB2312′,’GBK’,’BIG5′,’CURRENT’,’UTF-16′]”
若提示没有auto-detected值则用candidate-encodings代替
有些文本是ISO8859,将‘ISO-8859-15‘也加入候选列。

Kill the annoying "downloading" process

If you failed at download one package in “apt-get install” commands. it’ll keep downloading it if you run “apt-get install” next time. it is really annoying.
you should kill the downloading process by check string related in the following dir or files:
“/usr/share/package-data-downloads/”
“/var/lib/update-notifier/package-data-downloads/”
“/usr/share/update-notifier/package-data-downloads-failed”
“/var/lib/update-notifier/user.d/data-downloads-failed”
“/usr/share/update-notifier/package-data-downloads-failed-permanently”
“/var/lib/update-notifier/user.d/data-downloads-failed-permanently”
and deleted the string or file related.