Dec 09 2009

Stash away, that cash, away. Stash away all!

Tag: hardware, help, how-to, ipod, music, productivity, technology, troubleshootBrian Wegner @ 5:02 pm

sad-ipodIt’s the holiday season, and we all know what that means.  Work WAY too many hours just to buy people meaningless gifts that people will use for about a month and then toss away.  One popular gift that in my opinion is the gift that keeps giving is an iPod.  I bought my first iPod 5 years ago after I graduated high-school.  Exactly a year after I bought it, it gave me that dreaded sad iPod face, and would no longer work.  I gave up.  I was distraught.  I didn’t want to have to resort back to CD’s that scratch and become unreadable, and I didn’t want to spend another $300 on a new iPod when I had one that was only a year old.  Why didn’t I just buy that extended warranty when they asked?

So what did I do instead? I got violent, because violence solves everything!  I banged my iPod against my shifter in my car three times and tired it again just to see if it worked, and by golly it turned on, no more sad face and my music was playing!**  I about shat my pants I was so excited!  Now granted, it froze up every once in a while and gave the sad iPod face again, but no worries, do the simple solution again and it works!  Now after about three years, it doesn’t freeze up anymore.  It may not work the first time, but keep trying and it will eventually.

After some investigation on to why this works, it turns out that in the older iPods there is a small connector cable that becomes loose from the hard drive through normal wear and tear.  You’re simply just knocking that cable back into place so the hard drive can be read properly.  I have had this same iPod for 5 years now, and it works wonderfully, and have not needed to buy a new one.  Nothing flashy with it either, it is the generation 4 iPod, right before it switched over to color and became more complicated.  Now, would I LIKE a new iPod? Sure, but I would only really want one if I didn’t purchase it, and it was atleast 20 gigs like the one I have now is.

So before you go out and spend a whole lot of cash on a new iPod because you think you’ve lost yours forever, try this and see if it works!  Any questions, comments, feel free to ask!

**Automaticable, Apple, and the poster are in no way liable or responsible for any and all damages caused to your iPod, Car, or self, or anything else when trying any and all “violent” techniques in hopes to remedy the sad iPod face from the MP3 player.  Reader and User try these techniques AT THEIR OWN RISK.


Sep 15 2008

Easy Subversion GUI for Nautilus and Ubuntu

Tag: how-to, software, ubuntuScott Wegner @ 4:47 pm

Just about every software project uses some sort of versioning control system, and subversion is arguably the most popular tool.  Having your files versioned and backed up in a central repository is essential.  I’ve written about how to set up your own subversion repository, but you can go a step further and install a graphical interface to use subversion right within Nautilus.

Installing and setting up the subversion GUI is as simple as three commands.

  1. Install the nautilus-script-collection-svn package:
    sudo aptitude install nautilus-script-collection-svn
  2. Enable the plugin (this is required to access the plugin from nautilus):
    nautilus-script-manager enable Subversion
  3. Restart Nautilus:
    killall nautilus

Afterwards, Nautilus will have a new entry in the context menu when you right click.  You can now access most basic subversion commands without touching a terminal.

The interface isn’t quite as pretty as some Windows clients, such as TortoiseSVN.  However, it is still a nice alternative for users who prefer a GUI and only need basic functionality.  There doesn’t seem to be any support for merges, and other commands will use the default parameters.


Sep 12 2008

Organize Your ToDo List in Ubuntu with Remember The Milk and Tasque

Tag: how-to, linux, open source, productivity, software, ubuntuScott Wegner @ 8:22 pm

I am a big fan of the previously mentioned Remember The Milk productivity webapp.  It does one thing– manages your Todo list– and it does it very well.  Remember The Milk offers a clean web interface, as well as integration inside Gmail, Google Calendar, and even has an iPhone app.  The only thing that was missing for me, though, was a simple interface for the Linux desktop.  Enter Tasque.

Continue reading “Organize Your ToDo List in Ubuntu with Remember The Milk and Tasque”


Jun 25 2008

How To: Host a Subversion Repository in Ubuntu Hardy

Tag: deep thoughts, diy, food, how-to, linux, open source, review, software, ubuntuScott Wegner @ 10:46 pm

