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

Success Story: Vorta on WSL2 with VPN #1494

Closed
rschu68 opened this issue Nov 17, 2022 · 5 comments
Closed

Success Story: Vorta on WSL2 with VPN #1494

rschu68 opened this issue Nov 17, 2022 · 5 comments
Labels
help wanted This issue is available, comment if you want to fix it os:windows Affects Windows only status:stale This item will be closed soon due to inactivity type:support A question about using vorta

Comments

@rschu68
Copy link

rschu68 commented Nov 17, 2022

sorry, could not find an better place to post my 2cents ;)

->
[]https://vorta.borgbase.com/install/windows/

This works very well:
https://stackoverflow.com/questions/61860208/running-graphical-linux-desktop-applications-from-wsl-2-error-e233-cannot-op
(using wsl2 debian - bullsey (upgrade from buster)

# Setting the DISPLAY variable in the .profile
# You may set the DISPLAY variable in your ~/.profile file. I used the following code:
# set DISPLAY to use X terminal in WSL
# in WSL2 the localhost and network interfaces are not the same than windows

if grep -q WSL2 /proc/version; then
    # execute route.exe in the windows to determine its IP address
    DISPLAY=$(route.exe print | grep 0.0.0.0 | head -1 | awk '{print $4}'):0.0

else
    # In WSL1 the DISPLAY can be the localhost address
    if grep -q icrosoft /proc/version; then
        DISPLAY=127.0.0.1:0.0
    fi

fi

like:

route.exe print | grep 0.0.0.0 | head -1 | awk '{print $4}'                                                                                             
192.168.10.142
rschuurmans@INTERNET5548801:/mnt/c/Users/Internet$ export DISPLAY=192.168.10.142:0.0
@rschu68 rschu68 added the type:enhancement Improvement of an existing function label Nov 17, 2022
@real-yfprojects real-yfprojects removed the type:enhancement Improvement of an existing function label Nov 17, 2022
@real-yfprojects real-yfprojects changed the title FR: Working WSL2 with xserver on windows (using VPN!) Success Story: Vorta on WSL2 with VPN Nov 17, 2022
@real-yfprojects
Copy link
Collaborator

sorry, could not find an better place to post my 2cents ;)

I guess this could also go to borgbase/vorta.borgbase.com#26 :)

@m3nu
Copy link
Contributor

m3nu commented Nov 17, 2022

Yeah, always happy to improve Windows docs

@real-yfprojects real-yfprojects added the type:support A question about using vorta label Jan 2, 2023
@real-yfprojects real-yfprojects added the os:windows Affects Windows only label Feb 14, 2023
@stale
Copy link

stale bot commented Apr 25, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status:stale This item will be closed soon due to inactivity label Apr 25, 2023
@real-yfprojects real-yfprojects added help wanted This issue is available, comment if you want to fix it and removed status:stale This item will be closed soon due to inactivity labels Apr 29, 2023
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the status:stale This item will be closed soon due to inactivity label Apr 17, 2024
Copy link

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted This issue is available, comment if you want to fix it os:windows Affects Windows only status:stale This item will be closed soon due to inactivity type:support A question about using vorta
Projects
None yet
Development

No branches or pull requests

3 participants