NICE DCV post-installation check error xhost: unable to open display "0"

1

I am trying to install NICE DCV server on EC2 Ubuntu 22.04.

I am running pos-installation check part from the Administrator guide, however when running command: sudo DISPLAY=:0 XAUTHORITY=$(ps aux | grep "X.*\-auth" | grep -v grep | sed -n 's/.*-auth \([^ ]\+\).*/\1/p') xhost | grep "SI:localuser:dcv$"

I get xhost: unable to open display ":0"

Unsure what went wrong, as I made sure to follow the all the steps from the pre-installation and installation sections. Any advice would be of much help, as this is first time that I am trying to install DCV.

질문됨 2년 전780회 조회
4개 답변
0

The X server cannot start because you have an error in xorg.conf. Please compare your configuration to the documentation.

If you do not find the cause you can show the xorg.conf here so we could have a look into it.

답변함 2년 전
  • So I actually had it figured out. I followed the configuration guidelines from the documentation to a tee, and had /etc/X11/xorg.conf with:

    Section "Device"
        Identifier "DummyDevice"
        Driver "dummy"
        Option "ConstantDPI" "true"
        Option "IgnoreEDID" "true"
        Option "NoDDC" "true"
        VideoRam 2048000
    EndSection
    
    Section "Monitor"
        Identifier "DummyMonitor"
        HorizSync   5.0 - 1000.0
        VertRefresh 5.0 - 200.0
        Modeline "1920x1080" 23.53 1920 1952 2040 2072 1080 1106 1108 1135
        Modeline "1600x900" 33.92 1600 1632 1760 1792 900 921 924 946
        Modeline "1440x900" 30.66 1440 1472 1584 1616 900 921 924 946
        ModeLine "1366x768" 72.00 1366 1414 1446 1494  768 771 777 803
        Modeline "1280x800" 24.15 1280 1312 1400 1432 800 819 822 841
        Modeline "1024x768" 18.71 1024 1056 1120 1152 768 786 789 807
    EndSection
    
    Section "Screen"
        Identifier "DummyScreen"
        Device "DummyDevice"
        Monitor "DummyMonitor"
        DefaultDepth 24
        SubSection "Display"
            Viewport 0 0
            Depth 24
            Modes "1920x1080" "1600x900" "1440x900" "1366x768" "1280x800" "1024x768"
            virtual 1920 1080
        EndSubSection
    EndSection
    

    Reading this forum post (https://bbs.archlinux.org/viewtopic.php?id=264983) and removing the xorg.conf, it actually worked.

0

Can you check your X server is running with

ps -ef | grep X

If it is not running then you can check the Xorg.0.log.

If you have a GPU you can check if the driver is working well with

nvidia-smi

답변함 2년 전
0

Seems this is the error that pops up in the log files:

   230.917] (**) DUMMY(0):  Default mode "320x175": 15.8 MHz, 37.9 kHz, 85.3 Hz (D)
[   230.917] (II) DUMMY(0): Modeline "320x175"x85.3   15.75  320 336 368 416  175 191 192 222 doublescan +hsync -vsync (37.9 kHz d)
[   230.917] (==) DUMMY(0): DPI set to (96, 96)
[   230.917] (II) Loading sub module "fb"
[   230.917] (II) LoadModule: "fb"
[   230.917] (II) Module "fb" already built-in
[   230.917] (II) Loading sub module "ramdac"
[   230.917] (II) LoadModule: "ramdac"
[   230.917] (II) Module "ramdac" already built-in
[   230.917] (EE)
Fatal server error:
[   230.917] (EE) AddScreen/ScreenInit failed for driver 0
[   230.917] (EE)
[   230.917] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[   230.917] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   230.917] (EE)
[   230.935] (EE) Server terminated with error (1). Closing log file.

It's not a GPU instance, so I've used X-dummy driver, following the instructions from the NICE DCV Administrator guide.

답변함 2년 전
0

Hi, i also have the same error, and i've followed the official documentation . my instance type is "m5ad.2xlarge" , ubuntu 22.04 without a GPU attached. also it seems that Nice DCV display does not scale to screen size for instances without a GPU. any help with this is very much appreciated.

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