diff --git a/Scripts/clean-repos.ps1 b/Scripts/clean-repos.ps1 index aec8026a..14cc5942 100755 --- a/Scripts/clean-repos.ps1 +++ b/Scripts/clean-repos.ps1 @@ -29,7 +29,7 @@ try { [int]$Step = 1 foreach ($Folder in $Folders) { $FolderName = (get-item "$Folder").Name - "๐งน Cleaning ๐$FolderName ($Step/$FolderCount)..." + "๐ Step $Step/$FolderCount: Cleaning ๐$FolderName..." & git -C "$Folder" clean -xfd -f # force + recurse into dirs + don't use the standard ignore rules if ($lastExitCode -ne "0") { throw "'git clean -xfd -f' failed" } diff --git a/Scripts/configure-git.ps1 b/Scripts/configure-git.ps1 index 526a106f..e85f99d6 100755 --- a/Scripts/configure-git.ps1 +++ b/Scripts/configure-git.ps1 @@ -18,11 +18,11 @@ try { if ($EmailAddress -eq "") { $EmailAddress = read-host "Enter your e-mail address"} if ($FavoriteEditor -eq "") { $FavoriteEditor = read-host "Enter your favorite text editor (emacs,nano,vi,vim,...)" } - "Step 1/3: Searching for Git..." + "๐ Step 1/3: Searching for Git executable..." & git --version if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" } - "Step 2/3: Configuring basic settings..." + "๐ Step 2/3: Configuring basic settings..." & git config --global user.name $FullName & git config --global user.email $EmailAddress & git config --global core.editor $FavoriteEditor @@ -35,7 +35,7 @@ try { & git config --global pull.rebase false if ($lastExitCode -ne "0") { throw "'git config' failed" } - "Step 3/3: Adding basic shortcuts (git st, git ls, etc.)..." + "๐ Step 3/3: Adding basic shortcuts (git st, git ls, etc.)..." & git config --global alias.co "checkout" & git config --global alias.br "branch" & git config --global alias.ci "commit" diff --git a/Scripts/fetch-repos.ps1 b/Scripts/fetch-repos.ps1 index a9108faa..1d364d61 100755 --- a/Scripts/fetch-repos.ps1 +++ b/Scripts/fetch-repos.ps1 @@ -29,7 +29,7 @@ try { [int]$Step = 1 foreach ($Folder in $Folders) { $FolderName = (get-item "$Folder").Name - "Step $Step/$($FolderCount): ๐ข Fetching ๐$FolderName..." + "๐ Step $Step/$($FolderCount): Fetching ๐$FolderName..." & git -C "$Folder" fetch --all --recurse-submodules --prune --prune-tags --jobs=4 if ($lastExitCode -ne "0") { throw "'git fetch' failed" } diff --git a/Scripts/install-knot-resolver.ps1 b/Scripts/install-knot-resolver.ps1 index d99919df..23aea446 100644 --- a/Scripts/install-knot-resolver.ps1 +++ b/Scripts/install-knot-resolver.ps1 @@ -16,16 +16,16 @@ try { $StopWatch = [system.diagnostics.stopwatch]::startNew() - "Step 1/4: Install Knot Resolver..." + "๐ Step 1/4: Installing Knot Resolver..." sudo snap install knot-resolver-gael - "Step 2/4: Copy default configuration..." + "๐ Step 2/4: Copying default configuration..." sudo cp "$PSScriptRoot/../Data/default.kresd.conf" /var/snap/knot-resolver-gael/current/kresd.conf - "Step 3/4: Let User Configure..." + "๐ Step 3/4: Let user configure..." sudo vi /var/snap/knot-resolver-gael/current/kresd.conf - "Step 4/4: Start Knot Resolver..." + "๐ Step 4/4: Starting Knot Resolver..." sudo snap start knot-resolver-gael [int]$Elapsed = $StopWatch.Elapsed.TotalSeconds diff --git a/Scripts/install-updates.ps1 b/Scripts/install-updates.ps1 index 3d285194..c7ed4268 100755 --- a/Scripts/install-updates.ps1 +++ b/Scripts/install-updates.ps1 @@ -17,16 +17,16 @@ try { $StopWatch = [system.diagnostics.stopwatch]::startNew() if ($IsLinux) { - "Step 1/4: Loading update infos..." + "๐ Step 1/4: Loading update infos..." sudo apt update - "Step 2/4: Installing updates..." + "๐ Step 2/4: Installing updates..." sudo apt upgrade - "Step 3/4: Removing obsolete packages..." + "๐ Step 3/4: Removing obsolete packages..." sudo apt autoremove - "Step 4/4: Refreshing snap packages..." + "๐ Step 4/4: Refreshing snap packages..." sudo snap refresh } else { "Sorry, not supported yet" diff --git a/Scripts/install-wsl.ps1 b/Scripts/install-wsl.ps1 index 41764f7d..cdd838b0 100755 --- a/Scripts/install-wsl.ps1 +++ b/Scripts/install-wsl.ps1 @@ -21,13 +21,13 @@ try { & wsl --install } else { - "Step 1/3: Enable WSL..." + "๐ Step 1/3: Enable WSL..." & dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart - "Step 2/3: Enable virtual machine platform..." + "๐ Step 2/3: Enable virtual machine platform..." & dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart - "Step 3/3: Enable WSL2..." + "๐ Step 3/3: Enable WSL version 2..." & wsl --set-default-version 2 } diff --git a/Scripts/publish-to-ipfs.ps1 b/Scripts/publish-to-ipfs.ps1 index ade5b243..ad41ece0 100755 --- a/Scripts/publish-to-ipfs.ps1 +++ b/Scripts/publish-to-ipfs.ps1 @@ -19,26 +19,26 @@ try { $StopWatch = [system.diagnostics.stopwatch]::startNew() "" - "Step 1/3: Searching IPFS executable..." + "๐ Step 1/3: Searching IPFS executable..." & ipfs --version if ($lastExitCode -ne "0") { throw "Can't execute 'ipfs' - make sure IPFS is installed and available" } if (test-path "$FilePattern" -pathType container) { "" - "Step 2/3: Publishing folder $FilePattern/..." + "๐ Step 2/3: Publishing folder $FilePattern/..." & ipfs add -r "$FilePattern" > $HashList [int]$Count = 1 "" - echo "Step 3/3: Calculating digital forensics hashes to $DF_HASHES ..." + "๐ Step 3/3: Calculating digital forensics hashes to $DF_HASHES ..." & nice hashdeep -c md5,sha1,sha256 -r -d -l -j 1 "$FilePattern" > $DF_Hashes } else { $FileList = (get-childItem "$FilePattern") foreach ($File in $FileList) { if (test-path "$FilePattern" -pathType container) { - "Step 2/3: Publishing folder $File/..." + "๐ Step 2/3: Publishing folder $File/..." & ipfs add -r "$File" >> $HashList } else { - "Step 2/3: Publishing file $File..." + "๐ Step 2/3: Publishing file $File..." & ipfs add "$File" >> $HashList } } diff --git a/Scripts/start-ipfs-server.ps1 b/Scripts/start-ipfs-server.ps1 index 9dcb1ec3..85dd25f0 100755 --- a/Scripts/start-ipfs-server.ps1 +++ b/Scripts/start-ipfs-server.ps1 @@ -15,14 +15,14 @@ try { $StopWatch = [system.diagnostics.stopwatch]::startNew() "" - "Step 1/5: Searching for IPFS executable..." + "๐ Step 1/5: Searching for IPFS executable..." & ipfs --version if ($lastExitCode -ne "0") { throw "Can't execute 'ipfs' - make sure IPFS is installed and available" } "" - "Step 2/5: Initializing IPFS with server profile..." + "๐ Step 2/5: Initializing IPFS with server profile..." & ipfs init --profile server - "Step 3/5: Configuring IPFS..." + "๐ Step 3/5: Configuring IPFS..." & ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001 if ($lastExitCode -ne "0") { throw "'ipfs config Addresses.API' failed" } @@ -36,11 +36,11 @@ try { & ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '[\"PUT\", \"POST\"]' if ($lastExitCode -ne "0") { throw "'ipfs config Access-Control-Allow-Methods' failed" } "" - "Step 4/5: Increasing UDP receive buffer size..." + "๐ Step 4/5: Increasing UDP receive buffer size..." & sudo sysctl -w net.core.rmem_max=2500000 if ($lastExitCode -ne "0") { throw "'sysctl' failed" } "" - "Step 5/5: Starting IPFS daemon..." + "๐ Step 5/5: Starting IPFS daemon..." # Start-Process nohup 'ipfs daemon' Start-Process nohup -ArgumentList 'ipfs','daemon' -RedirectStandardOutput "$HOME/console.out" -RedirectStandardError "$HOME/console.err" diff --git a/Scripts/upgrade-ubuntu.ps1 b/Scripts/upgrade-ubuntu.ps1 index 2871da48..df93e8d5 100644 --- a/Scripts/upgrade-ubuntu.ps1 +++ b/Scripts/upgrade-ubuntu.ps1 @@ -13,14 +13,12 @@ try { "" - "Step 1/4: Perform a Backup" - "--------------------------" + "๐ Step 1/4: Perform a backup" "It's strongly recommended to perform a backup of your data BEFORE upgrading the OS!" $Confirm = read-host "Press <Return> to continue..." "" - "Step 2/4: Install update-manager-core, Upgrade Packages & Reboot" - "----------------------------------------------------------------" + "๐ Step 2/4: Install update-manager-core, Upgrade Packages & Reboot" $Confirm = read-host "Enter <yes> to perform this step (otherwise this step will be skipped)" if ($Confirm -eq "yes") { sudo apt install update-manager-core @@ -31,16 +29,14 @@ try { } "" - "Step 3/4: Remove obsolete Kernel Modules" - "----------------------------------------" + "๐ Step 3/4: Remove obsolete kernel modules" $Confirm = read-host "Enter <yes> to perform this step (otherwise this step will be skipped)" if ($Confirm -eq "yes") { sudo apt --purge autoremove } "" - "Step 4/4: Upgrade Ubuntu & Reboot" - "---------------------------------" + "๐ Step 4/4: Upgrade Ubuntu & reboot" $Confirm = read-host "Enter <yes> to perform this step (otherwise this step will be skipped)" if ($Confirm -eq "yes") { sudo do-release-upgrade # to latest LTS version