how to rotate screen on ubuntu server
Steps for Command-Line Server without GUI:
If you only have a command-line interface, you’ll likely need to configure the terminal display through framebuffer settings or the kernel command line.
-
Edit GRUB Configuration: Open the GRUB configuration file:
-
Add a Framebuffer Rotation Option: Modify or append the
GRUB_CMDLINE_LINUX_DEFAULTline:Use the following values for
fbcon=rotate:X:0: Normal1: 90 degrees2: 180 degrees3: 270 degrees
-
Update GRUB and Reboot: Update the GRUB configuration:
Reboot the server:
After rebooting, your screen should appear rotated based on the fbcon setting.