WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: stanl on January 19, 2019, 05:39:50 AM

Title: So totally off topic:
Post by: stanl on January 19, 2019, 05:39:50 AM
Any frustrations one has with WB totally pale in comparison to installing Powershell on the Win10 linux subsystem.... Why I bring this up.... had two analysts I used to work with asked about how to do it and so tried it myself.


After 3 days of installing Ubuntu/Debian subsystems I kept getting the same errors that one can Google on line in GitHub or StackOverflow. You can install powershell but you end up with errors that dependency libraries are missing and/or cannot be installed. My laptop fortunately was has the fall 2018 Win10 update (build 1809) but my friends said they still had 1803.


After 3 days of frustration this worked on both builds.


#assumes Ubuntu installed in Win10 subsystem
#this tested in both 1803 and 1809 builds


# First Update the list of products
sudo apt-get update -y
#for some reason really important
sudo apt-get upgrade –y
sudo apt-get install -y libunwind8


#then
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt-get update
sudo apt-get install libicu55


# Download the Microsoft repository GPG keys
wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
# Install PowerShell
sudo apt-get install -y powershell
sudo apt-get update
# Start PowerShell
pwsh


#if all else fails
sudo apt-get remove powershell


Title: Re: So totally off topic:
Post by: td on January 19, 2019, 09:31:00 AM
For my purposes, bash and Python are much more than just adequate for Debian Linux Distros and I imagine when MSFT dumps Windows 10 for a Linux distro that runs almost all Windows Desktop app binaries, it will come preinstalled.   
Title: Re: So totally off topic:
Post by: td on January 19, 2019, 04:36:01 PM
Should add thanks for posting the information.  You never know when a bit of information will come in handy.
Title: Re: So totally off topic:
Post by: stanl on January 20, 2019, 03:30:03 AM
Quote from: td on January 19, 2019, 04:36:01 PM
Should add thanks for posting the information.  You never know when a bit of information will come in handy.


Not that I can comment with any real knowledge, but my friends said that PS in Linux along with Win10 support for SSH have a good future. My one friend (actually my Manager at TWC) just landed a job with Red Hat (their HQ about a mile from where I live) - soon to be IBM.
Title: Re: So totally off topic:
Post by: td on January 21, 2019, 10:00:02 AM
I didn't mean to imply that I have special knowledge concerning MFT's plans.  Just rumors,  public earnings information, and the curious litter of bread crumbs.
Title: Re: So totally off topic:
Post by: kdmoyers on January 22, 2019, 12:06:14 PM
Quote from: td on January 19, 2019, 04:36:01 PM
Should add thanks for posting the information.  You never know when a bit of information will come in handy.

I can imagine a day when, all of a sudden, my interest in this topic goes from 0 to 100.
Thanks for the post Stan, ya never know.