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

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

« Newer Posts

Powered by WordPress