I have 2010s (nVidia GT330M) and 2011s (Radeon 6xxx) in various states of decay in the double digits, I get them in the sub$10 range. all of them can easily be repurposed as linux workstations, their finnicky broadcom wifi notwithstanding. all of them can have the discrete graphics turned off, whether they work or not - less heat, longer battery life, no driver complications.
this is the first 2012 I've gotten, as they were always unreasonably expensive for their advanced age - coulda gotten ten 2011s for the price of one 2012! so now I got one and it's... meh; yeah it's better (Ivy vs Sandy, HD4000 vs HD3000, USB3.0, etc.) but nothing spectacular. still, for $20 I could do worse.
"a macbook" is kinda broad, what model you got? no, I'm running linux on discarded macbooks for years and know my way around them.