I've Googled this about 10 times now, maybe if I write it down I'll remember: rm -rf The -r means recursive, and the -f means force; which means it will ignore the fact that the directory is full.

Samba: Meh.

I'll start by saying Samba is not as easy as it should be, even when it's fully set up and working, but it gets the job done, and SFTP gets so tedious after a while. Here's what I had to do to get it working. First, install it: apt-get install samba Next, edit /etc/samba/smb.conf and [...]

…no, not the money kind of inheritance. I'm talking about the ownership and permissions in Linux. Linux permissions are tricky for a Windows guy like me. When I copy a file to a directory on a server I expect the file to inherit the permission of the containing folder on the server. Period. Why? Because [...]

Pay no attention to that man at the terminal! He's not doing anything! (To clear Apple OSX terminal history) history -c

One of our Apple servers is running an app that goes haywire if you don't reboot it periodically. So, I wrote an AppleScript to reboot the server, and created a recurring task in iCal to run the AppleScript every night. This worked fine for a few months but suddenly stopped working. A quick glance at [...]

jjcv over in the Ubuntu forums taught me how to forward email to an external address: MAke sure you have a mail server installed…. something like postfix. Edit /etc/aliases added or edit an entry for root to forward email: root: myname@gmail.com Save the file. Run the program 'newaliases' which will update the aliase database and [...]

I needed a way to backup MySQL databases every night. So, I made my first cron job. Ubuntu has a site that explains cron, crontab, and anacron in simple enough terms that even I could understand. I ended up using anacron. That means I made a script file and placed it in /etc/cron.daily. After a [...]

I needed to redirect the root of my Webserver. The first (and easiest) way I found was to add this to my default virtual host: Redirect / http://www.new-domain.com/ For me, that file was located in /etc/apache2/sites-available/default.

To fix the error "Could not reliably determine the server’s fully qualified domain name…" that happens when you restart Apache on Ubuntu, add this to /etc/apache2/httpd.conf ServerName localhost restart Apache again (apache2ctl graceful) and the error message should be gone. Thanks to Mohamed Aslam

TurnKey Linux offers all the power of Linux with none of the hassle of setting it up. They have created install images for many popular setups. In fact, this blog is running on a TurnKey Linux install of WordPress. All we had to do was create a new virtual machine in Hyper-V, install from the [...]

WordPress Appliance - Powered by TurnKey Linux