Where to get code for dogecoin and ethereum

I want to mine on dedicated server and need help getting code. Any pointers?
thanks