Vacuum TubeAn old computer these days is no longer a completely useless system. In fact, even though I might upgrade my main computer every couple of years, I usually take ten to fifteen years before I completely remove it from my home network and send it to that great LAN in the sky!

Here are ten twelve uses that I have discovered for that more “experienced” computer system!

And once you have read through the article and decided which exciting project you want to do, make sure you let us know by voting in the poll!

Read the rest of the story…

FreeNAS TourSince I had such a great response to the new DCoT Tours feature, I have added a new tour to the list.

The FreeNAS Tour takes you through some of the most important posts that Daily Cup of Tech has produced. It introduces you to FreeNAS, a free (duh!) network attached storage operating system that allows you to take your old computer hardware, throw in some good sized hard drives, and suddenly you have a network file server on the cheap.

The tour shows you how to create your own FreeNAS server including installation, configuration, setting up Windows and FTP services, and backup using RSync. The tour pages makes it easy so that pretty much anyone with a bit of computer background can have a FreeNAS server up and running in a weekend.

Enjoy the tour!

OpenOffice.org BoxBeing a Technology Director can sometimes be a tricky job. The budget is nonexistent and trying to keep a wasteland of old machines alive is sometimes impossible. Well, I turned to a few open source solutions to help.

One that most people have heard of is OpenOffice. We have three computer labs with 20 computers each, 25 teacher computers, five administrative staff computers, and three small mobile labs with 10 laptops each. Purchasing that many copies of Office 2007 doesn’t really fit into my budget. Starting with the 2006-2007 school year, we transitioned to OpenOffice in all but one computer lab. The benefits that we have received are numerous. The teachers were all given copies to give to their students. Some students may not be able to afford purchasing MS Office, so giving them a free alternative that they use at school and home is a great way for the students to use the same software in both places.

Another great open source tool is FreeNAS. FreeNAS is a free Network Attached Storage. I found out about it, on this very blog. After reading the multitude of articles featuring this great piece of software, I excitedly visited my computer graveyard. I had 10 to 15 old machines laying around and picked the best two. Then I purchased two 250 gig drives and installed one into each machine. I now use these NAS devices for storage of student profiles, documents, and backups. The software installed onto both systems is a snap to install and includes web-based administration. Both machines sit headless in different parts of the school.

The last open source program that I use is actually a bunch of open source programs combined into one package. K12TSP is the K12 Linux Terminal Server. Basically, install it one beefy server, and it will then serve several diskless thin clients. This project has been installed in many schools across the country. It includes programs such as OpenOffice, Gimp, K-Office, Abiword, Firefox, Acrobat Reader, Gnome, and KDE. My K12TSP lab include 15 laptops that were basically useless, but could boot from the NIC. I gave it a shot, and voila, I had 15 working computers complete with sound.

Overall, my exposure to Open Source software has been great. Above is just a few of the programs that I like. I am positive there are projects that I have not found that would benefit my network. There is a bunch of people out there that can do amazing things with programs. I am not a programmer, but I appreciate those that are.

Hard DrivesDCoT’s favorite free…uh…NAS, FreeNAS, has released a new beta version - 0.684b. Here is what the website has to say about it:

Notes:

Here is the 0.684b.Lot’s of changes: Disk encryptions, iSCSI-target, swap, etc.. (check the change log for all details).

Important notice: The ‘lnc’ network card driver is replaced by ‘le’ driver. If you are using ‘lnc’ as interface LAN, plug a keyboard/monitor on your screen before upgrading FreeNAS.

LDAP doesn’t works: If you known how to configure LDAP client for authenticate all services, your help is welcome ;-)

MD5 Checksum:
FreeNAS-0.684b.iso = be63bd55c36201e0e73425ffcc05659d
FreeNAS-generic-pc-0.684b.img = 192475269c0ca6ef84bcfa6a8103e154

