VerySimple Developer Blog
Technical Tips, Tricks and Rants.
 
May
04
Filed Under (Announcements) by Jason on 04-05-2008

If you are here because you received an unsolicited email from verysimple.com: It appears that a spam operation is illegally using the verysimple.com domain as their reply-to address. Please be assured that these messages did not come from us.  We recommend that you DO NOT purchase products offered via unsolicited email. In most cases these products are simply a waste of money, however they are sometimes a complete scam, designed only to steal your banking information.  You should be especially wary of products that are advertised using illegal techniques such as forging the outgoing email address.

verysimple.com does not ever send spam of any type, let alone messages hawking dubious medical products. If you receive such an advertisement from verysimple.com, please be advised that our address has simply been forged and it has absolutely nothing to do with us. We advise that you do not click on any links in these messages.  Even if you are lucky enough to receive the product you order, it only encourages spammers to continue.

Please feel free to post any comments or suggestions here, or send a private message via our contact form.

 

 
Mar
09
Filed Under (Digital Life) by Jason on 09-03-2008

This is a simple way to mount an OSX shared folder over SSH without installing any additional software. For this to work you must be sharing a folder using AFP (Apple File Sharing) protocol and have “Remote Login” (i.e. SSH) enabled. These settings are all found in System Preferences->Sharing. If your server is behind a firewall, you must open the SSH port (usually port 22).

Step One: Open up terminal and enter the following command:

ssh -N -p 22 -c 3des USERNAME@HOSTNAME -L 5480/localhost/548

Replace USERNAME with the remote username and replace HOSTNAME with the domain name or IP address of your server. For example jason@192.168.1.100. If you run SSH on a non-standard port, you can also replace 22 with your port number. You’ll be prompted for a password then you won’t see any further output.

This creates an SSH tunnel from local port 5480 to remote port 548. In Apple terms you might think of this as an alias. The remote server’s incoming port 548 is the default port used by Apple File Sharing service. Our local outgoing port 5480, on the other hand, is just an open port that is not known to be used by any common service. The outgoing port is not actually important, but these instructions assume you’re using 5480. Anyway, you might think of your tunnel as something like this:

local port 5480 -> SSH -> Internet -> SSH -> remote port 548

Step Two: Click anywhere on your desktop or open Finder so that you see the “Go” menu in your menu bar. Select from the menu bar: Go-> Connect to Server…

In the server address, enter “afp://localhost:5480″ (without the quotes)

This may seem crazy because it appears you are connecting to “localhost” which would normally be your local computer. Remember, though, the SSH tunnel connects local port 5480 to remote port 548. So we are actually connecting to port 548 on the remote machine.

After a moment you should get a standard login dialog. Enter your remote username/password and you’ll be presented with the available shares. Select the share you want and you should see it appear in the Finder in a moment. That’s it! You can now open and drag/drop files. The connection will probably be slower depending on your connection speed, but otherwise it works the same as if you were connecting directly.

(Optional) Additional Software and Alternatives

If you’re uncomfortable with the command like, there’s a GUI application for connecting to SSH servers and creating tunnels called SSH Tunnel Manager. You can download it from http://projects.tynsoe.org/en/stm/. The functionality is the same, but if you prefer clicking a button instead of typing in the terminal window, it can be useful.

Another method for connecting to shares over SSH is through an application called MacFuse with it’s required counterpart sshfs. This may look the same as an SSH tunnel, but is technically very different. MacFuse is a program that allows you to make anything appear to be a file system and SSH is just one of the possible implementations. You might say that this app tricks your computer into thinking something is a local hard drive. I gave MacFuse a try and personally did not find it reliable. A plain old SSH tunnel works great for me so I don’t plan to use MacFuse for this purpose. However it is an interesting idea and has many other uses.

Please feel free to leave a comment if you have any remote connection tips or tricks.

 

 
Mar
03
Filed Under (Digital Life, iPhone) by Jason on 03-03-2008

In case it’s not obvious from my recent posts I’ve purchased an iPhone. Even though the phone has a bunch of great features, I was concerned that I wouldn’t have enough disk space to get rid of my iPod. I have roughly half of the drive space (going from a 30Gb iPod to a 16Gb iPhone). My personal collection of music is around 20Gb so my iPod had enough space to sync everything automatically. With only 16Gb on the iPhone, though, I now have to manually manage my music. For those who have the 8Gb version, I’m sure it’s even more drastic.

I thought this manual process was going to be a drag, however I discovered a setup that is fairly low maintenance. I created two playlists in iTunes and configured the iPhone to sync with them instead of All Songs. These are not playlists for listening, rather they’re only used for syncing purposes.

The first is a regular playlist called “iPhone” and I drag my essential albums here that I always want to have with me. The second playlist is a “smart playlist.” If you haven’t used the smart playlist feature, it’s basically a filtered search result that functions as a playlist. My smart playlist is configured to include the most recently added 5Gb of music. I have a few filters to make sure it is only music and not podcasts and video (see screenshot).

Smart Playlist

This setup is pretty nice because my essentials always synced and I can change them as needed by editing the playlist. The most recent music that I’ve bought is synced automatically without me doing anything. It makes sense because I would usually want to listen to the stuff that I’ve just added. The iPhone only syncs one copy of each song so duplicates are not a problem.

If you have any tips or tricks for managing your own music, please feel free to post a comment.

 

« Previous Entries
Close
  • Social Web

NOTE: Email is disabled

E-mail It