How to open a visual desktop in shell
Sometimes, you may want to use shell to run some program without ssh, then you will need this skill.
- Start a new visual desktop
Xvfb :99 -screen 0 1280x960x16&
Here you can also choose other number not “:99”, as long as no other program use that port. And don’t forget “&” at the end of the commend.
- Configure display environment
Now you can run your program headlessly.