Chinaunix首页 | 论坛 | 博客
  • 博客访问: 354054
  • 博文数量: 51
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1189
  • 用 户 组: 普通用户
  • 注册时间: 2014-02-14 15:23
文章分类
文章存档

2017年(4)

2016年(7)

2015年(9)

2014年(31)

我的朋友

分类: LINUX

2015-07-03 16:07:54

1 # vncserver

You will require a password to access your desktops.

 

Password:

Verify:  

Would you like to enter a view-only password (y/n)? n

 

New 'X' desktop is ora11g01:2

 

Creating default startup script /root/.vnc/xstartup

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/ora11g01:2.log

 

同时在/root目录下会生成.vnc目录。

 

2 # vi /root/.vnc/xstartup

 

#!/bin/sh

 

xrdb $HOME/.Xresources

xsetroot -solid grey

xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

#twm &

DISPLAY=:2 gnome-session &

 

3 若要查看端口是否已经被占用

# netstat –lntp

 

4 # vncserver -kill :2

Killing Xvnc process ID 6126

 

5 # vncserver :2

New 'X' desktop is ora11g01:2

 

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/ora11g01:2.log

阅读(2029) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~