Page 1 of 2

Powershell for Raspbian?

Posted: Tue Sep 20, 2016 5:24 am
by riahc3
With Powershell now open source, will we see Powershell for Raspbian?

Re: Powershell for Raspbian?

Posted: Tue Sep 20, 2016 7:47 am
by RaTTuS
why?
what is wrong with bash

Re: Powershell for Raspbian?

Posted: Tue Sep 20, 2016 10:03 am
by mihol
a lot of Windows developers & admin people have Powershell skills acquired over the last 10 years but they lack similar skills for using bash. Is that a good enough answer?

Re: Powershell for Raspbian?

Posted: Tue Sep 20, 2016 11:07 am
by PeterO
mihol wrote:a lot of Windows developers & admin people have Powershell skills acquired over the last 10 years but they lack similar skills for using bash. Is that a good enough answer?
That's just being lazy !
PeterO

Re: Powershell for Raspbian?

Posted: Sun Sep 25, 2016 8:44 am
by Djarid
There's nothing wrong with bash at all, in fact it was a significant influence in the development of Monad (the pre-release name of Powershell).

However, powershell is a significant evolution on just about every other shell. Pipelining entire objects instead of just the stdout alone is sufficient to want to have this in raspbian

Re: Powershell for Raspbian?

Posted: Sun Sep 25, 2016 10:29 am
by DougieLawson
Why would anyone want to use powershell when Ubuntu's bash is natively installable on Windows 10? Microsoft have developed an installer package for that. https://msdn.microsoft.com/commandline/ ... tall_guide I've been using that for a couple of months now.

Re: Powershell for Raspbian?

Posted: Mon Sep 26, 2016 7:05 am
by RaTTuS
DougieLawson wrote:Why would anyone want to use powershell when Ubuntu's bash is natively installable on Windows 10? Microsoft have developed an installer package for that. https://msdn.microsoft.com/commandline/ ... tall_guide I've been using that for a couple of months now.
as have I - it is very very useful more me

Re: Powershell for Raspbian?

Posted: Mon Sep 26, 2016 7:30 am
by ssfdre38
i tested powershell onto my test raspberry pi and it doesnt look like it will support it all. Even if you try to build it from source it will stop you right away cause its not an x64 processor or os

Re: Powershell for Raspbian?

Posted: Fri Sep 30, 2016 7:42 pm
by mihol
ssfdre38 wrote:i tested powershell onto my test raspberry pi and it doesnt look like it will support it all. Even if you try to build it from source it will stop you right away cause its not an x64 processor
As there are new (alpha) versions every 2 weeks or so, do you remember what version (i.e. v6.0.0-alpha.8) you tried?

Knowing the exact error would allow to open an issue in their GITHUB repository
PS: For interested parties, new releases are downloadable from https://github.com/PowerShell/PowerShell/releases

Re: Powershell for Raspbian?

Posted: Fri Sep 30, 2016 8:13 pm
by ssfdre38
they just dont support ARMf so they wont support raspbian to use Power Shell and yes i have tested beta's and their alphas

Re: Powershell for Raspbian?

Posted: Wed Oct 12, 2016 5:53 pm
by mihol
@ssfdre38, a currently proposed merge for .NET core "[Arm/CI] Add hardfp build to arm32_ci_script.sh #12577" https://github.com/dotnet/corefx/pull/12577 and an existing PowerShell issue would seem related.
https://github.com/PowerShell/PowerShell/issues/1635 mentions ARM already
'OS: Windows or Unix
Architecture: ARM, amd64, x86'

The pending merge would address the first of several dependency for porting PowerShell to ARM platform.
Hence from my view this looks like its just a matter of time until PowerShell on RaspberryPi will become available.
Would you share this view?

Re: Powershell for Raspbian?

Posted: Wed Oct 12, 2016 8:22 pm
by ewaller
DougieLawson wrote:.... when Ubuntu's bash is natively installable ...
Whose Bash? Come on, credit where credit is due.

Re: Powershell for Raspbian?

Posted: Thu Oct 13, 2016 4:55 pm
by mihol
I've raised an enhancement issue on Powershell GitHub.https://github.com/PowerShell/PowerShell/issues/2463
Interested parties should login to GitHub and use 'add your reaction' to vote for this change :D

Re: Powershell for Raspbian?

Posted: Fri Oct 14, 2016 8:41 pm
by DougieLawson
ewaller wrote:
DougieLawson wrote:.... when Ubuntu's bash is natively installable ...
Whose Bash? Come on, credit where credit is due.
Don't be pedantic. The deal is between Microsoft & Canonical.

Re: Powershell for Raspbian?

Posted: Fri Oct 14, 2016 8:46 pm
by bensimmo
mihol wrote:@ssfdre38, a currently proposed merge for .NET core "[Arm/CI] Add hardfp build to arm32_ci_script.sh #12577" https://github.com/dotnet/corefx/pull/12577 and an existing PowerShell issue would seem related.
https://github.com/PowerShell/PowerShell/issues/1635 mentions ARM already
'OS: Windows or Unix
Architecture: ARM, amd64, x86'

