All Projects → Biswa96 → Wslbridge2

Biswa96 / Wslbridge2

Licence: gpl-3.0
Explore various ways to connect Windows Subsystem for Linux with Windows terminal emulators.

Programming Languages

cpp11
221 projects

Projects that are alternatives of or similar to Wslbridge2

Wsl Ssh Pageant
A Pageant -> TCP bridge for use with WSL, allowing for Pageant to be used as an ssh-ageant within the WSL environment.
Stars: ✭ 381 (+309.68%)
Mutual labels:  wsl, windows-10
Centwsl
[DISCONTINUED] CentOS based WSL distribution
Stars: ✭ 766 (+723.66%)
Mutual labels:  wsl, windows-10
Dotfiles
Settings for various tools I use.
Stars: ✭ 513 (+451.61%)
Mutual labels:  terminal, wsl
Fedora Remix For Wsl
Fedora Remix for Windows Subsystem for Linux.
Stars: ✭ 284 (+205.38%)
Mutual labels:  wsl, windows-10
Wslreverse
Experiments with hidden COM interface and LxBus IPC mechanism in WSL
Stars: ✭ 47 (-49.46%)
Mutual labels:  wsl, windows-10
Easydockerweb
A simple Web Ui for Docker using xterm.js, Node.js, dockerode and Socket.io
Stars: ✭ 288 (+209.68%)
Mutual labels:  terminal, socket
Dowww
📟 Dev on Windows with WSL | 在 Windows 上用 WSL 优雅开发
Stars: ✭ 615 (+561.29%)
Mutual labels:  wsl, windows-10
WSLackware
Slackware for WSL!
Stars: ✭ 38 (-59.14%)
Mutual labels:  windows-10, wsl
Wsl Programs
A community powered list of programs that work (and those that don't) on the Windows subsystem for Linux
Stars: ✭ 931 (+901.08%)
Mutual labels:  wsl, windows-10
Wsl Docker Git Setup
Shell script to configure Windows Subsystem for Linux (WSL) & Ubuntu on Windows to use docker and docker-compose as well as a git-enabled prompt
Stars: ✭ 23 (-75.27%)
Mutual labels:  wsl, windows-10
wsl2exe
[TESTING]Use command in WSL from exe executable
Stars: ✭ 34 (-63.44%)
Mutual labels:  windows-10, wsl
Castle Winbuntu
Homesick Castle for use on WSL.
Stars: ✭ 87 (-6.45%)
Mutual labels:  wsl, windows-10
wsl-agent-bridge
WSL compatibility bridge for ssh-agent on Windows
Stars: ✭ 17 (-81.72%)
Mutual labels:  windows-10, wsl
Awesome Wsl
Awesome list dedicated to Windows Subsystem for Linux
Stars: ✭ 3,544 (+3710.75%)
Mutual labels:  wsl, windows-10
webi-installers
Primary and community-submitted packages for webinstall.dev
Stars: ✭ 421 (+352.69%)
Mutual labels:  windows-10, wsl
Gwsl Source
The actual code for GWSL. And some prebuilt releases.
Stars: ✭ 570 (+512.9%)
Mutual labels:  wsl, windows-10
ArtixWSL
Install Artix Linux as a WSL Instance.
Stars: ✭ 45 (-51.61%)
Mutual labels:  windows-10, wsl
WSL-manager
unofficial gui manager for Windows Subsystem for Linux (WSL)
Stars: ✭ 25 (-73.12%)
Mutual labels:  windows-10, wsl
Wsldl
Advanced WSL launcher / installer. (Win10 FCU x64/arm64 or later.)
Stars: ✭ 782 (+740.86%)
Mutual labels:  wsl, windows-10
Pengwin Enterprise
Enterprise-compatible WSL distribution.
Stars: ✭ 52 (-44.09%)
Mutual labels:  wsl, windows-10

wslbridge2

Licence    Top Language    Code size    GitHub release    Appveyor Build   

Explore various ways to connect Windows Subsystem for Linux (WSL) with Windows terminal emulators and command line programs.

Requirements:

  • Windows 10 version 1809 (build 17763) aka. October 2018 Update
  • A POSIX-compatible environment - cygwin or msys2
  • A terminal emulator - mintty or ConEmu
  • For compiling - GCC, make, linux-headers

How to build

Clone this git repository. Run make in cygwin (or msys2) and WSL to make all. To build individual programs, go to src folder and run make command with the corresponding Makefile. By default the make command will create dynamically linked executables. For statically liked binaries, use make RELEASE=1 command. All binaries will be placed in bin folder.

How to use

Download the released stable binaries from Release page. Or to test nightly builds, download the wslbridge2.zip from this Appveyor project link. Here are some info about the directories of this project.

samples: sample C code using Hyper-V sockets

Pick up any one of 1. win_client & wsl_server 2. win_server & wsl_client. Run wsl.exe first. Paste the VM ID from the last argument of wslhost.exe process's command line. Compile the win_ part in cygwin or msys2 and the wsl_ part in WSL. Run the server part first. It will wait for the client.

wslbridge2: connect with WSL using network sockets

Place wslbridge2.exe and wslbridge2-backend in same Windows folder. Run wslbridge2.exe. This requires cygwin or msys2 environment.

Options

Running wslbridge2.exe without any options will open default shell in default WSL distribution. Here are the list of valid options:

  • -b or --backend: Overrides the default path of backend binaries.
  • -d or --distribution: Run the specified distribution.
  • -e or --env: Copies Windows environment variable into the WSL.
  • -h or --help: Show this usage information.
  • -l or --login: Start a login shell in WSL.
  • -s or --show: Shows hidden backend window and debug output.
  • -u or --user: Run as the specified user in WSL.
  • -w or --windir: Changes the working directory to a Windows path.
  • -W or --wsldir: Changes the working directory to WSL path.
  • -x or --xmod: Enables X11 forwarding.

Always use single quote or double quote to mention any folder path. For paths in WSL, "~" can also be used for user's home folder. The non-options arguments will be executed as is. For example, wslbridge2.exe ls will execute ls in current working directory in default WSL distribution.

Frequently Asked Questions

See the FAQ page for the answers to commonly asked questions.

Caveats

  • The graphics may lag sometimes due to multiple layers of data transitions between Windows and WSL side programs. Suggestions are welcomed to speed it up.

  • There is no documented way to get VM ID of running WSL2 utility VM. See this issue. Hence GetVmId.cpp will change in future Windows 10 releases due to usage of undocumented COM methods.

Further Readings

Acknowledgments

This is based on the Ryan Prichard's (@rprichard) wslbridge project. Also thanks to @mintty, @therealkenc, @dxhisboy and all contributors for helping with this project.

Contributions

Contributions are greatly appreciated. Please keep these following points:

  • For a big change, try to add an issue before creating a pull request.
  • Append a tag name in commit message, see previous commits as reference.
  • Make the code easy to read and understand with proper syntax.
  • If possible try to minimize memory usage.
  • Use 4 spaces for indentation.
  • If you are not programmer you can contribute to further improve or additions to documentations. Also share and discuss what features you like to have.

License

wslbridge2 is licensed under the GNU General Public License v3. A full copy of the license is provided in LICENSE.

wslbridge2 -- Explore various ways to connect WSL with Windows terminal emulators.
Copyright (C) Biswapriyo Nath

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].