LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1128|回复: 4

VNC @ Debian

[复制链接]
发表于 2006-1-20 02:00:49 | 显示全部楼层 |阅读模式
在debian上装了一个vnc

关于窗口的大小有点问题啊.怎么一直只能是这种小窗口呢?怎么调大点呢,在服务器还是客户端?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2006-1-20 13:00:39 | 显示全部楼层
给自己顶一个,要不这样小的用着实在是不爽啊
回复 支持 反对

使用道具 举报

发表于 2006-1-21 03:34:31 | 显示全部楼层
自己顶自己多不爽阿, 我这里给你找了相关解决的方法的英文资料。 你需要在服务器端设置相应的分辨率, 因为你客户端用在windows上,所以分辨率和server不相适应。 自己try 在服务器上setting.

下面是相关解决办法的英文FAQ:

> I can't get the vnc window to occupy the area I want it to on the NT
> system.  

It seems to work OK for me.  If anyone's interested, here are the gory
details...

The windows viewer looks at the size of the remote VNC desktop.  It calls
AdjustWindowRectEx to find out the width and height that a window (including
decorations etc) would need to be if it were to display this whole desktop
without scrollbars.  Call this (fullw, fullh).

It then uses SystemParametersInfo(SPI_GETWORKAREA,...) to find out the width
and height of the desktop work area.  Call this (deskw, deskh).  This should be
the size of the visible desktop space after any taskbars etc have taken their
share.  Some auto-hiding things might confuse it?

It then sets the width of the actual window to be the minimum of fullw and
deskw, and likewise for the height.

When the window gets the WM_SIZE message resulting from this or any other
resizing, it looks to see if the new window dimensions are less than fullw or
fullh, and turns on both scrollbars if so.


> By the way, if I set the vncviewer to 'Fullscreen' does this display
> the resolution as set at the vncserver end?  I.e. it doesn't actually
> use the whole screen if the vncserver resolution is set to less than
> the resolution on the vncviewer system.

That's right - there isn't any scaling done at present.  The main reason for
the fullscreen mode, originally, was that many people connect from one PC at
1024x768 to another at the same resolution, and it's handy to see the whole
remote screen without scrolling.  The 'bump-scrolling', as I call it, is quite
cute too, I think, so I often use full screen mode when the remote desktop is
larger.  But if it's smaller, then the remote view will just appear in the
top-left corner of the screen and you don't gain very much, though you do lose
local distractions.
回复 支持 反对

使用道具 举报

发表于 2006-1-21 03:35:33 | 显示全部楼层

你的回答

自己顶自己多不爽阿, 我这里给你找了相关解决的方法的英文资料。 你需要在服务器端设置相应的分辨率, 因为你客户端用在windows上,所以分辨率和server不相适应。 自己try 在服务器上setting.

下面是相关解决办法的英文FAQ:

> I can't get the vnc window to occupy the area I want it to on the NT
> system.  

It seems to work OK for me.  If anyone's interested, here are the gory
details...

The windows viewer looks at the size of the remote VNC desktop.  It calls
AdjustWindowRectEx to find out the width and height that a window (including
decorations etc) would need to be if it were to display this whole desktop
without scrollbars.  Call this (fullw, fullh).

It then uses SystemParametersInfo(SPI_GETWORKAREA,...) to find out the width
and height of the desktop work area.  Call this (deskw, deskh).  This should be
the size of the visible desktop space after any taskbars etc have taken their
share.  Some auto-hiding things might confuse it?

It then sets the width of the actual window to be the minimum of fullw and
deskw, and likewise for the height.

When the window gets the WM_SIZE message resulting from this or any other
resizing, it looks to see if the new window dimensions are less than fullw or
fullh, and turns on both scrollbars if so.


> By the way, if I set the vncviewer to 'Fullscreen' does this display
> the resolution as set at the vncserver end?  I.e. it doesn't actually
> use the whole screen if the vncserver resolution is set to less than
> the resolution on the vncviewer system.

That's right - there isn't any scaling done at present.  The main reason for
the fullscreen mode, originally, was that many people connect from one PC at
1024x768 to another at the same resolution, and it's handy to see the whole
remote screen without scrolling.  The 'bump-scrolling', as I call it, is quite
cute too, I think, so I often use full screen mode when the remote desktop is
larger.  But if it's smaller, then the remote view will just appear in the
top-left corner of the screen and you don't gain very much, though you do lose
local distractions.
回复 支持 反对

使用道具 举报

发表于 2006-1-21 07:10:51 | 显示全部楼层
还用VNC?何不改用NX呢?。。。

http://www.linuxsir.cn/bbs/showthread.php?t=233874
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表