When I hook up the programmer to my pc, the first LED turns green, when I hook up and switch on my board, the second LED turns green. The problem is thus not in a faulty connection, otherwise the second LED would have lit up orange.

Now, I was trying to read the fuse bits, because I'm using a 20 MHz crystal and first wanted to see how the fuses where set. I used Avrdude and the following command.

avrdude done. Thank you.In addition, the second LED started flashing red as it would when there's a shortcircuit on my board.(According to a datasheet, it will do so as soon as the current on one of the lines exceeds 25 mA)I have checked my entire board for short-circuits, but have not found anything.

Using "-F" to override the check didn't help out, it gave me the following result:

avrdude done. Thank you.I have tried searching with the use of Google with these error messages and with various combinations of "Ubuntu", "avrdude", "avrisp 2", "atmega168" and the like.However, I did not come across solutions that were applicable to my situation.

If anyone here would be able to help me with the solution, I would be very grateful.

Well, I've made some progress...I've got it working in a solderless breadboard now, the green led lights when I plug it in and there are no problems in reading the fuses... Apparently the problem was with my connections..

Now, I've got another problem, when I plug in the programmer on the board that I had soldered together I get the orange flashing led, indicating the programmer being wrongly connected. However, I have triple-checked the connections and they are exactly the same as those on the solderless breadboard. It's simply driving me crazy that I can't find the flaw in my work..

I suspect some evil voodoo magic (or a silly mistake), but any suggestions are still welcome.

EDIT: Forgot to mention, I have updated the firmware from 1.10 to 1.13, just in case it's useful information for anyone.

EDIT2: My problem's finally solved!!! It was a silly mistake, no voodoo magic.. I forgot to wire up power and ground to the Atmega168... Now that those are connected, everything works fine!