Turn pink screw of right- and left-hand threads to make the bar (consisting of blue and green portions) prop against two opposite walls. Thus, the bar is clamped firmly thanks to friction at its yellow ends.
Pros: no need to drill holes in the walls for screwing.
Cons: the hanging rod can only bear light load.