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.

  1. Edit GRUB Configuration: Open the GRUB configuration file:

    bash
    sudo nano /etc/default/grub
  2. Add a Framebuffer Rotation Option: Modify or append the GRUB_CMDLINE_LINUX_DEFAULT line:

    bash
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash fbcon=rotate:1"

    Use the following values for fbcon=rotate:X:

    • 0: Normal
    • 1: 90 degrees
    • 2: 180 degrees
    • 3: 270 degrees
  3. Update GRUB and Reboot: Update the GRUB configuration:

    bash
    sudo update-grub

    Reboot the server:

    bash
    sudo reboot

After rebooting, your screen should appear rotated based on the fbcon setting.