miércoles, 25 de octubre de 2017

DEVUAN KDE5 suspender y Hibernacion botones desaparecidos

Requisitos:
  1.  policykit-1 
  2.  upower
  3.  lightdm



la verdad no se cual de los 2 me soluciono,
pero eso hice


1.-

en el fichero  :
/etc/polkit-1/localauthority.conf.d/50-localauthority.conf
 
 encontramos el permiso para root
 
Configuration]
AdminIdentities=unix-user:0 
 
agregando  permisos  para usuarios administradores con la segunda parte
 
 
 [Configuration]
AdminIdentities=unix-user:0 
 
 [Configuration]
AdminIdentities=unix-group:sudo;unix-group:admin
 
  

2.-

cd /etc/polkit-1/localauthority/50-local.d/
 creamos el siguiente fichero con nano

nano org.devuan.enable-hibernate.pkla

[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes



y finalmente
# REBOOT



fuentes:

https://askubuntu.com/questions/665902/by-default-who-is-allowed-to-gain-root-privileges-with-pkexec


https://blog.roland-kluge.de/?p=793

en la segunda web encontramos una buenas alternativas :


sudo pm-supsend
sudo pm-hibernate
Another, low-level method is to write the desired state to files in /sys:


1
2
sudo bash -c "echo -n mem > /sys/power/state"
sudo bash -c "echo -n disk > /sys/power/state"



saludos


jueves, 19 de octubre de 2017

agregar particion Cypto - cifrada al BOOT



fuente :
http://www.pavelkogan.com/2014/05/23/luks-full-disk-encryption/



Configure GRUB

With /boot on an encrypted device, grub-mkconfig should have GRUB load the necessary modules to decrypt and mount it2.
grub-install, on the other hand, will refuse to work, complain about /boot being encrypted, and demand that GRUB_ENABLE_CRYPTODISK=1 be added to the config. This is a bug (in the error message). Instead, add
GRUB_ENABLE_CRYPTODISK=y
to /etc/default/grub.
Now, before trying to find and load the initial ramdisk, GRUB will ask for a passphrase to decrypt /dev/sda1.
Finally, add the cryptdevice kernel parameter3
GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda1:lvm"
and run
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda
Reboot, and that’s it. You now have a fully encrypted system.

Donarme :->

Donar a AlexLikeRock
muchas gracias por tu ayuda :->

2022

stand by ... PD: "Viva México!"