調べて、やってみたこと

X.Org X Serverが起動しない


[root@falcon21 ~]# startx
xauth: file /root/.serverauth.8308 does not exist

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/falcon21.space:2
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X.Org X Server 1.19.3
Release Date: 2017-03-15
X Protocol Version 11, Revision 0
Build Operating System: 3.10.0-693.17.1.el7.x86_64
Current Operating System: Linux falcon21.space 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 201x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-3.10.0-693.21.1.el7.x86_64 root=/dev/mapper/cl-root ro ipv6.disabl1 rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet acpi_enforce_resources=lax
Build Date: 07 March 2018 01:39:22PM
Build ID: xorg-x11-server 1.19.3-11.el7_4.2
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.2.log", Time: Sat May 5 17:32:12 2018
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
xinit: connection to X server lost

[root@falcon21 ~]# systemctl set-default graphical.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.

[root@falcon21 ~]# reboot

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.

ーーーーーーーーーーーーーーーーーー
[root@falcon21 ~]# Xorg -configure
(EE)
Fatal server error:
(EE) Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.

(EE)

(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE)

*************************************************
[root@falcon21 ~]# cat /var/log/Xorg.0.log


*********************************************************
xinit
[root@falcon21 ~]# systemctl status xinetd
Unit xinetd.service could not be found.

[root@falcon21 ~]# grep -r "disable" /etc/xinetd.d
/etc/xinetd.d/chargen-dgram: disable = yes
/etc/xinetd.d/chargen-stream: disable = yes
/etc/xinetd.d/daytime-dgram: disable = yes
/etc/xinetd.d/daytime-stream: disable = yes
/etc/xinetd.d/discard-dgram: disable = yes
/etc/xinetd.d/discard-stream: disable = yes
/etc/xinetd.d/echo-dgram: disable = yes
/etc/xinetd.d/echo-stream: disable = yes
/etc/xinetd.d/tcpmux-server: disable = yes
/etc/xinetd.d/time-dgram: disable = yes
/etc/xinetd.d/time-stream: disable = yes


[root@falcon21 ~]# systemctl start xinetd
[root@falcon21 ~]# systemctl enable xinetd
[root@falcon21 ~]# systemctl status xinetd
● xinetd.service - Xinetd A Powerful Replacement For Inetd
Loaded: loaded (/usr/lib/systemd/system/xinetd.service; enabled; vendor preset: enabled)
Active: active (running) since 土 2018-05-05 19:14:48 JST; 35s ago
Main PID: 8079 (xinetd)
CGroup: /system.slice/xinetd.service
└─8079 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid

5月 05 19:14:47 falcon21.space xinetd[8079]: removing discard
5月 05 19:14:47 falcon21.space xinetd[8079]: removing discard
5月 05 19:14:47 falcon21.space xinetd[8079]: removing echo
5月 05 19:14:47 falcon21.space xinetd[8079]: removing echo
5月 05 19:14:47 falcon21.space xinetd[8079]: removing tcpmux
5月 05 19:14:47 falcon21.space xinetd[8079]: removing time
5月 05 19:14:47 falcon21.space xinetd[8079]: removing time
5月 05 19:14:47 falcon21.space xinetd[8079]: xinetd Version 2.3.15 started with libwrap loadavg labeled-ne... in.
5月 05 19:14:47 falcon21.space xinetd[8079]: Started working: 0 available services
5月 05 19:14:48 falcon21.space systemd[1]: Started Xinetd A Powerful Replacement For Inetd.
Hint: Some lines were ellipsized, use -l to show in full.

[root@falcon21 ~]# chkconfig --list

注記: この出力に含まれるのは SysV サービスのみです。ネイティブな
systemd サービスは含まれません。SysV の設定データはネイティブな
systemd 設定で上書きされる場合があります。
systemd サービスを一覧表示する場合は 'systemctl list-unit-files' を使用します。
特定のターゲットで有効になっているサービスを確認する場合は
'systemctl list-dependencies [target]'を使用します。

livesys         0:off 1:off 2:off 3:on 4:on 5:on 6:off
livesys-late      0:off 1:off 2:off 3:on 4:on 5:on 6:off
netconsole      0:off 1:off 2:off 3:off 4:off 5:off 6:off
network        0:off 1:off 2:off 3:off 4:off 5:off 6:off
swatch        0:off 1:off 2:on 3:on 4:on 5:on 6:off
ulogd          0:off 1:off 2:on 3:on 4:on 5:on 6:off

xinetd ベースのサービス:
chargen-dgram: off
chargen-stream: off
daytime-dgram: off
daytime-stream: off
discard-dgram: off
discard-stream: off
echo-dgram: off
echo-stream: off
tcpmux-server: off
time-dgram: off
time-stream: off
------------------------------
[root@falcon21 ~]# chkconfig network on
[root@falcon21 ~]# chkconfig tcpmux-server on

[root@falcon21 ~]# service network restart
Restarting network (via systemctl): [ OK ]

[root@falcon21 ~]# reboot

[root@falcon21 ~]# vncserver :1 -geometry 1580x800

New 'falcon21.space:1 (root)' desktop is falcon21.space:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/falcon21.space:1.log

[root@falcon21 ~]# cat /root/.vnc/falcon21.space:1.log
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/falcon21.space:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

Xvnc TigerVNC 1.8.0 - built Dec 1 2017 23:21:52
Copyright (C) 1999-2017 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11903000, The X.Org Foundation


