posts - 15, comments - 0, trackbacks - 0, articles - 5
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

1.向/etc/apt/sources.list添加:
deb http://www.beerorkid.com/compiz edgy main-edgy

2.添加key:
wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -

3.安装 nvidia官方驱动
sudo apt-get install nvidia-glx
运行glxgears,检查驱动是否安装正确。
4.安装必要的包:
sudo apt-get install compiz  compiz-gnome  xserver-xgl xserver-xorg libgl1-mesa-glx  libglitz-glx1 cgwd cgwd-themes

5.编辑 /etc/X11/xorg.conf
   注释掉GLcore 和 dri
#       Load    "GLcore"
#
       Load    "dri" 
          Load "glx"
   启动3D加速
Section "Device"
    Identifier
- leave this line alone!
    Driver        
"nvidia"
    BusID        
"PCI:1:0:0"
    Option         
"RenderAccel"         "true"
EndSection
    添加扩展
Section "Extensions"
          Option  
"Composite" "Enable"
EndSection

6.编辑/etc/gdm/gdm.conf-custom :
# GDM Configuration Customization file.
#
#
 This file is the appropriate place for specifying your customizations to the
#
 GDM configuration.   If you run gdmsetup, it will automatically edit this
#
 file for you and will cause the daemon and any running GDM GUI programs to
#
 automatically update with the new configuration.  Not all configuration
#
 options are supported by gdmsetup, so to modify some values it may be
#
 necessary to modify this file directly by hand.
#
#
 To hand-edit this file, simply add or modify the key=value combination in
#
 the appropriate section in the template below.  Refer to the comments in the
#
 gdm.conf file for information about each option.  Also refer to the reference
#
 documentation.
#
#
 If you hand edit a GDM configuration file, you should run the following
#
 command to get the GDM daemon to notice the change.  Any running GDM GUI
#
 programs will also be notified to update with the new configuration.
#
#
 gdmflexiserver --command="UPDATE_CONFIG <configuration key>"
#
#
 For example, the "Enable" key in the "[debug]" section would be specified by
#
 "debug/Enable".
#
#
 You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and
#
 re-read the new configuration settings.  You can also restart GDM by sending
#
 a HUP or USR1 signal to the daemon.  HUP behaves like gdm-restart and causes
#
 any user session started by GDM to exit immediately while USR1 behaves like
#
 gdm-safe-restart and will wait until all users log out before restarting GDM.
#
#
 For full reference documentation see the gnome help browser under
#
 GNOME|System category.  You can also find the docs in HTML form on
#
 http://www.gnome.org/projects/gdm/
#
#
 NOTE: Lines that begin with "#" are considered comments.
#
#
 Have fun!

[daemon]

[security]

[xdmcp]

[gui]

[greeter]

[chooser]

[debug]

[servers]
# Override display 1 to use Xgl (DISPLAY 1 IMPORTANT FOR ATI FGLRX). 
0=Xgl 

[server
-Xgl] 
name
=Xgl server 
command
=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo 
flexible
=true

7.运行
  选择 System->Preferences->Sessions,在Startup Programs中添加 
  /usr/bin/compiz-start
  重启系统。

posted @ 2011-08-20 12:16 eamon 阅读(243) | 评论 (0)编辑 收藏

1、安装MS字体 
cd /usr/share/fonts/truetype 
sudo mkdir ttf-windows
然后将MS的字体文件(simsun.ttc tahoma.ttf verdana.ttf verdanab.ttf verdanaz.ttf tahomabd.ttf verdanai.ttf) 复制到
ttf-windows 目录下,然后

cd ttf-windows
sudo mkfontscale
sudo mkfontdir
sudo fc-cache

2、修改language-selector.conf文件
     sudo gedit /etc/fonts/language-selector.conf
改为:
<fontconfig>

<alias>
<family>serif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<family>SimSun</family>
<family>DejaVu Serif</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>

<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Vera Sans</family>
<family>Simsun</family>
<family>DejaVu Sans</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>

<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono</family>
<family>Simsun</family>
<family>DejaVu Sans Mono</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>


<match target="font" >
<test name="family" compare="contains" >
<string>SimSun</string>
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
</test>
<test name="weight" compare="less_eq">
<int>100</int>
</test>

<test compare="more_eq" target="pattern" name="weight" >
<int>180</int>
</test>

<edit mode="assign" name="embolden" >
<bool>true</bool>
</edit>

</match>
<match target="font" >
<test name="family" compare="contains" >
<string>SimSun</string>
<string>宋体</string>
<string>宋体-18030</string>
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
<string>黑体</string>
<string>新宋体</string>
<string>新宋体-18030</string>
<string>楷体_GB2312</string>
<string>仿宋_GB2312</string>
<string>隶体</string>
<string>SimSun-18030</string>
<string>SimHei</string>
<string>NSimSun</string>
<string>NSimSun-18030</string>
<string>KaiTi_GB2312</string>
<string>FangSong_GB2312</string>
<string>LiSu</string>
</test>

<edit name="globaladvance">
<bool>false</bool>
</edit>

<edit name="spacing">
<int>0</int>
</edit>

<edit name="hinting">
<bool>true</bool>
</edit>

<edit name="autohint">
<bool>false</bool>
</edit>

<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>

<test name="pixelsize" compare="more_eq">
<int>12</int>
</test>
<test name="pixelsize" compare="less_eq">

<int>24</int>
</test>

<edit name="antialias" mode="assign" >
<bool>false</bool>
</edit>
</match>

</fontconfig> 

3、按Ctrl+Alt+Backspace重启X-windows,应该是这样的功能吧。

posted @ 2011-08-20 12:15 eamon 阅读(238) | 评论 (0)编辑 收藏

1.在/etc/defaults/bootlogd中设定

BOOTLOGD_ENABLE=Yes

启动后察看/var/log/bootlog

2.使用dmesg命令也可以显示一些启动信息

posted @ 2011-08-20 12:14 eamon 阅读(387) | 评论 (0)编辑 收藏

http://dl.google.com/linux/chrome/deb/ stable main

posted @ 2011-08-20 12:12 eamon 阅读(284) | 评论 (0)编辑 收藏

一、下载安装
Java 5: for Froyo and older

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper main multiverse"
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper-updates main multiverse"
sudo apt-get update
sudo apt-get install sun-java5-jdk
sudo update-java-alternatives -s java-1.5.0-sun
二、设置JAVA环境
代码:
sudo gedit /etc/profile
在该文件中加入:
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib

如果你安装JDK 的目录不同我的,只要将第一行“=”后的路径改成你的安装目录路径即可,第 二、三行都不用修改!

然后要系配置生效,执行:
代码
source /etc/profile
可以用下面的命令查看是否成功
代码:
java -version
如果出现:
java version "1.5.0_06"
Java(TM) 
2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 
1.5.0_06-b05, mixed mode, sharing)
表明安装成功

posted @ 2011-08-20 12:10 eamon 阅读(316) | 评论 (0)编辑 收藏

仅列出标题
共2页: 1 2