Archive for category Linux_D

How to enable apache modules in Debian/Ubuntu-likes

Simple:
sudo a2enmode rewrite

, ,

No Comments

Install Duplicity on Linux(CentOS)

Duplicity backs directories by producing encrypted tar-format volumes
and uploading them to a remote or local file server.

Firstly, enable two important repo

http://www.linuxdict.com/2009-06-enable-two-important-repo-for-centos-5

Secondly, install Duplicity
$sudo yum install -y duplicity

Finally, Use it.
$duplicity –help

Following is a short tutorial
Read the rest of this entry »

No Comments

Show the Bash History with date

echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bash_profile

Finished :)
run history command, the output should looks like the following.
1014 12/03/10 01:13:44 who -r
1015 12/03/10 01:13:45 history

No Comments

mount: you must specify the filesystem type

I have one raw file contains system:
$file my.raw
my.raw: x86 boot sector; partition 1: ID=0×83, active, starthead 1, startsector 63, 64259937 sectors; partition 2: ID=0×5, starthead 254, startsector 64260000, 2843505 sectors
try
$mount -o loop my.raw /mnt
mount: you must specify the filesystem type

Solution:
$mount -o loop,offset=32256 my.raw /mnt

Root:
The number too big for calculations, so set offset here.

No Comments

Happy Spring Festival

Enjoy yourself, Have a good Time.

No Comments

Another Easy and Free Mail Groupware

There is Zimbra Groupware for the enterprise. also there is one more choice: Citadel Groupware

Citadel Groupware is a turnkey open-source solution for email and collaboration. One simple installation delivers a multitude of powerful features, including:

email
calendaring/scheduling
address books
bulletin boards
mailing list server
instant messaging
wiki
multiple domain support
a powerful web interface

The web server/Mta are all tagged with Cit, of course you can change web server to Apache. it support spam and anti-virus.

very easy install step on Ubuntu
sudo apt-get install clamav clamav-milter spamassassin citadel-suite amavisd-new -y

then goto http://urip/ to test

Official site: http://www.citadel.org/doku.php

1 Comment

Free Virtual Tools for Us

There are several virtual tools for us.
Vmware is very popular, we need pay for it.
but there is a good tool that can create vmx file, and we can download the Vmware player(FREE). and play it.
Here is the site: http://easyvmx.com/
We still have Virtualbox for another choice, most important it is FREE, very good too.

No Comments

Preparation Enable the Dag repo

Preparation

Enable the Dag repo

rpm -Uhv \

http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

Enable the Epel repo

rpm -ivh http://download.fedora.redhat.com//pub/epel/5/`uname -i`/epel-release-`cut -d” ” /etc/redhat-release -f 3 |awk -F”.” ‘{print $1}’`-`cut -d” ” /etc/redhat-release -f 3 |awk -F”.” ‘{print $2}’`.noarch.rpm

Install the gcc and other tools

yum install -y make gcc gcc-c++ ncurses-devel.x86_64 automake autoconf boost-devel.x86_64 libedit-devel.x86_64 fuse-devel.x86_64 rpm-build.x86_64

Get the kernel source from kernel.org

http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.29.1.tar.bz2

Get the Ceph-0.8 sources package

from: http://ceph.newdream.net/download/

http://ceph.newdream.net/download/ceph-0.8.tar.gz

Proceed

Read the rest of this entry »

, ,

No Comments

Install versioned_urls plugin

Install versioned_urls plugin via
script/plugin install http://svn.lingr.com/plugins/versioned_urls

Add appropriate rewriting and cache-header-pushing configuration to your web servers, e.g., for lightty:
url.rewrite-once = ( “^/(.*.(css|js|gif|png|jpg)).v[0-9.]+$” => “/$1″ )
expire.url = ( “/stylesheets/” => “access 10 years” ,
“/javascripts/” => “access 10 years”,
“/images/” => “access 10 years” )

More details

http://blog.dannyburkes.com/2006/11/2/versioned-urls-for-rails/

, ,

No Comments

we are back

we are back, for some reason, the account is locked.
Earn more money, we can setup our own server.

my http://www.twitter.com/edyliu

make a backup firstly!

No Comments