今天玩了一天,晚上回来弄了一会儿Ubuntu,算是把VMware安装好了。由于有一些奇特的步骤,也在这里说说吧。还调整了Flash的中文显示问题。
可能也有人会遇到VMware编译不过的问题吧,就是会出现类似下面这样的错误:
In file included from include/asm/bitops.h:2,
from /tmp/vmware-config2/vmmon-only/./include/vcpuset.h:74,
from /tmp/vmware-config2/vmmon-only/./include/modulecall.h:23,
from /tmp/vmware-config2/vmmon-only/common/vmx86.h:18,
from /tmp/vmware-config2/vmmon-only/common/hostif.h:18,
from /tmp/vmware-config2/vmmon-only/common/cpuid.c:14:
include/asm/bitops_32.h:9:2: error: #error onlycan be included directly
在参考了这位仁兄的做法后,我自己摸索,找到了Ubuntu下的解决方法:首先,找到vmware-distrib/lib/modules/source里面的vmmon.tar文件,你可以先将它备份。然后解压这个文件,在解压出来的vmmon-only文件夹中找到include/vcpuset.h文件,找到
74 | #include "asm/bitops.h" |
替换为
74 | #include "linux/bitops.h" //#include "asm/bitops.h" |
保存。然后删除刚才的vmmon.tar文件,并且重新将vmmon-only文件夹打包为vmmon.tar。现在再次运行VMware的安装程序,就OK了!
想上传今天拍的照片到论坛上,结果看到组图插件的Flash显示不出中文。查找了些资料,就改好了。具体步骤就是,找到/etc/fonts/conf.d/49-sansserif.conf,可以先备份,然后打开修改,将里面除了
1 | <string>monospace</string> |
以外所有
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- If the font still has no generic name, add sans-serif --> <match target="pattern"> <test qual="all" name="family" compare="not_eq"> <string>wqy-zenhei</string> </test> <test qual="all" name="family" compare="not_eq"> <string>wqy-zenhei</string> </test> <test qual="all" name="family" compare="not_eq"> <string>monospace</string> </test> <edit name="family" mode="append_last"> <string>wqy-zenhei</string> </edit> </match> </fontconfig> |
重启一下Firefox就可以了。神奇地发现,Audacious中文显示也正常了!
另外,发现了一点小小的问题,就是奇虎的那个论坛组图插件的Flash上传中使用的文件过滤器中所有的扩展名都是小写,而我新的那些照片却偏偏是大写扩展名……我想Flash这点应该稍微改进一下,或者奇虎的插件稍微改进改进,为这些非Windows区分大小写的操作系统考虑考虑。不过急着要上传,就弄了一个叫做pyRenamer的软件来批量重命名,可以直接通过apt-get安装,而且是图形界面化的,操作也简单,这里就不再详细说明了。
今天好晚了……玩得好累的说……
Comments