Cancel a Command in Mutt

To cancel a command in the Mutt email client, press control and “g” at the same time. ctrl+g For years, I had been using ctrl+c, which cancels the command but also asks if you want to close mutt – so you had to also type “n” and enter.

Raspberry Pi Keeps Rebooting

For a while now, I’ve had issues with my Raspberry Pi rebooting by itself. At first I thought I was drawing too much power with the items I had plugged into the USB ports. So I unplugged them both (an external hard drive and a USB WiFi dongle), but the Pi kept rebooting. Finally, I remembered that I had traded the power supply out to use as my phone charger a while back.

How to Stream Videos from a Raspberry Pi to a Smart TV

Summary: Install and configure minidlna on your Raspberry Pi and make sure it’s on the same network as your Smart TV. Your TV’s media playing application should see the Pi on the network and let you browse and play videos on the Pi. More In-Depth Guide First you need to install minidlna on your Raspberry Pi: sudo apt-get install minidlna minidlna’s configuration file is located at /etc/minidlna. We want to edit this to point to our video files:

Check a site for 404 errors with wget

No one wants broken links on their site. Here’s an easy way to check for 404 errors among the links on your website. First, you’ll want to run this wget command: wget -o ~/output.txt -r -l 10 --spider http://yoursite.com This will run wget recursively up to ten links deep. This means it finds each link on http://yoursite.com and tests if they exist, then checks each link on the pages it just tested up to a path of 10 pages from the original.

How to Back Up Email with Getmail

It’s pretty important to have a backup of your email. Seriously, what would you do if you lost those cat gifs that your friend sent you? I use a program called getmail and a Raspberry Pi to back up my email automatically. This guide shows you how to use getmail to back up email from a Gmail account. It’s also focused on using a version of Debian GNU/Linux, but anything Debian or Ubuntu-based will likely work with these directions.

Using a USB drive as OS root on a Raspberry Pi

This is how you change your root file system to use a USB drive on a Raspberry Pi. First, let's make sure you know which partition is your root file system right now. Enter this command in a terminal on your Raspberry Pi: df -h It should say something like this: treddell@penelope ~ $ df -h Filesystem Size Used Avail Use% Mounted on rootfs 15G 1.9G 13G 14% / /dev/mmcblk0p2 15G 1.

Checking the CPU Temperature of a Raspberry Pi

There a couple ways to look at the CPU temperature of a Raspberry Pi. One is using this command: cat /sys/class/thermal/thermal_zone0/temp. This will return the temperature in millicentigrade, with quick conversions to centigrade being something like (in your language of choice) value / 1000.0 and to Fahrenheit value / 1000.0 * 9/5 + 32. Check out more posts about the Raspberry Pi here: Raspberry Pi Posts

Create a passwordless ssh key

If you get tired of typing in a password when you connect to a remote machine with ssh, you can create an ssh key without a password to ease the process. Although this is not as secure as a key with a password, it is quicker. To create the key, type ssh-keygen This will create two keys, a private and a public key. Next you should copy the public key on the remote machine.