minecraft software render on ubuntu

#1

I want to run minecraft on a linux vps without graphics card (have already set up desktop). How can I set it up so that minecraft use software render?
Performance is not a concern since I just want to afk on a server.