I have just flashed Raspbian to my 8 GB hard drive, but when I boot up the Raspberry Pi and log in, it says:

bash: startx: command not found

Is there a problem with the boot files?

  • 1
    What OS did you install?
    – Milliways
    Jun 12, 2017 at 2:04

1 Answer 1


It sounds like you may have installed the Raspbian lite distribution, which is just command line, and no GUI. If you need a GUI, you could try installing Raspbian Pixel (full OS with GUI) on your SD card.

See this post for more discussion: startx: command not found

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.