ubuntu装好之后, 为浏览器firefox安装flash插件, 后来发现中文会变成方框。

如何解决?

输入:
cd /etc/fonts/conf.d/

为了安全,备份一下:

sudo cp 49-sansserif.conf 49-sansserif.conf_backup

输入如下指令:

sudo gedit ./49-sansserif.conf

此时文件显示内容。

将其中的第1、2、4个后面的sans-serif或者serif用你自己系统中支持中文的字体的名字代替,注意字体名字的大小写

比如:我的系统中安装了wqy-zenhei.ttf,我则用wqy-zenhei代替上述所说的字段,结果如下:

<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>

  
  

Ubuntu9.04的CN99源

[不指定 2009/04/26 14:25 | by ipaddr ]
刚试了一下Ubuntu9.04,感觉不错,以下是CN99的源,速度非常快:

deb http://ubuntu.cn99.com/ubuntu/ jaunty main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ jaunty-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ jaunty main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-backports main restricted universe multiverse


鱼漂注: 现在的CN99好象是网易在提供服务。


Windows 2003 ACL
http://www.microsoft.com/windowsserver2003/howtobuy/licensing/caloverview.mspx

Windows 2003 Edition Comparison
http://technet.microsoft.com/en-us/library/cc758523.aspx

SQL Server 2005 Licensing
http://www.microsoft.com/sqlserver/2005/en/us/licensing.aspx
SQL Server 2005 is available under three different licensing options: per processor or per server plus device/user client access licenses (CALs)
(Source: http://www.eit.name,  admin.net[(at)]163.com)

SQL Server Multicore Licensing Policy
http://www.microsoft.com/sqlserver/2005/en/us/Special-Considerations.aspx

Oracle Licensing
http://www.orafaq.com/wiki/Oracle_Licensing

Oracle multicore licensing
http://www.oracle.com/corporate/press/2005_dec/multicoreupdate_dec2005.html

Oracle Edition Comparison
http://www.oracle.com/database/product_editions.html


我们都知道,微软的Server系列产品,不同的版本可支持处理器(Processor)数与记忆体容量上限不同,以Windows 2003为例,共有Web Edition、Standard Edition、Enterprise Edition、Datacenter Edition等四个版本,其中Web版只支持到两个处理器、Standard版4个、Enterprise版8个、Datacenter版则可以到32 个。(详细资料请看这里)

不过,问题来了! 近代的CPU开始走多核风(Multicore),市面上的CPU,Dual Core双核已经是基本要求,连Quad Core四核版本的CPU价位也日益平民化。当四核CPU愈来愈普及,双CPU插座的主机板插上两个,Windows Task Manager里顿时会冒出8个CPU的使用率上下跳动,爽快归爽快,另一个问题来了,依据前面所说的,Windows 2003 Standard Edition的CPU上限是4个CPU,可以安装在两个四核CPU的主机上吗? 会不会Task Manager里只能看到4个CPU? 不然干脆一点买Enterprise Edition就不用担心这麽多了? 别开玩笑了,依据官方报价,Standard与Enterprise版本的价差达四倍呢($999 vs $3,999)!!


因此我们要理清的问题是,版本比较文件里所说的4 way SMP support,指的是最多四个实体的CPU呢? 或是超过一个四核CPU就破表? (这个问题价值十万元呢!)

有份官方文件可以精准地回答我们的疑问:


For Microsoft software with processor limits, each processor counts as a single processor regardless of the number of cores and/or threads that the processor contains. For example, Windows Server 2003 R2 Standard Edition can be used on a four-processor system, whether the processors in the system are single-core, hyperthreaded, or multicore.

换句话说,MS的规格文件里,所提到的n-way SMP,是指"实体上"的n个CPU,即便它可以开启Hyper-Thread、或内建双核或四核,不管Task Manager看到多少个CPU Usage,都只算一个。所以如果有一台四个CPU Socket的主机器插上四个四核CPU,在Windows Standard Edition里看到16条CPU Usage Bar跳动,也是可能的。


题外话,并不是每家软体厂商都采行像微软一样以实体处理器数量 (或说Per CPU Socket)为认定基准,有些厂商会订定每个核心的换算比例(约当处理器数吗? XD),例如: 一个核心相当於0.75个处理器,IBM甚至发明了Value Process Unit为CPU的计算能力计价。

事件查看器被拒绝访问

[不指定 2008/10/15 12:21 | by ipaddr ]

“安全性”可以查看,但“应用程序”和“系统”不行,提示“无法完成“应用程序”

解决办法:
关闭Guest帐户,把当前用户加到Administrators组,并把当前用户从Guests组中删除。

重新登录即可。

getpeereid.c: In function ‘lutil_getpeereid’:
getpeereid.c:65: error: storage size of ‘peercred’ isn’t known
make[2]: *** [getpeereid.o] Error 1
make[2]: Leaving directory `/home/tomzhou/Download/openldap-2.4.11/libraries/liblutil'

This is a glibc-2.8 bug, Please update the glibc:

rpm -Uvh *.rpm

include:
glibc-2.8-8.i386.rpm
glibc-devel-2.8-8.i386.rpm
glibc-common-2.8-8.i386.rpm
glibc-headers-2.8-8.i386.rpm

CN99的 Fedora9 yum源

[不指定 2008/09/11 00:17 | by ipaddr ]
可以下载下述两个文件,放到 /etc/yum.repos.d 目录:

http://mirrors.cn99.com/fedora/fedora.repo
http://mirrors.cn99.com/fedora/fedora-updates.repo

This is from http://www.mjmwired.net/resources/mjm-fedora-f9.html (I always use this guy's installation guides, they are easy to understand) So, don't use the installer from Nvidia's website.
 
Fedora recommends users install a 3rd-party RPM packaged driver instead of using the installer from Nvidia's website. Currently Livna provides a well packaged driver, installable via yum.
 
First, setup Livna Repository
$ sudo rpm -ivh http://rpm.livna.org/livna-release-9.rpm
$ sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna
 
Install the nvidia driver through Livna:
$ sudo yum install kmod-nvidia
 
If a kernel update is installed at the same time (most likely), then a reboot will be required. If not, then simply log out completely of Gnome or KDE and the Nvidia driver should load. The Nvidia logo will flash quickly once.

Fedora 8 mouse invisible issue

[不指定 2008/09/10 23:28 | by ipaddr ]

I tried to install 64 bit fedora 8 today.

The installation went smoothly. When I came to the login interface, the mouse pointer was invisible. It was so frustrated.

I did some search on internet and  found that this problem appears on 64 bit linux with Nvida display card. So it may be a driver issue.

Fortunately there is a workaround that seems work for me.

su
gedit /etc/grub.conf

Remove the “rhgb” in the file. Then reboot again, the mouse pointer seems to come back now.

Gnome Partition Editor

[不指定 2008/09/07 23:20 | by ipaddr ]

http://gparted.sourceforge.net/

GParted is the Gnome Partition Editor application. Before attempting to use it, here is some basic background information.

A hard disk is usually subdivided into one or more partitions. These partitions are normally not re-sizable (making one smaller and the adjacent one larger). The purpose of GParted is to allow the individual to take a hard disk and change the partition organization therein, while preserving the partition contents.

GParted is an industrial-strength package for creating, destroying, resizing, moving, checking and copying partitions, and the file systems on them. This is useful for creating space for new operating systems, reorganizing disk usage, copying data residing on hard disks and mirroring one partition with another (disk imaging). See Features, before using it.

GParted uses GNU libparted to detect and manipulate devices and partition tables.

Several (optional) "file system" tools provide support for file systems not included in libparted.
These optional packages will be detected at runtime and do not require a rebuild of GParted.

GParted is written in C++ and uses gtkmm for its Graphical User Interface (GUI). The general approach is to keep the Graphical User Interface as simple as possible. Every attempt was made to conform to the GNOME Human Interface Guidelines.

GParted comes under the terms of the General Public License
分页: 5/12 第一页 上页 1 2 3 4 5 6 7 8 9 10 下页 最后页 [ 显示模式: 摘要 | 列表 ]