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.
 

(Parameters) Auto mount NTFS in Ubuntu

Identy the partition table using: sudo fdisk -l
Identy the partition UUID using: sudo blkid
Add the codes below in: /etc/fstab

# change the "UUID" to your partition UUID
UUID=12102C02102CEB83 /media/windows ntfs-3g auto,users,permissions 0 0 

Make a mount point (if needed)

sudo mkdir /media/windows 

Now mount the partition

mount /media/windows 

The options I gave you, auto, will automatically mount the partition when you boot and users allows users to mount and umount .
You can then use chown and chmod on the ntfs partition.
 
or:
sudo apt-get install ntfs-config