How to correctly install and access Cockpit?

This was on my Tumbleweed but Leap may have the same problem. Checking the file will tell you.