Category: Uncategorized
-
Permanently disable built-in bluetooth and use USB
You can create a udev rule to disable the internal Bluetooth. First find the idVendor and idProduct for the USB device you wish to disable by running lsusb and locating the right line. Eg, on my system this is the matching line for the adapter I wanted to disable: So then put the following into…
-
Virtual Desktop remote connection with OPNsense
1. Go to Firewall > Aliases 2. Click on + Add 3. Enter the name VirtualDesktopPorts 4. Change the type to Port(s) 5. Enter the following ports: 38810 38820 38830 38840 6. Hit Save and then Apply Changes 7. Go to Firewall > NAT 8. Click on Outbound 9. Change the mode to Hybrid Outbound…
-
Proxmox LXC mount point permissions
Add the mount point to the container Or change the container settings Let’s see an example, we want to make uid 1005 accessible in an unprivileged container. First, we have to change the container UID mapping in the file /etc/pve/lxc/1234.conf: Then we have to allow lxc to actually do the mapping on the host. Since…
-
Create NFS export for Proxmox
Change /directory/to/be/shared with your path and 111.111.111.111 with the client’s IP address
-
Ubuntu 22, Kodi and Plex
In the “.kodi/addons/script.plex/lib” folder : – backgroundthread.py – main.py – player.py In the “.kodi/addons/script.plex/lib/windows – home.py And in the “.kodi/addons/script.plex/lib/_included_packages/plexnet” folder : – gdm.py – util.py In these files, replace all “isAlive()” by “is_alive()” without quotes
-
ClearOS and Smart Proxy
To block Google DNS: To nat DNS requests to Smart Proxy: To test from a client, you can try to nat requests to Google safe search instead of the regular one: You should get 216.239.38.120 as the result instead of changing results
-
Serve VPN connection to LAN
Use these iptables commands as root: Change tun+ and tun0 with wg0 if you are using Wireguard To make the rules persistent, install iptables-persistent:
-
Commands and tips for a headless AirVPN torrent server
dig +short txt ch whoami.cloudflare @1.0.0.1dig TXT +short o-o.myaddr.l.google.com @ns1.google.com sudo service transmission-daemon stop sudo nano /var/lib/transmission-daemon/info/settings.json sudo service transmission-daemon start settings for Wireguard traffic VPN (wg1): PostUp = ip route add default via ChangeMeWithDefaultGateway dev ens18 table giaPostUp = ip rule add fwmark 0x2 table giaPostUp = /sbin/iptables -A OUTPUT -t mangle -o wg1…
-
Proxmox swappiness
-
Ubuntu SSH key and user creation
Create key: and choose the key file name and location. To login using this key use this command: To add a user in the target system: To add the user to sudoers use: To test: and enter a sudo command. To add the public key in the user home, create this file and paste in…
-
Turnkey linux regenerate keys etc…
Use scripts in /usr/lib/inithooks/firstboot.d/
-
ClearOS OVH problem
-
Samba SMB and Windows 10 rescue connections
-
Windows 10 backup on samba
-
Faster samba
-
Octoprint Filament Manager Plugin: How to setup postgresql database
Download and install Putty terminal application to SSL into your Pi. You may use other tools, but I am most comfortable with this one, and it works great.sudo apt-get update Lets make sure we have all the latest updates!sudo apt-get upgrade Install them!sudo reboot now Reboot the Pi.~/oprint/bin/pip install –upgrade pip Let’s just upgrade pip…
-
Turnkey regenerate SSH keys and SSL certificate
Go to /usr/lib/inithooks/firstboot.d/ And use one of the scripts
-
Proxmox: Unable to create new inotify object: Too many open files at /usr/share…
Check inotify.max_user_instances parameter, you will probably get 128: sysctl -n fs.inotify.max_user_instances Set inotify.max_user_instances to 256: sysctl fs.inotify.max_user_instances=256 This fix is not persistent, must be lunched after boot. To make the edit persistent insert: fs.inotify.max_user_instances = 256 at the end of /etc/sysctl.conf
-
Temporary solve Linux e1000e driver issue
ethtool -K INTERFACE tso off gso off To check if the command was effective use: ethtool –show-offload INTERFACE | grep offload This fix is not persistent, must be lunched after boot.
-
ZoneMinder Docker start at boot and restart always
docker update –restart always CONTAINER
-
ZoneMinder email alerts
sudo apt-get update sudo apt-get install ssmtp sudo apt-get install mailutils sudo nano /etc/ssmtp/ssmtp.conf root=pp@gmail.com mailhub=smtp.gmail.com:587 hostname=localhost RewriteDomain=gmail.com UseSTARTTLS=YES UseTLS=YES AuthUser=pp@gmail.com AuthPass=something # remember to use a password without symbols Checking to see mail works: echo “Hello, World” | mail -s “My email check” user@gmail.com Check log: tail -f /var/log/syslog Configuration of Zoneminder: Go to…
-
Install ERPNext on Ubuntu 18
sudo apt-get update sudo apt-get upgrade sudo nano /etc/environment add at the end of the file: LC_ALL=en_US.UTF-8 sudo reboot sudo apt-get install python3-minimal build-essential python3-setuptools sudo reboot sudo apt-get install aptitude wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py sudo python3 install.py –production –user giacomo MAY BE UNNECESSARY, DO IT IF ERPNEXT IS NOT REACHABLE ATER INSTALLATION: Sorry! We will be…
-
Set locale LC_ALL= in Ubuntu
Add this at the end of /etc/environment LC_ALL=en_US.UTF-8
-
Test ClearOS QoS
UP: tc -s -g class show dev eth0 DOWN (if you have only one WAN interface it is always ifb0): tc -s -g class show dev ifb0
-
Remove Windows network location
In command prompt: net use Then delete the network location with this command: net use /delete \server\sharename
-
Add swap to ZFS Proxmox
Create the swap volume zfs create -V 16G rpool/swap16gb Format the swap volume mkswap -f /dev/zvol/rpool/swap16gb Edit the swap partition name in /etc/fstab Reboot and destroy the old swap volume zfs destroy rpool/swap
-
Tar gz
compresstar -czvf name-of-archive.tar.gz /path/to/directory-or-file extracttar -xzvf archive.tar.gz
-
Repair website permissions
chown www-data:www-data -R /var/www/wordpresschmod -R 0777 /var/www/wordpressfind /var/www/wordpress -type f -print0 | xargs -0 chmod 0644find /var/www/wordpress -type d -print0 | xargs -0 chmod 0755
-
Create bridge and test it
ip link add name test-bridge link eth0 type macvlan ip link set dev test-bridge address 02:00:00:31:da:74 ip link set test-bridge up ip addr add 178.33.0.223/32 dev test-bridge THEN ping -I test-bridge api.wordpress.org
-
Check own public IP address
curl -s https://checkip.dyndns.org | sed -e ‘s/.Current IP Address: //’ -e ‘s/<.$//’ curl https://ipinfo.io/ip