2007年6月25日星期一

egroupware on fedora7


eGroupWare is a groupware server. It comes with a native web-interface which allowes to access your data from any platform all over the planet. Moreover you also have the choice to access the eGroupWare server with your favorite groupware client (Kontact, Evolution, Outlook) and also with your mobile or PDA via SyncML.

eGroupWare is platform independent On the client side, all you need is a internetbrowser.

download from sftar xlvf XXXX
ln -s /usr/local/egroupware /var/www/html/egroupware
firefox http://localhost/egroupware
it should be like this below:








run installation tests ( recommended)
DO FOLLOW THE INSTRUCTIONS LIST,
make sure no errors () and warnings().
it means you may install these:
apache,php,postfix,postgres,etc.
then you get

Checking the eGroupWare Installation
Checking required PHP version 4.3+ (recommended 5+): 5.2.2 ==> True Checking php.ini: safe_mode = Off: ini_get('safe_mode')='' = Off Checking php.ini: magic_quotes_runtime = Off: ini_get('magic_quotes_runtime')='' = Off Checking php.ini: register_globals = Off: ini_get('register_globals')='' = Off Checking php.ini: memory_limit >= 16M: ini_get('memory_limit')='16M' Checking php.ini: max_execution_time >= 30: ini_get('max_execution_time')='30' Checking php.ini: file_uploads = On: ini_get('file_uploads')='1' = On Checking php.ini: include_path contain .: ini_get('include_path')='.:/php/includes:/usr/share/pear' Checking php.ini: mbstring.func_overload = 7: ini_get('mbstring.func_overload')='7' Checking extension mysql is loaded or loadable: True Checking extension pgsql is loaded or loadable: True Checking extension odbc is loaded or loadable: True Checking extension oci8 is loaded or loadable: False The oci extension is needed, if you plan to use a Oracle database. Checking extension mbstring is loaded or loadable: True Checking extension session is loaded or loadable: True Checking extension imap is loaded or loadable: True Checking PEAR is installed: 1.5.0 Checking PEAR::Auth_SASL is installed: 1.0.2 Checking PEAR::Net_IMAP is installed: 1.0.3 Checking PEAR::Net_Sieve is installed: 1.1.5 Checking PEAR::HTTP_WebDAV_Server is installed: 1.0.0RC4 Checking PEAR::Log is installed: 1.9.11 Checking for GD support...: True Checking file-permissions of . for not world writable: root/root drwxrwxr-x
This might take a while, please wait ... Checking if php.ini setting session.save_path='/var/lib/php/session' is writable by the webserver: root/apache drwxrwx---

Please fix the above errors () and warnings()
Click here to re-run the installation tests
or Continue to the Header Admin
i won't use oracle ,so i omit the waring.
continue to the header admin,
do some settings and passwd.
then you may get
Cannot create the header.inc.php due to file permission restrictions.
Instead you can or the file.
that is to say you may create header.inc.php youself.
click view you get it.
Save this text as contents of your header.inc.php in your egoupware dir.
login, you get












Click back to user login on the left
THEN YOU GOT IT. GO!

2007年6月23日星期六

安装Berkeley DB

berkeley-db官方 下载Berkeley DB 4.5.20 .tar.gz ,解压。

To do a standard UNIX build of Berkeley DB,
change to the build_unix directory and
then enter the following two commands:
../dist/configure
make
To install the Berkeley DB library,
enter the following command:
make install

关于ln连接文件

ln,就是将2个文件连接到一起到意思。连接,有2种,分别叫硬连接(ln 如果没有参数,默认就是硬连接)和软连接(ln -s)。
举个例子:现在有个文件 A,我又用ln命令创建了文件B和A硬连接,那么,当我删除文件A后,我访问B,其内容和A是一样到--这就是硬连接了!软连接呢?和windows里到 快捷方式一样。不过硬连接只能用在同一个文件分区里,软连接则没有限制。
创建连接时最好用绝对路径,也就是ln -s /opt/x11amp/x11amp runamp,这样,runamp 挪到任何地方都有效了。
删除连接文件用unlink,不要用rm,会删除原文件。

