Skip to content

Instantly share code, notes, and snippets.

View dapize's full-sized avatar
🌍
En este mundo... por ahora XD

Daniel P Z dapize

🌍
En este mundo... por ahora XD
View GitHub Profile
@dapize
dapize / gist:5c3bc894d3d1e0789858b94934ce265d
Created September 27, 2022 05:57
Error: You are missing the following 32-bit libraries, and Steam may not run: libGL.so.1
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt install libgl1-mesa-dri:i386 libgl1:i386
sudo apt-get upgrade steam -f
sudo apt install nvidia-driver-libs:i386
@dapize
dapize / fix-setlocate-en_us.utf-8-error-steam
Created August 11, 2022 06:30
Fix SetLocale en_US.UTF-8 Error - Steam
# first lets open the file locate.gen with nano but with root
sudo nano /etc/locale.gen
# second, lets uncomment the "en_US.UTF-8" line
# thrid save the file and set the next command:
sudo locale-gen
# and that's all.
#!/bin/bash
# Execute this script with sudo
apt-get -y install aptitude
aptitude -y install git build-essential libapparmor-dev pkg-config gawk
git clone https://github.com/netblue30/firejail.git
cd firejail
./configure
make
make install-strip
@dapize
dapize / gist:01d4f1301dd8a74a94afa57b5ecdd4e8
Last active May 17, 2022 01:18
Error: listen EACCES: permission denied 0.0.0.0:80
# just we need install the 'libcap2-bin' software and set some commands:
sudo apt-get install libcap2-bin
sudo setcap cap_net_bind_service=+ep /usr/local/bin/node
# by the way if the route of the node bin file is other we can search the correct route with the next command:
which node
# and that's it my friends, very easy and simple :)
@dapize
dapize / network-card-drive.sh
Last active January 13, 2022 09:37
firmware: failed to load rtl_nic/rtl8168g-2.fw (-2)
# https://www.diversidadyunpocodetodo.com/firmware-failed-to-load-rtl_nic-rtl8168g-2-fw-2-debian-no-arranca/
# is need it first add the flags “contrib” y “non-free” to the deb sources (/etc/apt/sources.list)
sudo aptitude -y update
sudo aptitude -y install linux-headers-$(uname -r)
sudo aptitude -y install firmware-linux firmware-realtek
echo "lets to reboot the pc"
@dapize
dapize / deepin-system-monitor.sh
Created January 12, 2022 23:31
Deepin System Monitor installer in Linux Mint
#!/bin/bash
sudo add-apt-repository ppa:ubuntudde-dev/stable
sudo apt update
sudo apt install deepin-system-monitor
@dapize
dapize / open-command.sh
Created December 31, 2021 09:12
Add the command 'open' for the terminal in Linux mint
#!/bin/bash
echo "alias open='gio open'" >> ~/.bashrc
source ~/.bashrc
# now for test lets go to a folder and type:
# open .
# and press ENTER, and the folder will be opened
# first, install
sudo aptitude -y install lm-sensors
# after, lets to detect our sensors
sudo sensors-detect
# after type: yes, yes, yes, to all
# lets to see the temp with the command:
sensors
@dapize
dapize / gist:00a618a95d40718b5399e9f7ebe1161e
Created December 26, 2021 09:58
Las firmas siguientes no se pudieron verificar porque su llave pública no está disponible
# Las firmas siguientes no se pudieron verificar porque su llave pública no está disponible: NO_PUBKEY XXXXXXXXXXXXX
gpg --keyserver keyserver.ubuntu.com --recv XXXXXXXXX
gpg --armor --export XXXXXXXXX | sudo apt-key add -
@dapize
dapize / gist:271a145446850588ecba09f144f7c023
Created December 22, 2021 05:08
Solution for the message "No such file or directory" But the file exists!
# Solution for the message "No such file or directory" But the file exists!
# First lests to see is the file is a 32-bit file writing the command:
# file nameOfTheFile
# and pressing ENTER
# is possible of you get a message like that: "...ELF 32-bit LSB executable.."
# so, is right, is a 32-bit file
# now we have to install the 32-bit packages to execute that file write this command:
sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install ia32-libs && sudo aptitude -y install lib32z1