Categories
Latest News

How to get started with Microsoft Powershell on a Chromebook

Advertisement

Powershell on Chrome OSSource: Android Central

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

But what about if you're using a Chromebook, either personally or professionally? Well, so long as it's a recent machine with support for Linux apps, you can install and use Microsoft Powershell.

Here's 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 you to install the Linux version of Visual Studio Code on your Chromebook.

If you 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

    Linux on Chrome OSSource: Android Central

  4. At the next window, click Next.

    Linux on Chrome OS

    Linux on Chrome OSSource: Android Central

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

    Linux on Chrome OS

    Linux on Chrome OSSource: Android Central

  7. Click Install.

    Linux on Chrome OS

    Linux on Chrome OSSource: Android Central

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

4K TVs, Amazon Echos, Beats headphones & more are already at Prime Day pricing

Downloading and installing Powershell on a Chromebook

Powershell

PowershellSource: Android Central

While Powershell on Linux isn't exactly the same as on Windows — modules and commands specific to Windows are naturally unavailable — it's available for folks who need it. Once Linux is set up on your Chromebook, we can go about installing Powershell.

We'll be installing Powershell 7 here, and the process is really straightforward.

  1. Go to the Powershell release page.
  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 short installation process will now occur, and you'll receive a notification when it's all done.

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

How to launch Powershell inside the terminal

Powershell

PowershellSource: Android Central

Powershell is an entirely terminal-based application, and on a Chromebook, it 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 see a short bit of blurb beginning with the Powershell version, and your command line will change from yourusername@penguin

Advertisement
to PS /home/yourusername.

You're now all set to use Powershell on your Chromebook. Any time you want to use it, simply enter the command to launch it and exit out when you're done by typing exit.

But if you're going to use it a lot, you might want to set it as the default shell for your Chromebook's Linux terminal.

Setting Powershell as the default terminal shell

Powershell

PowershellSource: Android Central

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

To do this, simply fire up the terminal and enter this code:

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

Reboot the terminal, and you'll now be taken straight into Powershell and no longer see the regular yourusername@penguin.

And that's all you need to do to get up and running with Microsoft Powershell on your Chromebook. Whether you're just looking to poke around and learn some of the basics or you need to use it for work or development purposes, the Linux version of Powershell works great on a Chromebook.

Running water or a smoke alarm? Your Android phone will now alert youRunning water or a smoke alarm? Your Android phone will now alert you

Running water or a smoke alarm? Your Android phone will now alert you

Your Android phone is about to get a little bit smarter. Thanks to a new feature called Sound Notifications, you'll now be alerted when certain sounds — like a smoke alarm or barking dog — are detected.

You can now use the Google Assistant to control your favorite appsYou can now use the Google Assistant to control your favorite apps

You can now use the Google Assistant to control your favorite apps

Google Assistant has gained a new feature that makes it possible for you to interact with apps using your voice.

OnePlus 8T design officially revealed ahead of October 14 launchOnePlus 8T design officially revealed ahead of October 14 launch

OnePlus 8T design officially revealed ahead of October 14 launch

OnePlus CEO Pete Lau has shed light on some of the design features of the company's upcoming 8T flagship phone. The phone will be officially unveiled on October 14.

Make your Chromebook more powerful with these docking stationsMake your Chromebook more powerful with these docking stations

Make your Chromebook more powerful with these docking stations

If you need to turn your Chromebook into an easy to use desktop once in a while, these docking stations are exactly what you are looking for.

Original Article

Advertisement

Leave a Reply

Your email address will not be published. Required fields are marked *