Sat May 5 20:20:53 2018
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5901
vncext: created VNC server for screen 0
 

[root@falcon21 ~]# yum --enablerepo=epel -y install xrdp
[root@falcon21 ~]# systemctl start xrdp
[root@falcon21 ~]# systemctl enable xrd
Failed to execute operation: No such file or directory
[root@falcon21 ~]# systemctl enable xrdp
Created symlink from /etc/systemd/system/multi-user.target.wants/xrdp.service to /usr/lib/systemd/system/xrdp.service.
[root@falcon21 ~]# systemctl status xrdp
● xrdp.service - xrdp daemon
Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled)
Active: active (running) since 土 2018-05-05 22:58:08 JST; 1min 55s ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Main PID: 4326 (xrdp)
CGroup: /system.slice/xrdp.service
└─4326 /usr/sbin/xrdp --nodaemon

5月 05 22:58:08 falcon21.space systemd[1]: Started xrdp daemon.
5月 05 22:58:08 falcon21.space systemd[1]: Starting xrdp daemon...
5月 05 22:58:08 falcon21.space xrdp[4326]: (4326)(140075388201408)[INFO ] starting xrdp with pid 4326
5月 05 22:58:08 falcon21.space xrdp[4326]: (4326)(140075388201408)[INFO ] listening to port 3389 on 0.0.0.0

------------------
[root@falcon21 ~]# vi /etc/X11/xrdp/xorg.conf

EndSection

Section "InputDevice"
Identifier "xrdpMouse"
Driver "xrdpmouse"
EndSection

Section "Monitor"
Identifier "Monitor"
Option "DPMS"
HorizSync 30-80
VertRefresh 60-75
ModeLine "1920x1080" 138.500 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync
ModeLine "1280x720" 74.25 1280 1720 1760 1980 720 725 730 750 +HSync +VSync
Modeline "1368x768" 72.25 1368 1416 1448 1528 768 771 781 790 +hsync -vsync
Modeline "1600x900" 119.00 1600 1696 1864 2128 900 901 904 932 -hsync +vsync
EndSection

Section "Device"
Identifier "Video Card (xrdpdev)"
Driver "xrdpdev"
EndSection

Section "Screen"
Identifier "Screen (xrdpdev)"
Device "Video Card (xrdpdev)"
Monitor "Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "640x480" "800x600" "1024x768" "1280x720" "1280x1024" "1600x900" "1920x1080"
EndSubSection
EndSection

------------------------------------------------
[root@falcon21 ~]# ls -a /etc/X11/
. .. Xmodmap Xresources applnk fontpath.d xinit xorg.conf.d xrdp


[root@falcon21 ~]# ls -a /etc/X11/xinit
. Xclients Xsession xinitrc-common xinput.d
.. Xclients.d xinitrc xinitrc.d xinputrc

----------------------------------------------

[root@falcon21 ~]# xinit

(EE)
Fatal server error:
(EE) Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE)
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
after 7 requests (7 known processed) with 0 events remaining.

[root@falcon21 ~]# /etc/X11/xinit/xinitrc
xrdb: Can't open display ''
xmodmap: unable to open display ''
/usr/bin/xsetroot: unable to open display ''
[root@falcon21 ~]# Error: GDK_BACKEND does not match available displays

[root@falcon21 ~]# /etc/X11/xinit/Xsession



-----------
[root@falcon21 ~]# firefox
Error: GDK_BACKEND does not match available displays

[root@falcon21 ~]# vi /etc/ssh/sshd_config

#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
21 ForwardAgent yes
22 ForwardX11 yes
23 ForwardX11Trusted yes       
   // 追加

[root@falcon21 ~]# systemctl restart sshd

一度ログアウトし、再度SSHログインする。 $DISPLAY変数に情報が格納される


---------------------------------------
VNC 接続で、フリーズしたfirefoxだけが表示される。 

[root@falcon21 ~]# ls -a /root/.mozilla
. .. extensions firefox seamonkey
[root@falcon21 ~]# rm -rf /root/.mozilla/firefox

[root@falcon21 ~]# ls -a /root/.cache/mozilla
. .. firefox seamonkey
[root@falcon21 ~]# rm -rf /root/.cache/mozilla/firefox


[root@falcon21 ~]# reboot
 

 


X11 インストール

ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
[root@falcon21 ~]# yum groupinstall "X Window System"

[root@falcon21 ~]# yum groupinstall "GNOME Desktop"

[root@falcon21 ~]# systemctl set-default graphical.target

[root@falcon21 ~]# Xorg -configure
(EE)
Fatal server error:
(EE) Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE)
xorg -configureにより生成されたもの

  • ServerLayout ではXで制御される入出力デバイスについて定義している。
  • File フォントなどのファイルのパス名
  • Module取り込むモジュール群の指定
  • InputDevice マウスやキーボードの指定  

 

すべて効果なく、直接サーバーデスクトップで、firefox をアンインストール

キャッシュも削除

# yum-complete-transaction が必要だった。

ソフトウェアから、追加したほうがよさそうものをインストール

レスキュータイプで、再起動したところ、レスキューモードに入らず、起動

firefox をインストールし直し、デスクトップの動きを確認してから、

リモートから、vnc サーバーを起動、アクセス、復帰に成功。


何が良かったのか、定かでない。

 

 

 

 

投票数:4 平均点:10.00

 
Back to Top