Quick note in linux - you'd do the same thing for configuring as above, but replace the .bat with a .sh that looks like
#!/bin/bash/
minerd blah blah blah
Then run it from command line typing ./filename.sh
You also have to make sure the .sh has 'execute' permissions, which in Ubuntu is as simple as right-clicking on the file, and setting the correct properties. (there's a checkbox that lets you make it executable, I think, not on Ubuntu atm to check)
( or you can learn the chmod command

)