9
9
v:1.0.0
10
10
BY: ~#M?x
11
11
12
- [1] Wsl [2] Firewall_rules
13
- [3] Browser_Install [4] Drive Reset
12
+ [1] Wsl [2] Firewall rules
13
+ [3] Browser Install [4] Drive Reset
14
14
"@
15
15
16
16
Write-Host $tx
@@ -41,8 +41,10 @@ if($true){
41
41
wsl -- install
42
42
write-host
43
43
Clear-Host
44
- write -host " Wsl Config "
44
+ Write -host " Windows Subsystem for linux "
45
45
dism.exe / online / enable-feature / featurename:Microsoft- Windows- Subsystem- Linux / all / norestart
46
+ Write-Host
47
+ Write-Host " Virtual Machine platform"
46
48
dism.exe / online / enable-feature / featurename:VirtualMachinePlatform / all / norestart
47
49
wsl -- set-default - version 2
48
50
Write-Host " Wsl installed"
@@ -60,9 +62,10 @@ if($true){
60
62
"@
61
63
Write-Host $install
62
64
write-host
63
- Write-Host " [*] 1. Install Ubuntu [*] 2. Debian" - ForegroundColor Red
64
- Write-Host " [*] 3. Kali Linux [*] 4. Arch Linux" - ForegroundColor Green
65
- Write-Host " [*] 5. Install Everything [6] No install" - ForegroundColor Blue
65
+ Write-Host " [*] 1. Ubuntu [*] 2. Debian" - ForegroundColor Red
66
+ Write-Host " [*] 3. Kali Linux [*] 4. Arch Linux " - ForegroundColor Blue
67
+ Write-Host " [*] 5. Opensuse [*] 6. Oracle " - ForegroundColor Magenta
68
+ Write-Host " [*] 7. Everything [*] 8. No install " - ForegroundColor Green
66
69
Write-Host
67
70
$opt = Read-Host " Choose the option to install"
68
71
@@ -86,35 +89,54 @@ if($true){
86
89
break
87
90
}
88
91
3 {Write-Host " Kali"
89
- wsl -- install - d Kali
92
+ wsl -- install - d kali - linux
90
93
Write-Host " Kali Linux Installed" - ForegroundColor Blue
91
94
Write-Host
92
95
break
93
96
}
94
97
4 {Write-Host " Archlinux" - ForegroundColor Blue
95
- if ($false ){
96
- git clone https:// github.com / yuk7/ ArchWSL.git
98
+ if ($true ){
99
+ Enable-WindowsOptionalFeature - Online - FeatureName Microsoft- Hyper- V - All
100
+ DISM / Online / Enable-Feature / All / FeatureName:Microsoft- Hyper- V
101
+ Clear-Host
102
+ Write-Host
103
+ curl - O arch.zip https:// github.com / yuk7/ ArchWSL/ releases/ download/ 22.10 .16.0 / Arch.zip
104
+ .\arch.zip
105
+
106
+ }else {
97
107
98
- }else {
99
- Write-Host " Git Install"
100
- winget
101
108
}
102
- Write-Host " Arch linux Installed"
103
- Write-Host
104
- break
105
109
}
106
- 5 {
110
+ 5 {Write-Host " Opensuse"
111
+ wsl -- install - d opensuse- leap- 15.5
112
+ Write-Host
113
+ Write-Host " OpenSuse Installed" - ForegroundColor Green
114
+ Write-Host
115
+ break
116
+ }
117
+ 6 {Write-Host " Oracle"
118
+ wsl -- install - d oraclelinux_9_1
119
+ Write-Host
120
+ Write-Host " Oracle Installed" - ForegroundColor Green
121
+ Write-Host
122
+ break
123
+ }
124
+ 7 {
107
125
write-host
108
126
Write-Host " Everything"
109
127
wsl -- install - d ubuntu
110
128
wsl -- install - d Debian
111
- wsl -- install - d Kali
129
+ wsl -- install - d kali- linux
130
+ wsl -- install - d opensuse- leap- 15.5
131
+ wsl -- install - d oraclelinux_9_1
112
132
Write-Host
133
+ Start-Sleep 2 > $null
134
+ Clear-Host
113
135
Write-Host " Everything Installed" - ForegroundColor Blue
114
136
Write-Host
115
137
break
116
138
}
117
- 6 {
139
+ 8 {
118
140
Write-Host " Exit"
119
141
Start-Sleep - Seconds 1 > $null
120
142
exit
@@ -197,8 +219,8 @@ try {
197
219
| | | ' \ (_-/| _|/ _` || || |
198
220
|___||_||_|/__/ \__|\__/_||_||_|
199
221
200
- [*] 1. Brave Browser [*] 2. Firefox
201
- [*] 3. Chrome [*] 4. All
222
+ [*] 1. Brave [*] 2. Firefox [*] 5. All
223
+ [*] 3. Chrome [*] 4. Opera GX
202
224
203
225
"@
204
226
Write-Host $install
@@ -263,6 +285,24 @@ switch ($opt) {
263
285
264
286
}
265
287
4 {
288
+ $opreagx = @"
289
+ ___ ___ ___ ___ ___ ___ __ __
290
+ / _ \ | _ \| __|| _ \/ \ / __|\ \/ /
291
+ | (_) || _/| _| | /| - | | (_ | > <
292
+ \___/ |_| |___||_|_\|_|_| \___|/_/\_\
293
+
294
+ "@
295
+ Write-Host $opreagx
296
+ if ($True ){
297
+ winget install -- id= Google.Chrome - e
298
+ Write-Host
299
+ Write-Host " Opera GX Installed"
300
+ }else {
301
+ Write-Host " Have Problems"
302
+ }
303
+
304
+ }
305
+ 5 {
266
306
267
307
$all = @"
268
308
___
@@ -286,11 +326,16 @@ if($False){
286
326
Start-Sleep 2 > $null
287
327
winget install -- id= Mozilla.Firefox - e
288
328
Clear-Host
289
- Write-Host " Chrome" ForegroundColor White
329
+ Write-Host " Chrome" - ForegroundColor White
290
330
Start-Sleep 2 > $null
291
331
winget install -- id= Google.Chrome - e
292
332
Clear-Host
293
333
Write-Host
334
+ write-host " Opera GX" - ForegroundColor Red
335
+ Write-Host
336
+ Start-Sleep 2 > $null
337
+ winget install -- id= Opera.OperaGX - e
338
+ Write-Host
294
339
Write-Host " All browsers installed"
295
340
}else {
296
341
Write-Host
@@ -328,22 +373,26 @@ try {
328
373
Write-Host " Drive Reset"
329
374
dism / online / cleanup- image / scanhealth
330
375
dism / online / cleanup- image / restorehealth
376
+ Write-Host " Drive Scanner" - ForegroundColor Magenta
377
+ Write-Host
378
+ pnputil / scan- devices
379
+ Write-Host
380
+ Write-Host " Restart all devices"
331
381
pnputil / resetdrivers / force
332
382
Write-Host
333
- Write-Host " Drives Reset done!"
383
+ Write-Host " Drives Reset done!" - ForegroundColor Cyan
334
384
Write-Host
335
- Write-Host " Now reboot your computer"
336
-
385
+ Write-Host " Now reboot your computer" - ForegroundColor Cyan
337
386
}else {
338
387
Write-Host
339
- Write-Host " Haven Problem"
388
+ Write-Host " ⚠ Haven Problem ⚠ "
340
389
Write-Host
341
390
}
342
391
343
392
}
344
393
catch {
345
394
<# Do this if a terminating exception happens#>
346
- Write-Host " Haven Problem, maybe you dont start with administrator"
395
+ Write-Host " ⚠ Haven Problem, maybe you dont start with administrator ⚠ "
347
396
}
348
397
349
398
}}
0 commit comments