Hi mylo,
my 2 Cent for 1):
you need to
i) rip the audio content of the CD, eg. by using cdparanoina
ii) encode the wav content to mp3, e.g. by using lame
A nice way combining these tasks is the abcde-tool, my recommendation for "something".
Best
badkey