PowerShell/Docs/install-basic-snaps.md

76 lines
1.8 KiB
Markdown
Raw Normal View History

2023-07-29 09:55:25 +02:00
## Script: *install-basic-snaps.ps1*
2023-05-26 12:20:18 +02:00
This PowerShell script installs 18 basic Linux snaps.
## Parameters
```powershell
2023-07-29 09:45:37 +02:00
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.
```
## Example
```powershell
PS> ./install-basic-snaps
```
## Notes
Author: Markus Fleschutz | License: CC0
## Related Links
https://github.com/fleschutz/PowerShell
2023-07-29 09:55:25 +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-07-29 09:55:25 +02:00
*(generated by convert-ps2md.ps1 using the comment-based help of install-basic-snaps.ps1 as of 07/29/2023 09:55:11)*