Is there a way to view the X client of wsl2 on Chromebook?

Asked 2 years ago, Updated 2 years ago, 76 views

I am looking for a way to transfer the wsl2 GUI to Chromebook (Lenovo Ideapad duet).
Please give me some advice.Also, is there anyone who is trying something similar?

Pre-tried:
US>From Chromebook's Linux terminal, ssh to raspy and transferred GUI. [Success]
[chromebook]ssh-X [user_rasppi@IP]
[raspi from chromebook] xyes
It's like .Now I know that the GUI can be transferred between Chromebook and Linux.

So, can the X app screen on wsl2 on Windows machine be displayed on Chromebook?

What you want to do:
Transfer the X app on wsl2 to Chromebook.

What you tried about what you wanted to do:
From chromebook to windows ssh-Y

Launch powershell and $env:DISPLAY=[chromebook IP address:0.0]

ssh-Y [wsl_username@localhost]

The following error occurs when xyes is run:
connect [chromebook IP address] port6000: Connection refused
Error:Can't open display:localhost:10.0

Note that port 6000 of Linux terminal on chromebook is open.

ssh wsl x11

2022-09-30 19:29

1 Answers

It's solved.
This was achieved by port forwarding the Chromebook↔ Windows↔ WSL path.

First, connect to Windows from Chromebook and port forward the route from Windows to WSL (localhost on Windows) to 10022.

 ssh [windows_user] @ [windows_IP_address] - L10022:localhost:22

From another terminal in Chromebook:

 ssh-XC-p10022 [wsl_user]@localhost


2022-09-30 19:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.