Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Warp for Linux on WSL (Windows Subsystem for Linux) #4240

Open
dannyneira opened this issue Feb 22, 2024 · 15 comments
Open

Support Warp for Linux on WSL (Windows Subsystem for Linux) #4240

dannyneira opened this issue Feb 22, 2024 · 15 comments
Labels
Feature Feature Requests

Comments

@dannyneira
Copy link
Member

dannyneira commented Feb 22, 2024

The issue for users to track and show support for running Warp for Linux on WSL.

To be clear, we are still working on making a native Warp for Windows (exe), which we will post about on #204 later this year so stay tuned!

How important is this feature to you?

Please add a 👍 to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified. We'll be posting updates on this thread (if/when this is being worked on).

@dannyneira dannyneira added the Feature Feature Requests label Feb 22, 2024
@Mic-360
Copy link

Mic-360 commented Feb 22, 2024

👍

@cj81499
Copy link

cj81499 commented Feb 22, 2024

@dannyneira I think you meant to link to this issue from your comment on #204, but made a typo (and accidentally linked to #424).

@dannyneira
Copy link
Member Author

dannyneira commented Feb 22, 2024

@dannyneira I think you meant to link to this issue from your comment on #204, but made a typo (and accidentally linked to #424).

@cj81499 thanks for catching that, fixed!

@JonParton
Copy link

Just to share, I've actually had success this morning just installing the linux .deb in an ubuntu WSL2 on windows 11 that allows GUI apps. Install the .deb and then just launch warp from the windows start menu!

Pretty much everything seems to be working really well, you just need to make sure you have Firefox installed to allow you to log in etc and I had to use the copy auth code method rather then being automatically logged in as the referral back to warp didn't function with wsl2 in the way.

It's not a perfect experience as things like maximising the window don't really work and the start menu icon is just linux instead of indicating it is warp, but its already soooo much better then any other terminal experience so far 🙌 Kudos 🤜

p.s. I had happened to be trying Git Butler too and hence knowing to install Firefox etc. Some useful git-butler install instructions that ended up being helpful for warp!

@S1monlol
Copy link

Works decently on wsl2, but I can't resize or move the window at all besides clicking the fullscreen button, and once I fullscreen the window, I can't change it back to windowed again.

@WilsonCazarre
Copy link

WilsonCazarre commented Feb 22, 2024

Hi @JonParton. I tried earlier to run on wsl2, but I keep running into this error when trying to launch Warp. Any insight on how to work around it?
image

@Anidion
Copy link

Anidion commented Feb 22, 2024

Same issue as @WilsonCazarre, this time on an NVIDIA GPU. Firefox works fine in GUI.
image

Update: running it with the environment variable WARP_ENABLE_WAYLAND=1 opened the GUI, but now I'm having issues pasting the auth code in to activate, but that's a separate issue.

@WilsonCazarre
Copy link

@Anidion I forgot to mention that I'm also using an NVIDIA GPU (GTX 1050) but I think WSL is not detecting that, I'm not sure why.

@iambj
Copy link

iambj commented Feb 23, 2024

I ended up with this command:
WARP_ENABLE_WAYLAND=1 MESA_D3D12_DEFAULT_ADAPTER_NAME=NVIDIA warp-terminal, and I get to the login screen but can't paste my token. However, it now detects my RTX 2070 Super. (source for the MESA variable: https://github.com/microsoft/wslg/wiki/GPU-selection-in-WSLg)

On a side note, I know this isn't the same issue, but I've been trying all day to get it to launch in my Ubuntu 20.04 VM (VMWare Player), and it launched with that command. I had tried with X11 and Wayland, and after both didn't work, I switched back to Wayland. On a whim, I tried the environment variable, and Warp launched.

@bedesv
Copy link

bedesv commented Feb 23, 2024

I've also got it running using WARP_ENABLE_WAYLAND=1 warp-terminal and am having trouble pasting my auth token. The Warp client says "An invalid auth token was entered into the modal. Not the first time? See our troubleshooting docs." I can paste the auth token into other WSL gui apps such as Firefox.

In the WSL terminal I can see that these events occur when I attempt to paste my auth token.

17:09:32 [INFO] dispatching typed action: PasteAuthUrl
17:09:32 [ERROR] Failed to parse AuthRedirectPayload from redirect URL: relative URL without a base

Any ideas on how to successfully login?

@joanalexisc
Copy link

I ended up with this command: WARP_ENABLE_WAYLAND=1 MESA_D3D12_DEFAULT_ADAPTER_NAME=NVIDIA warp-terminal, and I get to the login screen but can't paste my token. However, it now detects my RTX 2070 Super. (source for the MESA variable: https://github.com/microsoft/wslg/wiki/GPU-selection-in-WSLg)

On a side note, I know this isn't the same issue, but I've been trying all day to get it to launch in my Ubuntu 20.04 VM (VMWare Player), and it launched with that command. I had tried with X11 and Wayland, and after both didn't work, I switched back to Wayland. On a whim, I tried the environment variable, and Warp launched.

same for me... in the console is throwing this message: Failed to parse AuthRedirectPayload from redirect URL: relative URL without a base

@TechNerd8
Copy link

I've also got it running using WARP_ENABLE_WAYLAND=1 warp-terminal and am having trouble pasting my auth token. The Warp client says "An invalid auth token was entered into the modal. Not the first time? See our troubleshooting docs." I can paste the auth token into other WSL gui apps such as Firefox.

In the WSL terminal I can see that these events occur when I attempt to paste my auth token.

17:09:32 [INFO] dispatching typed action: PasteAuthUrl
17:09:32 [ERROR] Failed to parse AuthRedirectPayload from redirect URL: relative URL without a base

Any ideas on how to successfully login?

Looks like there are a few of us with this issue now. I'm in the same boat. I tried copying and pasting only specific sections of the full token length, but nothing has worked so far. Seems the parsing instructions aren't aligning with what the auth link actually spits out. I'll see if I can find where the faulty instructions are, unless one of the devs beats me to it (or identifies another issue I'm not considering).

@bedesv
Copy link

bedesv commented Feb 23, 2024

I’m away from my computer atm but I saw a few threads in the Warp Discord channel about both people successfully running Warp in WSL and other ways to pass the auth token into Warp. Haven’t got anything working yet

@eglove
Copy link

eglove commented Feb 23, 2024

It's been awhile since I used warp because I don't use Linux. It is my favorite terminal though.

WSL support isn't terribly important. WSL virtual memory is too slow for things like simple web servers. So there's not much I'd ever use it for.

Definitely looking forward to the native windows support though. I'd love to get back to warp.

@bedesv
Copy link

bedesv commented Feb 23, 2024

@eglove I think the interest in Warp on WSL now is mostly Windows users wanting to use Warp now - at least that’s why I’m interested. I doubt that it’ll be a long term thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Feature Requests
Projects
None yet
Development

No branches or pull requests