BLog
Want to Learn About Coding?
Executing shell scripts with no ROOT passwd
https://unix.stackexchange.com/questions/130906/why-does-setuid-not-work
Cange apache default root folder
https://stackoverflow.com/questions/5891802/how-do-i-change-the-root-directory-of-an-apache-server
Logout all users from ssh…
sudo service systemd-logind restart Just use this command to log out from all sessions.
Add static local IP to Ubuntu server
https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/set-a-static-ip-address-on-ubuntu-22-04.html
Wireguard wg0.conf file
Server side file https://linuxize.com/post/how-to-set-up-wireguard-vpn-on-ubuntu-20-04/ Settings on server wg0.conf file # Server configuration [Interface] PrivateKey = Private key= # The server_private.key value. Address = 10.5.5.1/24 # Internal IP address of the VPN...
Create .bin application in linux
To check if some system service is active and then activate/deactivate it use the next code: #!/bin/bash systemctl -q is-active jackett.service && \ systemctl stop jackett.service || \ systemctl start jackett.service
Install WiFi driver for USB rtl8188fu
sudo add-apt-repository ppa:kelebek333/kablosuz sudo apt-get update sudo apt install rtl8188fu-dkms You can purge packages with following commands sudo apt purge rtl8188fu-dkms Taken from here
Disabling WiFi card on Linux
First, identify your Built-in Adapter Name ifconfig | grep wl You shall get something similar like this: Now to find out the Wireless Kernel Module in use with this command readlink /sys/class/net/wlo1/device/driver wlo1 is the name of the card I want to disable, The...
PhpMyAdmin export/import db from CyberPanel server
To be able to export or import a database to the server you need first to create folders where to export and from where to import db.For me, it is the same folder... Create a folder in the desired place on the server and grant it 777 privileges After that set the...
HP DV7 adjusts Screen Brightness and Enables full Beats™ audio
How to obtain screen brightness control sudo gedit /etc/default/grub Add acpi_vendor=backlight , as follows: GRUB_CMDLINE_LINUX_DEFAULT="splash acpi_backlight=vendor" GRUB_CMDLINE_LINUX="acpi_backlight=vendor" Then update GRUB sudo update-grub2 Then reboot How to gain...
Cyberpanel – Custom URL for Webmail
First, you need to enable the Proxy of the pages at /usr/local/lsws/conf/httpd_config.conf and add to the file the following code: extprocessor cyberpanel { type proxy address https://adress.of.the.panel.com:8090 pcKeepAliveTimeout 60 initTimeout 60 retryTimeout 0...
Open an close ports to Linux Firewall
firewall-cmd --zone=public --add-port=80/tcp firewall-cmd --permanent --zone=public --add-port=80/tcp firewall-cmd --reload $ firewall-cmd --zone=public --remove-port=10050/tcp $ firewall-cmd --runtime-to-permanent $ firewall-cmd --reload How to open a service with...