Skip to content

rgb_array as output #91

Discussion options

You must be logged in to vote

Hi @svaichu , you can try these commands:
On your ubuntu server, do

sudo apt-get install xserver-xorg libglu1-mesa-dev freeglut3-dev mesa-common-dev libxmu-dev libxi-dev

Then, restart your server and connect your server to a screen. The screen won't render anything, but there must be a display device connecting to your server.

Then use the following commands

sudo nvidia-xconfig -a --use-display-device=None --virtual=1280x1024

export DISPLAY=:1

sudo /usr/bin/X :1 &

In your Python code, set graphics=False. Then you should be able to get the image in headless mode.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YoruCathy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants