Wednesday 13 June 2007

vnc

Vnc:

1。分别安装server端与client端。

2server端:执行:

vncserver

然后按提示可以找到 /…../.vnc/xstartup 修改成自己喜欢的x windows

Startkde & 或者 gnome-session &

FC6用如下命令:

unset SESSION_MANAGER //this command is essential

exec /etc/X11/xinit/xinitrc or gnome-session &

startkde &

/etc/X11/xinit/xinitrc 是系统默认的x windows session

此时也会提示这是 host1 or host2

要求设置密码

3client

输入: hostip1 or hostip2

然后是密码

5、通过浏览器使用vnc

通过浏览器使用vnc,要注意端口号的变化.

假设vnc server是172.16.1.2:1的话,那么,可用浏览器访问http://172.16.1.2:5801

端口号=display number + 5800

退出VNC:先关闭Linux桌面窗口,然后在SSH窗口中运行如下格式的命令

vncserver -kill :2 #":"前有一个空格!!!!!

(把其中的"2"换成你的桌面号)关闭VNC进程,这一步一定要做。

unset [-fv] name ...

DESCRIPTION

Each variable or function specified by name shall be unset.

If -v is specified, name refers to a variable name and the shell shall unset it and remove it from the environment. Read-only variables cannot be unset.

If -f is specified, name refers to a function and the shell shall unset the function definition.

If neither -f nor -v is specified, name refers to a variable; if a variable by that name does not exist, it is unspecified whether a function by that name, if any, shall be unset.

Unsetting a variable or function that was not previously set shall not be considered an error and does not cause the shell to abort.

The unset special built-in shall support the Base Definitions volume of IEEE Std 1003.1-2001, Section 12.2, Utility Syntax Guidelines.

Note that:

VARIABLE=

is not equivalent to an unset of VARIABLE; in the example, VARIABLE is set to "" . Also, the variables that can be unset should not be misinterpreted to include the special parameters (see Special Parameters ).

Pasted from <http://www.die.net/doc/linux/man/man1/unset.1.html>

No comments:

My photo
London, United Kingdom
twitter.com/zhengxin

Facebook & Twitter