A novice's guide to the wide world of Linux
Archive for June, 2009
Adding Virtual Domains — The Easy Way (Ubuntu)
Jun 24th
I wrote this script out of my need for a quick method of adding virtual domains. I hope you find this to be of great use.
create a file named addomain
- sudo vim /usr/bin/adddomain
Place this in your file:
- #!/bin/bash
- #Edit the following e-mail address:
- email="your@email.address"
- ipaddress=`ifconfig eth0 | grep inet | awk ‘{print $2}’ | sed ‘s/addr://’ | grep .`
- domain=$1
- file="/etc/apache2/sites-available/$domain"
- if [ -z $domain ]; More >
Twitter for BASH
Jun 23rd
Thanks Linux Journal for this one:
Ok, You’re REALLY into Twitter, and you want a faster way to tweet, or you’re frustrated at having to hunt through the log files, and you want to share that frustration with all your tweetererers. Here’s a great way:
First, you’ll need to do one of 2 More >














