Skip to content

Commit 49fbbdf

Browse files
authored
Improve Windows installation instructions
This is based on an interaction with a user on the Discord, who was not sure if the output of the psp-config command was correct or how to open an Ubunutu terminal in a specific location. This change should address that. When I tried to do the install on my Windows installation, I also found curl did not download the release, but wget did. So I changed to wget.
1 parent 621f748 commit 49fbbdf

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

installation/windows.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@ To set up WSL with Ubuntu in it run the following commands in a Powershell windo
1818
wsl --install
1919
```
2020

21-
After this is done, Ubuntu can be selected from the start menu to open a terminal. This will be used for all commands going forward.
21+
When this is done, restart your computer. Afterwards Ubuntu can be selected from the start menu to open a terminal, do this once to set up your user.
22+
23+
From now on the Ubuntu shell will be used when running commands going forward.
2224

2325
Files in Ubuntu can be accessed through a network share. In `This Computer` right click on the background and select `Map network drive`. Set the folder to `\\wsl$` to make it easily accessible.
2426

27+
Alternatively, you can open an Ubuntu terminal in a specific directory by holding shift and clicking the right mouse button on the background in the file browser and selecting `Open Linux shell here`.
28+
2529
## Dependencies
2630
{: .fs-6 .fw-700 }
2731

@@ -32,30 +36,37 @@ sudo apt-get update
3236
```
3337

3438
```shell
35-
sudo apt-get install build-essential cmake pkgconf libreadline8 libusb-0.1 libgpgme11 libarchive-tools fakeroot curl
39+
sudo apt-get install build-essential cmake pkgconf libreadline8 libusb-0.1 libgpgme11 libarchive-tools fakeroot wget
3640
```
3741

3842
## Toolchain
3943
{: .fs-6 .fw-700 }
4044

4145
Installing the PSPDEV toolchain itself can be done with the following steps:
4246

43-
1. In a fresh WSL Session download the Toolchain Archive using curl `curl -O https://github.com/pspdev/pspdev/releases/latest/download/pspdev-ubuntu-latest-x86_64.tar.gz`
44-
2. Extract the archive using `tar -xvf pspdev-ubuntu-latest-x86_64.tar.gz`
45-
3. To make the toolchain usable, some environment variables need to be set. The first step in doing so it to open the `~/.bashrc` file with the `nano` text editor using the following command from an Ubuntu terminal:
47+
1. In a fresh WSL Session download the Toolchain Archive using the following command:
48+
```shell
49+
wget https://github.com/pspdev/pspdev/releases/latest/download/pspdev-ubuntu-latest-x86_64.tar.gz
50+
```
51+
3. Extract the archive using:
52+
```shell
53+
tar -xvf pspdev-ubuntu-latest-x86_64.tar.gz
54+
```
55+
5. To make the toolchain usable, some environment variables need to be set. The first step in doing so it to open the `~/.bashrc` file with the `nano` text editor using the following command from an Ubuntu terminal:
4656
```shell
4757
nano ~/.bashrc
4858
```
49-
4. Add the following lines at the bottom of the file in the text editor:
59+
5. Add the following lines at the bottom of the file in the text editor:
5060
```shell
5161
export PSPDEV="$HOME/pspdev"
5262
export PATH="$PATH:$PSPDEV/bin"
5363
```
54-
5. Now save and exit by pressing `Ctrl`+`X`, then `Y` and then enter/return.
55-
6. Close the current Ubuntu terminal and open a new one.
56-
7. From the new Ubuntu terminal, run the following command to confirm everything is set up correctly:
64+
6. Now save and exit by pressing `Ctrl`+`X`, then `Y` and then enter/return.
65+
7. Close the current Ubuntu terminal and open a new one.
66+
8. From the new Ubuntu terminal, run the following command to confirm everything is set up correctly:
5767
```shell
5868
psp-config --pspdev-path
5969
```
70+
If everything is set up correctly, the path of the PSPDEV toolchain installation will be shown.
6071

6172
That's it, now the PSPDEV toolchain can be used to build PSP software. Check out the [Basic Programs](../basic_programs.html) page to for examples on what you can do with it.

0 commit comments

Comments
 (0)