VNCサーバーインストール
[root@falcon21 ~]# yum -y install tigervnc-server
VNCサーバー起動
[root@falcon21 ~]# vncserver :1 -geometry 1880x9600 -depth 24
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used
xauth: file /root/.Xauthority does not exist
New 'falcon21.space:1 (root)' desktop is falcon21.space:1
Creating default startup script /root/.vnc/xstartup
Creating default config /root/.vnc/config
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/falcon21.space:1.log
-------
VNCサーバー設定
[root@falcon21 ~]# vi .vnc/xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
/etc/X11/xinit/xinitrc
vncserver -kill $DISPLAY
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
gnome-session &
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
export XMODIFIERS="@im=SCIM"
~
**************************************************
VNCBViewer でアクセスできても、ディスクトップが表示されない場合
[root@falcon21 ~]# yum -y install xinetd
インストール:
xinetd.x86_64 2:2.3.15-13.el7
完了しました!
[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 金 2019-02-15 04:55:07 JST; 22s ago
Main PID: 22925 (xinetd)
CGroup: /system.slice/xinetd.service
└─22925 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
2月 15 04:55:07 falcon21.space xinetd[22925]: removing daytime
2月 15 04:55:07 falcon21.space xinetd[22925]: removing discard
2月 15 04:55:07 falcon21.space xinetd[22925]: removing discard
2月 15 04:55:07 falcon21.space xinetd[22925]: removing echo
2月 15 04:55:07 falcon21.space xinetd[22925]: removing echo
2月 15 04:55:07 falcon21.space xinetd[22925]: removing tcpmux
2月 15 04:55:07 falcon21.space xinetd[22925]: removing time
2月 15 04:55:07 falcon21.space xinetd[22925]: removing time
2月 15 04:55:07 falcon21.space xinetd[22925]: xinetd Version 2.3.15 started with li...n.
2月 15 04:55:07 falcon21.space xinetd[22925]: Started working: 0 available services
Hint: Some lines were ellipsized, use -l to show in full.
これでも、ダメ
windows から、リモートデスクトップ接続できるxrdpをepel から、インストール
[root@falcon21 ~]# yum --enablerepo=epel -y install xrdp
インストール:
xrdp.x86_64 1:0.9.9-1.el7
依存性関連をインストールしました:
xorgxrdp.x86_64 0:0.2.9-1.el7 xrdp-selinux.x86_64 1:0.9.9-1.el7
完了しました!
[root@falcon21 ~]# systemctl start xrdp
[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 金 2019-02-15 05:40:06 JST; 2min 45s ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Main PID: 5945 (xrdp)
CGroup: /system.slice/xrdp.service
└─5945 /usr/sbin/xrdp --nodaemon
2月 15 05:40:06 falcon21.space systemd[1]: Started xrdp daemon.
2月 15 05:40:06 falcon21.space xrdp[5945]: (5945)(139816416033216)[INFO ] starting xrdp with pid 5945
2月 15 05:40:06 falcon21.space xrdp[5945]: (5945)(139816416033216)[INFO ] listening to port 3389 ...0.0
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
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 ~]# 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 ~]# yum groups install "GNOME Desktop"
インストール:
NetworkManager-bluetooth.x86_64 1:1.12.0-8.el7_6 NetworkManager-wwan.x86_64 1:1.12.0-8.el7_6
crash.x86_64 0:7.2.3-8.el7
依存性関連をインストールしました:
bluez-libs.x86_64 0:5.44-4.el7_4
FTP SAMBA などを設定後、アクセスげきるようになった。
[root@falcon21 ~]# vncserver :1 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 ~]# vi /root/.vnc/falcon21.space:1.log Xvnc TigerVNC 1.8.0 - built Nov 2 2018 19:05:14 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 12001000, The X.Org Foundation Sun Feb 17 11:38:55 2019 vncext: VNC extension running! vncext: Listening for VNC connections on all interface(s), port 5901 vncext: created VNC server for screen 0 Sun Feb 17 11:39:00 2019 ComparingUpdateTracker: 0 pixels in / 0 pixels out ComparingUpdateTracker: (1:-nan ratio) ~ ~