I don’t know about you, but there have been many times when I wanted to download something only temporarily with the intent to delete it later, like saving an image to upload elsewhere or saving email attachments that I didn’t need to keep to open in an external program. There have also been times when I wanted to test something out and had to temporarily create files with the intent to delete them later, whether it’s creating a test program, extracting a compressed archive, or even creating a named pipe (FIFO). I used to use my disk for that, using a
~/tmp directory, but it would slowly fill up when I neglected to delete these temporary files, thinking that they “might be useful later”; even to this day, I still have about 12GB of supposedly “temporary” files.
The largest files and folders in my tmp folder. Sorry, but I’m not going to show you my files!
How do you prevent these temporary files from filling up your disk? The obvious answer is to just delete them, and good for you if that works for you, but it evidently doesn’t work for me. You could stop downloading things or generating temporary files, but that’s unreasonable. One solution that I came up with when I used to run on Windows was to create a fixed-size container and put my temporary files there. I now had a maximum size for my temporary files so they wouldn’t overrun my disk. It worked for a while, but I made the mistake of making the container too small (only 256 MB), so in time, I was putting my larger temporary files in a
tmp directory outside my container. I was also still not really deleting my temporary files, so in time, the container filled up.
So space-boxing the files is a good thing, but how do you make sure that your temporary files stay temporary and actually get deleted?
Let’s do this in Linux! →
You read about how to create an SSH tunnel and saw that you can do the same in reverse, forwarding a port from the server to your local machine. You tried it out on a server you have access to and discovered that the port you chose isn’t opening on the outside, even though the port is allowed through the firewall. What gives?
SSH Remote Port Forwarding flow diagram
All four authors here on *nix Windows are either using Arch Linux or have expressed an interest in trying it out. As a regular Arch user myself, I think Arch Linux is a great distro and I highly recommend it for anyone who wants to try it out. However, just like with any other distro, Arch might be less suitable than others for certain use cases.
It’s that time of year again! The time when we go around when we go around doing last-minute shopping, spend time with friends and family, and remember Christ’s birth.
Programs tend to be more or less the same all year round, but a couple of them change depending on the time of year, especially for Christmas.
From December 18 to January 1, VLC media player‘s striped orange cone sports a Santa hat.
VLC media Christmas icon
If you’ve ever tried to configure your keyboard shortcuts, you may have come across something called the Super key. If you look on your keyboard, there’s probably no key labelled “Super“. So, what is it?
Find out →
I have a love-hate relationship with PulseAudio: it has a lot of great features, but sometimes it’s more resource-hungry than I would like, and it also crashes more often than I’d like. Actually, the only reason why I got PulseAudio was because Skype 188.8.131.52 required Pulse and dropped ALSA support; I would have stayed with plain ALSA had it not been for Skype (on that note, I really hate Skype, for more reasons than one).
Move this window. Go ahead, I’ll wait. Great. Now resize this window.
If you’re like most people, you moved the window by dragging the title bar and resized by dragging the edge or corner of the window. That works and all, but you have to move your mouse to the right spots, which may very well be at the opposite end of the screen, and what do you do if you find yourself with a title bar past the top of your screen?
Ask a newcomer about Linux and they’ll probably mention something about Ubuntu. Someone a little more knowledgeable about Linux will know that there are many flavours, called “distributions” (or “distros”, for short), of Linux. There are over six hundred distributions out there, and they’re all labelled as “Linux”. What makes one distro different from the next, and how do you choose one?
Earlier this week, my friend brought his laptop to me because Windows 8 refused to boot after a restart. He had attempted to repair it himself, but ended up making things worse, to the point that the manufacturer recovery console and the Windows 8 installer wouldn’t even boot. Thankfully for him, I had the power of Linux with me and we were able to revive his laptop very easily.