my friend did it and i want to do it to.
Why not ask your friend? Why do you want to use a car sub? The easiest way is to just get a set of computers with a sub.
However if you do want to use a car sub you’ll need to figure out how your going to power it. To power any sub you need an amp. Car amps are DC and to plug it into your house you need AC voltage. So you’ll either need to buy a AC to DC converter or a AC amp like a receiver.
The other problem is getting the audio from the computer to the amp. You’ll need a Y cable that has a 3.5mm jack on one side and RCA on the other.

Why not ask your friend? Why do you want to use a car sub? The easiest way is to just get a set of computers with a sub.
However if you do want to use a car sub you’ll need to figure out how your going to power it. To power any sub you need an amp. Car amps are DC and to plug it into your house you need AC voltage. So you’ll either need to buy a AC to DC converter or a AC amp like a receiver.
The other problem is getting the audio from the computer to the amp. You’ll need a Y cable that has a 3.5mm jack on one side and RCA on the other.
References :