Gospel. Culture. Technology. Music.

Tag: Ubuntu


Log4J, Apache and ModSecurity

(I’ll be updating this post as more rules are available to stop new vulnerabilities.)

Credit to Christian Folini at coreruleset.org for providing the rule.

A major vulnerability has been discovered in Java web apps basic logging function called Log4J/Log4Shell. The best remedy for this is to update Log4j itself, or update the web app platform running Log4j with a newer version provided by the vendor. But that may take a while in many instances to fully implement.

Log4J, NGINX and ModSecurity

(I’ll be updating this post as more rules are available to stop new vulnerabilities.)

Credit to Christian Folini at coreruleset.org for providing the rule.

A major vulnerability has been discovered in Java web apps basic logging function called Log4J/Log4Shell. The best remedy for this is to update Log4j itself, or update the web app platform running Log4j with a newer version provided by the vendor. But that may take a while in many instances to fully implement.

Chrome Remote Desktop Running on Ubuntu 18.04

These are the settings I had to change in the config file to get Chrome Remote Desktop working on my Ubuntu 18.04 server. Thanks to this site: https://superuser.com/questions/778028/configuring-chrome-remote-desktop-with-ubuntu-gnome-14-04

  1. Make a backup and then edit /opt/google/chrome-remote-desktop/chrome-remote-desktop
  2. Add screen size(s if multiples) to DEFAULT_SIZES to look like this:
    DEFAULT_SIZES = “1920×1080,3840×2160”
  3. Changed display number to 0:
    FIRST_X_DISPLAY_NUMBER = 0
  4. Comment out this section:
    #while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
    #display += 1

  5. In this section, comment out self._launch_x_server(x_args) and self._launch_x_session() (shown below) and then add this:

    display = self.get_unused_display_number()
    self.child_env[“DISPLAY”] = “:%d” % display

    so that it looks like this:

    def launch_session(self, x_args):
    self._init_child_env()
    self._setup_pulseaudio()
    self._setup_gnubby()
    #self._launch_x_server(x_args)
    #self._launch_x_session()
    display = self.get_unused_display_number()
    self.child_env[“DISPLAY”] = “:%d” % display

  6. Save and exit, then stop and start the Chrome Remote Desktop service from the command line:
    sudo service chrome-remote-desktop stop
    sudo service chrome-remote-desktop start

OpenVPN IPv6 Setup on Ubuntu

Documenting settings to get IPv6 setup within the configuration for OpenVPN, plus forwarding all IPv6 traffic through the VPN. This has no explanation of how you obtain IPv6 address prefixes frrom your ISP or how it works differently from IPv4, just simply how to get it working within OpenVPN. Will update if needed.

Linux to Windows Backups Using Rsync Over SSH

In the course of attempting to find a good, fast solution to running backups from my Linux server to my laptop for all the important stuff, I worked through the ability to run rsync on my Windows laptop using the cygwin environment, bash scripts and scheduling the backups to run in Task Scheduler. Here’s a run down of the steps I went through:

Watching the BIND Query Log in Real-time

The following commands enable, follow in real-time and disable the querylog entries for when you’re trying to troubleshoot or watch the connection.

1. Enable: sudo rndc querylog
2. Follow: sudo journalctl -f
3. Disable: sudo rndc querylog

Ubuntu 12.10: Text Is Now Blank Using NoMachine/NX Client To Connect Remotely

This problem has been perplexing me for several months now, ever since I upgraded my server to 12.10 Quantal. Finally found a solution (Can’t remember the site where I found it though)! These are the instructions for a profile that’s already been configured that no longer works.

  1. Open the NX Client for Windows (in my case).
  2. In the Session section, select the session profile you originally created, that no longer works.
  3. Click Configure.
  4. Under the General tab, and the Desktop section, ensure that Unix and GNOME is selected.
  5. Now, in the same tab, in the Display section, check the box next to Use custom settings, and click Settings.
  6. Under the Performance section, check the box next to Disable the render extension.
  7. Click Ok, then on the next screen, click Save and Ok.
  8. Now try to connect!

Worked for me at least.

westerfunk.net >>> radio (experimental)

Well, I’m experimenting with a new radio channel, “westerfunk.net >>> radio.” Check it out on westerfunk.net/radio. I don’t have it listed on any Shoutcast servers, mainly because I don’t want a ton of traffic (or RIAA and/or the FCC to come beat down my door). I mainly wanted to set it up to play with Shoutcast and learn how to setup this amazing free audio/video streaming server. I have most of my favorite bands, DJ mixes, and other various stuff playing on there now, so feel free to check it out from the links above. It’s broadcasting on TCP ports 8000 and 8002 (Lo-Fi and Hi-Fi, respectively) so you may not be able to get to it through certain firewall setups (such as a work environment), but give it a shot anyway and shoot me an email and tell me what you think.

Powered by WordPress & Theme by Anders Norén