viernes, 9 de febrero de 2018

recuperar booteo LVM + LUKS




hacer CHROOT

mount /dev/mapper/devuan-root  /mnt
mount /dev/sdaX /boot

despues entras a /mnt
#cd /mnt

mount -o bind /dev dev
mount -o bind /proc proc
mount -o bind /sys sys
mount -t tmpfs tmpfs tmp
mount --bind /dev/pts pts





#  CRYPTSETUP=y  update-initramfs -u -k 4.9.0-4-686
update-initramfs: Generating /boot/initrd.img-4.9.0-4-686
WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead.
ERROR:
Warning: /sbin/fsck.crypto_LUKS doesn't exist, can't install to initramfs, ignoring.

solucion:
# cp /sbin/fsck.ext4  /sbin/fsck.crypto_LUKS



if got / si de da el error :
 #update-grub
Generating grub configuration file ...
  WARNING: Failed to connect to lvmetad. Falling back to device scanning.


try first to disable lvmetad from /etc/lvm/lvm.conf and set use_lvmetad = 0
primero desactiva en   /etc/lvm/lvm.conf y pon  use_lvmetad = 0 








y despues nuevamente :

# CRYPTSETUP=y  update-initramfs -u -k 4.9.0-4-686 ; sync

#update-grub

 # update-grub
Generating grub configuration file ...
Found theme: /usr/share/desktop-base/grub-themes/desktop-grub-theme/theme.txt
Found linux image: /boot/vmlinuz-4.9.0-4-686
Found initrd image: /boot/initrd.img-4.9.0-4-686
Found Windows 7 on /dev/sda3
done


 fuentes y ayuda:

https://superuser.com/questions/1093509/kali-linux-2-0-failed-to-connect-to-lvmetad-falling-back-to-device-scanning





mi茅rcoles, 24 de enero de 2018

KDE connect + DEVUAN (MATE Desktop)


 DEVUAN Jessie 馃槍


#aptitude install kdeconnect



Download to X86 :   https://code.launchpad.net/~vikoadi/+archive/ubuntu/ppa/+files/indicator-kdeconnect_0.1-0~41~ubuntu16.04.1_i386.deb

#dpkg -i indicator-kdeconnect_0.1-0~41~ubuntu16.04.1_i386.deb

Source to x64 : https://code.launchpad.net/~vikoadi/+archive/ubuntu/ppa/+packages 



depencies / dependencias necesarias  :

# apt install libgtk-3-dev
# apt install libappindicator3-dev
# apt install cmake
# apt install valac
# apt install python3-requests-oauthlib
# apt install python-nautilus (if you use/si usted usa  Nautilus) 
                      python-nemo (if you use /si usted usa   Nemo)
                       python-caja (if you use /si usted usa  Caja)  


on android :
https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp


and finaly/ y finalmente  :

$  indicator-kdeconnect

happy remote control :->

DEMO:



for more info:

https://community.kde.org/KDEConnect


https://albertvaka.wordpress.com/

domingo, 24 de diciembre de 2017

usar BITCOINS


COMPARAR:

REQUISITOS
  1. tener dinero  en el  banco (alternativa es pagar por oxxo, pero genera comision extra en bitso)
  2. cuenta en   https://bitso.com

PASOS:
1.-"fondear dinero"
 (fondear significa ponerle fondos a la cuenta BITSO)

a).-comparar BITCOINS:
https://bitso.com/trade
poner un MONTO en MXN  >>igualar >> COMPRAR



s谩bado, 18 de noviembre de 2017

Puente TELEGRAM - IRC

teleirc

 FruitieX/teleirc IRC channel - https://github.com/FruitieX/teleirc


instalar
~$ wget  https://deb.nodesource.com/setup_9.x

$ chmod +X

# ./setup_9.x

# apt-get install nodejs


mi茅rcoles, 1 de noviembre de 2017

instalar XMMS en DEVUAN y DEBIAN (de cualquier version)

XMMS fue un CLON de WINAMP, para GNU-Linux creado por uno de los pioneros en Linux, "PETER ALM" ( Alan Cox)  por los a帽os de 1997
avandonado por .... flojera creo yo :-P  en el 2010
http://www.xmms.org



hay muchos reproductores pero como audacious , que tambien es un clon de Winamp,
pero ami me gusta mas XMMS.

nota:XMMS2 no es lo mismo que XMMS,


1.-
editamos  los sources

# nano /etc/apt/sources.list


agregamos  :

#xmms
deb http://archive.debian.org/debian/ etch contrib main non-free

cerramos y guardamos



2.-
actualizar repos

# apt update



3.-

instalar XMMS

# apt install xmms

4.-

Cambia el PLUGIN DE SALIDA DE AUDIO
de
OSS Driver a ALSA

presionas  CTRL + P
en PREFERENCIAS >>> AUDIO I/O PLUGINS >>> OUTPUT PLUGIN
OSS Driver >>> ALSA
APPLY & OK 


5.- Listo  a disfrutar  XMMS Ver. 1.2.10

a disfrutar de un ligero y classico reproductor de MP3, WAV , OGG
nota; esta version no reproduce FLAC,MP4,  ni otros  formatos  modernos


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 :->

Devuan Logo at TXT with color

    #/bin/bash -e #re-edit by AlexLikeRock  # Sunday, March 22 2026 #inspire from Guest57   and https://github.com/KittyKatt/screenFetch/blo...