Skip to main content
Run a script after running apt-get update on a Debian or Ubuntu Linux
alt
/etc/apt/apt.conf.d

If you want to run a script for example, after apt update on Debian, you can use the apt hook system. This is useful if you want to perform some other action after the update. In my case, I need to run a script and re-install the Vulkan driver on Raspberry Pi, because apt update break it and the system can't open the Desktop environment.


Jose CerrejonLess than 1 minuteLinuxDevOpsTipsTutorialRaspberry PI
Batocera. Switch partition to extFAT for macOS/Windows compatibility
batocera
batocera

Many distributions prepared to play emulators, come by default with the secondary partition in EXT4 to store settings, BIOS and ROMs. For those of us who usually work with macOS and/or Windows, it would be better if this partition came in extFAT to be able to mount in you non Linux OS and transfer files comfortably from the Explorer/Finder, so that is what I have proposed today. It's not a big deal, let's go.


Jose CerrejonAbout 2 minAppleLinuxRaspberry PIAppleLinuxRaspberry PI
Best options to use for file/directory compression
compress
compress

Just a quick reminder, If you need the best ratio with different file compression software:


# 7z
7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on file_compressed.7z file_input
# tar.gz
env GZIP=-9 tar cvzf file_compressed.tar.gz file_input
# zip
zip -9 file_compressed.zip file_input
# rar
rar a -idq -r -y -m5 file_compressed.rar file_input
# Gzip
gzip -9 file_input

Jose CerrejonLess than 1 minuteAppleGeneralLinuxAppleGeneralLinux
Tip. Automate Text Input in Commands
cmd
cmd

Sometimes it can be tedious to enter certain data in the command line, especially if you have to repeat it several times.

Imagine ftp command line authentication. We can make use of the expect command...


Jose CerrejonLess than 1 minuteAppleLinuxRaspberry PIAppleLinuxRaspberry PI
Configure closest mirror with netselect-apt in Debian
Lastest_mirrors
Lastest_mirrors

The default installation is configured to download the packages from a remote server that is sometimes saturated. The best thing is to call the closest mirror and that can be done with the netselect-apt package, which can be installed as usual:


Jose CerrejonLess than 1 minuteLinuxRaspberry PILinuxRaspberry PI
Kali Linux – Assuring Security by Penetration Testing (Free Ebook)
Kali
Kali

Kali Linux – Assuring Security by Penetration Testing is a fully focused, structured book providing guidance on developing practical penetration testing skills by demonstrating cutting-edge hacker tools and techniques with a coherent, step-by-step approach. This book offers you all of the essential lab preparation and testing procedures that reflect real-world attack scenarios from a business perspective...


Jose CerrejonLess than 1 minuteLinuxLinux
Configure bluetooth device on Debian
BT
BT

Last week I've been sick, but today I woke up more recovered. C.H.I.P. units are arriving, and last week received mine with which I hope to make it as good as reviewed by jvlob here (spanish post).


Jose CerrejonAbout 1 minLinuxLinux