You are not eligible for a green card simply because you have been here for a long time or because you have been a student.  You still have to be petitioned for a green card by either a qualified family relation (child, parent, sibling or spouse/fiancee) or by a US employer on the basis of a valid job offer.