Showing posts with label howto. Show all posts
Showing posts with label howto. Show all posts

Thursday, October 06, 2011

install rrdtool centos

ref: http://www.cyberciti.biz/faq/howto-install-rrdtool-on-rhel-linux/


Step # 1: Install required dependencies

Login as root and type the following command:
# yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel
Untar tar ball, enter:

Step # 2: Download latest rrdtool tar ball

# tar -zxvf rrdtool-1.3.1.tar.gz

Step #3: Compile and install rrdtool

You need to set PKG_CONFIG_PATH, enter:
# export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
Type the following commands:
Now compile and install RRDTool on RHEL:
# ./configure
# make
# make install
# cd /usr/local/
# ln -s rrdtool-1.3.1/ rrdtool/
# cd rrdtool
# ls -l
Type the following commands:
# cd /opt/
# wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.1.tar.gz

Tuesday, September 06, 2011

secure tmp on openvz container

http://www.faqforge.com/linux/controlpanels/ispconfig2/secure-tmp-and-devshm-directories-in-a-openvz-enviroment/

Create the script:

vi /etc/vz/conf/VPSID.mount


and insert the following lines:

#!/bin/bash mount -n --bind -onosuid,noexec /vz/vps/VPSID/tmp /vz/root/VPSID/tmp mount -n --bind -onosuid,noexec /vz/vps/VPSID/shm /vz/root/VPSID/dev/shm exit ${?}


now make the sscript executable:

chmod 700 /etc/vz/conf/VPSID.mount


Friday, July 29, 2011

create yum local repository

i want fast updates on all dom-U client.
there are solution. create local repository.


so clever. now i'm updating 17mb kernel headers for each dom-U at full speed.
this is bandwidth savers too.. :)

Tuesday, April 12, 2011

how to install rpmforge repository

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

2011-04-12 12:01:04 (11.8 KB/s) - `rpmforge-release-0.5.2-2.el5.rf.i386.rpm' saved [12680/12680]


rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.i386.rpm

warning: rpmforge-release-0.5.2-2.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:rpmforge-release ########################################### [100%]

# yum update

rpmforge | 1.1 kB 00:00
rpmforge/primary | 2.2 MB 00:12
rpmforge 10694/10694

Done.


Tuesday, March 15, 2011

how to secure tmp

Step 1: Securing /tmp
Step 1.1: Backup your fstab file

cp /etc/fstab /etc/fstab.bak

Step 1.2: Creating tmpmnt partition file (Around 1Gb in size)

cd /var
dd if=/dev/zero of=tmpMnt bs=1024 count=1048576

Step 1.3: Format the new partition

mkfs.ext3 -j /var/tmpMnt

Press Y when asked
Step 1.4: Making backup of old /tmp

cp -Rp /tmp /tmp_backup

Step 1.5: Mount the tmp filesystem

mount -o loop,noexec,nosuid,rw /var/tmpMnt /tmp

Step 1.6: Set the right permissions

chmod 0777 /tmp

Step 1.7: Copy the files back to new tmp folder

cp -Rp /tmp_backup/* /tmp/

Step 1.8: Adding new /tmp filesystem to fstab

echo "/var/tmpMnt /tmp ext3 loop,rw,noexec,nosuid,nodev 0 0" >> /etc/fstab

Step 2: No need for 2 tmp filesystems, so we symlink /var/tmp to /tmp

rm -rf /var/tmp/
ln -s /tmp/ /var/tmp

Tuesday, January 25, 2011

Monday, December 27, 2010

install evms on centos using yum

i'm refering this page

2) "sudo yum update". It'll take a while to add the new repository. It'll probably download some packages, too (30 megs in my case, but only 8 packages from rpmforge).
3) "yum search evms".
4) "sudo yum install evms.i386".

now installing :)

*install rpmforge: rpm -Uvh rpmforge*
Related Posts Plugin for WordPress, Blogger...