Have you ever wanted to set up a subversion repository on your home computer? Whether it be for a new software project, versioning your personal documents, or any other reason, there are many benefits to using version control. Some free websites that will host your project for you, such as SourceForge or Google Code, but it’s often necessary to have a little bit more control.

I set up a subversion repository for a new project the other day, and the process was relatively painless. I’m using a standard Ubuntu Hardy Heron 8.04 desktop setup, with OpenDNS and DD-WRT for port-forwarding, and without an Apache web server. Keep reading to host your own subversion repository server.

Continue reading “How To: Host a Subversion Repository in Ubuntu Hardy”


May 28 2008

How-to: Enable Surround Sound on Ubuntu Hardy

Tag: film, how-to, linux, music, ubuntuScott Wegner @ 6:36 pm

By default, Ubuntu Hardy Heron uses PulseAudio for audio mixing, which disables surround sound by default. I just bought new 5.1-channel speakers, but I was only heard sound coming from the front two. Disappointed, I went searching for the answer in the forums. If you want surround sound on your Linux setup, keep reading below..

Continue reading “How-to: Enable Surround Sound on Ubuntu Hardy”


Jan 18 2008

How-to: Use Your Ubuntu Computer as a Music Alarm Clock

Tag: how-to, music, software, ubuntuScott Wegner @ 7:19 pm

There are many music players that offer the functionality to wakeup to a song or playlist– both on Linux or Windows. But with each option I’ve tried, I’ve never been really happy with the results. For such a simple task, it always seemed overly-complicated. Also, the main downside I found in using a media player plugin, is that you’ll need to have the player running for it to actually work in the morning. Below I describe how to create your own music alarm clock, using only command-line utilities found on most Linux distributions. It uses quite a few different tools, and the tutorial will hit on quite a few different concepts. So, without further adieu…

  1. The first thing you will need is to create a playlist. I used Rhythmbox, since that’s where I store all of my music anyway. Create a playlist with songs you’d like to wake up to. When you’ve got enough, save it in .m3u format, somewhere where you’ll find it later. I put mine in my home directory.
  2. Next, we’ll need to make sure we have all the tools for the job. We’ll be using cron to schedule our tasks, amixer to set our volume, and mplayer to finally play our music. To make sure you have each of these installed, issue the following command:

    sudo aptitude install cron alsa-utils mplayer

  3. Next, we need to actually add the scheduled task. First I’m simply going to give you the commands, and I’ll explain what’s going on afterwards. In a terminal, enter the command:

    crontab -e

    Note: this will open your default text editor, which if you haven’t set it, will probably default to vim.

  4. Go to the end of the page by pressing Shift+G. Then start a new line pressing “o”. Once you’re there, type in or paste the following line:

    30 7 * * 1-5 /usr/bin/amixer set PCM 35\% && /usr/bin/X11/xterm -display :0 -bg black -fg white -e /usr/bin/mplayer -shuffle -playlist ~/.alarm-playlist

  5. Press “ESC” to stop typing. Then enter the command “:wq” (no quotes) to save and quit. If everything went well, you should see the line:

    crontab: installing new crontab

Cool, you’re done! Now, let me explain what all that was, so you can go back and customize it on your own. Remember, any time you want to learn more about a command, you can use the “man” command. For example,

man crontab

to learn about crontab.

So first of all, we used “aptitude” to install a few packages from the Ubuntu repositories. This is probably familiar to you, or you may be using “apt-get”. They are basically the same, but “aptitude” has a few advantages– you should switch to using it if you haven’t already.

Then, we used “crontab -e”. Cron is the name of the task scheduler in Linux, and this command opens up our own personal “scheduled task list”. You can always use “crontab -e” to edit your tasks, or “crontab -l” just to view them.

Now, on to that crazy line I had you type in:

30 7 * * 1-5 /usr/bin/amixer set PCM 35\% && /usr/bin/X11/xterm -display :0 -bg black -fg white -e /usr/bin/mplayer -shuffle -playlist ~/.alarm-playlist

Each entry in your personal crontab has the following format:

minute hour day-of-month month day-of-week command

So, in our case, our “minute” is 30, “hour” is 7, day-of-month is * (any), “month” is * (any), “day-of-week” is 1-5, and “command” is… the rest of that. This basically means that we’ve scheduled our command to execute at 7:30 am on Monday through Friday. Changing these options should be self explanatory. Now, let’s pick apart our “command” one part at a time.

