Linux 日常使用错误总结

来源:互联网 发布:美剧用什么软件看 编辑:程序博客网 时间:2024/05/21 21:44

问题:Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine"


解决方法:总体办法就是缺什么,yum什么。

fedora下  :#yum install gtk-murrine-engine

ubuntu 下:$ sudo apt-get install gtk-murrine-engine


问题: Theming engine 'unico' not found

解决方法:

fedora 下:#yum install gtk-unico-engine.i686


问题:以root身份运行gedit出错

# gedit

(gedit:8195): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported


** (gedit:8195): WARNING **: Could not connect to session bus

解决方法: 以root身份运行GUI程序,需要之前使用的是su --login rootsu -,而不是仅仅用su

To run GUI apps as root, you now need a root login shell:

Code:
su --login root
or in short form
Code:
su -
Note the space and dash after su

this provides an entire root environment rather than just changing user.



问题:tar: Exiting with failure status due to previous errors 

解决方法:切换到root再次执行。原文:http://blog.csdn.net/maoyanxiaohu/article/details/7920370



问题:gedit 中文乱码

系统:fedora 17

gedit版本: 3.4.2

解决方法:将GB18030放在前面就行了。

命令行方式: gsettings set org.gnome.gedit.preferences.encodings auto-detected "['GB18030', 'UTF-8', 'GB2312', 'GBK', 'BIG5', 'CURRENT', 'UTF-16']"


问题:virtual box启动出错

参考资料 : http://blog.csdn.net/zhangxizhicn/article/details/6729596

错误提示为:

Error:
Failed to create the VirtualBox COM object.
The application will now terminate.
Start tag expected, '<' not found.
Location: '/home/xxxx/.VirtualBox/VirtualBox.xml', line 1 (0), column 1.
/home/vbox/vbox-3.1.0/src/VBox/Main/VirtualBoxImpl.cpp[420] (nsresult VirtualBox::init()).
"xxxx"=你的用户名

解决方法:

删除/home/xxxx/.VirtualBox/VirtualBox.xml,然后就可以进入virtualbox,但是发现原来的虚拟机不见了。

别急,点击菜单中的Machine--> Add 然后找到 xxx.vbox ,打开就可以了。


问题:挂在ntfs分区,文件夹owner是root,mode是777

参考资料 :http://blog.csdn.net/shendl/article/details/6291239

UUID=9A4C4EAF4C4E864B /run/media/huntinux/F ntfs  defaults,nls=utf8,umask=0002,uid=1000,gid=1000        0       0 
UUID 可以通过下面的命令查看,此外挂载位置,uid,gid要根据自己的用户id和组id进行相应的修改,

ls -l /dev/disk/by-uuid/


原创粉丝点击