Skip to content

Instantly share code, notes, and snippets.

@barbixxxa
barbixxxa / install-driver-wifi-5ghz-RTL8812BU.md
Last active March 8, 2022 15:13
How to install driver wifi 5ghz 0bda:b812 Realtek RTL8812AU/RTL8812BU Dual Band 1200mbps Wireless USB Wifi Network Adapter Antenna Laptop Ethernet 1000M Ethernet External
  1. sudo apt install linux-headers-generic build-essential make git dkms
  2. git clone https://github.com/cilynx/rtl88x2bu
  3. cd rtl88x2bu
  4. VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
  5. sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
  6. get the version at PACKAGE_VERSION= by executing cat dkms.conf
  7. create an alias for the version obtained VER=XPTO
  8. check the version ${VER}
  9. sudo dkms add -m rtl88x2bu -v ${VER}
  10. sudo dkms build -m rtl88x2bu -v ${VER}
@barbixxxa
barbixxxa / how-to-recover-popOs-boot-initramfs.md
Last active February 25, 2022 13:09
PopOS encrypted disk dont boot - initramfs popos

initramfs /dev/mapper/data-root does notexist

pop os encrypted disk dont boot, tried reinstalling it but no success.

initramfs shows with busybox, type exit and see the error

Worked for me - https://askubuntu.com/a/286383

@barbixxxa
barbixxxa / scan-doc-hp-deskjet-4625-linux-hplip.md
Last active October 16, 2021 15:21
Scan documents for Hp Deskjet ink advantage 4625 hplip toolbox linux
@barbixxxa
barbixxxa / how-to-containerLUKS.MD
Created December 20, 2020 13:12
how to create and encrypt a container using LUKS to protect your data, from a single file to an encrypted volume

How to create an encrypted container using luks

Creating and encrypting the container

  1. Create a file with a specific size (this example is FILENAME - 1Giga size); dd if=/dev/zero of=FILENAME bs=1 count=0 seek=1G

  2. Encrypt the file; sudo cryptsetup -y -v luksFormat FILENAME

@barbixxxa
barbixxxa / how-to-root-motog5.md
Last active November 9, 2020 20:26
How to root motorola g5 (moto g5)

ROOT MOTO G5

  1. ADB - Install
  • sudo apt-get install adb
  1. FASTBOOT - Install
  • sudo apt-get install fastboot
  1. BOOTLOADER - Unlock
@barbixxxa
barbixxxa / bootable-usb.md
Last active April 25, 2020 16:46
pendrive stuff
  1. get the USB drive:

lsblk or df -h

  1. umount the drive:
sudo umount /dev/sdXXX
@barbixxxa
barbixxxa / install-jdk11.md
Last active January 3, 2024 21:09
java jdk 11 installation
  1. Download the latest JDK(jdk-11.0.5_linux-x64_bin.tar.gz) from the official site
  2. sudo mkdir /usr/lib/jvm
  3. cd /usr/lib/jvm
  4. sudo tar -xvzf ~/Downloads/jdk-11.0.5_linux-x64_bin.tar.gz
  5. sudo nano /etc/environment
  6. Edit the PATH and add the JAVA_HOME
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/jdk-11/bin"
JAVA_HOME="/usr/lib/jvm/jdk-11"