imagemagick and typo3 on mac osx

February 24th, 2007

I will cut right to the chase on this. After researching and trying several different methods of enabling imagemagick in typo3 on my mac, there was only one package that worked completely. The package imagemagick-6.1.7.pkg.tar.gz provided by Marc Liyanage. Just download the pacakage, extract it, run it, and it will install everything in /usr/local/bin/ just like it should! At the time that I was hunting, the pages of his site were not responding, but I found the important page in a google cache.
Here are some other things that I tried. These did not work for me, in case you are considering some of these same methods.

  • Using DarwinPorts to install GraphicsMagick
  • Using DarwinPorts to install ImageMagick
  • Using the Image Magick downloadable binary from the ImageMagick web site
  • Compiling ImageMagick from source. (I was missing some of pretty important libraries, like JPG, TIFF, etc.)

So, don’t mess around. Just be smart and use the Mac installer from Marc Liyanage.

I just finished getting this all set up at my house. What I did was the result of pulling some things from a few different sites. They are credited at the bottom of this post. What follows is the process pretty much the way I did it, and it worked!
I’m using the idea of having a constant HOME server, and a floating, connecting from anywhere, SATELLITE computer.

[1] Get set up with dyndns.org or another dynamic DNS server. (or be sure you know your destination IP address). You will need some sort of client to keep the IP updated on the server. My router natively supported dyndns.org, so that’s the service I went with. If your router doesn’t natively support the service that you go with, you’ll need to use a client that runs on your Home computer, to keep your IP address updated in DNS

[2] On the router that handles the internet connection of the Home computer, forward port 22 to the IP address of the Home computer. This is the only port that needs to be open on the router.

On Satellite Mac
[3] create key pair on the Satellite Mac (optional, but for best security)

command-line: (use Terminal)
ssh-keygen -t rsa (answer question for creating a password, then assign a filename)
You can name the two files whatever you want. Keep the private key in a secret and constant place. (I put mine in /Users/myname/.ssh/privatekey) Email the public key to yourself. Gmail.com works great for that.

On the Home Mac:

[4] Allow secure SSH connections

Get your public key from gmail, or however you emailed it to yourself.

In your home directory, at the command-line, create a new directory if it’s not already there: .ssh. move your public key into this new .ssh directory. Rename your public key to “authorized_keys”. So it should be here: /Users/MYHOMEUSERNAME/.ssh/authorized_keys

and lastly, at the command-line:
cd ~
chmod 700 .ssh
chmod 600 .ssh/authorized_keys

edit /etc/sshd_config

Essential - make sure the following is not commented out:
AlowTcpForwarding yes

Optional - preventing SSH logins via password, requiring login only via the key pair - Make sure the following two lines are uncommented:
PasswordAuthentication no
UsePAM no

Start (or stop and start) SSH. On the Sharing preferences pane, it is “Remote Login”.

[5] Set up OSX VNC (or Vine Server)

The important thing here is, under the Sharing tab of Vine Server, select “Only allow local connections (require SSH)”

Also, for convenience, you may, under the Connection tab, remove the password. I set the Display Number to Auto.

Now everything is set up. The rest of this is the everyday process of using the setup.

On the Remote Mac:

[1] create a VNC tunnel to the Home Mac. (for Screen sharing)
at the command-line:
ssh -i /Users/MYREMOTEUSERNAME/.ssh/privatekey -L 5900:localhost:5900 MYHOMEUSERNAME@MYHOMEMAC.dyndns.org

(answer with the password for your private key)

[2] Connect to Home Mac by using a VNC client to connect to localhost, port 5900.

[3] Create an AFP tunnel to the Home Mac. (for File sharing)

ssh -i /Users/MYREMOTEUSERNAME/.ssh/privatekey -L 5480:localhost:548 MYHOMEUSERNAME@MYHOMEMAC.dyndns.org

[4] Mount a volume from your Home computer by using the finder menu and using Go -> Connect to Server. Enter afp://localhost:5480 into the field.

Final Notes

I believe there are quite a few ways to streamline this process. There are multiple VNC client apps. Maybe even more than one VNC server apps. The diveintomark.org video tutorial, mentioned below, shows a way to not have to enter your private key password every time you connect.

Credits: (thanks for the help, guys!)
http://macosx.miraworld.tv/ssh/
http://howto.diveintomark.org/remote-mac/

My Mac Software

February 19th, 2007

I’ve been using a Mac desktop for several months now, and I’m really happy with it. I’m about to set up a MacBook in a configuration similar to the desktop, so I thought I’d list the apps that I’m using the most. I know there’s a “transfer files and settings” utility, but I don’t have the required firewire cable, and I want to pick and choose which files and apps to bring over, so I’m just going to move things one at a time.

I’d be interested to find out what apps you use too. So feel free to leave a comment listing the apps you can’t live without.

  • In the Dock
    • Path Finder
    • Quicksilver
    • Activity Monitor
    • Stickies
    • Skype
    • iChat
    • Thunderbird
    • iTunes
    • Safari
    • Camino
    • Firefox
      • Adblock Plus
      • Adblock Filterset.G Updater
      • ColorZilla
      • del.icio.us Bookmarks
        • replaces Foxmarks
      • DOM Inspector
      • Duplicate Tab
      • Greasemonkey
        • del.icio.us >> ma.gnolia
        • quickcamp
      • Live HTTP Headers
      • View Source Chart
      • Web Developer
    • Xray (Flash debugger)
    • Flash
    • Fireworks
    • Dreamweaver
    • TextMate
    • Eclipse (PHPIDE)
      • FDT
      • Subclipse
    • Eclipse (Laszlo IDE)
    • NeoOffice
    • Terminal
    • Cyberduck
    • Freemind
    • Timeslice
    • Parallels
      • winxp
        • IE 7
        • MM Studio 8
        • Adobe Flex
        • Enterprise Architect
        • Quickbooks
        • MS Office
        • FLV Player
        • Firefox
        • BrickServer Admin Program
        • Riva FLV Encoder
        • PDF Creator
        • AVG Antivirus
      • winxp tester
        • IE 6
        • Firefox
        • plain install
      • ubuntu
        • plain install
  • Also
    • Final Cut
      • Final Cut
      • Motion
      • Sountrack
      • LiveType
      • Compressor
      • DVD Studio
    • DVD Player
    • MAMP
    • Gimp
    • Inkscape
    • Google Sketchup
  • Utilities
    • Application Enhancer
      • Menufela
    • Default Apps
    • MZoom
    • NuFile
    • OnyX
    • VirtueDesktops
  • Not Frequently used
    • Audacity
    • Celtx
    • Chicken of the VNC
    • Chmox
    • Flare
    • gDisk
    • Gimp
    • Google Notifier
    • MPEG Streamclip
    • MySQL Tools
    • NovaMind
    • Nvu
    • OpenLaszlo Server
    • Opera
    • Sunrise Browser
    • svnX
    • VLC