QuickTips

QuickTip: Make life easier with ssh-copy-id

How many times have you ran through this series of events?

$ cat ~/.ssh/id_dsa.pub
...copy output to clipboard...
$ ssh myhost
...enter password...
myhost$ vi ~./ssh/authorized_keys
...paste public key and save...
myhost$ exit

Thanks to bash's tab completion, I happened upon ssh-copy-id. Instead of all that above, just do this:

Set it and forget it: Tether your Windows Mobile 6 Phone to Linux

I have a love/hate relationship with my phone - an HTC PPC6800. I can't live without it - I can check my work email from anywhere, and surf the web. While I've tried many PDA's through the years, none of them have stuck, because I got tired of lugging them around. I always have my phone with me, so therefore my smartphone has made me much more organized. My wife loves it because I can remember all the upcoming appointments. Yet, I hate it. It's UI is horrible. It locks up and needs rebooted, and I feel dirty using a M$ product.

Reporting Chrome usage via AWStats

AWStats is a great tool to analyze your Apache logs. Unless you've been living under a rock, there's a new browser in town - Chrome. Until you tell AWStats how to break it out for you, you won't see any statistics for it. Read on for how to modify AWStats so that it can detect the Chrome browser.

I'm assuming that $AWSTATS_HOME is the root of where you installed AWStats
First, let's fetch the favicon so it can be displayed all pretty:

Use GMail as an SMTP relay using SSMTP

On some of your home workstations, and especially on a laptop, setting up a full-blown SMTP server such as Postfix, Sendmail, or Exim might be overkill.  Follow the jump to learn how to setup the lightweight ssmtp to relay all outbound mail through your GMail account by using Gmail as a smarthost.

SSMTP is meant to be a no-frills, secure, and lightweight replacement for a full-blown MTA. Personally, I feel it's best use is on a laptop where you're moving around between networks a lot, and need to send outbound emails from cron or other shell scripts.

User-level configuration of CPU speed in Gnome under Ubuntu

When I ran Fedora on my laptop, I loved how I could manually set the CPU speed in Gnome using the "CPU Frequency Scaling Monitor" applet.  I noticed that I could not do this under Ubuntu (you can monitor speed, but you can't change it).

It's actually a feature, not a bug.  In order to change CPU frequency, the binary needs to be SUID, which Ubuntu doesn't enable by default.  In order to change this behavior, run the following:

sudo dpkg-reconfigure gnome-applets
Subscribe to SysAdmin's Journey RSS