2023-07-29 10:34:04 +02:00
|
|
|
*install-basic-snaps.ps1*
|
|
|
|
================
|
2023-05-26 12:20:18 +02:00
|
|
|
|
|
|
|
This PowerShell script installs 18 basic Linux snaps.
|
|
|
|
|
2023-07-29 10:04:38 +02:00
|
|
|
Parameters
|
|
|
|
----------
|
2023-05-26 12:20:18 +02:00
|
|
|
```powershell
|
2023-07-29 10:15:44 +02:00
|
|
|
PS> ./install-basic-snaps.ps1 [<CommonParameters>]
|
2023-05-26 12:20:18 +02:00
|
|
|
|
|
|
|
[<CommonParameters>]
|
|
|
|
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
|
|
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
|
|
|
```
|
|
|
|
|
2023-07-29 10:04:38 +02:00
|
|
|
Example
|
|
|
|
-------
|
2023-05-26 12:20:18 +02:00
|
|
|
```powershell
|
|
|
|
PS> ./install-basic-snaps
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2023-07-29 10:04:38 +02:00
|
|
|
Notes
|
|
|
|
-----
|
2023-05-26 12:20:18 +02:00
|
|
|
Author: Markus Fleschutz | License: CC0
|
|
|
|
|
2023-07-29 10:04:38 +02:00
|
|
|
Related Links
|
|
|
|
-------------
|
2023-05-26 12:20:18 +02:00
|
|
|
https://github.com/fleschutz/PowerShell
|
|
|
|
|
2023-07-29 10:04:38 +02:00
|
|
|
Script Content
|
|
|
|
--------------
|
2023-05-26 12:20:18 +02:00
|
|
|
```powershell
|
|
|
|
<#
|
|
|
|
.SYNOPSIS
|
|
|
|
Installs basic Linux snaps
|
|
|
|
.DESCRIPTION
|
|
|
|
This PowerShell script installs 18 basic Linux snaps.
|
|
|
|
.EXAMPLE
|
|
|
|
PS> ./install-basic-snaps
|
|
|
|
.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" }
|
|
|
|
|
2023-07-29 09:45:37 +02:00
|
|
|
"⏳ Installing 19 Snaps (sorted alphabetically)..."
|
2023-05-26 12:20:18 +02:00
|
|
|
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
|
2023-07-29 09:45:37 +02:00
|
|
|
sudo snap install gradle --classic
|
2023-05-26 12:20:18 +02:00
|
|
|
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
|
2023-07-29 09:45:37 +02:00
|
|
|
"✔️ installed 19 Snaps in $Elapsed sec"
|
2023-05-26 12:20:18 +02:00
|
|
|
exit 0 # success
|
|
|
|
} catch {
|
|
|
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2023-08-06 11:42:46 +02:00
|
|
|
*(generated by convert-ps2md.ps1 using the comment-based help of install-basic-snaps.ps1 as of 08/06/2023 11:42:27)*
|