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

June 1, 2012

How to install PHP PECL on CentOS

Filed under: Linux — Tags: , — admin @ 4:56 pm

Hello
Well even you will think you should run yum install php-pecl this is wrong.

You should run
yum install php-pear
to install pecl

Fix The Shutdown/Reboot Issue With Multiple Users

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

I had an issue where I’d get a pop-up message when going to reboot or shutdown saying that the administrator password was required in order to shut down with multiple users logged in.
How to solve this. Well first of all locate this file org.freedesktop.consolekit.policy . After this you will have something like this



Stop the system
System policy prevents stopping the system

no
yes


Stop the system when multiple users are logged in
System policy prevents stopping the system when other users are logged in

no
auth_admin_keep


Restart the system
System policy prevents restarting the system

no
yes


Restart the system when multiple users are logged in
System policy prevents restarting the system when other users are logged in

no
auth_admin_keep

Well you have to modify it like this



Stop the system
System policy prevents stopping the system

no
yes


Stop the system when multiple users are logged in
System policy prevents stopping the system when other users are logged in

no
yes


Restart the system
System policy prevents restarting the system

no
yes


Restart the system when multiple users are logged in
System policy prevents restarting the system when other users are logged in

no
yes

Basically you replace
auth_admin_keep
with
yes

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

How to change my screen resolution using Linux terminal

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

Hello
Well my computer started with another resolution then my monitor and I could not see the menu.
So right klick on desktop, opened a terminal, from there run
xrandr -s 800x600
This will set 800×600, now you may see your menu and modify acordly with your monitor.
If you want to see al resolution available you should run simply
xrandr

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.

« Newer PostsOlder Posts »

Powered by WordPress