I dont know how to install the game onto a linux machine. But as for how to run a server in text mode, its pretty simple. The basic command is:
dom3 -ST --port <port> <various game command switches> <mods> <map> <game name>
Here is the full list of server command line arguments that Gandalf has compiled:
http://www.dom3minions.com/docs/CommandLine.txt
Additionally, I believe that Gandalf runs all his server games on linux? So you might want to send him a PM to see if he can help w/ whatever installation stuff you are doing.