1

How do I let an SDL app (not running as root) use the console

view story
linux-howto

http://unix.stackexchange.com – I want to use an SDL-based program to display graphics on the console, without having to log on from the console, and without running the program as root. For example, I want to be able to run it via ssh. The target OS is raspbian. Here is a short example in python to illustrate the problem: import os, pygame os.environ['SDL_VIDEODRIVER'] = 'fbcon' pygame.init() s = pygame.display.set_mode() print "Success" This works (runs to completion, does not throw exceptions) if I run it from the console, and it works via ssh if I run it as root. I have checked that my user is in the audio and video (HowTos)