2007年6月16日星期六

关于Apache (fedora 7)的UserDir

在httpd.conf下

# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#UserDir:指定在得到一个~user请求时将会添加到用户home目录后的目录名。
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid. This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#注意目录和文件的权限
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#

#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
UserDir disable若要使用,要将这行注释掉

#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
#
#UserDir public_html若要使用,须同时取消注释这行



#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
#
# AllowOverride FileInfo AuthConfig Limit
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#
# Order allow,deny
# Allow from all
#

#
# Order deny,allow
# Deny from all
#

#


#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#~user请求时,到/home/user/public_html/下游览文件的顺序,
若没有列出,会报错You don't have permission to access /~user/ on this server.
DirectoryIndex index.html index.html.var


UserDir:指定在得到一个~user请求时将会添加到用户home目录后的目录名。
userdir public_html 是指各用户目录下的public_html目录是他的网站的根目录。
比如系统有用户sally,则
http://域名/~sally请求,apache会到/home/sally/public_html目录下找首页文件

UserDir指令用以指定被网络读取的用户特定的目录。 此指令有几种不同的形式。

如果路径没有前导斜杠,则被当作该用户宿主目录下的子目录。
如果有如此配置:
UserDir public_html
则URL http://example.com/~rbowen/file.html被会解释为文件路径/home/rbowen/public_html/file.html

如果路径有前导斜杠,则用此路径和用户名构造路径。
如果有如此配置:
UserDir /var/html
则URL http://example.com/~rbowen/file.html被会解释为文件路径/var/html/rbowen/file.html

