How to rotate screen?

yothinin
Hello, 

I want to rotate the LCD screen, how can I do that?

I try to used xrandr but I got error Can't open display.

Thanks
I.Yothin

yothinin
Sorry I forgot.
I use NanoPi M1 and ubuntu jessie.