{"id":13342554,"url":"https://github.com/electronicegg/wsl-ubuntu-powershell","last_synced_at":"2025-03-12T02:32:14.846Z","repository":{"id":49139057,"uuid":"182777303","full_name":"electronicegg/wsl-ubuntu-powershell","owner":"electronicegg","description":"Basic PowerShell scripts for downloading, installing, and uninstalling Ubuntu in Windows Subsystem for Linux (WSL)","archived":false,"fork":false,"pushed_at":"2021-06-27T05:47:50.000Z","size":8,"stargazers_count":17,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-30T21:04:42.430Z","etag":null,"topics":["powershell","ubuntu","wsl"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/electronicegg.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}},"created_at":"2019-04-22T12:05:34.000Z","updated_at":"2024-07-06T09:28:37.000Z","dependencies_parsed_at":"2022-09-15T12:12:17.959Z","dependency_job_id":null,"html_url":"https://github.com/electronicegg/wsl-ubuntu-powershell","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electronicegg%2Fwsl-ubuntu-powershell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electronicegg%2Fwsl-ubuntu-powershell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electronicegg%2Fwsl-ubuntu-powershell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electronicegg%2Fwsl-ubuntu-powershell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/electronicegg","download_url":"https://codeload.github.com/electronicegg/wsl-ubuntu-powershell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221265581,"owners_count":16788059,"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":["powershell","ubuntu","wsl"],"created_at":"2024-07-29T19:29:30.759Z","updated_at":"2024-10-24T02:30:13.584Z","avatar_url":"https://github.com/electronicegg.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WSL Ubuntu 20.04 Installation Using PowerShell\r\n\r\nThis collection of PowerShell scripts provide a way to download, install,\r\nuninstall, or reset Ubuntu 20.04 in WSL.\r\n\r\n\r\n## Prerequisites\r\n\r\nBy default, PowerShell's execution policy is set to **Restricted** and script\r\nexecution is not allowed. To be able to execute PowerShell scripts, the\r\nexecution policy must be changed to **RemoteSigned** or **Unrestricted**.\r\n\r\nExecute the following command in a PowerShell terminal with **Administrator**\r\npermissions:\r\n\r\n    Set-ExecutionPolicy RemoteSigned\r\n\r\nor\r\n\r\n    Set-ExecutionPolicy Unrestricted\r\n\r\n\r\n## Opening PowerShell as Administrator\r\n\r\nSome ways to launch PowerShell with Administrator privileges are:\r\n\r\n1. Press `Win` + `X`, the select `Windows PowerShell (Admin)` then perform a\r\n   `cd` command to the desired directory.\r\n\r\n2. Short way is to open a folder in Windows Explorer then press\r\n   `ALT` `F` `S` `A`.\r\n   Long way: `File` \u003e `Open PowerShell Submenu` (Click on the right arrow `\u003e`) \u003e\r\n   `Open Windows PowerShell as administrator`\r\n\r\n\r\n\r\n## Included Scripts\r\n\r\n### Enabling WSL in Windows 10\r\n\r\n    .\\0_enable_wsl.ps1\r\n\r\n\r\n\r\n### Downloading the Ubuntu 20.04 WSL Package\r\n\r\n    .\\1_download_ubuntu.ps1\r\n\r\nThis script will download an `ubuntu-2004.zip` file.\r\n\r\n\r\n\r\n### Installing WSL Ubuntu 20.04\r\n\r\n    .\\2_install_ubuntu.ps1\r\n\r\nThis script extracts the contents of the `ubuntu-2004.zip` and calls\r\n`.\\ubuntu\\ubuntu2004.exe` to start the installation process.\r\n\r\n\r\n\r\n### Reset WSL Ubuntu to Defaults\r\n\r\n    .\\3_reset_ubuntu.ps1\r\n\r\nThis script will reset (uninstall and reinstall) the Ubuntu installation.\r\n\r\n\r\n\r\n\r\n### Uninstalling WSL Ubuntu\r\n\r\n    .\\4_uninstall_ubuntu.ps1\r\n\r\n\r\n## Disclaimer\r\n\r\nThese scripts are provided as-is and without warranties. The author holds no\r\nresponsibility over the usage and results arising from the use of these\r\nscripts. Use at your own risk.\r\n\r\n\r\n## References\r\n\r\n - https://docs.microsoft.com/en-us/windows/wsl/install-win10\r\n - https://docs.microsoft.com/en-us/windows/wsl/install-manual\r\n - https://docs.microsoft.com/en-us/windows/wsl/install-on-server\r\n - https://wiki.ubuntu.com/WSL\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectronicegg%2Fwsl-ubuntu-powershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectronicegg%2Fwsl-ubuntu-powershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectronicegg%2Fwsl-ubuntu-powershell/lists"}