Category Archives: Applications

Linux: TVHeadend and systemd

I upgraded my HTPC to Debian Jessie, which uses systemd. As a result, though the timer script here still works, the pm-suspend scripts don’t. I changed to using systemd services.

/etc/systemd/system/resume.service:

Unit]
Description=User resume actions
After=suspend.target

[Service]
User=%i
Type=simple
ExecStartPre=/sbin/modprobe saa7164
ExecStart=/bin/systemctl start tvheadend

[Install]
WantedBy=suspend.target

/etc/systemd/system/suspend.service:

[Unit]
Description=User suspend actions
Before=sleep.target

[Service]
User=%i
Type=simple
Environment=DISPLAY=:0
ExecStartPre=/bin/systemctl stop tvheadend ; /home/hts/.epg/timer.sh
ExecStart=/sbin/rmmod saa7164

[Install]
WantedBy=sleep.target

The timer script referenced in the suspend service is the same one linked above.

Tagged , , ,

Linux: Home Server

I set up a home server. I wanted it to do both local and non-local things. This is just a quick record so I remember what exactly I did. I chose Debian Wheezy/Stable, amd64, for its stability. Locally, it has:

Continue reading

Tagged , , , , , , , , , , ,

Linux: HTPC

I set up an HTPC. I wanted it to do several things:

  • Play my local and network music, TV, and movie files
  • Play and record over-the-air television
  • Stream videos from the internet
  • Play and stream Steam games
  • Do desktop browser things, including YouTube and Twitch

These are just my notes on what exactly I did, in case I ever need to reinstall or do it all again for some reason or another.

Continue reading

Tagged , , , , ,

Linux: Contributing

I like open-source, and Linux specifically, for two big reasons: customizability and community. What could be more customizable than being able to look at and add to a program’s code? And as that customization (which hopefully ends up on Github or Bitbucket or some community-accessible equivalent) happens on a large scale, the community grows.

Note that I’m a law student, not a computer engineer. I can’t really write anything…I guess what I would consider important. I’ll never make a kernel commit, for instance. All I can really do is write (mediocre) bash scripts, and maybe minor Java or C or C++ additions to an existing codebase. But I have found that open-source code is generally well-designed, properly commented, and logically named. So modifying existing codebases isn’t as difficult as I thought, especially when what you have in mind mirrors something already in the code. And at least from my admittedly minimal experience, developers tend to be pretty forgiving of stupid first-timer errors and oddball requests.

Continue reading

Tagged , , ,

Linux: Console Applications

I love console applications. I just like the look of them. I mean, the speed is nice, and the bafflement on other peoples’ faces when they see my screen is always fun, but mostly I just like how they look.  I mean, look how pretty!

That’s the music player moc. And here’s the IRC client irssi:

I like how the colorschemes adhere to your terminal’s colorscheme, creating uniformity (a little like GTK themes). In my case, I use urxvt, so the colors are determined by ~/.Xresources. I use the solarized colorscheme.

Continue reading

Tagged , , , , , , , , , ,