/usr/bin/amixer set PCM 35\%

First thing to note, is that it’s a good idea to use full paths for any command you execute from cron. To find out the full path to a command, use

which {command}

In this case, we’re using amixer, which is a utility for changing the volume on your computer. I set mine to 35% to wake up to, but you can use anything. Also note here that we can’t use simply “35%”, because cron uses ‘%’ as a special character. Therefore, we preceed it with ‘\’.

Next thing to notice is “&&”. This essentially strings two commands together– it won’t start the next command until our first one has finished. So, onto our next command:

/usr/bin/X11/xterm -display :0 -bg black -fg white -e …

This is actually another compound command. xterm is another terminal that we are going to launch our music alarm in, so we can easily shut if off in the morning. We set all sorts of parameters to make the terminal look nice, but the important one is following the “-e”: that’s the command we will run in the new terminal:

/usr/bin/mplayer -shuffle -playlist ~/.alarm-playlist

Ahhh, finally, this is where we finally play our music. mplayer is a command-line music player with a very basic interface, and easy controls. You can run this line in a normal terminal now to make sure it works. We use the parameters “shuffle” to randomize our playlist, and then “-playlist …” to tell it what to play. Make sure you change “~/.alarm-playlist” to your own location.

And we’re done! At this point you should have a fully-functioning music alarm clock. Now go back and tweak it out with preferences that work for you.

Bonus: Move the alarm clock command to a shell script, and keep increasing your volume every minute or so.


Jan 11 2008

On the Go: Syncing your Data

Tag: how-to, productivityScott Wegner @ 9:34 pm

As every power-user does, I enjoy working on my own computer because everything is tweaked and customized just how I like it. I use the programs and preferences that work best for me. I organize my data in a way that fits my lifestyle. Everything is perfect for me on my personal computer. But, there is always a question of how to access your setup when on the road and away from home. I’ll describe a few different syncing techniques below. Each has it’s own advantages and disadvantages, and finding the right one depends on what’s important to you.

1. Use a Laptop
Of course, probably the simplest solution is to use a laptop as your primary workspace. Then, whenever you’re on the go, you can simply bring it with you. No setup, no hassle– everything is there for you when you need it.

2. Sync with an external device
Similarly, you can take what’s important with you on a separate piece of hardware. This could range from syncing your email and music on a smartphone or iPod, to carrying important data and programs on an external hard drive or flash drive. If you go the USB drive route, you might consider PortableApps Suite– a system for loading many common programs from a flash drive, as well as organizing your documents.

3. Use online syncing services
Another approach is to upload your data to web services, so you have everything you need as long as there’s an internet connection. This could mean sticking to using purely webapps, such as Google Documents, and storing your documents there. Or, you could simply backup your documents on one of the many online backup services. There is a useful post here detailing the best online backup solutions.

4. Remote Access to files
The solution I prefer is to setup remote access to your computer. Then there is no need to sync documents or upload them online– you’ll have access to everything you had on your main computer. It’s probably also the most complicated, as you’ll need to open some ports on your router as part of the setup. I won’t go into the specifics, but there are many different options for remote access. For Windows, Remote Desktop is probably the easiest, and will give you access to your entire desktop. For any platform, VNC accomplishes the same thing, and supports multiple connections to the same desktop. Also, particularly useful in Linux, you can setup an SSH server. This gives you access to your computer through a terminal, but is very fast for small tasks, and you can even run programs from your home computer remotely.

So, as you can see, there are a variety of options, and perhaps even a combination of a few is the best choice. Each has its own setup requirements, so plan on spending some time getting things running. But once you do, it becomes a great resource next time you need to remember a phone number in an email, or find a webpage you bookmarked but can’t remember.


Jan 04 2008

Troubleshooting 101

Tag: how-to, troubleshootScott Wegner @ 6:11 pm

Here’s a little indispensable wisdom next time things go awry– whenever you’re having trouble with technology, the easiest first shot is to restart fresh. If you think it’s a hardware problem– such as routers, modems, cellphones– unplug it or take out the battery for about 30 seconds, and try again. If you think it’s software– VPN, fonts, or general application problems– just restart your computer and give it another go. This fixes 90% of problems, and saves you a 45-minute call to tech-support.