June 2010

You are currently browsing the monthly archive for June 2010.

I have a Synology DiskStation (DS209j) that I use on a primarily Windows network, but in some cases I want to access the DS shares from Ubuntu virtual machine running inside VirtualBox. There’s no sense mounting them as Windows shares with the DS supports NFS, so I went that route in stead. (Besides, some application still have trouble with Samba shares.)

I was scratching my head over a “access denied by server while mounting” error until I realized that VirtualBox was getting in the way. Here are the steps I took to get it up and running properly:

  1. In the VirtualBox menu of the virtual machine , select Devices > Network Adapters… and choose Bridge Adapter instead of the default NAT. This takes your virtual machine out of the private network it has with the host computer and makes it a first-class citizen on the network your host computer is on, with its own IP address.
  2. Check the guest machine’s IP address by opening Applications > Accessories > Terminal and typing “ifconfig”. It will probably start with “192.168”, but you’ll need all four parts if you want to limit access to just that machine.
  3. Log into Synology DiskStation Manager as admin, and click Management.
    1. Under Information, click Status and note the network IP address of your DiskStation. It will probably start with “192.168”, but you’ll need all four parts of the IP address.
    2. Under File Sharing, click NFS, and make sure it’s enabled.
    3. Under Privileges, click Shared Folder. Select the folder one you want to mount using NFS, and click NFS Privileges at the top of the list to add a new privilege. Use the IP address of the guest machine to lock access down to that specific machine, or use wildcards to allow access accross your local network (e.g. “192.168.*.*”).
    4. Before you close the NFS Privileges window, note the “Mount path” at the bottom of the list. It will probably look something like “/volume1/MyShare”
  4. To automatically mount the NFS share when you start up, go back to the Terminal window on the guest machine.
    1. Create a directory to use as a mount location. For example if you want to use “MyDSData” in your home folder, type “sudo mkdir /home/YourUserName/MyDSData”. Enter your password when prompted.
    2. Type “sudo gedit /etc/fstab” in the same Terminal window, and edit then add the line below  line to the end of the file. (It’s all one line.) Instead of “[DS IP Address]” use the IP address of your Synology DS, instead of “[Mount path]” type the mount pah, and instead of [Mount location] type the directory you made above. Don’t leave out the colon or the spaces.

      [DS IP Address]:[Mount path] [Mount location] nfs rw,hard,intr,nolock,nfsvers=3 0 0

      For example: “192.168.1.42:/volume1/MyShare /home/alex/MyDDData nfs rw,hard,intr,nolock,nfsvers=3 0 0″

Share

I had some trouble getting my HP LaserJet P1006 to work with the Synology DS210j (NAS print server), even though HP makes Linux drivers and other Synology DiskStation users have had success. The documents would look like they were sent to the printer just fine, but then nothing would happen — nothing actually printed.

The answer came in a recent Synology forum post by a user named efex. There are just a couple of points I’ll make, then just follow his instructions.

  • Be sure you grab the correct firmware file. For the P1006 it’s called sihpP1006.dl.
  • For the LaserJet P1006 specifically, the “$PRODUCT” value is “3f0/3e17/100″.
  • To save the file back to the share, you may need to clear read-only o archive file attributes. In Windows, right-click on the file name located on the share, choose Properties, and then and uncheck those file attributes.

See the whole tutorial, along with links for other product codes, visit this forum post.

Some Updated, More Detailed Instructions

This typically needs to be done with every Synology firmware update.

  1. Open Putty, and log into the DS as “root” with the administrator user password.
  2. Copy the driver file into the firmware directory. I keep a copy on a share on my Synology box to make it easy. For me, the command is “cp /volume1/docs-joint/PC\ Configurations/Synology\ DS210j/sihpP1006.dl /usr/syno/hotplug/firmware/”
  3. Make a backup of the usb.agent file. “cp /usr/syno/hotplug/usb.agent /usr/syno/hotplug/usb.agent.old”
  4. Copy the original to a share to make it easier to edit. “cp /usr/syno/hotplug/usb.agent /volume1/docs-joint/PC\ Configurations/Synology\ DS210j/”
  5. Open the file in a text editor and add the code below to the end. Save the file as “usb.agent.new” in the same directory (because you probably won’t have permission to overwrite the root file on the share).
  6. Back in Putty, change the permission of the file back to root:root. “chown root:root /volume1/docs-joint/PC\ Configurations/Synology\ DS210j/usb.agent.new”
  7. Overwrite the old “usb.agent” file with the new one. “mv /volume1/docs-joint/PC\ Configurations/Synology\ DS210j/usb.agent.new /volume1/docs-joint/PC\ Configurations/Synology\ DS210j/usb.agent”
  8. Copy the file back to the hotplug directory. “cp /volume1/docs-joint/PC\ Configurations/Synology\ DS210j/usb.agent /usr/syno/hotplug/”
  9. Verify that the newly edit file has permissions “rwxr-xr-x”. If not, use “chmod 755 /usr/syno/hotplug/usb.agent”
  10. Turn the printer off and back on again. You should hear it reset twice instead of once.

# Upload the firmware to the printer
sleep 5
FIRMWARE=/usr/syno/hotplug/firmware/sihpP1006.dl
if [ "$PRODUCT" = "3f0/3e17/100" ]
then
 if [ "$ACTION" = "add" ]
 then
 echo "`date` : Sending firmware to printer..." >> /var/log/hp
 cat $FIRMWARE > /dev/usb/lp0
 echo "`date` : done." >> /var/log/hp
 fi
fi

Share

Here’s what I believe is an 1897 Krag bayonet with scabbard, probably from the Spanish-American War. It’s marked “1897” on the blade, and “lNY143″ on the belt clip on the scabbard. It’s covered in some gunk that I can’t identify.

If you happen to know anything at all about this blade, please comment! I’ve had it since I was a kid and I’d love to learn more about it.

Share

Below is the key for the Metric Hole Test Pattern object, which is available at Shapeways.com. It is a flat, 3 millimeter thick piece with standard metric drill bit size holes, and can be used just as a decoration, or to measure detail, accuracy, and distortion (holes and flatness) in printed materials. It’s also useful for judging the printed sizes of clearance or tap holes, or choosing a hole size to match a part you already have.

Holes range in size from 1mm to 3mm in 0.1mm steps, and from 3mm to 10mm in both 0.1mm steps and 0.25mm steps.

Shapeways Printable Metric Hole Test Pattern

Shapeways Printable Metric Hole Test Pattern

The holes organized in “rows” and placed as efficiently as possible in order to limit material use. This results in a unique and beautiful shape. There are also small bumps on the edges to indicate the odd (x.25 and x.75) measurements. It is 3mm thick so that it can be printed with a variety of materials, including stainless steel.

Shapeways Printable Metric Hole Test Pattern

Shapeways Printable Metric Hole Test Pattern

It was a bit of a challenge figuring out the ideal hole placements…

Share