mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-27 09:08:58 +01:00
82 lines
1.9 KiB
Markdown
82 lines
1.9 KiB
Markdown
Script: *install-basic-snaps.ps1*
|
|
========================
|
|
|
|
This PowerShell script installs 18 basic Linux snaps.
|
|
|
|
Parameters
|
|
----------
|
|
```powershell
|
|
PS> ./install-basic-snaps.ps1 [<CommonParameters>]
|
|
|
|
[<CommonParameters>]
|
|
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
|
```
|
|
|
|
Example
|
|
-------
|
|
```powershell
|
|
PS> ./install-basic-snaps.ps1
|
|
|
|
```
|
|
|
|
Notes
|
|
-----
|
|
Author: Markus Fleschutz | License: CC0
|
|
|
|
Related Links
|
|
-------------
|
|
https://github.com/fleschutz/PowerShell
|
|
|
|
Script Content
|
|
--------------
|
|
```powershell
|
|
<#
|
|
.SYNOPSIS
|
|
Installs basic Linux snaps
|
|
.DESCRIPTION
|
|
This PowerShell script installs 18 basic Linux snaps.
|
|
.EXAMPLE
|
|
PS> ./install-basic-snaps.ps1
|
|
.LINK
|
|
https://github.com/fleschutz/PowerShell
|
|
.NOTES
|
|
Author: Markus Fleschutz | License: CC0
|
|
#>
|
|
|
|
try {
|
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
|
if (!$IsLinux) { throw "Only Linux currently support snaps" }
|
|
|
|
"⏳ Installing 19 Snaps (sorted alphabetically)..."
|
|
sudo snap install ant
|
|
sudo snap install audacity
|
|
sudo snap install bashtop
|
|
sudo snap install chromium
|
|
sudo snap install cmake
|
|
sudo snap install cups
|
|
sudo snap install emacs --classic
|
|
sudo snap install ffmpeg --edge
|
|
sudo snap install firefox
|
|
sudo snap install gimp
|
|
sudo snap install go
|
|
sudo snap install gradle --classic
|
|
sudo snap install groovy --classic
|
|
sudo snap install hugo
|
|
sudo snap install jenkins --edge --classic
|
|
sudo snap install nano --classic
|
|
sudo snap install nextcloud
|
|
sudo snap install node --classic
|
|
sudo snap install plexmediaserver
|
|
|
|
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
|
"✔️ installed 19 Snaps in $Elapsed sec"
|
|
exit 0 # success
|
|
} catch {
|
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
exit 1
|
|
}
|
|
```
|
|
|
|
*(generated by convert-ps2md.ps1 using the comment-based help of install-basic-snaps.ps1 as of 08/15/2024 09:50:48)*
|