Showing posts with label centos. Show all posts
Showing posts with label centos. 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

Saturday, October 01, 2011

4gb seg fixup after reformatting


[root@linux ~]# rpm -q glibc.i386
glibc-2.5-65
[root@linux ~]# rpm -q glibc.i686
package glibc.i686 is not installed

it works as expected. now production server works but files gone. hope to get files back using backup disk.

Wednesday, September 28, 2011

segmentation fault after glibc.i386

what de..
this is my production server. after successfull on test server now i'm trying into real server:

Kernel Panic. last resort reformat. ;)


I tried to updgrade glibc using
[root@demo1 RPMS]# rpm -ivh glibc-2.3.3-74.i386.rpm --force --nodeps
Preparing... ########################################### [100%]
1:glibc ########################################### [100%]
/usr/sbin/glibc_post_upgrade: While trying to execute /usr/sbin/iconvconfig child terminated abnormally
error: %post(glibc-2.3.3-74.i386) scriptlet failed, exit status 115


n now every thing gives a segmentation fault.
it is a dual xeon machine so i take it ..its i686. { pretty sure it doesnt support EM 64 }



now i cannot ls, cannot yum, cannot rpm, wget dammmm...


http://www.linuxquestions.org/questions/slackware-14/heeelp-glib-%2A-removed-335819/#post1707580

i hope to:
& i copied /lib from another machine with the same specs...


dam...

[solved] 4gb fixup problem end

WARNING: try at your own risk.
2. not use this function when memory below 512MB
3. this break down my production server http://blog.apis17.info/2011/09/segmentation-fault-after-glibci386.html -reformat and reinstall solve the problem

finally 4gb fixup on xen is finally gone. (now i have openvz too :) 2.6.18-274.el5.028stab093.2xen

it fixed using i386 version of glibc

#yumdownloader glibc.i386

then yum downloading 'glibc-2.5-65.i386.rpm' package

#rpm -Uvh --force glibc-2.5-65.i386.rpm

it force 32bit glibc version. default my centos  use i686 even os 32-bit. you can read my previous entries. (thanks to cloudlinux forum)

after several hours recovering back from my lost glibc uninstall thanks to webmin saving my life.
and NEVER use this command rpm -e glibc


now i'm ready to get dangerous on production server. will update this post later.

Monday, September 19, 2011

install epel repo


#rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm


i want to install memcached
reference: 
http://www.cyberciti.biz/faq/rhel-fedora-linux-install-memcached-caching-system-rpm/

Saturday, July 30, 2011

updating dom-0 clock and problem [xen]

what de..
all dom-U mogok after update NTP time to actual time. after reading reading found this. damm..


the effect (dom-U only):
1. network cannot restart.
2. processor clock (at dom-U) not able to detect
3. not able to reboot
4. cannot start after shutdown
5. dom-U clock stop at 3.40AM (dam.. i must sleep dude)

finally swith off and on back. phew..
now clock is working and in correct time.


lalala...

configuring transparent proxy

still trying

Friday, July 29, 2011

squid transparent proxy

storing this url for future reference

configuring squid access control list (ACL)

this will explain and giving some example how to configure squid ACL.


to allow only www.google.com or *.google.com add:

acl www_google dstdomain www.google.com acl www_google dstdomain google.com  # matches exactly google.com acl google_dom dstdomain .google.com # all subdomains of google.com

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.. :)

Sunday, July 10, 2011

Wednesday, June 15, 2011

[Xen] Save file location

cd /var/lib/xen/save

this is path used by xen to store virtual machine state before shutdown/reboot.

i use du -lsh /var/lib/xen/* to trace what folder make my disk space full

Before

Filesystem Size Used Avail Use% Mounted on
/dev/hda6 8.6G 8.6G 0.0G 100% /

After
Filesystem Size Used Avail Use% Mounted on
/dev/hda6 8.6G 7.1G 1.1G 88% /

Solved.

Monday, June 13, 2011

do rsync server backup

trying to follow this:

http://wiki.vpslink.com/Rsync_backup
http://troy.jdmz.net/rsync/index.html

Monday, June 06, 2011

quit from xen console

list all xen machine

xm list

enter console mode

xm console

quit from console mode

press Ctrl + ]

done! :)

rebuild xen dom-u kernel

symtom: after dom-0 reboot, all dom-u not in latest kernel. to fix this,

cd /usr/local/lxlabs/hypervm/httpdocs/

lphp.exe ../bin/misc/fixcentos5xen.php

http://markus.revti.com/2010/08/hypervm-xen-installation/

Tuesday, May 31, 2011

remove  character on centos

https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&order=DESC&topic_id=1761&forum=27

1. verify: echo $LANG

2. export LANG="en_US"

done!

UPDATE: to permanently set language each time for each time logi you can edit profile and add new line


 vi .bash_profile  

 press i  
 go to last line and create new line  
 paste this code  
 export LANG="en_US"  

 press escape, enter :wq  

Monday, May 23, 2011

Related Posts Plugin for WordPress, Blogger...