用 Deskreen 将你的 Linux 屏幕镜像或串流到任何设备上
Deskreen 屏幕
其它平台上的屏幕共享或屏幕镜像应用并不那么好。尽管大多数选项仅适用于 Windows/Mac，而你可能很难找到一个适用于 Linux 的开源解决方案。


有了这个应用，你可以与连接到网络的任何设备共享你的屏幕。


如果你有多显示器设置，你会意识到拥有多个屏幕的好处。而且，有了 Deskreen，你可以把任何设备变成你的副屏，多么令人激动啊！


### Deskreen：将任何设备变成你的 Linux 系统的副屏


![我把我的 Linux Mint 桌面镜像到我的 Android 手机上](/data/attachment/album/202106/21/165316z9205jjzkoqki443.jpg)


[Deskreen](https://deskreen.com/lang-en) 是一个自由开源的应用，可以让你使用任何带有 Web 浏览器的设备来作为电脑的副屏。


如果你愿意，它还支持多个设备连接。


Deskreen 很容易使用，当你的所有设备都连接到同一个 Wi-Fi 网络时，它可以正常工作。


让我们来看看它的功能和工作原理。


### Deskreen 的功能


Deskreen 的功能包括以下要点：


* 分享整个屏幕的能力
* 选择一个特定的应用窗口进行串流
* 翻转模式，将你的屏幕作为提词器使用
* 支持多种设备
* 高级视频质量设置
* 提供端对端加密
* 最小的系统要求
* 黑暗模式


没有一个冗长的功能列表，但对大多数用户来说应该是足够的。


### 如何使用 Deskreen 应用？


Deskreen 使用分为三个简单的步骤，让我为你强调一下，以便你开始使用：


首先，当你启动该应用时，它会显示一个二维码和一个 IP 地址，以帮助你用 Web 浏览器连接其他设备，以串流你的屏幕。


![](/data/attachment/album/202106/21/165316qom25okrxkxk7xmz.png)


你可以按你喜欢的方式，在你的辅助设备上的 Web 浏览器的帮助下建立连接。


当你扫描二维码或在浏览器的地址栏中输入 IP 地址，你会在 Deskreen 应用上得到一个提示，允许或拒绝连接。除非是你不认识它，否则就允许吧。


![](/data/attachment/album/202106/21/165317ebhwbxw4hi6tkn6h.png)


接下来，你将被要求选择你想要串流的内容（你的整个屏幕或特定的应用窗口）：


![](/data/attachment/album/202106/21/165317y11ci1s0rorsace1.png)


你可以选择串流整个屏幕或选择你想串流的窗口。然而，并不是每个应用窗口都能被检测到。


在我的快速测试中，我没有检测到 Rocket.Chat 应用窗口，但它似乎能检测到 Slack 窗口、Deskscreen 窗口和终端。


![](/data/attachment/album/202106/21/165317l6kxaagxkheqyjkq.png)


你只需要选择源并确认，就可以了。你应该注意到它在你的副屏（手机/桌面）上开始串流。


![](/data/attachment/album/202106/21/165318ksqpo0p083ezl8qj.png)


这是它完成后的样子：


![](/data/attachment/album/202106/21/165319fzuswx8xw8izogu3.png)


Deskreen 还为你提供了管理连接设备的能力。因此，如果你需要断开任何会话或所有会话的连接，你可以从设置中进行操作。


### 在 Linux 中安装 Deskreen


你会找到一个用于 Linux 机器的 DEB 包和 AppImage 文件。如果你不知道，可以通过我们的 [安装 DEB 包](https://itsfoss.com/install-deb-files-ubuntu/) 和 [使用 AppImage 文件](https://itsfoss.com/use-appimage-linux/) 指南来安装它。


你可以从 [官方网站](https://deskreen.com/lang-en) 下载它，或者从它的 [GitHub 页面](https://github.com/pavlobu/deskreen)探索更多的信息。


* [Deskreen](https://deskreen.com/lang-en)


### 结束语


考虑到它使用 Wi-Fi 网络工作，在串流方面绝对没有问题。这是一种奇妙的方式，可以与别人分享你的屏幕，或者出于任何目的将其串流到第二个设备上。


当然，它不能取代你的电脑的第二个显示器的优势，但在一些使用情况下，你可能不需要第二个屏幕。


现在，我想问你，你能想到哪些实际应用可以用到 Deskreen？




---


via: <https://itsfoss.com/deskreen/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

It is a cool ability to be able to mirror your computer screen on to your smartphone. While that's not the best experience, you can choose to do that to keep an eye on a few things. If you have a multi-monitor setup, you realize the advantages of having multiple screens.

And, yes, you can do that on a Linux computer with the help of an open-source tool, i.e, **Deskreen**.

With Deskreen, you can turn any device into your secondary screen. It makes screen sharing just as easier as it is on Windows.

## Using Deskreen to Mirror Screen Content on Ubuntu

[Deskreen](https://deskreen.com/lang-en?ref=itsfoss.com) is a cross-platform tool popularly used to turn devices into a second computer screen. The application mirrors the screen to an interface accessible via a web browser; hence, it can be viewed by any device with a browser.

All you have to is make sure, your devices are connected to the same Wi-Fi network.

It uses [WebRTC](https://en.wikipedia.org/wiki/WebRTC?ref=itsfoss.com) API for communications via the browser, which enables it to stream the screen.

The initial interface shows a QR code and a web address that the client devices, such as a smartphone, could connect to. The interface looks like this:

![The initial interface of deskreen app with a QR code and a web address](https://itsfoss.com/content/images/2024/01/deskreen-interface.png)

Upon scanning the QR code through your phone, a dialog box appears asking whether to accept the connection, along with the device's IP and operating system.

![Device connect confirmation](https://itsfoss.com/content/images/2024/01/device-connect-confirmation.png)

Next, you get to select if you want to mirror the entire screen or a particular window. Select the one you need and hit Confirm.

![Selection of screen or window to share](https://itsfoss.com/content/images/2024/01/screen-selector.png)

Depending upon the choice, you can choose to mirror the available screens — more than one screen is shown if you have multiple displays or a virtual screen adapter is connected — or an application window that's in the same virtual desktop as deskreen.

![choices for streaming an application window](https://itsfoss.com/content/images/2024/01/screen-selector---app-windows-1.png)

Here's how it looks when you want to share your entire screen:

![choices for streaming an entire screen](https://itsfoss.com/content/images/2024/01/screen-selector---displays.png)

Once the choice is confirmed, the window or screen is streamed to the browser window. The client interface provides some basic controls over the streaming, like choosing the quality, flipping the contents, using the default video player for the stream, etc.

![The entire view of the web interface](https://itsfoss.com/content/images/2024/01/Screenshot--21-.png)

That's how simple it is to get Deskreen working.

## Download and Install Deskreen

To get started, you can download the *.deb* file from the [official site](https://deskreen.com/lang-en?ref=itsfoss.com) or its [GitHub page](https://github.com/pavlobu/deskreen). Alternatively, one could make use of the AppImage file as well.

You can follow [one of the available ways to install deb files](https://itsfoss.com/install-deb-files-ubuntu/). For an AppImage, you can make the file executable and run it as a program:

![Allow execution of AppImage](https://itsfoss.com/content/images/2024/01/allow-execution-1-1.png)

Deskreen is a handy tool to share your screen with a desired device instantly. It makes the job easier and quicker when compared to conventional methods of configuring [VNC or RDP](https://itsfoss.com/remote-desktop-tools/).

*Please let us know your thoughts about screen mirroring, and what is your favorite tool/method to do it?*