Generally the "subwoofer" RCA output connector on the receiver is the method to use for a powered sub. You can also use the speaker wire connectors as well if your receiver does not have a sub RCA connector.

I am not familiar with connecting it to a computer. Are you using a 5.1 type sound card?