Archive for category Apple/os x

SSHfs on OS X via Samba

Why, you ask?

Because sshfs on OSX’s version of sshfs is wonky.

My solution is to use an intermediate linux server which does the sshfs mount, then serves that to os x over a samba share. Another benefit to this is that you only need one samba share to mount all your sshfs connections, since the linux server will be taking care of those. Also if you had a windows computer you wanted to use this with, it would also be able to mount the samba share from the linux server.

Let’s get started.

I ran into a couple tricky config issues while setting this up. This post is here mostly for me to remember them for next time I need to do them. If anybody else happens to stumble across this and finds it useful, then that’s a bonus.

On the linux server, you’ll need to install fuse-sshfs as well as samba. In Fedora, this can be done like so:

$ yum install samba
$ yum install fuse-sshfs

You need to add the linux user to the fuse group, and create a samba user account.

$ usermod -a -G fuse aaron
$ smbpasswd -a aaron

Here’s something that isn’t normally covered in fuse tutorials. In order to allow samba to access the fuse mount, you need to create a file, /etc/fuse.conf with the following contents:

user_allow_other

If you don’t do that, the mounted folder just disappears from the samba share.

You need to make some changes to /etc/samba/smb.conf file in order for symlinks to be shared to os x. I’m not sure if this is required for fuse to work, but it’s nice to have anyway:

unix extensions = no  (add this outside of a share definition)
follow symlinks = yes  (add this inside a share definition)

Of course, you need to configure the firewall to allow access to samba, (tcp and udp ports 445, 137, 138, 139 should do). And, you’ll need to make sure samba starts when the machine boots.

$ chkconfig smb on

We’re almost there.

To actually mount the sshfs folder, you’ll run a command which looks something like this. Note the extra option at the end:

sshfs username@example.com:/home/username mount_target -o allow_other

Now you can mount your home folder on the linux server over samba, and you’ll see a folder mount_target, which is the sshfs mount.

Note: you’ll probably want to set up your ssh server with public key authentication so you don’t have to enter your password every time you connect. This is not the topic of this post, so I won’t bother mentioning how. There’s plenty of other tutorials on the Internet.

I hope this covers it, but feel free to comment if I’ve left anything out.

No Comments

Choosing a laptop for a graphic designer

This is primarily targeted towards graphic designers, although anyone can benefit from the information here as well. This post focuses on the hardware of a laptop rather than the software. I figure I’ll save a talk about software for a different day.

To begin, I would stay away from anything that isn’t Dell or Apple. IBM and Toshiba are good too, but they typically market more to corporations than home users. Both Dell and Apple are pretty much the top of the line as far as home and small business go. You’ll always hear about people who have had problems with both, but they are pretty good about fixing things if you get the extra warranty. Again, the information here is applicable to any brand of laptop, but I will mention specifics of some Dell and Apple laptops.

Let me tell you about some of the things that will make the most difference when using your laptop:

1) Screen resolution. Not screen size! My Dell that I got in 2003 is 15.4″, but has a resolution of 1680×1050. This is probably the biggest reason I haven’t stopped using it yet, even though I have an iMac as well. The screen is wide enough to fit two internet windows side by side comfortably. Also, when working in Photoshop or InDesign, the toolbars sit nicely off to the side, still leaving plenty of room in the middle for your image. The toolbars are physically small because the resolution is so high.

2) Dedicated graphics card. The lower-end computers use a graphics card that is built in and shares the main system memory. This means you lose 100-200 megabytes of RAM since your graphics card is using it.
GeForce logo
Also, the graphics card runs much slower since it has to pull data through the same bus as the system to access the RAM. Getting a dedicated graphics card means it has its own RAM and doesn’t share with the main system. If you are planning on doing any kind of video editing, this is a must. It will also make Photoshop run much faster. My Dell has a 64mb graphics card, although they are usually 128-256mb now. But even the 64mb card is better than none. Dell’s Inspiron series has the share graphics card, they call it the “Intel Graphics Media Accelerator”. The XPS and Studio series have the dedicated graphics card, either a 128mb or 256mb NVIDIA GeForce. The biggest drawback to an Apple laptop is that you don’t get a dedicated graphics card until you spend some serious money on a Macbook Pro. Their regular Macbooks have just a shared graphics card.

