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

June 7, 2012

Run a script as a different user

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

Well if you want to run a script as diferent user you should try to run with su comand.
If you will run like this

su - x -c "/path/script.sh"
after the script is run the su comand return at your user.

June 1, 2012

CentOS 6 / RHEL 6 – AutoLogin

Filed under: Linux — Tags: , , — admin @ 11:16 am

Hello
If you want that your computer to autologin and is a centos /rhel then you must modify /etc/gdm/custom.conf
Add to that file
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=username

If you stil want to have a delay and after autologin , you must add
[daemon]
TimedLoginEnable=true
TimedLogin=centoslive
TimedLoginDelay=10

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.

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.

May 21, 2012

Error “Xext not found”

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

Well today I was trying to upgrade a ffmpeg on a server with libspeex / x264 / faac / librtpm .
Everything was ok until I have this error
Error “Xext not found”
So how to fix this ?
yum install libXext-devel
is the solution for this problem.

After this I encountered another problem
ERROR: Xfixes not found
the fix for this is
yum install libXfixes-devel
This fixex are for Centos

« Newer PostsOlder Posts »

Powered by WordPress