Recently in mac Category

ssh, keychain

| | Comments (0) | TrackBacks (0)

On our way back from FOSDEM, I had a quick discussion about ssh with Chris, and it motivated me to clean up all my ssh keys, passphrases, agents.

So now I use different keys for work and home, and ssh keychain on both.

Next move is to add my work identity to my home session to be able to connect directly to servers at work without having to go through my workstation at work. Without putting my home private id on my machine at work, nor copying my home public id on all servers at work. It should be possible I've heard :)

Anyway, here is briefly how I did it : ssh-keygen (dsa as main key). Then install keychain (see http://www.gentoo.org/proj/en/keychain/ and configure it a bit. I added the following script in /etc/profile.d/keychain.sh (gentoo host), and I use the built in keychain on my mac.

#!/bin/bash
# start keychain, with the private keys to be cached
/usr/bin/keychain ~/.ssh/id_dsa
# then load the generated files
for i in ~/.keychain/*-sh*; do
echo "sourcing $i"
source $i
done

I know, I know, everybody is supposed to know everything about ssh, but I'm happy to admit that I learnt 2 or 3 things while setting up everything properly. Besides, how many of you have no passphrase on your ssh key ? :)

I'm trying to solve the hassle of synchronizing and maintaining my contact lists accross different computers, accounts, tools, software, etc... I'm nearly there, I'll probably write a longer entry about it later. Anyway my solution involves thunderbird, Apple's Address Book, plaxo, gmail, linkedin, and my mobile phone.

Today I just wanted to briefly mention A To G, a small free mac application that simply exports all the adress book data to a csv files that gmail can import.

AtoG.png

DragThing

| | Comments (0) | TrackBacks (0)
Right. Back to the time when I got my first mac, it was an ibook G4 800Hz (it's only 4 years ago) and it was running Linux (gentoo ppc if you want to know). I think it was the good choice, because OS X was quite slow at that time, and the ibook wasn't particularty powerful.

Anyway one thing that didn't make me regret to not be using OS X, was that I didn't have to use the Horrible Dock :) What can I do ? I never liked it, and I never understood why it was supposed to be a so great idea. But now I'm using Mac OS X and althought I like the OS (I might talk about the reasons later), I still had to live with the Dock. Until now :

  • DragThing : not free, but really an awesome piece of software, get it here. It allows you to create panes and panels from diffrent shapes, style and content. screenshot here. The icons on the left aren't on the desktop, they are in a transparent panel in the foreground.

  • Switcheroo : minimalistic, does less things, but can be useful. Get it from versiontracker

sleepy mac, smart sleep

| | Comments (0) | TrackBacks (0)

I finally found a way to work around the issue on my macbook Pro, so I thought I would talk about it.

The problem : my mac is very slow to go to sleep. When you close the lid, the small white light on the front is on, and instead of staying on few dozen of seconds (then starting glowing), it stays on, and take ages (1 minute) before glowing.

What happens exactly ? As soon as the lid is closed, the system starts writing down on the hard drive the content of the memory. That's to provide the ability to wake up even after a power failure. During that time, the white light stays on, and it is recommended that you don't move your laptop (the hard drive is heavily used for writing) When it's done, the white light starts "glowing".

Try it yourself : take your mac (if you don't have one, go buy one now, it's a good way to spend money anyway), close its lid, wait until the whit LED glows, then remove the battery. Plug the battery back in, then open the laptop so that it wakes up, and see the laptop wake up from so-called "Safe Sleep". Here is what it looks like :

For unknown reasons, my mac takes quite a lot of time to dump the content of the RAM to the hard drive. I believe it's a small hardware issue, as reinstalling Mac OS X from scratch didn't help. It's a small step back compared to the powerbook or ibook, which went to sleep very quickly - few seconds - and was pretty reliable. Why are the intel based laptop slower to go to sleep ?

That's because the powerbook and ibook didn't have (afaik) the "Safe Sleep" mode (which is called by normal people "suspend-to-disk") feature.

The good news : we can actually switch back and forth between the different sleep mode on the intel based mac. It works on my macbook Pro, I'm fairly confident that it will work on ibooks too. The comand is called : pmset (here is a link to its man page). I read a nice blog entry explaining how to fiddle with the "Safe Sleep" mode

The solution for lazy people is however to use Smart Sleep.prefpane . It allows you to switch between normal sleep and memory only sleep, and introduce the smart sleep feature, where the system will decide which sleep mode to use depending on the level of battery left. Neat !

smart_sleep.png

About this Archive

This page is a archive of recent entries in the mac category.

linux is the previous category.

mt is the next category.

Find recent content on the main index or look in the archives to find all content.