[root@tanvps ~]# yum -y groupinstall “GNOME Desktop Environment”
2, 安装KDE桌面环境[root@tanvps ~]# yum groupinstall “X Window System” “KDE (K Desktop Environment)”
3,安装VNC服务器[root@tanvps ~]# yum -y install vnc-server
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror-fpt-telecom.fpt.net
* extras: mirror-fpt-telecom.fpt.net
* updates: mirror-fpt-telecom.fpt.net
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package tigervnc-server.i686 0:1.0.90-0.17.20110314svn4359.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
================================================== ==============================
Package Arch Version Repository
Size
================================================== ==============================
Installing:
tigervnc-server i686 1.0.90-0.17.20110314svn4359.el6 base 1.1 M
Transaction Summary
================================================== ==============================
Install 1 Package(s)
Total download size: 1.1 M
Installed size: 2.9 M
Downloading Packages:
tigervnc-server-1.0.90-0.17.20110314svn4359.el6.i686.rpm | 1.1 MB 00:02
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key)
Installed:
tigervnc-server.i686 0:1.0.90-0.17.20110314svn4359.el6
Complete!
[root@tanvps ~]#
[root@tanvps ~]# su -jackiebui
[jackiebui@tanvps ~]# vncpasswd
Password:******
verify:******
[jackiebui@tanvps ~]# ls .vnc/
[root@tanvps ~]# vi /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the lines below to start a VNC server on display :2
# as my ‘myusername’ (adjust this to your own). You will also
# need to set a VNC password; run ‘man vncpasswd’ to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see this URL:
# http://kbase.redhat.com/faq/docs/DOC-7028
# Use “-nolisten tcp” to prevent X connections to your VNC server via TCP.
# Use “-localhost” to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the “-via” option in the
# `man vncviewer’ manual page.
VNCSERVERS=”1:jackiebui” //Uncomment 2 last lines, and edit your VNC user
VNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -localhost” // Save and exit
[root@tanvps ~]# vncserver
[root@tanvps ~]# chkconfig vncserver on //设置为开机启动
linux 下 启动tomcat 报:
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
先看Tomcat的startup.bat,它调用了catalina.bat,而catalina.bat则调用了setclasspath.bat。只要在setclasspath.bat的开头声明环境变量,打开tomcat的bin目录下面的setclasspath.sh,添加红色部分,路径自己修改。windows 下用set。
#!/bin/sh
# -----------------------------------------------------------------------------
# Set CLASSPATH and Java options
#
# $Id: setclasspath.sh 467182 2006-10-23 23:47:06Z markt $
# -----------------------------------------------------------------------------
export JAVA_HOME=/usr/lib/jvm/java-7-sun
export JRE_HOME=/usr/lib/jvm/java-7-sun/jre
# First clear out the user classpath
CLASSPATH=
# Make sure prerequisite environment variables are set
if [ -z "$JAVA_HOME" -a -z "$JRE_HOME" ]; then
# Bugzilla 37284
if $darwin && [ -d "/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home" ]; then
export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home"
else
echo "Neither the JAVA_HOME nor the JRE_HOME environment variable is defined"
echo "At least one of these environment variable is needed to run this program"
exit 1
fi
fi
if [ -z "$JAVA_HOME" -a "$1" = "debug" ]; then
echo "JAVA_HOME should point to a JDK in order to run in debug mode."
exit 1
fi
if [ -z "$JRE_HOME" ]; then
JRE_HOME="$JAVA_HOME"
fi
# If we're running under jdb, we need a full jdk.
if [ "$1" = "debug" -o "$1" = "javac" ] ; then
if [ "$os400" = "true" ]; then
if [ ! -x "$JAVA_HOME"/bin/java -o ! -x "$JAVA_HOME"/bin/javac ]; then
echo "The JAVA_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
echo "NB: JAVA_HOME should point to a JDK not a JRE"
exit 1
fi
else
if [ ! -x "$JAVA_HOME"/bin/java -o ! -x "$JAVA_HOME"/bin/jdb -o ! -x "$JAVA_HOME"/bin/javac ]; then
echo "The JAVA_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
echo "NB: JAVA_HOME should point to a JDK not a JRE"
exit 1
fi
fi
fi
实验四十七微软应用程序虚拟化之二APP-V Sequencer 5.1服务器部署和创建第一个Office虚拟应用程序包
APP-V Sequencer用于监视和捕获应用程序安装以创建虚拟应用程序包。输出包含应用程序图标、.osd 文件(包含程序包定义信息)、程序包清单文件,以及 .sft 文件(包含应用程序的内容文件)。
说明:
环境基于实验四十六,准备一台Windows Server 2012的虚拟机名为APP-VSequencer并且加入域kkfloat.com,然后关闭UAC功能
1登录APP-V Sequencer服务器,放入MDOP 2013的光盘,打开安装程序选择“APP-V 5.0 SP1 Sequencer”功能进行安装,等待安装完成
2在APP-V Sequencer服务器上创建两个文件夹,一个名为Office 2010 Professional Plus用于虚拟安装office,一个名为APP-V Office Package用于保存Office虚拟程序包,然后打开“Microsoft Application Virtualization Sequencer”程序,进行Offce 2010的虚拟安装过程和创建虚拟程序包,并且编辑这个虚拟程序包的属性然后保存
3把Office 2010的虚拟程序包放到APP-VServer服务器上的共享文件夹APPContents上,为软件发布做准备
安装过程分享:http://pan.baidu.com/share/link?shareid=680813&uk=1025659618