Passwordless SSH login with multiple identities available

Recently I started creating passwordless SSH logins to servers I need to access, so I can automate tasks. I tend to create a new key pair for each server. Today it didn’t work and it took me several hours to find the solution. So this writeup is to help others (and my future self no doubt).

Create a key pair for the new server and add the public key to the authorized_keys file of the user on the remote server. How this works is written all over the internet so I’ll merely sum it up here. In the example I’m creating one for my local Mac Mini.

Site moved

With the New Year approaching fast it was time to move this site to a different location. It's the first time I did this. Looks like it works.

Happy New Year to everyone.

One thing leads to another...

I came across a nice write up of Jenkins and Aegir to help setting up a dev, stage, prod environment. This sounds like a good candidate of the problems that occur when you try to locally develop on a Drupal site that is already in production.

First stop was setting up Jenkins and Aegir. Jenkins is easy. I didn't even bother and installed the DMG package on my Lion Server and it was up and running almost instantly.

IMCE and FileField Sources, an update

Upon Marcelo's request I post my adjusted version of the filefield_sources/sources/imce.inc file. The following code replaces the function filefield_source_imce_value

IMCE, FileField Sources, private and public files

The issue still isn't solved. So today I made another attempt. Things shouldn't be that complicated. All I want is create nodes with images and links to other files that can be visible for anonymous users or users of a special role. And I want to use IMCE as the file browser.

But now I'm running in circles: with admin/config/media/file-system set to 'public local files served by webserver' IMCE works as expected and finds and inserts the files for public access. But the private section is off limits.

Drupal 7, IMCE, Media and public and private files

Today I decided to tackle the problem of needing public and private files. Again.

At the first attempt I switched the default download method  in admin/config/media/file-system from 'public' to 'private'. From that moment on, no picture was visible any more. After many hours of digging around, I gave up and switched the download method back to public.

Later I found that all pictures needed to be referenced in the database with a 'public://' or a 'private://' prefix.

With the move from IMCEImage to FileField, this was fixed.

Drupal 7, IMCE and FileFields

As written in my previous post I decided to move the Origami Society website to Drupal 7.

One of the key features I need is a section for members only. At first I implemented this in Drupal 6 by using a single Page node protected by the Content Access module. All files were referenced as links on this page and put in a separate, private directory.

Or so I thought.

Moving to Drupal 7

I'm in the middle of upgrading/converting my pet project website in Drupal 6 to Drupal 7. This was my first Drupal website, so in hindsight I found out I made a lot of mistakes.

So, after the release of Drupal 7 I tried it on this website and found some very nice features such as an integrated 'admin menu bar' at the top, updating modules through the interface rather than downloading, untarring and ftp-ing every module by hand. I got really fond of drush when I found it.

Applescript to manually sync iphone to iTunes - 1st attempt

Setting the sync preferences in iTunes to automatic means that my iPhone is always synced whenever I drop it in its dock. However, this also means that iTunes pops up and sometimes becomes the front-most application. No problem if I'm doing nothing much but every now it distracts to the point of losing my motivation.

So I decided to switch this preference off. But then I need to remember that I have to sync manually. Which I forget. Not much gained.

Migration completed (for now)

This is the first post written in the new Drupal 7 configuration. I've left the old WordPress blog up for now, just to make sure I haven't missed anything.

With many modules still in alpha, beta or dev mode, this humble little website works more or less as expected.

Pages

Subscribe to SourceFusion RSS