It is known that "rebels" have been trained by the CIA in Libya. It has also been discovered that they have links to Al-Qaeda. NATO imperialist forces have killed more innocent people than the extremist islamist "rebels" and the government forces combines.
While it is unclear whether the Gaddafi regime is truly socialist, what he has done would be probably the same thing any modern capitalist country would do in response to protests. Think about it. I live in Mexico, and I have seen capitalist repression right in front of me, everywhere. In 1968, the fascist govt. of Mexico used war tanks against students, housewives and innocent civilians who were protesting peacefully against war. Currently, there are several similar killings all over the country every year, in which the government arrests and/or muders peaceful protesters.
A revolution is probably needed in Libya, as it is in Mexico, the US, and most other capitalist countries. However, the revolution in Libya is being carried out by the wrong people, islamist pro-USA terrorists. If they win the war, they will probably create another US puppet state, just like Egypt (before the revolution). Similar to what they did with Saddam and Bin Laden.
Russia and China have recently shown just how cowardly and pro-imperialist they really are, by abstaining instead of using their veto power to block the imperialist interests of USA-NATO.
NATO, KEEP THE HELL OUT OF LIBYA, AND STOP YOUR IMPERIALIST AGRESSION ALL OVER THE WORLD!