The basic starting point is filing forms I-485 and I-130; other forms are involved. Read this, or consult the dozens of threads in this forum discussing this issue.