I wouldn't bother with an old Intel Mac. They're not particularly well spec'd for the price. Used XPS or Thinkpad of the same era would be a better bang for the buck.
The current M series Macs blow them out of the water but have very shaky Linux support, though I expect current efforts to continue improving.