Как установить power shell на ubuntu linux

Как установить power shell на ubuntu linux


News of The Week: Apple WWDC 2024

Join us as we explore the latest innovations, product reveals, and updates from one of the most anticipated tech events of the year.

Как установить power shell на ubuntu linux


How to Use GPT-4o Voice Mode

In this tutorial, learn how to maximize your content creation with GPT-4o Voice Mode. Discover the step-by-step process to effectively use this cutting-edge feature.

Как установить power shell на ubuntu linux

Как установить power shell на ubuntu linux


Adobe Sued by US Government

Как установить power shell на ubuntu linux

Как установить power shell на ubuntu linux


OpenAI GPT-4o: Your New AI BFF?

In this video, we delve deep into the latest release from OpenAI, GPT-4o, to determine if it’s truly worthy of being your new AI best friend forever, or if it’s just another update from the tech giant.

Как установить power shell на ubuntu linux


iPad Pro M4: Biggest Updates and Features

In this week’s Top 5, we dive into the exciting world of Apple’s 2024 Let Loose Event, focusing on the groundbreaking updates, features, and add-ons for the iPad Pro M4. From enhanced performance, innovative technologies, a new Magic Keyboard, and Apple Pencil Pro this recap will cover everything you need to know about the latest iPad Pro model.

Как установить power shell на ubuntu linux


How to use GPT-4o Voice Mode

In this tutorial, learn how to maximize your content creation with GPT-4o Voice Mode. Discover the step-by-step process to effectively use this cutting-edge feature.

I’m still somewhat new to Ubuntu / Linux so please bear with me if I’m not using correct terminology. I’m on Ubuntu 20.04 but I use Putty to perform everything via the terminal.

I’m using a collection of shell scripts (.sh files) and PowerShell scripts (.ps1 files) to retrieve Azure metric data. I had it setup along with crontab to run every 15 minutes and it was working for about a month with no problems. I’m using PowerShell 7.4.0 which is installed from snap/snapd.

:/>  Настройка регистрации power shell для просмотра аномалий power shell в splunk uba

The scripts no longer work with crontab. Specifically, it doesn’t retrieve the data from Azure anymore. I know this isn’t an Azure issue because I can run the script fine manually in the command line using pwsh /full/path/xyz.sh <parameter>. However, when I try to run the script using sudo before pwsh, I get two lines of errors:

Stack overflow.
Aborted

executable does not belong to a package, ignoring

Hopefully this is enough information but I can provide more if needed.

sudo apt install git make gawk
git clone --recursive --depth 1 --shallow-submodules https://github.com/akinomyoga/ble.sh.git
make -C ble.sh install PREFIX=~/.local
echo 'source ~/.local/share/blesh/ble.sh' >> ~/.bashrc

After that close and reopen your terminal and you should have autosuggestions enabled:

terminal showing autosuggestions

  • Close all the ble.sh sessions (the Bash interactive sessions with ble.sh)

    • Remove the added lines in .bashrc.
    • Remove blerc files (~/.blerc or ~/.config/blesh/init.sh) if any.
    • Remove the state directory ~/.local/state/blesh if any.
  • Remove the cache directory ~/.cache/blesh if any.