Changes:
Majors changes:
- Add disk encryption with geli
- Add iSCSI-Target: Permit to create specials files that simulate iSCSI target disk.
- Add swap feature: Permit to create a file on a mount point for memory swap purpose
- Add powerd/cpufreq system power control utility
- NTFS: Replace ntfs FreeBSD module with ntfs-3g: read/write support for NTFS
- Added growfs tools (usable from the CLI only)
- Add EXT2 filesystem creation support
- Add option for upgrading FreeNAS from CDROM (this can be used as recovery mode too).
- Multilanguage: Update languages files and add Japanese (Thanks to Hiroyuki Seino) and Russian (Thanks Ahmetov Shamil)
- Force only one UFS type: EFI GPT Partition with Softupdates, and permit to select percent of free disk space to kept (between 8 and 1)

Minors changes:
- RSYNC: Permit to configure multiple RSYNC local/client
- RSYNC: Add description attribute to RSYNC tasks
- SSH: Permit to enable SSH TCP forwarding (SSH tunneling)
- NFS: Permit to add more than one networks for NFS
- iSCSI: Upgrade iSCSI initiator to 2.0.1
- FTP: Add ‘Resume’ mode. Fix bug in enabling ‘FXP’ and ‘NAT mode’.
- FTP: Add ‘connected users list’ information page
- Samba: Try to improve samba performance by adding ‘large readwrite = no’ in smb.conf
(see http://wiki.samba.org/index.php/Samba_Troubleshooting)
- Samba: Add dos charset CP866 (Russian)
- Little index page improvement : % used of TOTAL size display. Paul Wheels patch
- Permit to configure the system time: Paul Wheels patch
- Add hardware sensors information page
- Add syslog message for RSYNC local/remote synchronization
- Geom mirror: Change default algorithm to round robin
(http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html)
- Now it is possible to store the configuration on floppy disk and USB stick when booting FreeNAS from CD.
- Permit to select if a user is in the administrator group (wheel) or not
- Add WebGUI page (System/Advanced/Startup) to add/edit/delete commands executed pre or post system initialization (booting).

Bug fixs:
- Fix UPnP WebGUI bug
- Fix bug in user & groups WebGUI.
- FTP: Fixed: Deletion of files uploaded and owned by user was not able.
- FTP: Fixed PAM error (using MS AD account for example)
- FTP: Disable root login by default. Can be enabled via WebGUI.
- Fix DHCP problem
- Try to prevent “acd0: FAILURE READ_BIG ERROR” during install from CDROM (thanks to fortinde@isers.sourceforge.net)
- Modify FreeNAS make.sh build script for supporting AMD64 FreeBSD now…

Underlying changes:
- Use the FreeBSD 6.2-RELEASE (production) for FreeNAS base
- Upgrade twa kernel driver (e.g. 3ware 9650SE Series Raid S-ATA II PCIe)
- Try to improve performance on VM machine: http://ivoras.sharanet.org/freebsd/vmware.html
Replace ethernet ‘lnc’ drivers with ‘le’ driver (WARNING: NEED CONFIGURATION CHANGE AFTER UPGRADE)
Reduce Kernel’s timer frequency to 100HZ
- Samba: Upgrade Samba to 3.0.24
- Remove the tools ‘beep’
- Upgrade PHP to 5.2.1
- Upgrade ushare to 0.9.10 (should now support xbox)

Known bug in the 0.684b:
- Using iSCSI-target can cause problem for stopping/restarting FreeNAS
- French character not correclty displayed
- When pressing Ctrl+halt+del key, the rc.shutdown script generate an error

Ryan sent an e-mail a few days ago with a problem between DeltaCopy and FreeNAS. It seems that everything copies just fine but then locks him out.

Hello,

I recently came across your website and I love it!!! I have a question about one of your articles that I was hoping you might be able to help me with (I understand that you not in the business of tech support..but hey). I went through your FreeNAS how to article and was, amazingly, able to get my system up and running relatively easily. But when I configure Rsync with Deltacopy, I run into a problem where I do not have “permission” to access the files that are automatically backed up to the FreeNas server. In other words, Rsync and Delta copy do their thing and seem to do it correctly, but when I try to access the files that have been backed up. I get network permission errors and file permission errors. Is this something that you came across when you tested this? I’m running Windows XP SP2, the latest Freenas, and a linksys router. Any information you can provide is greatly appreciated.

Again, very nice website.

Ryan.

First of all, Ryan, thanks for the kind works. I’m always glad to hear that people enjoy reading DCoT. Now, if only I could make money at it! :)

