Linux Blog

Linux For Everyone!

Filed under: General Linux — TheLinuxBlog.com at 12:12 am on Friday, January 30, 2009

Today, while I was in the shower I was thinking:

“What way do people closely interact with Linux everyday without even knowing it”


With the recent re-regurgitation of the old GNU vs. Cisco case it came to mind that many people use Linux on a daily basis by using their routers. While this is not the best example of Linux in its prime it is a good way to demonstrate the versatility of the Linux operating system. To some, the concept of an operating system running on anything other than the latest and greatest hardware is alien. To Linux users this is part of its beauty.

I personally have two Linux powered routers. The first is a cheapo Belkin that is not very well suited, the second is the better supported WRT54G.

There are many variants of the WRT’s My personal favorite is DD-WRT because this is what I’ve used for a while, and I’m most familiar with it. I have an office with quite a lot of equipment that is somewhat distant from my cable modem and access point. What I use the first router for is a static access point, next to the cable modem, the second router has been re-purposed to be a full time bridge. I encrypted the communications and set up some static IP’s. I have a hundred or so DHCP lease IP’s available for friends and virtual machines. Whats great about this setup is DD-WRT does a great job as a bridge and hardly ever drops. My cable connection has gone out far more times then the bridge, if it ever has at all. I am able to connect many machines to the Internet over wireless while keeping my office communications switched. I do not have any of the hassles of multiple wireless cards with touchy Windows and Linux drivers and random dropped connections. The wireless bridge is so reliable I am able to do VOIP over it, with QoS to ensure that my calls always have priority over streaming media and other network traffic. DD-WRT truly has been the best thing that I’ve ever done to my routers and is really a great replacement for the Linksys junkware.

With this in mind next time your dearest Windows zealot complains about the stability of their Small/Home Office router, perhaps taking a stab at the stability of Linux (if their router even runs it) how about you educate them on the versatility of Linux. If you like, you could walk them through the very easy steps of installing a WRT variant onto the router (if possible) and enable Linux’s full potential to shine through.

What to do when you run out of disk space

Filed under: General Linux,Linux Software,Quick Linux Tutorials — TheLinuxBlog.com at 11:27 am on Tuesday, January 8, 2008

Some times you run out of disk space. It just happens. So, what do you do when it does happen?

Well, it just happened to me and I’ll write about what I did. I’ll first start off with how I discovered that I was out of disk space in the first place. It was about 10:30 last night when for some reason that I can’t remember now I decided I’d start up my good old XP Virtual Machine (Probably to use some quirky Windows program.) Anyhow the VMWare console reported that I did not have enough disk space. This came as a bit of a shock to me as I have a 100GB hard drive. I had been downloading ISO’s of Linux Distributions but not that much. So, here is what to do when you run out of disk space:

Step 1) Don’t panic
Step 2) Take a look at your processes and shutdown anything that is not needed. init to single user mode if it makes you feel better.
Step 3) Use the disk free utility to figure out how much space you have:

df -h /

Step 4) Make a couple of megabytes of free space so that you can install a program.
Step 5) Download and install xdiskusage from source or from your favorite package manager.
Step 6) Run xdiskusage from the terminal as root
Step 7) Select a disk / partition
Step 8) Wait
Step 9) View the results
Step 10) Rinse wash repeat. (Browse Partitions / Delete / Move files to another disk & do it again)

Here are some screen shots of my xdiskusage:

xdiskusage example screenshot
xdiskusage example screenshot xdiskusage example screenshot xdiskusage example screenshot
Click For xdiskusage screenshots

As you can see from the root screen shot that my root partition that I have 60GB used between my /var and /home directories. On closer inspection, the var has 40GB, 20GB in virtual machines and 20GB in the logs directory. 20GB’s of logs is quite a lot, this is where my problem is. After finding the problem I was able to backup my log files and remove them. I know that this can be done with shell scripts xdiskusage has helped me in the past so I thought I’d pass on the information. If you have a favorite utility or script what you use when you run out of disk space let me know!

Project URL: http://xdiskusage.sourceforge.net/