编辑 /etc/sysconfig/vncserver
VNCSERVERS="1:root 2:user01" VNCSERVERARGS[1]="-geometry 1024x768" VNCSERVERARGS[2]="-geometry 1024x768"八、一些命令
1、kill当前某个vnc帐户
vncserver -kill :12、启动某个vnc帐户
vncserver :13、关闭、启动、重启 vnc服务
service vncserver stop service vncserver start service vncserver restart九、一些错误
1、你可能同时开启了ssh和vnc等终端服务,vnc连接后服务器可能会提示
“我检测到已有一个面板在运行,现在将退出”的对话框,另外你可能还发现系统桌面上的菜单栏点不了或跟本看不见。
解决方法:
[root@localhost ~]# cat /etc/inittab # # inittab This file describes how the INIT process should set up # the system in a certain run-level. # # Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org> # Modified for RHS Linux by Marc Ewing and Donnie Barnes # # Default runlevel. The runlevels used by RHS are: # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this) # #id:5:initdefault: id:3:initdefault:更改系统的运行模式为多用户,将 id:5:initdefault: 改成 id:3:initdefault: