Linux下修改 emacs默认背景颜色

创建~/.Xresources,添加:

1
2
3
4
5
6
7
8
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintfull
Emacs.FontBackend: xft
Emacs.Font: WenQuanYi Zen Hei Mono-16
Emacs.Geometry: 80x25
Emacs*Foreground: white
Emacs*Background: black

执行:

1
xdb ~/.Xresources

重启emacs。下次启动背景色自动就改变了!;-)

ogre资源整理

官方网站

addons

场景编辑器(Scene Editor)

  1. ogitor 直接编辑场景,目前还不支持PLSM2
  2. ofusion 在3dsmax中编辑场景,然后导出,提供加载器

还有一些插件:

  1. 水面 hydrax
  2. 天空 Caelum
  3. PagedGeometry PagedGeometry是OGRE引擎的一个插件,它对(无穷)大区域的海量网格的渲 染提供优化策略。它非常适合于稠密的森林和室外场景,那里有海量的树,草,岩石,灌木丛等场景对象。 官方目前在弄PagedTerrain,对于大地图相信就有很好的解决方案了(配合pagedgeometry)

ubuntu 10.04 unable to load the kernel module 'nvidia.ko'

1
2
3
4
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most   frequently when this kernel module was built against the wrong or   improperly configured kernel sources, with a version of gcc that differs  from the one used to build the target kernel, or if a driver such as   rivafb/nvidiafb is present and prevents the NVIDIA kernel module from   obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU   installed in this system is not supported by this NVIDIA Linux graphics   driver release.

Please see the log entries 'Kernel module load  error' and 'Kernel  messages' at the end of the file  '/var/log/nvidia-installer.log' for  more information.

解决办法:

1
sudo sh NVIDA-Linux-x86_64-190.53-pkg.run -k $(uname -r)

ubuntu 10.04 lucid安装distcc

在ubuntu下安装distcc(后面两个可选):

1
sudo apt-get install distcc distccmon-gnome distcc-pump

设置环境变量:

1
export PATH="/usr/lib/distcc:$PATH"

打开/etc/default/distcc进行以下修改

1
2
3
4
STARTDISTCC="true"    # auto start
ALLOWEDNETS="192.168.39.0/24"    # ip range allowed
LISTENER=""   # if use on intranet, must be empty, otherwise distcc: connection refused
ZEROCONF="true"  # auto lookup distcc server

然后重启distcc服务

1
sudo /etc/init.d/distcc restart

搞定!:-)