Posts Tagged linux

Use Openssl to create a root CA

In Openssl after a root CA has ben generated here are the following commands to create an intermediate CA;

as root

/etc/pki/tls/misc/CA –newca

/etc/pki/tls/misc/CA -newreq

some Generic Certificate Authority (usually a server)
Enter Enter

/etc/pki/tls/misc/CA –signCA
PassPhrase: Demo

newreq.pem is key with CSR request inside
newcert.pem is certificate
new_to_open_ssl is offline

How to Create Self-Signed SSL Certificates with OpenSSL

http://www.xenocafe.com/tutorials/linux/centos/openssl/self_signed_certificates/index.php

, ,

No Comments

FuzzyOCR , a plugin for SpamAssassin

FuzzyOCR , a plugin for SpamAssassin can filter some Image Spam

http://fuzzyocr.own-hero.net/

Maybe can be used by Donkey Ba

, ,

No Comments

Good bash shell scripts book for newbie

Good bash shell scripts book for beginner

http://www.cyberciti.biz/nixcraft/linux/docs/uniqlinuxfeatures/lsst/

, ,

No Comments

Get the rpms’ files

rpm2cpio file.rpm | cpio -idmv

get the rpm files without install the package!

,

No Comments

How do I disabling Email output?

How do I disabling Email output?

By default the output of a command or a script (if any produced),
will be email to your local email account.
To stop receiving email output from crontab you need to append >/dev/null 2>&1.
For example:0 3 * * * /root/backup.sh >/dev/null 2>&

To mail output to particluer email account let us say vivek@nixcraft.in
you need to define MAILTO variable to your cron job:
MAILTO=”vivek@nixcraft.in”
0 3 * * * /root/backup.sh >/dev/null 2>&1

More details:

http://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/

, ,

No Comments

Install the FUSE modules for CentOS

Install the FUSE modules for CentOS

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
rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

yum update -y kernel
yum install -y kernel-devel
yum install -y dkms-fuse.noarch
reboot

cd /usr/src/fuse-(some version)/
./configure –with-kernel=/usr/src/kernels/`uname -r`*/
make && make install

depmod -a
modprobe fuse
lsmod |grep fuse
it should print:
fuse 47124 0

, ,

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 my wireless card driver

I have just install my wireless card driver ( bcm4312) on opensuse 11.1 (64bit)
my laptop is dell 1310

I use the most simple way
sudo zypper ar http://packman.mirrors.skynet.be/pub/packman/suse/11.1/ pack_man
sudo zypper install broadcom-wl
sudo reboot
the wireless card works.

install flash player x86_64 for firefox

http://labs.adobe.com/downloads/flashplayer10.html

sudo mkdir /usr/lib64/firefox/plugins
sudo cp libflashplayer.so /usr/lib64/firefox/plugins/

ref links

http://en.opensuse.org/HCL/Network_Adapters_(Wireless)/Broadcom_BCM43xx

, ,

1 Comment

Besides the Mongrel_Rail for RoR app

Besides the Mongrel_Rail for RoR app, I found a new server modules:
Phusion Passenger
It is easy to deploy with Apache

http://www.modrails.com/

I have tried it, it works well, maybe more test on it in the future.

my ruby.conf for my app in Apache

“<"VirtualHost *:80">”
ServerName myip
DocumentRoot /path/to/app/public/ # the RoR app’s public directory

AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html

ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType text/css A2592000
ExpiresByType text/html M604800
“<"/VirtualHost">“

, ,

No Comments

iozone is a filesystem benchmark tool

iozone is a filesystem benchmark tool. The benchmark generates and measures a variety of file operations. Iozone has been ported to many machines and runs under many operating systems.

http://www.iozone.org/

No Comments