Category Archives: Linux

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.

Advertisements
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: Multipurpose Live USB

I carry a multipurpose portable live persistent Sandisk Extreme USB 3.0 16GB in my bag for, obviously, multiple purposes:

  • Portable OS
  • System diagnostics
  • Data recovery
  • Video codec compatibility
  • (Limited) anonymity

Continue reading

Tagged , ,

Linux: From Arch to Debian

Last week, with mixed feelings, I switched from Arch Linux to Debian Stable.

Continue reading

Tagged

Linux: Flat GTK Themes

I don’t like the gradient-heavy look. I’m more of a fan of flat desktop themes. Additionally, I like dark top bars and light content sections. Here are my three favorites, viewed using lxappearance:

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: Persistent Live USB with Extra Space

Apparently, persistent live USBs are fairly simple to set up. I originally learned to create one for Linux Mint Debian Edition from here. It turns out that the procedure is exactly the same for some other ISOs. Specifically, I tried it on CrunchBang because I couldn’t find a specific guide for CrunchBang Waldorf. I also prefer to have some extra space on my USB for other storage space, so I tried tacking on an extra partition at the end, and it worked! (Your mileage may vary; at least one OS, Elementary, didn’t work with this method.)

Continue reading

Tagged , , , , ,

Linux: codefireX NotifyMyAndroid Script

I wrote up a quick cfx_nma.sh script in bash that parses the synergye.codefi.re/__ pages for new updates. It then uses the Notify My Android (NMA) API to send notifications to my phone.

Continue reading

Tagged , , , , ,

Linux: Arch Switch to Systemd

Arch has switched to systemd. With that guide, migration on both of my computers was simple. That is all.

Tagged , ,