Tools for Tinkers
Tools for Tinkers
Cloudflare Tunnels
How to expose Apps safely, through your domain, with https and without exposing your home public IP.
https://jalcocert.github.io/JAlcocerT/why-i-love-containers/
sudo docker network tunnel
version: '3.8'
services:
cloudflared:
image: cloudflare/cloudflared:latest
container_name: cloudflared
command: tunnel --no-autoupdate run --token yourfantastictoken
networks:
- tunnel #Cloudflare Network
restart: always
networks:
tunnel: #Cloudflare Network
ℹ️
Remember to use the
tunnel
network on the containers you want to expose!docker network connect tunnel portainer #your_docker_container_to_expose #network (tunnel) - service
FAQ
Hot to mount external drives consistently
lsblk #list them again
lsblk -f /dev/sda1 /dev/sdb2 #see the format and the UUID of a couple of blocks
df -h /dev/sda1 #you will see if its mounted
sudo apt install ntfs-3g
sudo nano /etc/fstab #forever
UUID=some-uuid /mnt/data_ntfs_500 ntfs-3g defaults,uid=1000,gid=1000,umask=0022 0 1
UUID=some-uuid-of-your-drive /mnt/ext4_mount_point_folder ext4 defaults 0 1
For one time:
sudo mkdir -p /mnt/data_ntfs_500
sudo mount -t ntfs /dev/sda1 /mnt/data_ntfs_500/ #example with ntfs
sudo mkdir -p /mnt/data_ext_2tb
sudo mount -t ext4 /dev/sdb2 /mnt/data_ext_2tb/ #example with ntfs
Screen Rotation? 🚀
xrandr --output HDMI-A-0 --rotate normal
xrandr --output HDMI-A-0 --rotate right
Whats my Local IP? 🚀
ifconfig
#ifconfig eth0 | grep -A 10 "<global>" #check mac, and transfered packages
ifconfig eth0 | grep "inet " | awk '{ print $2 }' #if ETH Connected - SEE THE LOCAL IP
#ifconfig tailscale0 | grep "inet " | awk '{ print $2 }' #for Tailscale