Tag: ubuntu

  • Disabling Laptop Screen with Ubuntu Server

    Disabling Laptop Screen with Ubuntu Server

    As a part of my home network setup, I use an old Dell Studio XPS 15″ laptop as my “server.” It’s currently running Ubuntu 19.10. One issue I had during the last update was that whatever I set up a long time ago to manage the lid switch policy was lost, so I had to re-google it and re-do it, because I don’t want the screen to be on 24/7.

    Some Googling led me to a post that got me part of the way there:

    https://mensfeld.pl/2018/08/ubuntu-18-04-disable-screen-on-lid-close/

    I had to adjust a few things for my setup, and for posterity I’m going to log them here for the future.

    # As root, or sudo'd
    apt install vbetool -y
    echo 'event=button/lid.*' | tee --append /etc/acpi/events/lm_lid
    echo 'action=/etc/acpi/lid.sh' | tee --append /etc/acpi/events/lm_lid
    touch /etc/acpi/lid.sh
    chmod +x /etc/acpi/lid.shCode language: PHP (php)

    This will set everything up for the lid.sh script to run:

    #!/bin/bash
    # Close
    grep -q close /proc/acpi/button/lid/*/state
    if [ $? = 0 ]; then
    	sleep 1 && vbetool dpms off
    fi
    # Open
    grep -q open /proc/acpi/button/lid/*/state
    if [ $? = 0 ]; then
    	sleep 1 && vbetool dpms on
    fiCode language: HTML, XML (xml)

    Finally, reboot and enjoy not having to worry about the screen dying.

  • Let’s Encrypt SSL on SABnzbd+

    Let’s Encrypt SSL on SABnzbd+

    Let’s Encrypt has been in public beta for some time now, so I thought it was time for me to test it out and see how it works.

    I’ve been working on some automation for Let’s Encrypt, WordPress Multisite, Domain Mapping, and Apache for a while, but I don’t have anything that I feel comfortable sharing yet.

    For now though, I was able to get Let’s Encrypt to work with SABnzbd+, which is a binary newsgroup downloader for things such as Linux ISOs.

    (more…)