Skip to content

Instantly share code, notes, and snippets.

View ejrydhfs's full-sized avatar

Francisco Herrera ejrydhfs

View GitHub Profile
@ejrydhfs
ejrydhfs / gist:9cd126d0d3c7ff3b1b78cc0478812637
Last active March 23, 2025 04:00
How I solved Issues Installing Linux on a Dell Inspiron 15 with an AMD processor
It was so hard to install Linux on a brand new dell Inspiron 3535. It came with windows 11 with bitlocker
enabled but I didn't remember that it was enabled at the time. Tried to install Linux mint and the
installer registers the Mok secure boot keys before trying to perform the installation.
I should have
disabled secure boot whatever it seems like it can't really be disabled on this machine, even when you
disable it it's still active in some way somehow. Anyways install fails because of bitlocker but after
the MOK keys are registered. Shoot. This triggers a BUG in the UEFI so when I turn off the computer,
unplug the drive from which I was installing mint, and turn it back on boom my computer turns on but
doesn't boot like anything at all not windows not mint.
@ejrydhfs
ejrydhfs / gist:d91a31ee5f40ff178ddda6b71ea35fb5
Created March 30, 2025 06:43
Watching TV on an RTL2832U R820 USB dongle stick
I got one of these dongles with the RTL2832U
and the R820 chips. But I couldn't find any
Guides on how to use it for watching TV.
If you have a Linux system and use Ubuntu,
no drivers are necessary. If you use another
Linux distro, chances are you won't need
drivers either. Just plug in the dongle and
open VLC. If you installed VLC as a snap,
you will need to connect VLC to Linux's
@ejrydhfs
ejrydhfs / gist:12b29ac2f86c12b29b5f7c2ff59fbb88
Created April 12, 2025 04:16
How to repair a fat32 drive on linux
1. Use ddrescue to create an image of the drive and create a disk image. You will need to mount the disk image later,
2. Mount the disk image as a loop device. This will trick the software we will use, TestDisk, into thinking it's a real device.
3. Use TestDisk and follow the documentation here to repair the FAT boot sector:
https://www.cgsecurity.org/testdisk_doc/repairing_filesystem.html
4. unmount the loop device, and create a copy of your disk image.
5. Increase the size of the file from the command line using the truncate (yes, the truncate command) which can also increase the size of files by using it like this: truncate -s +N where N is the number of bytes you want to add.
6. Take the copy of the disk image, mount it as a loop device, and run gparted from the terminal by typing this on the terminal: "gparted /dev/loopN" where the capital N is the number of the loop device.