如果路径中有星号(*), 则星号部分会被用户名所取代。如果有如此配置:
UserDir /var/www/*/docs
则URL http://example.com/~rbowen/file.html会被解释为文件路径/var/www/rbowen/docs/file.html

使用UserDir可以限定被允许使用此功能的用户:
UserDir enabled
UserDir disabled root jro fish

同时,还可以禁止所有用户而允许部分用户使用此功能,例如:
UserDir disabled
UserDir enabled rbowen krietz

2007年6月11日星期一

总结openLDAP Linux

LDAP(Lightweight Directory Access Protocol )是指轻量级目录访问协议。目录服务和数据库很类似,但又有着很大的不同之处。数据库设计为方便读写,但目录服务专门进行了读优化的设计,因此不太适合于 经常有写操作的数据存储。同时,LDAP只是一个协议,它没有涉及到如何存储这些信息,因此还需要一个后端数据库组件来实现。这些后端可以是bdb (BerkeleyDB)、ldbm、shell和passwd等。

LDAP目录以树状的层次结构来存储数据,最顶层即根部称作“基准DN”,形如"dc=mydomain,dc=
org"或者"o=mydomain.org"。在根目录的下面有很多的文件和目录,为了把这 些大量的数据从逻辑上分开,LDAP像其它的目录服务协议一样使用OU(Organization Unit),可以用来表示公司内部机构,如部门等,也 可以用来表示设备、人员等。同时OU还可以有子OU,用来表示更为细致的分类。

LDAP中每一条记录都有一个唯一的区别于其它记录的名字DN(Distinguished Name),其处在“叶子”位置的部分称作 RDN;如dn:cn=tom,ou=animals,dc=mydomain,dc=org中tom即为RDN;RDN在一个OU中必须是唯一的。

如图




























LDIF(LDAP Interchange Format)是指存储LDAP配置信息及目录内容的标准文本文件格式,LDIF文件常用来向目录导入或更改记录信息,这些信息需要按照LDAP中schema的格式进行组织,并会接受schema的检查,如果不符合其要求的格式将会出现报错信息。LDIF文件样例如下:

#LDIF file example
dn: dc=mydomain,dc=org
objectClass: domain
dc: mydomain

其中,以“#”号开头的为注释行;第二行起的行中,冒号左边为属性,右边是属性的值,这类同于编程中的变量及为其所赋的值,但属性可以被重复赋值。 ldif文件中,每一行中冒号后有一个空格,行尾一定不能有空格。

跳过安装部分。

LDAP中,一条记录必须包含一个objectClass属性,且其需要赋予至少一个值。每一个值将用作一条LDAP记录进行数据存储的模板;模板中包含了一条记录中数个必须被赋值的属性和一系列可选的属性。如上述LDIF文件中的记录所示,objectClass的值为domain。

objectClass有着严格的等级之分,最顶层的类是top和alias。例如,organizationalPerson这个objectClass隶属于Person,而Person又是top的子类。

objectClass大致分为三类:结构型的(如:person和organizationUnit)、辅助型的(如:extensibeObject)和抽象型的(这类不能直接使用)。

如上文所述,Attribute类同于编程语言中的变量,它可以被赋值,就像是可以存放一个单一类型信息的容器。官方声明了许多常用的Attribute,如果其中没有你所需要的,你可以自己定义,但要避免重名。 objectClass是一种特殊的Attribute,它包含其它用到的Attribute以及它自身。常见的Attribute如: givenName、l、objectClass、dc、ou、cn、c、mail、telephoneNumber、sn、uid等。分别介绍如下:
c:国家;
cn:common name,指一个对象的名字;如果指人,需要使用其全名;
dc:domain Component,经常用来指一个域名的一部分,如:dc=mydomain,dc=org;
givenName:指一个人的名字,不能用来指姓或者middle name;
l:指一个地名,如一个城市或者其它地理区域的名字;
mail:电子信箱地址
o:organizationName,指一个组织的名字;
objectClass:一个LDAP server要想启用必须能够识别每一个对象的Attribute, objectClass Attribute正是用来描述一个对象应该具有的Attribute及可选Attribute。因此,每个 objectClass“模板”的Attribute中必然含有一条objectClass Attribute,我不知道用“自包含”称呼这个算不算合适。
ou:organizationalUnitName,指一个组织单元的名字。
sn:surname,指一个人的姓;
telephoneNumber:电话号码,应该带有所在的国家的代码;
uid:userid,通常指一个人的登录名,这个不同于Linux系统中用户的uid;

 如果可以这样类比的话,我想,我们不妨把objectClass理解为关系数据库的表,而attribute则类同为表中的字段。而下面即可介绍的schema或许可以类比作一个数据库,但它的这个类比或许从逻辑上说更合适些。

好了,现在可以说说到底什么是schema了。LDAP中,schema用来指定一个目录中所包含的objects的类型(objectClass)以及每一个objectClass中的各个必备(mandatory)和可选(optional)的属性(attribute)。因此,[color=Orange]Schema是一个数据模型,它被用来决定数据怎样被存储,被跟踪的数据的是什么类型,存储在不同的Entry下的数据之间的关系。[/color]schema需要在主配置文件slapd.conf中指定,以用来决定本目录中使用到的 objectClass。管理员可以自己设计制定schema,一般包括属性定义(AttributeDefinition)、类定义(ClassDefinition)以及语法定义(SyntaxDefinition)等部分。

LDAP V3中在x.500标准的基础上定义了一个包含了网络中大多常见对象的schema,这些对象包括国家、所在地、组织、人员、小组以及设备等。同时,LDAP V3中可以很方便的从目录中提取出schema,它正是一条记录中关于属性的声明部分。

  对象标识符(OID)是被LDAP内部数据库引用的数字标识。Attribute的名字是设计为方便人们读取的,但为了方便计算机的处理,通常使用一组数字来标识这些对象,这类同于SNMP中的MIB2。例如,当计算机接收到dc这个Attribute时,它会将这个名字转换为对应的 OID:1.3.6.1.4.1.1466.115.121.1.26。

2007年6月8日星期五

关于gnome

需要自动运行程序,比如pidgin,可以加到
个人->会话->启动程序,然后保存会话。
也可以在终端运行:gnome-control-center,进入会话。

编辑gnome的主菜单,需要安装alacarte.

2007年6月4日星期一

关于安装nVidia显卡,F-7

系统环境:由Fedora core 6用光盘升级到F-7,
kernel:2.6.21-1.3194.f7
nVidia显卡:NV44[Geforce 6200]
网上找了很多方法都不好用,
还的一个说要重新编译kernel,麻烦.
这样就行:到http://www.nvidia.com/object/linux_display_ia32_100.14.06.html
下载NVIDIA-Linux-x86-100-14.06.pkg1.run
在命令模式下运行,就可以了.

另外,可以安装一个图形界面的管理软件:
kmod-nvidia-96xx-1.0.9631-12.2.6.21_1.3194.fc7.i686
xorg-x11-drv-nvidia-96xx-1.0.9631-12.lvn7.i386

2007年6月3日星期日

关于nautilus


Nautilus 在 gnome里面的作用是可以认为是资源管理器。

如果要使用标准的资源浏览器方式,包含工具条和信息篮以及目录树等,这样配置:打开
一个文件管理窗口,选择edit,单击preferences,打开参数配置窗口,选择behave标签,选中 always open in browser windows。
Nautilus不仅仅可以管理本地文件,还有多种功能可以使用,例如连接ssh的文件共享方式、
ftp访问、作为samba客户端等。还可以快速连接http的网页:选择Custom Location 即可。
Ctrl+L :调出地址栏。Nautilus处理可以方便的访问各种文件系统之外,还有很多其他的访
问方式可以方便使用。
applications:///
显示在gnome桌面的应用程序列表
fonts:///
显示系统中的字体,可以双击查看字体,也可以复制字体
network:///
访问网络
preferences:///
访问gnome的控制中心,可以进行所有的系统配置
themes:///
显示所有的主题,可以查看和配置

2007年6月1日星期五

关于 yum和apt

yum对应的图形界面是yumex,
apt对应的图形界面是synaptic.
个人感觉,apt+synaptic好用些。
另外,事实上使用core, extra, livna就够,不用加上其它的
有时不是越多越好。有些源之间会打架。

关于opera

和firefox相对应,在opera中
在地址栏输入:opera:(注意,有冒号)
会出现:
opera:about 关于opera
opera:cache 缓存
opera:config 首选项编辑器
opera:history 历史
opera:plugins 插件

关于firefox on fedora linux

对于firefox 的升级,yum 和apt-get 提供的版本比较低,
可以直接到firefox的官方网站http://www.mozilla.com/en-US/下载,
把原来的低版本的御载了,注意,只要不删.mozilla/下的文件,原来的基本配置,书签等都会在新安装的版本下保留,(用apt御载默认是不会删除.mozilla/下的文件的)
解压,用ln -sf 建立链接文件就可以运行了。
PS:2.0.0.4版,个人感觉字体显示不爽!

问:Firefox 有哪些about:xxxxxx?
答:about:- 和点击“Help→About”看到的页面相同
about:blank - 空白页
about:buildconfig - 显示版本配置详细信息
about:credits — 所有 Mozilla 项目贡献者
about:cache - 显示缓存文件
about:config - 修改 Firefox 配置选项的图形化界面 http://www.mozilla.org/support/firefox/edit
about:license - 显示 Mozilla 和 Netscape 的公共授权许可 (仅在基于 Gecko 1.8 的程序中看到)
about:mozilla - 著名的《Mozilla之书》
about:plugins - 列出所有已安装的插件信息

问:如何删除about:config里自定义的选项?
答:在地址栏输入about:config,接着在鼠标右键菜单中选择“重置”,之后重启Firefox。
  另一种办法是,打开配置文件中的 prefs.js,删除相关的设置(不推荐)


Firefox关联mplayer打开mms的方法:
在Linux下mms:// rtsp:// 默认关联的都是totem这个播放器,不爽,
只能想办法让Firefox关联mplayer了,
在Firefox的地址栏输入: about:config
在配置页面的任意空白处点击鼠标右键,选择“新建”->“字符串“。
在弹出的对话框内输入:network.protocol-handler.app.mms
点击确定,在出现的第二个对话框中输入: gmplayer
然后确定。