Laptop RAM

3) RAM. You can get away with having 1gb of RAM, but really you should shoot for 2gb minimum. 3gb is good, 4gb is more than enough for anything you’ll do, short of having all of CS3 and a video editing program open at the same time. I have slowly added RAM to my Dell over the years, which is another reason it has been able to last this long. I am up to 1.25gb at the moment. I only have CS2 installed on it, not CS3, so I can’t tell you how CS3 works with 1.25gb. A trick you can do with the Apples is buy the computer with the minimum RAM installed, then go buy separate RAM from Newegg and install it yourself. Apple charges way too much for their RAM upgrades, and it is pretty easy to install. I looked at doing that with the Dell, but they only charge $50 for an extra gig, so at that point it isn’t worth your trouble to buy it elsewhere.

4) Processor. Any of the Intel Duos will be totally fine. You really won’t notice much of a difference between the 2.1ghz and the 2.6 ghz. You will, however, notice a difference between an Intel Duo and an Intel Celeron. A lot of other brands, and also the lower-end Dells use the Celeron processors. You definitely do not want one of these. You will notice that it is much slower.

Apple Macbook

5) Built-in camera. You may not think you need it, but if you don’t get it you’ll find yourself constantly annoyed that you don’t have one and everyone else does. Video and voice chatting is becoming much more common these days. It’s all free, so it’s better than using a cell phone if you’re at your computer. Also it acts like a speaker phone because you don’t need to hold a phone to your ear to talk. I use voice and video chatting for work meetings all the time. You can’t get an Apple without a camera at this point, so that isn’t really an issue. And it looks like Dell includes a camera on all their XPS series, and has the option to add it to an Inspiron.

In Conclusion

With Dell’s Inspiron and Studio lines you can get a screen at 1920×1200. That is the same resolution as my 24″ iMac, and it’s absolutely incredible, especially for photo editing. Packing it into a 15.4″ laptop screen makes the individual pixels really tiny, but that will only make things super sharp looking.

One alternative to getting a super high resolution screen is to get one that is slightly smaller, like 1440×900, and then also get an external monitor for your desk. This will let you take advantage of an even bigger total screen size when you’re sitting at your desk, and will still be fine when you are mobile. I use an external 17″ screen along with my main screen on my iMac. I have the extra screen turned on its side so that it is more like looking at a printed page. I can leave things over there for reference while I’m typing on my main screen, like code documentation or file browsers. When working in Creative Suite, it is really nice to be able to open up all the tool palettes and shove them on to the external monitor, and use the full size of the main screen for the document you’re editing!

Hopefully this information helps someone in their search for the perfect laptop. I’m sure I’ll have a write-up comparing software some other time. Feel free to comment on your experiences in choosing a laptop. I’d be curious to hear what others think.

, , , , ,

1 Comment

Syncing Windows Mobile with OS X and Google Calendar

Sprint MogulImage by nino63004 via Flickr

Well I did it! I got the HTC Mogul on Sprint’s SERO plan. Everything has been pretty painless so far. Activation was easy, text messaging works, and Internet browsing is pretty fast! Now comes the hard part: getting my data to sync between Windows Mobile and OS X.

There is an excellent program out there that is made exactly for this: Missing Sync. While not free, I do think it’s a good deal, so I went ahead and bought it. Everything transferred over flawlessly, and it’s pretty neat being able to see my call and SMS log on my computer.

However, my syncing ship has only begun to sail. I use Google Calendar as my primary calendar for everything. It has been a huge help in keeping things organized, since I can open it from any computer. My friends and I also subscribe to each others’ calendars so that we can better schedule things together. It can send text message reminders of events, which was a huge help for when I was out and about with no access to a computer. I moved to Google Calendar from iCal a while ago for these reasons.

