Don't use sudo startlazarus. To test those examples (on Linux), you should copy that folder to a new location (maybe Desktop).