Created
April 6, 2015 11:35
-
-
Save CLCL/e3610a9b2f8e457829c6 to your computer and use it in GitHub Desktop.
XenServer 6.2ゲストにCentOS 6.6 x86を最小インストール直後状態から追加でGUIをインストール
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# XenServer 6.2ゲストにCentOS 6.6 x86を最小インストール直後状態から追加でGUIをインストール | |
# 参考: http://blue21.ddo.jp/tips/tips-xenserver6/tips_xs60_003.html | |
yum -y groupinstall "Japanese Support" "X Window System" Desktop | |
yum -y install tigervnc-server xinetd | |
cat << EOS > /etc/xinetd.d/vnc-server | |
service vnc-server | |
{ | |
socket_type = stream | |
wait = no | |
user = nobody | |
server = /usr/bin/Xvnc | |
server_args = -inetd -query localhost -once -geometry 800x600 -depth 24 -SecurityTypes none | |
log_on_failure += USERID | |
disable = no | |
} | |
EOS | |
cp /etc/gdm/custom.{conf,conf.orig} | |
cat << EOS > /etc/gdm/custom.conf | |
# GDM configuration storage | |
[daemon] | |
GtkModulesList= | |
AddGtkModules=false | |
RemoteGreeter=/usr/libexec/gdmgreeter | |
[security] | |
AllowRemoteRoot=true | |
[xdmcp] | |
Enable=true | |
[greeter] | |
[chooser] | |
[debug] | |
EOS | |
reboot | |
# 再起動終わってから | |
telinit 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment