본문 바로가기
Research/Linux

우분투 가상 모니터 드라이버 사용하기

by sunnyan 2023. 9. 22.
728x90

우분투에서 가상 모니터 드라이버를 사용하는 이유

  • 미니PC에 우분투 설치 후, 모니터,키보드,마우스 없이 원격 접속으로 사용하고 싶다.
  • 모니터 없이 부팅했더니 VNC를 이용해서 원격접속이 되지 않는다.

설치방법

  • 드라이버 설치
apt install xserver-xorg-video-dummy
  • /usr/share/X11/xorg.conf.d/xorg.conf 파일을 아래와 같이 작성(원래는 없는 파일)
Section "Device"
    Identifier "DummyDevice"
    Driver "dummy"
    VideoRam 256000
EndSection

Section "Screen"
    Identifier "DummyScreen"
    Device "DummyDevice"
    Monitor "DummyMonitor"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "1920x1080_60.0"
    EndSubSection
EndSection

Section "Monitor"
    Identifier "DummyMonitor"
    HorizSync 30-70
    VertRefresh 50-75
    ModeLine "1920x1080" 148.50 1920 2448 2492 2640 1080 1084 1089 1125 +Hsync +Vsync
EndSection
  • 위와 같이 하면 실제 모니터를 연결해도 동작하지 않는다. 실제 모니터로 사용하려면 위의 xorg.conf를 삭제하거나, 이름을 바꿔주고 리부팅.
 
 
728x90