banner



How to install Microsoft PowerShell on a Chromebook

Powershell on Chrome OS Source: Windows Cardinal

PowerShell is an immensely popular and powerful tool that comes built into Windows 10 with applications beyond enterprise, development, automation, then much more. But PowerShell is also cross-platform and open-source, with versions available for Mac OS and Linux, too.

But what almost if you're using a Chromebook, either personally or professionally? Well, and so long as it's a recent car with back up for Linux apps, you tin can install and use Microsoft PowerShell.

Hither'southward what you need to know.

Making sure Linux is enabled on your Chromebook

What makes the magic happen is the Crostini Linux container on Chrome OS, which will allow yous to install the Linux version of Visual Studio Code on your Chromebook.

If you lot don't already have that enabled, it's really straightforward.

  1. Open Settings.
  2. Locate Linux (Beta) in the sidebar.
  3. Click Turn on.

    Linux on Chrome OS Source: Windows Central

  4. At the next window, click Side by side.

    Linux on Chrome OS Source: Windows Central

  5. Requite your Linux install a username.
  6. Decide how much space you want to dedicate from your internal storage to it.

    Linux on Chrome OS Source: Windows Central

  7. Click Install.

    Linux on Chrome OS Source: Windows Cardinal

The Linux container will at present brainstorm to download and install itself on your Chromebook. You'll know information technology's finished when a terminal window pops up, and then you can move on to the next step.

Downloading and installing PowerShell on a Chromebook

Powershell Source: Windows Central

While PowerShell on Linux isn't exactly the same every bit on Windows — modules and commands specific to Windows are naturally unavailable — information technology'south available for folks who need it. Once Linux is gear up on your Chromebook, we can become most installing PowerShell.

We'll be installing PowerShell 7 here, and the procedure is actually straightforward.

  1. Go to the PowerShell release folio.
  2. Download the .deb installer for Debian 10.
  3. Locate the downloaded file, by default, it will be in your downloads folder.
  4. Right-click and select Install with Linux (beta).
  5. Click install.

A fairly brusque installation process will now occur, and y'all'll receive a notification when it's all washed.

The big difference between PowerShell and other most other Linux apps installed on a Chromebook is that in that location won't be an app icon announced in the Linux Apps folder in your app drawer.

How to launch PowerShell within the last

Powershell Source: Windows Key

PowerShell is an entirely concluding-based application, and on a Chromebook, information technology operates inside the Linux terminal.

Open the Linux terminal either by searching for it or just heading to your Linux apps folder and when the virtual machine has done its startup, enter this simple command.

pwsh

You'll now meet a short scrap of blurb beginning with the PowerShell version, and your control line will change from yourusername@penguin to PS /home/yourusername.

Yous're now all fix to use PowerShell on your Chromebook. Whatever fourth dimension yous desire to use information technology, simply enter the control to launch it and exit out when y'all're done by typing exit.

Just if you're going to apply information technology a lot, you might want to ready it as the default shell for your Chromebook'southward Linux terminal.

Setting PowerShell equally the default terminal vanquish

Powershell Source: Windows Central

PowerShell's bonus is that it doesn't overwrite your existing shell; any Linux commands you could normally enter in the bash beat out can too be entered in PowerShell. Equally such, if you're going to use PowerShell a lot, you can set it equally your default shell and not worry about losing any functionality.

To exercise this, simply fire up the last and enter this code.

sudo chsh -s /usr/bin/pwsh $USER

Reboot the concluding, and you'll now be taken straight into PowerShell and no longer run across the regular yourusername@penguin.

And that's all yous need to exercise to get up and running with Microsoft PowerShell on your Chromebook. Whether y'all're only looking to poke around and learn some of the basics or yous need to use it for work or development purposes, the Linux version of PowerShell works bang-up on a Chromebook.

Updating PowerShell on your Chromebook

Powershell Source: Windows Primal

If you need to update PowerShell, either to newer stable releases or to a preview build, the procedure should exist straightforward. In the first case, you lot should exist able to follow the steps higher up to download the installer for the newer build and simply install it over the acme.

If that doesn't work for any reason you may demand to uninstall the existing PowerShell first by inbound:

sudo apt remove powershell

If you're withal having issues and so the merely option (spoken from experience) could well be to completely remove Linux from your Chromebook and showtime from scratch. If you lot've been poking around and making changes for some time y'all may well take dislodged something that affects PowerShell and this volition near certainly resolve whatever issues.

Source: https://www.windowscentral.com/how-install-microsoft-powershell-chromebook

Posted by: roddeneaddelartion.blogspot.com

0 Response to "How to install Microsoft PowerShell on a Chromebook"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel