Insights on Ruby, Git, jQuery, Cappuccino, WordPress, Debian and OS X. Please subscribe if you find something useful!

Debian Etch: Default Repositories

Posted: August 22nd, 2008 | Author: Jerod | Filed under: Debian | Tags: | Comments Off

In case you muck up your /etc/apt/sources.list and want to set it back to the defaults, just copy and paste this in:

deb http://ftp.debian.org/debian/ etch main
deb-src http://ftp.debian.org/debian/ etch main
 
deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib

Debian Quickie: MailUtils

Posted: August 12th, 2008 | Author: Jerod | Filed under: Debian | Comments Off

All (except for one RHEL4 box) of the servers I run use Debian. I have become accustomed to using the default mail client /usr/bin/mail that ships with the O/S for reading local email coming in from cron jobs.

Well, it turns out that this handy little tool doesn’t actually ship with a base Debian Etch install.

   1  -bash: mail: command not found

Grrrr!

Turns out you have to have mailutils installed to get /usr/bin/mail. I always forget this package name so I figured I’d post it here for easy access.

To install the necessary packages under Debian just issue the following command:

   1  apt-get install mailutils

Enjoy the fresh maily goodness.


Symlink Your Samba Shares

Posted: July 23rd, 2008 | Author: Jerod | Filed under: Debian | Tags: | Comments Off

Lets face it, oftentimes a symbolic link is just the quickest/easiest solution to the task at hand.

To configure Samba to allow symlinking directories/files into your shared directories, add the following three lines to the global section of smb.conf:

follow symlinks = yes
wide symlinks = yes
unix extensions = no

Easy peasy lemon squeezy.


SliceHost + Debian + FireHOL gotchas

Posted: June 20th, 2008 | Author: Jerod | Filed under: Debian | Tags: , , | View Comments

Securing your slice with FireHOL is a really, really good move. Here are a few notes that may save you some time:

  1. FireHOL requires a kernel config to know which modules to load, SliceHost uses Xen, so to get the kernel configuration in the right place, execute the following commands:

    /proc/config.gz ~ && cd ~
    gunzip config.gz && mv config /boot/config-`uname -r`
  2. FireHOL ships with a safety net configured in /etc/defaults/firehol. It will not start until you edit this file and change this:

    START_FIREHOL=NO

    to this:

    START_FIREHOL=YES

That should do it for gotchas. Now you can lock down your machine to assure you’re only serving what you expect. Fore more on configuring FireHOL, check out their online tutorial


htop: like top, but awesome

Posted: June 3rd, 2008 | Author: Jerod | Filed under: Debian | Comments Off

If you’ve been hacking at your linux CLI for a little while, you’re probably familiar with the pic below. If not, just type ‘top’ (no quotes) and your terminal will spring to life with an ever-updating process and usage display.

top

While very useful, top’s output is oogly. It’s the 21st century already! Let’s use some colors!!

Thankfully, htop is here to save our day. To install on a Debian-based linux, simply type:

sudo apt-get install htop

now we should have htop installed at /usr/bin/htop. Let’s add a quick alias so we don’t accidentally launch top anymore. Open your .bashrc in your favorite editor and add the following code to it:

if [ -f /usr/bin/htop ];then
  alias top='htop'
fi

Now whenever you start a terminal session and type top you’ll launch htop instead (but only if htop is installed on the system). Quickly tell bash to re-read your configuration file and try launching htop!

htop

And there’s the awesome