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 / xstartup
Created January 7, 2023 19:15
Content of the Xstartup file for VNCServer with XFCE Desktop
# content of the file ~/.vnc/xstartup for a VNCServer with XFCE Desktop
#!/bin/sh
# Start up the standard system desktop
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
/usr/bin/startxfce4
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
x-window-manager &
@dapize
dapize / gist:49b400d5dd281459d55f248be18a8fb9
Last active January 7, 2023 18:49
Create a service for a node express app
# first we have to create a file in this target:
sudo nano /etc/systemd/system/hereTheNameOfTheService.service
# inside that file we have to paste this:
[Unit]
Description=A Description of my service
After=network.target
[Service]
@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