Skip to content

Instantly share code, notes, and snippets.

@nascarsayan
Last active February 18, 2021 12:55
Show Gist options
  • Save nascarsayan/6f3e4e2552e8083bd47c5be6249e1b23 to your computer and use it in GitHub Desktop.
Save nascarsayan/6f3e4e2552e8083bd47c5be6249e1b23 to your computer and use it in GitHub Desktop.
# * Powershell
ubuntu_ver=$(cut -f2 <<< $(lsb_release -r))
# Download the Microsoft repository GPG keys
wget -q "https://packages.microsoft.com/config/ubuntu/${ubuntu_ver}/packages-microsoft-prod.deb"
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
# Update the list of products
sudo apt update
# Enable the "universe" repositories
sudo add-apt-repository universe
cd /usr/lib/x86_64-linux-gnu
[ ! -f libssl.so.1.0.0 ] && sudo ln -s libssl.so.1.1 libssl.so.1.0.0
[ ! -f libcrypto.so.1.0.0 ] && sudo ln -s libcrypto.so.1.1 libcrypto.so.1.0.0
cd -
# Install PowerShell and ntlm
sudo apt install -y powershell gss-ntlmssp netbase inetutils-ping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment