Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Mac Terminal – PowerShell on Mac OS

Posted on February 2, 2017 By David Kittell
cd ~/
curl -o PowerShell-ALPHA-15.pkg https://github-cloud.s3.amazonaws.com/releases/49609581/c2031594-e2e3-11e6-947c-6b2c83311731.pkg\?X-Amz-Algorithm\=AWS4-HMAC-SHA256\&X-Amz-Credential\=AKIAISTNZFOVBIJMK3TQ%2F20170202%2Fus-east-1%2Fs3%2Faws4_request\&X-Amz-Date\=20170202T145103Z\&X-Amz-Expires\=300\&X-Amz-Signature\=3bebeba286469a19334df9c6f5a50fa6e7eb41352d8a54fc2f7d0d542e03aba6\&X-Amz-SignedHeaders\=host\&actor_id\=0\&response-content-disposition\=attachment%3B%20filename%3Dpowershell-6.0.0-alpha.15.pkg\&response-content-type\=application%2Foctet-stream

sudo installer -pkg ~/PowerShell-ALPHA-15.pkg -target /
rm  ~/PowerShell-ALPHA-15.pkg

curl -o dotnet-dev-osx-x64.1.0.0-ALPHA.pkg https://download.microsoft.com/download/1/0/C/10C868F3-EF61-47A7-95CF-FF2AE042D65F/dotnet-dev-osx-x64.1.0.0-preview2-003148.pkg

sudo installer -pkg ~/dotnet-dev-osx-x64.1.0.0-ALPHA.pkg -target /
rm ~/dotnet-dev-osx-x64.1.0.0-ALPHA.pk

brew update
brew install openssl --force
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/

Install-Package -Name AzureRM.NetCore.Preview -Source https://www.powershellgallery.com/api/v2 -ProviderName NuGet -ExcludeVersion -Destination /usr/local/microsoft/powershell/6.0.0-alpha.11/Modules

Resource: https://blog.azureandbeyond.com/2016/11/11/powershell-azure-and-macos-absolutely/

All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code Mac OS X Shell Mac OSX PowerShell UNIX UNIX Shell Scripts

Post navigation

Previous post
Next post

Related Posts

Get Windows Shortcut (.lnk) Details

Posted on March 17, 2016

The below will help you get the full path of a Windows shortcut (.lnk) in your program. The below examples specifically create a command-line executable file but you could use the function in your program just as well. View the full code in GitHub at https://github.com/dkittell/lnk-parser using System; using System.Collections.Generic;…

Read More

Ektron DMS File List

Posted on February 3, 2015October 26, 2015

Following my code on Ektron – DMS Content List I created this Ektron Widget <%@ Control Language="C#" AutoEventWireup="true" CodeFile="DMSFileList.aspx.cs" Inherits="widgets_DMSFileList" Debug="true" %> <asp:MultiView ID="ViewSet" runat="server" ActiveViewIndex="0"> <asp:View ID="View" runat="server"> <asp:Label runat="server" ID="lblDMSList">DMS Files</asp:Label> <asp:ListView ID="lvDMSList" runat="server" ItemPlaceholderID="aspItemPlaceholder" Visible="false"> <EmptyDataTemplate> <asp:Literal ID="litEmptyDataBasic" runat="server" Text="text" OnInit="litEmptyData_Init" /> </EmptyDataTemplate> <LayoutTemplate> <div class="form" style="max-width:…

Read More

PowerShell – Set IP Address

Posted on November 9, 2015

function Set-IPAddress { param( [string]$networkinterface =$(read-host "Enter the name of the NIC (ie Local Area Connection)"), [string]$ip = $(read-host "Enter an IP Address (ie 10.10.10.10)"), [string]$mask = $(read-host "Enter the subnet mask (ie 255.255.255.0)"), [string]$gateway = $(read-host "Enter the current name of the NIC you want to rename"), [string]$dns1 =…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes