Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2810

How to get clipboard working between Ubuntu/WSL1 and Windows or use external X server for application (emacs) on WSL1 (recently upgraded)?

$
0
0

On Jan. 23, 2022, I was led by MS Windows 10 to upgrade the WSL on my Windows 10 (20H2). It promised to support WSL2 and WSLg.

However, the support of graphic display is partial. I can start emacs using the terminal of an Ubuntu/WSL, with graphic rendering and mouse working without running an external X server, like vcXsrv.

But however, I cannot copy and paste in both directions from Ubuntu to Windows and vice versa.It makes the experience much worse than before.I was able to use the X server of VcXsrv with perfect copy and paste, as well as graphic rendering.

The problem is that even running vcXsrv, the Ubuntu/WSL1 application would not be able to use the external X server for display and clipboard.

According to the latest WSL documentation, my Windows is too old to have WSL2 and WSLg supported. But Windows nevertheless asked me to upgrade.

I also confirmed that my Ubuntu is still in WSL1 mode, and I could not convert it to WSL 2 mode.

Here is the detailed my Windows:

Edition Windows 10 EnterpriseVersion 20H2Installed on    ‎10/‎21/‎2021OS build    19042.2486Experience  Windows Feature Experience Pack 120.2212.4190.0

And the version of wsl:

wsl --versionWSL version: 1.0.3.0Kernel version: 5.15.79.1WSLg version: 1.0.47MSRDC version: 1.2.3575Direct3D version: 1.606.4DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hypWindows version: 10.0.19042.2486

and the mode of wsl:

wsl --list --verbose  NAME            STATE           VERSION* Ubuntu          Stopped         1  Ubuntu-22.04    Running         1

(Ubuntu was broken, when I tried to reset it to try to change to run with WSL2. I had installed Ubuntu-22.04 afresh, but the problem with the clipboard is the same.)

So my wish now is to go back to the older version or behavior of WSL using VcXsrv as X server as graphic display and clipboard services.Or just have a clipboard working in both directions.How can I achieve that?


Viewing all articles
Browse latest Browse all 2810

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>