Tutorials/Access another computer's display/zh-cn: Difference between revisions

From KDE Wiki Sandbox
m (Created page with "教程/访问另一台计算机的显示器")
 
(Created page with "如果主机名在客户端的"hosts"文件中设置,"user-desktop"可以设置为服务器的主机名。")
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages />
<languages />


You want to access KDE software that is running on another computer.
您想用运行在另一台电脑上的 KDE 软件。


Reasons can be
原因可能是
* someone is running Linux and requesting support from you
* 有个 Linux 用户请您帮忙
* you want to train a user how to work with a specific gui software
* 你想教用户使用某一图形用户界面软件
* you have worked on your desktop computer and want to continue work in front of the TV (Simpsons coming) on your notebook
* 在台式机工作一会后,想用笔记本在电视前继续手头的工作




==Prerequesites==
==事前准备==
You will need the software '''x11vnc'''. For example, to install '''x11vnc''' on SUSE Linux, open a [[Special:myLanguage/Konsole|Konsole]] and type
您需要 x11vnc 软件,如在 SUSE Linux 上安装 x11vnc,打开[[Special:myLanguage/Konsole|Konsole]],然后输入
{{Input|1=yast -i x11vnc}}
{{Input|1=yast -i x11vnc}}


So let's assume you want to access a KDE desktop session of ''user'' on the computer ''user-desktop''.
因此,让我们假设你要访问''user-desktop''电脑上''user'' 的KDE桌面会话。打开 [[Special:myLanguage/Konsole|Konsole]]并:
Open a [[Special:myLanguage/Konsole|Konsole]] and do:
{{Input|1= you@your-computer $ ssh ''user''@''user-desktop''
{{Input|1= you@your-computer $ ssh ''user''@''user-desktop''
user@user-desktop $ export DISPLAY=:0
user@user-desktop $ export DISPLAY=:0
user@user-desktop $ x11vnc}}
user@user-desktop $ x11vnc}}


The program x11vnc tells you where to connect. The line will read like
x11vnc程式告诉你连接到哪里。该行看起来像这样
{{Output|1=The VNC desktop is:      user-desktop:0}}
{{Output|1=The VNC desktop is:      user-desktop:0}}


Connect from your notebook:
从您的笔记本电脑连接:
{{Input|1=you@your-computer $ vncviewer user-desktop:0}}
{{Input|1=you@your-computer $ vncviewer user-desktop:0}}


The "user-desktop" term may be the host name of the server machine if that name is configured in the "hosts" file on the client machine.
如果主机名在客户端的"hosts"文件中设置,"user-desktop"可以设置为服务器的主机名。


[[Category:Tutorials]]
[[Category:教程/zh-cn]]
[[Category:System]]
[[Category:系统/zh-cn]]

Latest revision as of 08:45, 21 March 2013

您想用运行在另一台电脑上的 KDE 软件。

原因可能是

  • 有个 Linux 用户请您帮忙
  • 你想教用户使用某一图形用户界面软件
  • 在台式机工作一会后,想用笔记本在电视前继续手头的工作


事前准备

您需要 x11vnc 软件,如在 SUSE Linux 上安装 x11vnc,打开Konsole,然后输入

yast -i x11vnc

因此,让我们假设你要访问user-desktop电脑上user 的KDE桌面会话。打开 Konsole并:

you@your-computer $ ssh user@user-desktop
user@user-desktop $ export DISPLAY=:0
user@user-desktop $ x11vnc

x11vnc程式告诉你连接到哪里。该行看起来像这样

The VNC desktop is:      user-desktop:0

从您的笔记本电脑连接:

you@your-computer $ vncviewer user-desktop:0

如果主机名在客户端的"hosts"文件中设置,"user-desktop"可以设置为服务器的主机名。