Sun did really well in the academic workstation market, converting the old "VAX and a sea of terminals" into a "sea of Sun workstations".
X11, YP/NIS and NFS worked pretty well for a while, but then Microsoft came out with NT and AD, and Sun failed to respond. Like, ever. I think this was perhaps the worst software mistake Sun made.