I am trying to be able to open programs from the command-line (console), but it tells me that I need to specify the display. The way I always thought you did that was as following:
Does anyone have any suggestions?
$ ./firefox -display=:0
Different progams use different syntax for specifing a display, but a universial way to do it is to set the environment var $DISPLAY before running the program:
will work. Keep in mind the same user must own the :0 display and run the program. Running the command as root also works, but is not recommended, of course.