Now, for your technical request. The problem that you are having is with the file permissions that are set on the FreeNAS drive. By default, only the root account has access to these files.

Reset Permissions

There are two ways that you can solve this problem. The first is to change the permissions on all the files. This is a relatively easy process. Simply go to the Command section of the Diagnostics menu. Enter the following command:

chmod -R 777 /mnt/<sharename>

where <sharename> is the name of the share that you wish to reset permissions on. For example, if your share name was Backup, you would execute the command:

CHMOD share

This would reset the permissions on all of the files in the Backup share.

Click on the Execute button once you have entered the command correctly.

Now, if you browse to your share with Windows Explorer, the files should now be available.

Change File Systems

Another way that you can avoid this problem is to change the file system on your FreeNAS server. If you choose a file system that does not support file permission (e.g. FAT32), then there is no real way that permission can be set on the files and no way that you can be denied access to the files from a file permission level.

Note: It is still possible to lock people out from accessing the files from a share level.

Recommendations

Both of these solutions will work and provide you with what you need i.e. access to your files. But, I lean toward the first solution because it allows you to both backup and secure your files on an ongoing basis. This way, if you need to recover some lost data, only you can get access to it.

But, if you are in an environment where you trust those who have access to your FreeNAS box (e.g. your home system), then I would say the second solution would work just fine for you.

I hope that helps, Ryan.  Thanks for the question.

David e-mailed my dad (I’m just Tim) with a question about using RSYNC in Windows to backup to FreeNAS when the data is in two different locations. Since my dad doesn’t know anything about FreeNAS, I figured I’d answer:

Dear Mr. Fehlman,

Congratulations on your excellent series of articles on FreeNAS. I have got a Dell PIII with 640MB RAM and a single 30GB disc up and running with FreeNAS; the disc has two partitions one for FreeNAS and the second for data. Ultimately, what I would really like to aim for is a RAID FreeNAS to backup family photos, and MYOB business data….and here lies a problem.

It would appear that in FreeNAS each partition represents a single share point. With RSYNC, we need a matching share on the Windows box, and this Windows share (represented by a virtual directory in DeltaCopy) can only point to a single folder. Am I correct in stating that if I wanted to backup two different folders on the Windows box (say, MYPHOTOS and MYOBDATA), I would need two virtual directories in DeltaCopy, and thus would need two matching data partitions on the FreeNAS box? I note your link to “How to partition hard-drives for FreeNAS“, but I’m starting to get out of my depth by this stage (I consider myself a newbie luddite).

Many thanks for your comments,

David

Well, David, you are correct. There needs to be a 1:1 ratio between folder and backup on the FreeNAS using RSYNC. So, how do you go about backing up several different folders that are all over your hard drive? There are three different ways that this can be accomplished.

1. Move All Data One Folder

The first thing that comes to mind is that you can store all of your data in subfolders under one folder (e.g. My Data). Then, all you would have to do is set up one partition on the FreeNAS box and RSYNC the one folder to the FreeNAS partition.

2. Create an Intermediate Backup Folder

“But, what if you can’t move the data?”, you ask, “There are a lot of programs out there that do not let you specify where the data can be stored. How would you back up something like that?”

You could create an intermediate folder where you use a program such as Cobian Backup to copy all of the files to one folder and then RSYNC that folder to the FreeNAS box. Unfortunately, you now have two copies of your data residing on your hard drive which has a tendency to get pretty huge after a period of time.

There is also the issue of the initial file backup still running when RSYNC fires up. This means that you will be copying your data to the FreeNAS box prior to the backup completing. Definitely an issue.

3. Use NTFS Junction Points

The solution that I thing is the geekiest (thus, the coolest) is to use NTFS junction points. Essentially, you make the system think that an empty folder in a backup folder actually contains your data. Then, when RSYNC goes to copy the data, it will follow the junction points and backup everything you want.

Junction Link Magic
If you are new to NTFS junction points, this can be a bit of an odd concept to get used to. The way I wrap my head around it is to think of them like “stealth” shortcuts. Just like a shortcut on your desktop can point to a file or folder somewhere else on your hard drive, junction points point to other folders on your hard drive. The difference between shortcuts and junction points is that the file system sees shortcuts as files with an .LNK extension but it sees junction points as just another folder on your hard drive.

If you are interested in working with junction points, there are a lot of different programs out there that will allow you to create and delete them on your system. The one that I use the most is called Junction Link Magic and is available as freeware (of course). There are a lot of others out there but this is just the one that I am familiar with.

Junction Point Loop
Just a quick word of warning. You can really mess up your system if you go deleting junction points without understanding what they actually are doing. I suggest that you only create new junction points in folders that you have just created for the purpose of redirecting information. I also suggest that you do not delete any junction point that you dis not create. This is another great way to destroy your system. And finally, do not create a junction point that points to a folder higher up in the directory tree. This will create a junction point loop and if you are backing up this folder, you will never finish your backup.
Also be aware that you can only perform NTFS junction points on Windows 2000 and above. Your hard drive also needs to be formatted NTFS.

RSYNCed Data Unavailable

Data UnavailableNow, this brings up another problem. People are finding that they are not able to access their RSYNCed data. This is a know issue but there is a solution….which I will tell you about tomorrow!

TrophyCongratulations to the FreeNAS team on being named the Project of the Month on SourceForge! This is a huge honor but it is definitely well deserved. Thanks for all your hard work.

SourceForge interviewed the development team and it is a very interesting read. I have included a couple of tidbits. When asked what was on their project wish list, this is what they had to say:

Olivier: A solution to the Samba performance problem under *BSD A powerful and stable software RAID 5 solution under FreeBSD.

Dan: Quota management

Volker: Improvement of the mount and share workflow

Support for plugins

Filesystem encryption

Bob: Full user and partition controls

Power user plugins (the ability for a power admin to execute specific commands on startup)

They also laid out the milestones that they have for the project (remember, this is still a beta project!):

  • 0.69: Add lots of FreeBSD geom class (gconcat, gstripe, geli, etc.)
  • 0.7: Disk/share management will be completely rewritten to add user permissions and quotas
  • 0.8: Add moniroting features: SNMP, syslog, alert, etc.
  • 0.9: Work on stability, security, and bugs fixes.
  • 1.0: The release!

Now, FreeNAS is in some pretty good company. The SourceForge Project of the Month list reads like a who’s who of the open source industry. Here is the list going back to 2002. I’m sure you are going to see some familiar faces in the list.

2007

2006

2005

2004

2003

2002

Once again, congratulations on a job well done!

CD DetailsApparently, I’m not the only one who is working hard these days. FreeNAS has released yet another beta version (FreeNAS-0.683b). This is the second beta in less than a week!

From the website:

Notes:
Major bug fix:

  • Fix the ‘disk is mounted’ bug when formatting disk.
  • Upgrade smartmontools, permit to mount CD/DVD drive and minor bug fix and improvement.

Changes:

  • Upgrade Smartmontools from 5.36 to 5.37
  • Add the HPN-SSH client (for preparing rsync and unison over ssh)
  • Permit to mount CDROM drive
  • fixed the display of ‘DMA’ in the place of the size when controller found non-ATA66 cable
  • WebGUI: Add all RAID information on the Diagnostic information page, More easy fsck page to use, Improve graid5 tools page
  • New language: Romana (thanks to Laurentiu Florin Bubuianu)
  • Permit to configure the hosts file
  • Fix the disk check mounted bug when formatting a disk.
  • Add gettext support on PHP (prepare migrating languague file to .po)

I think the one big addition to this beta is the ability to mount CDs and DVDs. Up until now, I have always removed the DVD drive when I was finished to the base installation as I wanted to use the IDE connection for a hard drive. But, it might be useful to have a USB drive around so that you can quickly plug it into the FreeNAS box and then share a DVD to the network.

31533027_e69f4a3878_m.jpgMy favorite open source NAS software, FreeNAS, has released an updated beta version of the software.

Here are the release notes:

  • Bug fixes from the 0.681: Install from CDROM, LAN page modification that crash the WebGUI, fsck that don’t umount disk.
  • New languages added and SSH replaced with HPN-SSH.
  • Looking for testers about the new HPN-SSH implementation!

and this is a list of the changes that have been implemented in this release:

  • Fixed 0.681b bug: missing function (fdisk) for installing ,fsck tools that don’t umount and LAN page that crash webGUI.
  • CIFS: hide dot files for prevent Netatalk system directory to be delete
  • CIFS: add two parameters for trying to improve performance (samba perf suck under FreeBSD…)
  • SSH: Add HPN-SSH patch by using openssh-portable FreeBSD port
  • Fixed fstab warning message while booting (Thanks to Graham Wharton)
  • Modified build scripts
  • Hiroyuki Seino patch : CP932 charset added, and webgui bug fix
  • New language: Traditional and simplified Chinese (Thanks to Baikuan Hsu), Dutch (thanks to Kris Verhoeven)
  • Add warning when choosing install with 2 partitions (Thanks to Bob)

You can download the latest beta version from the FreeNAS SourceForge website.

agentread.pngI remember the first hard drive that I owned. It has a whopping 20 MB of disk space. I recall a conversation I had with someone about a new 500 MB drive and wondering what in the world you would do with all that storage capacity. Apparently, we figured that one out!

So, I am really excited that Hitachi has created the world’s first 1 TB hard drive! The Deskstar 7K1000 will sell for about US$400 and will allow you to store up to 3,000 hours of video or about 200,000 songs in MP3 format. It will be available sometime in Q1 of this year.

According to the website, 1 TB drives are going to become a necessity as everything starts to go digital:

Consumers have entered an era where everything they capture on digital still or video, listen to and write, can be saved and shared for future enjoyment. In the connected home, storage becomes the epicenter of the home network, linking the living room, the office and the bedroom together in a truly digitally-connected home. The family’s games, home movies, photos and music can be stored and accessed from a variety of digital entertainment devices within the home. As the distribution of video content to social networking sites and to handheld devices becomes more commonplace, storage capacity requirements will reach new heights. In this scenario, consumers can begin to imagine what they would do with all that capacity. With 1TB, Hitachi’s Deskstar 7K1000, for PCs and home media centers and the CinemaStar 7K1000 for DVRs help to usher in this new era.

Here are the specs:

  • 1000/750 GB – SATA (GB = 1 billion bytes, accessible capacity may be less)
  • 148 billion bits per square inch maximum areal density
  • 1070 Mb/s max. media data rate
  • 8.7 ms average seek time (with command overhead)
  • 7,200 RPM, 4.17 ms average latency
  • Serial-ATA 3.0Gb/s
  • 32 MB data buffer – SATA
  • 26.1 mm in height (max)
  • 700g in weight (max)
  • 5/4 platters, 10/8 recording heads – SATA
  • 300 G/1 ms pulse non-operating shock
  • 9.0 (5 disk)/8.1 (4 disk) watt idle power – SATA
  • 2.9 Bels typical idle acoustics
  • 5-60 degrees C operating temperature

I imagine that if I were to drop a couple of these drives into a FreeNAS box, it would make a pretty sweet storage unit!

P.S. If you would like to see some edutainment, check out License to Read.

Next Page »