The CASTEP in my case runs without materials studio. I want to calculate the band structure and optical properties of a perovskite material in this CASTEP code. I want to know how to write the input files for this and run in an Ubuntu Linux environment.