Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 214a1e7

Browse files
committed
customizations
1 parent 08c5cd4 commit 214a1e7

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

PostInstall/PostInstall.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function cloudprovider {
6060

6161
$paperspace = $(
6262
Try {
63-
(Invoke-WebRequest -uri http://metadata.paperspace.com/meta-data/machine -TimeoutSec 5)
63+
(Invoke-WebRequest -uri http://169.254.169.254/meta-data/machine -TimeoutSec 5)
6464
}
6565
catch {
6666
}
@@ -963,7 +963,7 @@ foreach ($func in $ScripttaskList) {
963963
& $func $PercentComplete
964964
}
965965

966-
StartGPUUpdate -DontPromptPasswordUpdateGPU:$DontPromptPasswordUpdateGPU
966+
#StartGPUUpdate -DontPromptPasswordUpdateGPU:$DontPromptPasswordUpdateGPU
967967
Start-ScheduledTask -TaskName "Setup Team Machine"
968968
ProgressWriter -status "Done" -percentcomplete 100
969969
Write-Host "1. Open Parsec and sign in (Team machines should have automatically signed in if userdata was correct)" -ForegroundColor black -BackgroundColor Green
@@ -973,5 +973,3 @@ Write-Host "You may want to change your Windows password to something simpler if
973973
Write-host "DONE!" -ForegroundColor black -BackgroundColor Green
974974
if ($DontPromptPasswordUpdateGPU) {}
975975
Else {pause}
976-
977-

PreInstall/TeamMachineSetup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function fetchUserData {
3636
catch {
3737
}
3838
Try {
39-
(Invoke-WebRequest -uri http://metadata.paperspace.com/meta-data/machine -TimeoutSec 5)
39+
(Invoke-WebRequest -uri http://169.254.169.254/meta-data/machine -TimeoutSec 5)
4040
$stream = "bytes"
4141
}
4242
catch {

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Do not select "Turn on Display Device" when setting up the instance, this will c
4545
### START HERE! Copy this code into Powershell (you may need to press enter at the end):
4646
```
4747
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
48-
$ScriptWebArchive = "https://github.com/parsec-cloud/Parsec-Cloud-Preparation-Tool/archive/master.zip"
48+
$ScriptWebArchive = "https://github.com/kaktus42/Parsec-Cloud-Preparation-Tool/archive/master.zip"
4949
$LocalArchivePath = "$ENV:UserProfile\Downloads\Parsec-Cloud-Preparation-Tool"
5050
(New-Object System.Net.WebClient).DownloadFile($ScriptWebArchive, "$LocalArchivePath.zip")
5151
Expand-Archive "$LocalArchivePath.zip" -DestinationPath $LocalArchivePath -Force
@@ -123,7 +123,7 @@ Q. I want to run this script automatically without user interraction.
123123
A. It's possible to do so but you will need to figure out how to install the GPU Driver on your own. The below code will do everything but install the GPU Driver.
124124
```
125125
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
126-
$ScriptWebArchive = "https://github.com/parsec-cloud/Parsec-Cloud-Preparation-Tool/archive/master.zip"
126+
$ScriptWebArchive = "https://github.com/kaktus42/Parsec-Cloud-Preparation-Tool/archive/master.zip"
127127
$LocalArchivePath = "$ENV:UserProfile\Downloads\Parsec-Cloud-Preparation-Tool"
128128
(New-Object System.Net.WebClient).DownloadFile($ScriptWebArchive, "$LocalArchivePath.zip")
129129
Expand-Archive "$LocalArchivePath.zip" -DestinationPath $LocalArchivePath -Force

0 commit comments

Comments
 (0)