ONEDUST – 浮塵草堂

Sulow的開放空間 – 浮塵草堂

Joomla, WordPress, Drupal 全面详细Pk比较

出处:http://hereland.com/2008-12-joomla-wordpress-drupal/

Joomla,wordpress 和 Drupal 是目前世界上被使用的比较多的三种免费开源CMS(内容管理系统)。Joomla 可以被用于构建各种类型的网站,尤其是各类门户网站,商业网站;WordPress主要被用于博客平台,不过只要稍加改动也可以大致用来搭建其他类型的网站;Drupal同 样也具有一定的灵活性,可以把它设计成不同种类的网站。这三种CMS系统的官方网站上都提供了丰富的插件和大量的免费功能模块,尤其是Wordpress 和Drupal官网上还有众多朋友提供的免费主题、模板,使得我们设计网站越来越简单和方便省时,但在Joomla官网上一直没有找到可以下载的免费模 板。

Joomla、Wordpress、Drupal现在受到大家关注的程度如下图:

cms 系统

Continue reading

Linux 下磁盘备份

http://www.debian.org/doc/manuals/reference/ch-tips.zh-cn.html

8.3.1 拷贝整个子目录的基本命令

如果想重新整理文件组织结构,可使用下面的方法移动文件及文件链接

标准方法:
# cp -a /source/directory /dest/directory # 要求 GNU cp
# (cd /source/directory && tar cf – . ) |
(cd /dest/directory && tar xvfp – )

如果包含硬链接,则需要更严谨的方法:
# cd /path/to/old/directory
# find . -depth -print0 | afio -p -xv -0a /mount/point/of/new directory

如果是远程操作:
# (cd /source/directory && tar cf – . ) |
ssh [email protected] (cd /dest/directory && tar xvfp – )

如果没有链接文件:
# scp -pr [email protected]:/source/directory
[email protected]:/dest/directory

这次将整个系统由/dev/sda1 移到 /dev/sdb1

第一次用的是 cp -r
cp完成后,可以开机,但是无法su,也无法显示Gnome桌面

第二次用了以下方式:
cd /path/to/old/directory
find . -depth -print0 | afio -p -xv -0a /mount/point/of/new/directory

重启后至今使用快一个月了,
没有遇到任何问题

FreeBSD Sound Driver 声卡设置

1. edit 编辑 /boot/loader.conf
加入 snd_driver_load="YES"

2. reboot 重启电脑

查看声卡载入情况
# more /dev/sndstat

FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
Installed devices:
pcm0: at memory 0xf8000000 irq 20
kld snd_hda [20080420_0052] [MPSAFE] (1p:1v/1r:1v channels duplex default)

find snd_hda out

3. edit 再次编辑 /boot/loader.conf

删除 snd_driver_load="YES" (DELETE)
=>
改成 snd_hda_load="YES" (ADD) 就是上头/dev/sndstat你看到的模块

打完收工

FreeBSD Package 升级

pkg_version -v # 看哪些版本要升級
pkg_version -IvL = 或 pkg_version -Ivl ‘<’ 或 portversion -vl ‘<’ # 只看哪些版本需要升級portupgrade PKG_NAME_VERSION # 單純升級一個版本
portupgrade -a # 全部升級
pkg_version -Iql ‘<’ | xargs portupgrade # 列出套件再丟進去升級

FreeBSD 下 make.conf 简单设定

CPUTYPE?=athlon64
CFLAGS= -O2 -fno-strict-aliasing -pipe
INSTALL=install -C

BOOTWAIT=300

# CVSup update flags. Edit SUPFILE settings to reflect whichever distribution
# file(s) you use on your site (see /usr/share/examples/cvsup/README for more
# information on CVSup and these files). To use, do "make update" in /usr/src.
#
SUP_UPDATE= yes
SUP= /usr/bin/csup
SUPFLAGS= -g -L 2
SUPHOST= cvsup.tw.FreeBSD.org
SUPFILE= /usr/share/examples/cvsup/standard-supfile
PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile
DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile

MASTER_SITE_BACKUP?=  
ftp://ftp.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/
ftp://ftp6.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/
ftp://ftp4.tw.freebsd.org/pub/FreeBSD/distfiles/${DIST_SUBDIR}/
MASTER_SITE_OVERRIDE?= ${MASTER_SITE_BACKUP}

BATCH=yes

# added by use.perl 2009-03-07 12:44:47
PERL_VER=5.8.8
PERL_VERSION=5.8.8