How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

May 31, 2012

Rsync Causing High Load Averages

Filed under: Linux — Tags: , , — admin @ 3:39 pm

Hello
Well I have a script that run a make a backup from one server to other. But when it run, because I have a lot of files and some files are big, the serevr has high load.
So a short fix is to decrease the speed of rsync to 10mbit
rsync --bwlimit=10000

I think there are other solution also using nice / ionice however like I say this is a short fix.

May 30, 2012

How to install fontforge on centos 6.2

Filed under: Linux — Tags: , , — admin @ 1:22 pm

Well to install fontforge on centos 6.2 64 bit here is what you have to do
wget ftp://fr2.rpmfind.net/linux/centos/6.2/os/x86_64/Packages/fontforge-20090622-2.1.el6.x86_64.rpm
yum install autotrace libspiro libuninameslist xdg-utils
rpm -Uvh fontforge-20090622-2.1.el6.x86_64.rpm

# fontforge
Copyright (c) 2000-2009 by George Williams.
Executable based on sources from 22:35 GMT 22-Jun-2009.
Library based on sources from 22:35 GMT 22-Jun-2009.
Could not open screen.

how to install fonttools or ttx on centos 6.2

Filed under: Linux — Tags: , , — admin @ 12:07 pm

Well to install this on centos 6.2 64 bit you must do this
wget ftp://ftp.muug.mb.ca/mirror/fedora/epel/6/x86_64/fonttools-2.3-1.el6.x86_64.rpm
wget ftp://ftp.ntua.gr/pub/linux/scientificlinux/6.0/x86_64/os/Packages/numpy-1.3.0-6.2.el6.x86_64.rpm
yum install atlas-sse3 python-nose
rpm -Uvh numpy-1.3.0-6.2.el6.x86_64.rpm
rpm -Uvh fonttools-2.3-1.el6.x86_64.rpm

May 28, 2012

How to find out your resolution from windows cmd

Filed under: Scrambled — Tags: , , , — admin @ 4:48 pm

Today someone ask me if I know hot to find out what resolution is set on windows but using cmd command.
So here it is:

C:\Users\xxxxx>cmd /c wmic desktopmonitor get screenheight, screenwidth
ScreenHeight ScreenWidth
1050 1680

May 25, 2012

Can’t get apache to open more than 10 spare server processes

Filed under: Linux — Tags: , , , — admin @ 3:04 pm

Hello
Today I face another strange problem. Some friend tell me that he wait some time to load a page but when is executed is under 0.1 second and .. the serevr don’t have load . Well I say from first maxclient is reaching. OK we take a look on error_log and the problem is there maxclient reached condiser increasing .. bla bla …

I go into httpd.conf there was 256 I say something strange modify the value give the restart to apache, problem persist. After a ps aux|grep httpd I see only 9 httpd. I increase min and max server , still nothing. Well every modification that I was doing under preforck.c it was like I didn’t change anything.
So after a short period I nottice that there was another file on conf.d swtune.conf ( /etc/httpd/conf.d/swtune.conf ) where min server was 1 and so on.

The solution is to erase that file, or modify it.

Older Posts »

Powered by WordPress