- Settings -> Windows Update
- Install all updates
- launch Windows Powershell as administrator and execute:
| function InstallWinGet() | |
| { | |
| $hasPackageManager = Get-AppPackage -name "Microsoft.DesktopAppInstaller" | |
| if(!$hasPackageManager) | |
| { | |
| $releases_url = "https://api.github.com/repos/microsoft/winget-cli/releases/latest" | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
| $releases = Invoke-RestMethod -uri "$($releases_url)" |
| function DownloadFilesFromRepo { | |
| <# | |
| .SYNOPSIS | |
| This function retrieves the specified repository on GitHub to a local directory with authentication. | |
| .DESCRIPTION | |
| This function retrieves the specified repository on GitHub to a local directory with authentication, being a single file, a complete folder, or the entire repository. | |
| .PARAMETER User |
| #!/usr/bin/env bash | |
| if [ -z $(command -v wslvar) ]; then printf "%s\n" "Install package wslu please" ; sleep 2; exit 0; fi | |
| username=$(wslvar USERNAME | awk '{ print tolower($0) }' ) | |
| mkdir -p --parents "/mnt/c/users/$username/.ubuntu/" | |
| cd "/mnt/c/users/$username/.ubuntu" | |
| if [ ! -f /etc/apt/sources.list.d/microsoft-prod.list ]; then | |
| sudo apt-key adv --fetch-keys https://packages.microsoft.com/keys/microsoft.asc | |
| sudo apt update | |
| fi | |
| if [ ! -f /etc/apt/sources.list.d/wsl-transdebian.list ]; then |
| #!/bin/bash | |
| set -o errexit | |
| clear | |
| printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n" | |
| ### HOW TO USE | |
| ### Pre-req: | |
| ### - run on a Proxmox 6 server | |
| ### - a dhcp server should be active on vmbr1 |
| #!/bin/bash | |
| set -o errexit | |
| clear | |
| printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n" | |
| ### HOW TO USE | |
| ### Pre-req: | |
| ### - run on a Proxmox 6 server | |
| ### - a dhcp server should be active on vmbr1 |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh