- Settings -> Windows Update
- Install all updates
- launch Windows Powershell as administrator and execute:
Follow the instructions here
| #! /usr/bin/env bash | |
| # | |
| # execute this script with: | |
| # curl https://raw.github.com/gist/1499222/install-packages.sh | sudo bash -s <username> <public_key_url> | |
| # curl https://raw.github.com/gist/1499222/install-packages.sh | sudo bash -s 'alan' 'https://dl.dropbox.com/s/qfo16yktbn23q9j/id_rsa.pub?dl=1' | |
| # | |
| user_name=$1 | |
| public_key=$2 |
| <?xml version="1.0" encoding="utf-8"?> | |
| <key name="Software"> | |
| <key name="ConEmu"> | |
| <key name=".Vanilla" modified="2021-10-09 20:14:18" build="210912"> | |
| <value name="Language" type="string" data="en"/> | |
| <value name="StartType" type="hex" data="02"/> | |
| <value name="CmdLine" type="string" data=""/> | |
| <value name="StartTasksFile" type="string" data=""/> | |
| <value name="StartTasksName" type="string" data="{Shells::PowerShell}"/> | |
| <value name="StartFarFolders" type="hex" data="00"/> |
| #!/bin/sh | |
| # | |
| # execute this script as root with: | |
| # curl https://raw.github.com/gist/1877257/lock_down_ubuntu.sh | bash -s MyAwesomeHostName | |
| # | |
| if [[ ! "root" = "$(whoami)" ]] ; then | |
| echo -e "****\nThis script must be run as root.\n****" && exit 1 | |
| fi |
| @echo off | |
| setlocal enableextensions | |
| set SCRIPT=%0 | |
| set DQUOTE=" | |
| set OLDDIR=%CD% | |
| set start=%time% | |
| :: Detect how script was launched | |
| @echo %SCRIPT:~0,1% | findstr /l %DQUOTE% > NUL |
| #!/bin/sh | |
| wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg | |
| sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ | |
| wget -q https://packages.microsoft.com/config/ubuntu/18.04/prod.list | |
| sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list | |
| sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg | |
| sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list | |
| sudo apt-get install -y apt-transport-https | |
| sudo apt-get update | |
| sudo apt-get install -y dotnet-sdk-2.1 |
| {"lastUpload":"2018-06-13T15:12:34.579Z","extensionVersion":"v2.9.2"} |