Powershell for Raspbian?
With Powershell now open source, will we see Powershell for Raspbian?
- RaTTuS
- Posts: 10703
- Joined: Tue Nov 29, 2011 11:12 am
- Location: North West UK
- Contact: Twitter YouTube
Re: Powershell for Raspbian?
why?
what is wrong with bash
what is wrong with bash
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe
WARNING - some parts of this post may be erroneous YMMV
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe
Re: Powershell for Raspbian?
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?
That's just being lazy !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?
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson
Re: Powershell for Raspbian?
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
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
- DougieLawson
- Posts: 40564
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: Powershell for Raspbian?
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.
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
- RaTTuS
- Posts: 10703
- Joined: Tue Nov 29, 2011 11:12 am
- Location: North West UK
- Contact: Twitter YouTube
Re: Powershell for Raspbian?
as have I - it is very very useful more meDougieLawson 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.
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe
WARNING - some parts of this post may be erroneous YMMV
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe
Re: Powershell for Raspbian?
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
Rasbian Latest Builds on SourceForge at https://sourceforge.net/projects/raspbian/
Github at https://github.com/ssfdre38
3 2B & 1 3B
Github at https://github.com/ssfdre38
3 2B & 1 3B
Re: Powershell for Raspbian?
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?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
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?
they just dont support ARMf so they wont support raspbian to use Power Shell and yes i have tested beta's and their alphas
Rasbian Latest Builds on SourceForge at https://sourceforge.net/projects/raspbian/
Github at https://github.com/ssfdre38
3 2B & 1 3B
Github at https://github.com/ssfdre38
3 2B & 1 3B
Re: Powershell for Raspbian?
@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?
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?
Whose Bash? Come on, credit where credit is due.DougieLawson wrote:.... when Ubuntu's bash is natively installable ...
Re: Powershell for Raspbian?
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
Interested parties should login to GitHub and use 'add your reaction' to vote for this change

- DougieLawson
- Posts: 40564
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
- Contact: Website Twitter
Re: Powershell for Raspbian?
Don't be pedantic. The deal is between Microsoft & Canonical.ewaller wrote:Whose Bash? Come on, credit where credit is due.DougieLawson wrote:.... when Ubuntu's bash is natively installable ...
Any language using left-hand whitespace for syntax is ridiculous
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.
Any requirement to use a crystal ball or mind reading will result in me ignoring your question.
Re: Powershell for Raspbian?
But is that ARM WinIoT or ARM Raspbian ?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?
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?
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 
Don't have access to my Pi currenly in oder to try it and confirm


Re: Powershell for Raspbian?
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.
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.
-
- Posts: 1
- Joined: Tue Aug 22, 2017 9:00 am
Re: Powershell for Raspbian?
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
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?
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.apetitjean wrote: ↑Tue Aug 22, 2017 9:11 amHello 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?
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
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?
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?
Djarid,
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.
CecilWard,Pipelining entire objects instead of just the stdout alone is sufficient to want to have this in raspbian.
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?The object pipeline thing is so sensible.
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.
Memory in C++ is a leaky abstraction .
Re: Powershell for Raspbian?
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
Requires a cross-compile of PowerShell inside Ubuntu and a copy of the bits to the Pi.
https://github.com/PowerShell/PowerShel ... spberry-Pi
-
- Posts: 25262
- Joined: Tue Mar 25, 2014 12:40 pm
- Location: Delightful Dorset
Re: Powershell for Raspbian?
RPiRoss wrote: ↑Sun Dec 31, 2017 4:04 pmYes! You can!
https://github.com/PowerShell/PowerShel ... d#raspbian
Actually EXPERIMENTAL in Raspbian Stretch:
https://github.com/PowerShell/PowerShell
The information is out there....you just have to let it in.
My other Linux machine is a ChromeBox
My other Linux machine is a ChromeBox