set ubuntu display landscape

C++
xrandr -o normal
xrandr -o left
xrandr -o rigth

Source

Also in C++: