Skip to content

Instantly share code, notes, and snippets.

@CLCL
Created April 6, 2015 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CLCL/e3610a9b2f8e457829c6 to your computer and use it in GitHub Desktop.
Save CLCL/e3610a9b2f8e457829c6 to your computer and use it in GitHub Desktop.
XenServer 6.2ゲストにCentOS 6.6 x86を最小インストール直後状態から追加でGUIをインストール
# 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