I have written a code to display some images with golang and SDL2, I have tested the code in the Ubuntu desktop 18.04 and had no issue. I wanted to use the code in an embedded configuration, and wanted the OS to run the code automatically on start up, the Ubuntu desktop has a lot of bugs and many times it hangs on the login screen, so I decided to use the Ubuntu server. My problem is that the code in Ubuntu server can't create any window to show the images. First of all I wanted to know what packages should I install to be able to run SDL, secondly, my monitor and images are 4k, can that also make some trouble?
ok, it seems no one is interested in this question, I found a solution, I installed the xorg package and tried using startx and it solved my problem, If anyone knows a better answer please let me know.