沒法使用命令/usr/bin/xdpyinfo自動檢查顯示器顏色

經過vnc安裝linux 版的oracle 11g 遇到  沒法使用命令/usr/bin/xdpyinfo自動檢查顯示器顏色,能夠經過如下方法解決。linux

 1.在root下執行oracle

    #xdpyinfo |grep name ,記下name of display:後的字符串,:1.0字符串

    2. #xhost +cli

    返回信息爲: access control disabled,clients can connect from any hostgrep

    3.切換到Oracle用戶:方法

    #su - oracledi

    4.在Oracle用戶下執行命令:co

    export DISPLAY=:1.0display

    5.在Oracle下執行xdpyinfo命令,若是能正常顯示,說明設置成功字符

相關文章
相關標籤/搜索