Setting up a reverse proxy using nginx for your FREENAS jails

Setting up a reverse proxy using nginx for your FREENAS jails

FREENAS, GNU/Linux, nginx
I am a big user of FREENAS and the goal behind this was to have one domain and to redirect the requests for my jails using, "jails/sickrage", "jails/sonarr", etc... In order to do this, what you need to do is get an nginx server up and running. For this, I simply created a Linux Jail template and installed nginx. This post makes the assumptions that you are using FREENAS, you are proficient in using vi or nano and that your jails are properly configured to handle reverse proxies, if not, I can do a guide on this in the future for the things you'll need to configure for them to work correctly and you know how to set up a custom jail. On your nginx server, locate the nginx.conf file.…
Read More
Chromecast devices not discoverable on Linux

Chromecast devices not discoverable on Linux

GNU/Linux
The documentation from Google indicates that the Google Cast extension is not supported in Linux, but it actually does work. In order for it to work you must configure iptables to allow the uPnP/SSDP traffic used by the Google Cast browser extension to discover the Chromecast Devices. The browser will send a multicast UDP packet from the local IP and an ephemeral (random) port to 239.255.255.250 port 1900. The ChromeCast device will respond with a unicast UDP packet from the ChromeCast device's IP and another ephemeral port to the source IP/port of the multicast packet. Note that this is slightly different than most other UPnP devices, which will usually respond with a unicast UDP packet from port 1900 instead of an ephemeral port. You will need to add a rule…
Read More
How to properly end a KDE session from shell without root privileges

How to properly end a KDE session from shell without root privileges

GNU/Linux
To end a KDE session from the shell without root privileges what you can do is send a logout command via dbus to KDE. This then should terminate the session. The command is as follows: qdbus org.kde.ksmserver /KSMServer logout 0 0 0 dbus is a messaging system that lets applications communicate with each other, and the qdbus command is a utility for sending dbus messages to applications. Applications register with dbus, and the ksmserver part of KDE is the session manager - it looks after who is logged in. So we are sending a message to ksmserver to the /KSMServer interface and telling it to logout. The message we are sending is the exact same message that is sent to KSM when you click on the logout icon on your…
Read More