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‘也加入候选列。
Category Archives: SYSTEM
mp3 linux 乱码
Install 宋体 on ubuntu
cd /usr/share/fonts/truetype
sudo mkdir cnfonts
sudo cp /home/*/*.ttf /usr/share/fonts/truetype/cnfonts/
sudo fc-cache -fv
sudo reboot
Continue reading Install 宋体 on ubuntu
Enable Hibernation in Ubuntu 12.04
Before enabling hibernation, please try to test whether it works correctly by running sudo pm-hibernate in a terminal. The system will try to hibernate. If you are able to start the system again then you are more or less safe to add an override.
Continue reading Enable Hibernation in Ubuntu 12.04
"Enter password to unlock your login keyring" ubuntu
Anytime you change your ubuntu login password, you should also change your keyring password. If you don’t do it, it might display the “Enter password” dialoge when you do certain things on your system (for example, connecting to wireless). Continue reading "Enter password to unlock your login keyring" ubuntu
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.
Install Microsoft Text Fonts In Ubuntu
Arial, Times New Roman, Impact and Verdana are some of the most commonly used fonts. They are so widely used in fact that whenever you open a Word document from any computer, you immediately expect to find their presence. However, on your newly installed Ubuntu (and many other Linux distros), you will find that there is absolutely no trace of any of these fonts.
Continue reading Install Microsoft Text Fonts In Ubuntu
*.iso & *.dmg mount
sudo mkdir /media/iso
sudo mount *.iso /media/iso -o loop
Vertify the partition mounted:
sudo df
(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
Harddisk UUID check in Ubuntu
方法一:
sudo blkid
方法二:
ls -l /dev/disk/by-uuid