{"id":19810165,"url":"https://github.com/cdhtlr/alpinewsl","last_synced_at":"2025-06-28T11:33:16.594Z","repository":{"id":245336257,"uuid":"817955979","full_name":"cdhtlr/AlpineWSL","owner":"cdhtlr","description":"Tutorial for installing WSL images + installing GUI applications without any hassle","archived":false,"fork":false,"pushed_at":"2024-06-24T12:08:53.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T18:27:35.484Z","etag":null,"topics":["alpine-linux","linux","wsl"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdhtlr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-20T19:53:20.000Z","updated_at":"2024-06-24T12:08:56.000Z","dependencies_parsed_at":"2024-06-24T13:38:39.698Z","dependency_job_id":null,"html_url":"https://github.com/cdhtlr/AlpineWSL","commit_stats":null,"previous_names":["cdhtlr/alpinewsl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cdhtlr/AlpineWSL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdhtlr%2FAlpineWSL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdhtlr%2FAlpineWSL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdhtlr%2FAlpineWSL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdhtlr%2FAlpineWSL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdhtlr","download_url":"https://codeload.github.com/cdhtlr/AlpineWSL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdhtlr%2FAlpineWSL/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262421977,"owners_count":23308557,"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":["alpine-linux","linux","wsl"],"created_at":"2024-11-12T09:19:40.958Z","updated_at":"2025-06-28T11:33:16.589Z","avatar_url":"https://github.com/cdhtlr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# AlpineWSL\n\nTutorial for installing WSL images + installing GUI applications without any hassle.\n===\nOpen the WSL Manager application (download it first from [bostrot/wsl2-distro-manager](https://github.com/bostrot/wsl2-distro-manager) if you don't have it yet), click \"\u003cb\u003eAdd new instance\u003c/b\u003e\", then enter the required data.\n\n![](https://raw.githubusercontent.com/cdhtlr/AlpineWSL/main/WSL_Manager.png \"WSL Manager\")\n\nOpen Alpine Linux from \u003cb\u003eWindows Terminal\u003c/b\u003e then enter the following command\n\n    wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \u0026\u0026 wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-2.35-r1.apk\n    apk update \u0026\u0026 apk upgrade\n    apk add glibc-2.35-r1.apk libstdc++ bash curl openrc sudo ttf-freefont wslu --no-cache\n    export DISPLAY=localhost:0.0\n    echo -e \"user\\nuser\" | adduser -h /home/user -s /bin/ash user\n    echo -e \"root\\nroot\" | passwd root\n    su -l root\n    echo '%wheel ALL=(ALL) ALL' \u003e /etc/sudoers.d/wheel\n    adduser user wheel\n    echo \"echo 'Welcome to AlpineWSL :D'\" \u003e /etc/motd\n    echo \"rc-status\" \u003e .profile\n    echo \"touch /run/openrc/softlevel\" \u003e\u003e .profile\n    echo \"alias a=wslact\" \u003e\u003e .profile\n    echo \"alias c=wslusc\" \u003e\u003e .profile\n    echo \"alias v=wslview\" \u003e\u003e .profile\n    echo \"clear\" \u003e\u003e .profile\n    echo \"/etc/motd\" \u003e\u003e .profile\n    chmod +x /etc/motd .profile\n    rm -rf .ash_history glibc-2.35-r1.apk /etc/apk/keys/sgerrand.rsa.pub\n\nIf you haven't set \u003ci\u003eWSL auto shutdown when idle\u003c/i\u003e, shutdown WSL with the following command\n\n    wsl --shutdown\n\nClose Windows Terminal then reopen it.\n\n\nInstall the GUI application you need, for example \u003cb\u003egedit\u003c/b\u003e.\n\n    apk add gedit\n\nThen open the gedit application.\n\nWSLg should create a shortcut for the application automatically, if not, create the shortcut yourself with the target\n\n    C:\\Windows\\System32\\wslg.exe ~ -d Alpine -u user \"/usr/bin/gedit\"\nor\n\n    \"C:\\Program Files\\WSL\\wslg.exe\" -d Alpine --cd \"~\" -- gedit\n\nAdjust the shortcut according to your needs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdhtlr%2Falpinewsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdhtlr%2Falpinewsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdhtlr%2Falpinewsl/lists"}