The pending merge would address the first of several dependency for porting PowerShell to ARM platform.
Hence from my view this looks like its just a matter of time until PowerShell on RaspberryPi will become available.
Would you share this view?
But is that ARM WinIoT or ARM Raspbian ?
I can see them trying to get it on WinIoT, still more choice for any platform is always a good thing. Use what you prefer.

Re: Powershell for Raspbian?

Posted: Sun Oct 16, 2016 1:46 am
by mihol
I assumed Raspbian because of instructions 'Install for Debian 8' on https://www.microsoft.com/net/core#debian

Don't have access to my Pi currenly in oder to try it and confirm :( due to vacation ;)

Re: Powershell for Raspbian?

Posted: Sun Oct 16, 2016 7:24 am
by bensimmo
On there they only have Deb files for Ubuntu X64, debian just has the binaries, again in X64.

With WinIoT, I also believe at the moment you run it remotely and not physically while on the Pi.
You would think they would get it working on WinIoT first, but who knows.

Re: Powershell for Raspbian?

Posted: Tue Aug 22, 2017 9:11 am
by apetitjean
Hello everyone!

As you may know, Microsoft just released .Net Core 2.0 that now supports (still in preview) ARM32 processors.
I haven't had the time yet to try but my guess is it is now theoretically possible to run PowerShell version 6 (still in beta too) on Raspberry.

Here are some interesting pointers :
- Installing PowerShell on Raspberry (translated discussion thread from French)
- Installer PowerShell sur Raspberry Pi (Original topic)

Arnaud

Re: Powershell for Raspbian?

Posted: Mon Aug 28, 2017 1:13 pm
by eshess
apetitjean wrote:
Tue Aug 22, 2017 9:11 am
Hello everyone!

As you may know, Microsoft just released .Net Core 2.0 that now supports (still in preview) ARM32 processors.
I haven't had the time yet to try but my guess is it is now theoretically possible to run PowerShell version 6 (still in beta too) on Raspberry.

Here are some interesting pointers :
- Installing PowerShell on Raspberry (translated discussion thread from French)
- Installer PowerShell sur Raspberry Pi (Original topic)

Arnaud
I tried this weekend and failed. RasPi 3 and both Ubuntu 16.04 and Raspbian. I compiled the native binaries on the pi after cloning in the PS repo, then had to copy that out to a dev box, since the .NET SDK is also unsupported on ARM at this time, compile there and ship back to the pi. PS starts up but then crashes with a segmentation fault. Something to do with those native binaries.

Re: Powershell for Raspbian?

Posted: Thu Aug 31, 2017 7:35 pm
by eshess
Note that an issue is open for this on the repo:
https://github.com/powershell/powershell/issues/2463

Other people encountered the same and opened an issue on the dotnet repo to fix the local binaries:
https://github.com/dotnet/coreclr/issues/13667

Re: Powershell for Raspbian?

Posted: Mon Sep 11, 2017 10:58 pm
by CecilWard
I would love to see Powershell for ARM. The object pipeline thing is so sensible. I just don't know how o/s dependent the code is though, for all I know some of the spec wouldn't make sense away from Windows, never mind the code? If it doesn't run on ARM processors then that's just sloppy design or rubbish coding. If they can't run it one Win RT for ARM then they should go and stand in the corner until home time.

Re: Powershell for Raspbian?

Posted: Tue Sep 12, 2017 10:49 am
by Heater
Djarid,
Pipelining entire objects instead of just the stdout alone is sufficient to want to have this in raspbian.
CecilWard,
The object pipeline thing is so sensible.
Could either of you tell me how pipelining objects in shell commands is in anyway useful on an OS where none of the programs that run on it support piping objects in or out?

In fact can you give me an example of when piping objects is useful ?

To my mind the ultimate simplicity of Unix pipes just shoveling byte streams around is one of the main strengths of a Unix system. One can connect anything to anything even if those programs were developed independently and have no knowledge of each other.

If I want to pipe objects around I can overlay that on top of Unix pipes by using JSON format or Protocol Buffers or whatever I like.

Re: Powershell for Raspbian?

Posted: Mon Oct 09, 2017 9:30 pm
by lwsrbrts
FYI, a commit was made to the PowerShell repo with instructions on how to get 6.0.0-beta8 running on a Pi2 or Pi3 only. Pi Zero and other similar devices aren't supported - only where CoreCLR is supported.

Requires a cross-compile of PowerShell inside Ubuntu and a copy of the bits to the Pi.

https://github.com/PowerShell/PowerShel ... spberry-Pi

Re: Powershell for Raspbian?

Posted: Sun Dec 31, 2017 4:04 pm
by RPiRoss

Re: Powershell for Raspbian?

Posted: Sun Dec 31, 2017 4:24 pm
by fruitoftheloom
RPiRoss wrote:
Sun Dec 31, 2017 4:04 pm
Yes! You can!

https://github.com/PowerShell/PowerShel ... d#raspbian

Actually EXPERIMENTAL in Raspbian Stretch:

https://github.com/PowerShell/PowerShell