使用PuTTY远程连接到终端
到 官网 下载PuTTY,打开Putty,并输入主机名或IP,点击Open。
之后会切换到另一个窗口,显示提示login as:,这时输入用户名(如管理员用户名root),按下回车键出现输入密码提示,直接键入密码按下回车键就登录成功了。
CentOS6.5安装vncserver实现图形化访问
安装gnome图形化桌面
| 1 2 3
 | #yum groupinstall -y "X Window System" #yum groupinstall -y "Desktop" #yum groupinstall -y "Chinese Support"
 | 
安装vncserver并配置
安装vncserver
| 1
 | #yum install -y tigervnc-server
 | 
配置vncserver
配置为开机自启动
| 1
 | #chkconfig --level 345 vncserver on
 | 
配置vnc密码
| 1 2 3 4 5 6 7 8 9 10
 | [root@sunth ~]# vncserver You will require a password to access your desktops. Password: Verify: xauth:  creating new authority file /root/.Xauthority xauth: (stdin):1:  bad display name "sunth.localdomain:1" in "add" command New 'sunth.localdomain:1 (root)' desktop is sunth.localdomain:1 Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/sunth.localdomain:1.log
 | 
配置为使用gnome桌面
修改 /root/.vnc/xstartup文件,把最后的 twm & 删掉 加上 gnome-session &。
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
 | #!/bin/sh [ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n export LANG export SYSFONT vncconfig -iconic & unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS OS=`uname -s` if [ $OS = 'Linux' ]; then   case "$WINDOWMANAGER" in     *gnome*)       if [ -e /etc/SuSE-release ]; then         PATH=$PATH:/opt/gnome/bin         export PATH       fi       ;;   esac fi if [ -x /etc/X11/xinit/xinitrc ]; then   exec /etc/X11/xinit/xinitrc fi if [ -f /etc/X11/xinit/xinitrc ]; then   exec sh /etc/X11/xinit/xinitrc fi [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & gnome-session &
 | 
配置vncserver启动后监听端口和环境参数
修改/etc/sysconfig/vncservers 文件添加以下内容
| 1 2
 | VNCSERVERS="1:root" VNCSERVERARGS[1]="-geometry 1200x800"
 | 
重启vncserver服务
| 1
 | #service vncserver restart
 | 
允许root访问图形界面和生成新的machine-id
| 1 2
 | #sed -i 's/.*!= root.*/#&/' /etc/pam.d/gdm #dbus-uuidgen >/var/lib/dbus/machine-id
 | 
关闭selinux和NetworkManager服务
检查selinux服务并关闭
确认里面的SELINUX字段的值是disabled,如果不是则改为disabled。
关闭NetworkManager服务
| 1
 | #chkconfig --del NetworkManager
 | 
测试登录:
在官网可以下载客户端VNC Viewer
VNC Server写上服务器的IP+编号(第二步,第四小步VNCSERVERS后面的数字)
部署安装XAMPP
准备工作
| 1 2
 | yum update yum remove httpd*
 | 
升级系统,然后清理已有的环境以免出现安装冲突。
下载XAMPP
在 sourceforge 寻找合适的版本。下载。
| 1 2
 | cd /tmp wget http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/1.8.3/xampp-linux-x64-1.8.3-4-installer.run
 | 
提权,安装
| 1 2
 | chmod 755 xampp-linux* ./xampp-linux*
 | 
安装完毕,启动XAMPP
设置XAMPP
打开/opt/lampp/etc/httpd.conf文件,按需设置
P.S
- yum -y install firefox,使用firefox而不使用chrome是因为chrome用root开不了。
- 可以改一下putty的配色,原配色好难看。附连接