{"id":13648645,"url":"https://github.com/nbdd0121/wsld","last_synced_at":"2025-04-09T12:04:48.187Z","repository":{"id":46300062,"uuid":"303522761","full_name":"nbdd0121/wsld","owner":"nbdd0121","description":"WSL Daemon - Stable X11 connection and time synchronisation for WSL2","archived":false,"fork":false,"pushed_at":"2023-07-04T23:13:46.000Z","size":92,"stargazers_count":304,"open_issues_count":15,"forks_count":26,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-02T09:08:39.378Z","etag":null,"topics":["wsl"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nbdd0121.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-10-12T21:58:32.000Z","updated_at":"2025-03-05T10:23:42.000Z","dependencies_parsed_at":"2022-09-09T01:13:35.591Z","dependency_job_id":"b9b76a7d-7f4c-4f92-942b-73a40710f4ad","html_url":"https://github.com/nbdd0121/wsld","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbdd0121%2Fwsld","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbdd0121%2Fwsld/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbdd0121%2Fwsld/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbdd0121%2Fwsld/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nbdd0121","download_url":"https://codeload.github.com/nbdd0121/wsld/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036063,"owners_count":21037092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["wsl"],"created_at":"2024-08-02T01:04:25.427Z","updated_at":"2025-04-09T12:04:48.160Z","avatar_url":"https://github.com/nbdd0121.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"WSLD: WSL Daemon\n==============\n\n![CI](https://github.com/nbdd0121/wsld/workflows/CI/badge.svg?branch=master)\n\nPersist X11 connection when network changes or PC resumes from disconencted sleep/hibernation, and keep your WSL time in sync.\n\nFormerly called x11-over-vsock; renamed to wsld as it gained extra functionality.\n\nImplementation detail can be found [here](docs/impl.md).\n\n## Build\n\nThis program is written in Rust. If you do not have Rust toolchain installed you can get it from https://rustup.rs/. Building on Windows also requires Visual C++ toolchain.\n\nInstall in WSL using `cargo install --locked --git https://github.com/nbdd0121/wsld wsld` and install in Windows using `cargo install --locked --git https://github.com/nbdd0121/wsld wsldhost` (The binary will be installed to `~/.cargo/bin/wsld` and `%USERPROFILE%\\.cargo\\bin\\wsldhost.exe`).\n\nYou can also download pre-built binaries from [releases](https://github.com/nbdd0121/wsld/releases), which are automatically compiled using [GitHub Actions](https://github.com/nbdd0121/wsld/actions).\n\n## Usage\n\nIn WSL, you will need to put config file `.wsld.toml` in your home directory. It should look like this:\n```toml\n# Leave out this section to disable X11 forwarding\n[x11]\n# X11 display number to listen *inside* WSL. The X server in Windows can specified as argument when running wsldhost.exe.\n# Default to 0, can be omitted.\ndisplay = 0\n# Whether to override existing X11 sockets. If your setup does not clean up /tmp automatically, then you probably want to set this to true.\n# Default to false.\nforce = true\n\n# Leave out this section to disable time synchronisation\n# If you need time synchronisation, you should either run wsld with root, or give it `cap_sys_time` capability using `sudo setcap cap_sys_time+eip \u003cPATH to wsld\u003e`.\n[time]\n# Interval between syncs\n# Default to 10min, can be omitted\ninterval = \"1hr\"\n\n# Leave out this section to disable TCP port forwarding\n# This feature is experimental, feedbacks and suggestions welcome.\n# This feature will WSL localhost to Windows localhost, so you can connect\n# servers running in Windows in WSL. This feature requires interaction with\n# iptables, so you need to either run wsld as root or allow wsld to use sudo.\n[tcp_forward]\n# iptables command to use. nftables seem not to work so you need to have\n# the legacy one. If you are not using Debian it is likely you need to change it.\niptables_cmd = \"sudo iptables-legacy\"\n# Ports to forward\nports = [ 1234 ]\n\n# Leave out this section to disable SSH agent forwarding\n[ssh_agent]\n# Default to the path below, can be omitted if unchanged\n# Set `SSH_AUTH_SOCK` to the path you specified.\nssh_auth_sock = \"/tmp/.wsld/ssh_auth_sock\"\n```\nthen run `wsld` and set `DISPLAY=:0`.\n\nIn Windows, start a X server (e.g. VcXsrv) on TCP port 6000, and execute `wsldhost.exe --daemon` with administrator privilege. To know why administrator privilege is needed, check out [implementation detail](docs/impl.md). If your X server runs on a different port, you can add `--display localhost:\u003cport\u003e` to arguments.\n\nTo automatically start both services without manual intervention, see [here](docs/auto.md).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbdd0121%2Fwsld","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnbdd0121%2Fwsld","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbdd0121%2Fwsld/lists"}