Raspberry Pi-driven led stripe with 9 leds. Example code for WiringPi, Raspberry Pi Model B+.
I chose resistors of 150 ohm, use appropriate resistor for your setup.
PIN37-[resistor]-[led]--|| to GND
PIN35-[resistor]-[led]--|| to GND
PIN33-[resistor]-[led]--|| to GND
PIN31-[resistor]-[led]--|| to GND
PIN29-[resistor]-[led]--|| to GND
PIN27-[resistor]-[led]--|| to GND
PIN25 -|| GND
PIN23-[resistor]-[led]--|| to GND
PIN21-[resistor]-[led]--|| to GND
PIN19-[resistor]-[led]--|| to GND