Missing Sync can sync the Mogul’s calendar with iCal, but not with Google Calendar. I tried subscribing iCal to Google Calendar’s public url, but Missing Sync didn’t like that because it was a read-only calendar. I decided going the other way, publishing iCal to a URL, then subscribing Google Calendar to that, was a better option. I enabled WebDAV on a virtual host on my server.

DAVLockDB /www/sub.mydomain.com/dav/davlockdb
DAVMinTimeout 600
DAV On
<location /ical>
    Options None
    SSLRequireSSL
    SSLOptions +StdEnvVars
    AuthType Basic
    AuthName "Calendar Access"
    AuthUserFile "/www/sub.mydomain.com/ssl/.htpasswd"
    <limitexcept GET HEAD OPTIONS>
        require user aaron
    </limitexcept>
</location>

Publishing iCal to a WebDAV server is super easy, just choose “Publish on a Private Server” and enter the URL you have created.

Note: You don’t need to run your own WebDAV server to do this, you can use box.net to publish your iCal!

The one downside to this is that it isn’t possible to add events using Google Calendar. But I figure I’ll have my Mogul on my all the time anyway, and I can just add through there. Publishing my calendar to Google Calendar lets my friends still see my schedule.

, ,

No Comments

Final Cut: “Selection contains no media”

I encountered this error while trying to export a video from Final Cut using Compressor. Obviously my sequence did in fact have clips in it, but I didn’t see why this was occurring at first.

Somehow, the “in” point had been set to the last frame of the main timeline, so essentially I was trying to export 0 frames. The solution was to clear the in and out points by right clicking on the timeline of the sequence.

No Comments

The Ultimate Web Developer Setup

Using VMware Fusion and Multiple IEs, I set up my iMac to run the four major browsers simultaneously! IE 7, IE6, Firefox and Safari. With a 1920×1200 display, I can get all four to fit on the screen at once.


Click the image for the full-size version.

I no longer need to keep an extra Windows machine around here for debugging websites! “Multiple IEs” also can install IE 5.5, 5.1, 4 and 3, although I’m pretty sure those are almost completely irrelevant at this point.

One problem I did run into was that VMware in “Unity” mode didn’t seem to play well with Spaces. For example, sometimes after switching spaces a Windows app would lose focus and I wouldn’t be able to click it anymore. Switching to “Single Window” mode and then back again seemed to fix it.

Useful software:

,

No Comments

Dead pixel on my new 24″ iMac


I bought a new 24″ iMac last week, and it arrived on Friday. It worked flawlessly for the first day, but on Saturday, I noticed a pixel at the top of the screen about in the middle that was stuck magenta.

A lot of things I was reading said that because the pixel was a color, it was a “stuck” pixel. This would possibly be fixable by one of those programs that flashes different colors really fast.

I ran LCDtest which is a really simple program which just turns the entire screen a color: white, red, green, blue and black each time you press the right arrow. When the entire screen was supposed to be green, there was a black spot, but the spot did not appear in the red or blue screens. This tells me that it is not in fact a stuck pixel, but a dead pixel! And pixels don’t come back from the dead.

After talking to AppleCare on the phone, they pretty much told me that flaws in LCDs are common, and had to be expected, and they would not replace the computer. I was not convinced. I made an appointment with a Mac Genius at my “local” apple store (a two hour drive from my house) and went there this morning. I told him the problem, he took out my computer and turned it on, and then promptly gave me a new one!

So I am a happy camper again!

I bought a firewire hard drive the same size as my iMac’s, and backed up my iMac’s hard drive to it before I took it to the store. When I got my replacement back home, I was able to copy everything back, so I didn’t even have to reinstall my programs! I did this from the terminal (meaning I can make this script run every night to always have a copy of my hard drive at hand) with the “asr” command:

sudo asr restore --noprompt --erase --source /dev/disk0s2 --target /dev/disk1s3

Things to take away:

  • I bought my iMac online, but since I did not customize it at all, I was able to exchange it in the store.
  • Apple Care over the phone does NOT have the last word in the matter. They plainly told me they could not exchange my computer.
  • The pixel was not dead when I took the computer out of the box. It showed up the second day. This means verifying that there are no dead pixels while you are in the store is not necessarily the end of the story.

1 Comment