Scientific-Linux
使用 divfix 時出現葡萄酒錯誤
當我通過 SSH 登錄到 Scientific Linux 6.3 機器時,我收到以下錯誤消息:
/usr/bin/wine /home/USER/.divfix/DivFix++.exe -i INPUT.avi -o out.avi wine: created the configuration directory '/home/test/.wine' No protocol specified No protocol specified No protocol specified No protocol specified No protocol specified No protocol specified Application tried to create a window, but no driver could be loaded. Make sure that your X server is running and that $DISPLAY is set correctly. err:systray:initialize_systray Could not create tray window Application tried to create a window, but no driver could be loaded. Make sure that your X server is running and that $DISPLAY is set correctly.
我已經設置了 DISPLAY 變數..:
grep -i display ~/.bashrc export DISPLAY=":0.0"
我有 X/GUI:
yum groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts"
我有“yum update”,然後重新啟動(所以是最新的)。我錯過了什麼?請幫忙。
更新:
xset -q No protocol specified xset: unable to open display ":0.0"
這是因為您沒有在該機器上執行 X 伺服器:Wine 甚至對於純命令行軟體也需要一台。
由於 DivFix++ 是一個僅限命令行的應用程序,請安裝 Xvfb(
xorg-x11-server-Xvfb
我認為是包;xvfb
在 yum 上搜尋):Xvfb 或 X 虛擬幀緩衝區是 X11 伺服器,它在記憶體中執行所有圖形操作,不顯示任何螢幕輸出。
Xvfb :1 &
然後使用, 在此之後啟動一個虛擬 X 伺服器export DISPLAY=:1 ; /usr/bin/wine /home/USER/.divfix/DivFix++.exe -i INPUT.avi -o out.avi
。這應該足以讓 Wine 開心。