PowerShell - native on Ubuntu

# all the things I did when installing DotNetCore and PowerShell for Linux onto an Ubuntu server

#login and install various odds-and-ends

sudo apt-get install lynx
sudo apt-get install emacs
sudo apt-get install libunwind8 libicu55
sudo apt-get install firefox
sudo apt-get update

# install the hyper-v aware kernel stuff (may not need it, but what the hey)
sudo apt-get install linux-virtual-lts-xenial
sudo apt-get install linux-tools-virtual-lts-xenial linux-cloud-tools-virtual-lts-xenial
# we WILL need an SSH server
sudo apt-get install openssh-server
sudo apt-get install telnetd

# putty into the box, now that we have an SSH server
# get puTTY from https://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
# with puTTY, you can cut/paste stuff (yay!)

#Now we can install the package feed
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
sudo apt-get update

#now go get .NetCORE
sudo apt-get install dotnet-dev-1.0.0-preview2-003121

# this is where PowerShell will be pulled down from
POWERSHELL_DOWNLOAD_URL=https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.9/powershell_6.0.0-alpha.9-1ubuntu1.16.04.1_amd64.deb
curl -SL $POWERSHELL_DOWNLOAD_URL --output powershell.deb
sudo dpkg --install ./powershell.deb

# clean up.
rm powershell.deb
apt-get clean

# show I am on real Linux\Ubuntu.
uname -a

# launch PowerShell :-)
powershell