You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix typos and update Apple Silicon instructions in Mac install docs (#506)
* Fix typos and update Apple Silicon instructions in Mac install docs
Updates Apple Silicon wording and fixes minor typos per issues #502, #503, #505.
* Update architecture switching instructions for Oppia
Restored wording that switching to Intel architecture is required for Oppia development on Apple Silicon Macs, to avoid ambiguity for first-time setup.
* Fix capitalization and formatting in installation guide
Copy file name to clipboardExpand all lines: Installing-Oppia-(Mac-OS;-Python-3).md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## Table of Contents
2
2
3
-
*[Macs with M1 chips](#macs-with-m1-chips)
3
+
*[Macs with Apple Silicon](#macs-with-apple-silicon)
4
4
*[Install prerequisites](#install-prerequisites)
5
5
*[Clone Oppia](#clone-oppia)
6
6
*[Setup a virtual environment](#setup-a-virtual-environment)
@@ -13,13 +13,13 @@
13
13
14
14
**Note:** Be careful about trying to install Oppia if you have the Python [Anaconda platform](https://www.anaconda.com/) installed. We've received a bunch of reports that installation is tricky in that environment (there are lots of small things that get in the way), and that the solution is to use the standard python installation (via e.g. homebrew) instead.
15
15
16
-
## Macs with M1 chips
16
+
## Macs with Apple Silicon
17
17
18
-
To check whether your Mac has an M1 chip, navigate to the Apple menu and select "About This Mac." In the window that opens, check for a "Chip" section. If it says "Apple M1"then you have an M1 chip. Otherwise, you should see an Intel processor listed in the "Processor" section. [This article](https://www.howtogeek.com/706226/how-to-check-if-your-mac-is-using-an-intel-or-apple-silicon-processor/) explains in more detail with screenshots if you have trouble.
18
+
To check whether your Mac has an Apple Silicon chip (M1/M2/M3 and newer), navigate to the Apple menu and select "About This Mac." In the window that opens, check for a "Chip" section. If it says "Apple M1", "Apple M2", "Apple M3", etc., then you have an Apple Silicon Mac. Otherwise, you should see an Intel processor listed in the "Processor" section. [This article](https://www.howtogeek.com/706226/how-to-check-if-your-mac-is-using-an-intel-or-apple-silicon-processor/) explains in more detail with screenshots if you have trouble.
19
19
20
-
If your Mac has an M1 chip, follow these instructions first:
20
+
If your Mac has an Apple Silicon chip, follow these instructions first:
21
21
22
-
1. If not yet done so, install Rosetta 2 with the following command: `softwareupdate --install-rosetta`. Rosetta 2 translates Intel-based apps to run on Apple silicon Macs.
22
+
1. If not yet done so, install Rosetta 2 with the following command: `softwareupdate --install-rosetta`. Rosetta 2 translates Intel-based apps to run on Apple Silicon Macs.
23
23
24
24
[Rosetta](https://support.apple.com/en-us/HT211861) is Apple's compatibility layer that lets you run apps written for Intel chips on Apple Silicon. You can install Rosetta 2 by running:
25
25
@@ -48,13 +48,13 @@ If your Mac has an M1 chip, follow these instructions first:
48
48
49
49
The `arm64` indicates Apple Silicon, while the `i386` indicates that we are running under Rosetta.
50
50
51
-
2. Next, we will create a Rosetta terminal that emulate the *Intel* architecture. To do so, open a new terminal and run the following command (change "bash" to "zsh" if you're using a zsh terminal):
51
+
2. Next, we will create a Rosetta terminal that emulates the *Intel* architecture. To do so, open a new terminal and run the following command (change "bash" to "zsh" if you're using a zsh terminal):
52
52
53
53
```shell
54
54
$ /usr/bin/arch -x86_64 $SHELL --login
55
55
```
56
56
57
-
This switches the architecture from Mac M1's *ARM* architecture to the emulated *Intel* architecture for the current session. To verify this, run `arch` in the terminal and you should see `i386` being printed. You will need to switch the architecture to Intel for all Oppia development.
57
+
This switches the architecture from Apple Silicon’s *ARM* architecture to the emulated *Intel* architecture forthe current session. To verify this, run `arch`in the terminal and you should see `i386` being printed. You will need to switch the architecture to Intel for all Oppia development.
58
58
59
59
If you use Homebrew to install any Python development dependencies forpyenv (discussed below), you will need to install and use Homebrewin this terminal as well. Note that while you can have a Homebrew installation for Apple Silicon and another for Intel architectures installed simultaneously, pyenv is not smart enough to pick the Intel dependencies if both are present, so we recommend using an Intel installation of Homebrew exclusively.
60
60
@@ -149,7 +149,7 @@ Oppia relies on a number of programs and third-party libraries. Many of these li
149
149
150
150
## Setup a virtual environment
151
151
152
-
For your vitual environment, we recommend you use [pyenv](https://github.com/pyenv/pyenv). Here are some instructions for doing so, but you can use another virtual environment tool if you wish:
152
+
For your virtual environment, we recommend you use [pyenv](https://github.com/pyenv/pyenv). Here are some instructions for doing so, but you can use another virtual environment tool if you wish:
153
153
154
154
1. **Make sure you install the Python build dependencies for your operating system. These are specified [here](https://github.com/pyenv/pyenv/wiki#suggested-build-environment). If you don't do this it might lead to problems further on.**
155
155
@@ -228,7 +228,7 @@ For your vitual environment, we recommend you use [pyenv](https://github.com/pye
228
228
python -m scripts.start
229
229
```
230
230
231
-
The first time you run this script, it will take a while (about 5 - 10 minutes when we last tested it in Dec 2018, though this depends on your Internet connection). Subsequent runs should be much faster. The `start.py` script downloads and installs the required dependencies (such as Google App Engine) if they are not already present, and sets up a development server for you to play with. The development server logs are then output to this terminal, so you will not be able to enter further commands in it until you disconnect the server.
231
+
The first time you run this script, it will take a while (around 10 minutes when we last tested it, though this depends on your internet connection). Subsequent runs should be much faster. The `start.py` script downloads and installs the required dependencies (such as Google App Engine) if they are not already present, and sets up a development server for you to play with. The development server logs are then output to this terminal, so you will not be able to enter further commands in it until you disconnect the server.
232
232
233
233
> [!CAUTION]
234
234
> **Please don't use `sudo`while installing.** It's not required, and using it may cause problems later. If you face permissions issues, ensure that you have the necessary permissions for the directory in which you're trying to set up Oppia. If you run into any other installation problems, please read [[these notes|Issues-with-installation]]
*[Step 7: Start the rdp server](#step-7-start-the-rdp-server)
11
+
*[Step 7: Start the RDP server](#step-7-start-the-rdp-server)
12
12
*[Step 8: Connect to the server using the Windows RDP client](#step-8-connect-to-the-server-using-the-windows-rdp-client)
13
13
*[Step 9: Run Oppia locally](#step-9-run-oppia-locally)
14
14
*[How to run the E2E tests?](#how-to-run-the-e2e-tests)
@@ -35,7 +35,7 @@
35
35
36
36
*For information on issues that may occasionally arise with the installation process, please see the [Troubleshooting](https://github.com/oppia/oppia/wiki/Troubleshooting) page.*
37
37
38
-
There follow instructions for 3 different ways to install Oppia on Windows: using WSL2, using VirtualBox, and using WSL1. You only need to follow one of the four.
38
+
The following are instructions for 3 different ways to install Oppia on Windows: using WSL2, using VirtualBox, and using WSL1. You only need to follow one of the three.
39
39
**The first approach (Installing Oppia in Windows and WSL2) is recommended.**
40
40
41
41
Note: If you already use VirtualBox, it will stop working after installing WSL2 because the hypervisor resource gets locked by WSL2, and can't be used by VirtualBox. WSL2 is much faster, but make sure to copy over all your data from the VM before proceeding with the installation of WSL2.
@@ -44,11 +44,11 @@ Note: If you already use VirtualBox, it will stop working after installing WSL2
44
44
45
45
## Step 1: Check if your Windows is up to date
46
46
47
-
To do so press "windows-key + r" and type `winver`.
47
+
To do so press "Windows-key + r" and type `winver`.
48
48
49
49

50
50
51
-
This will open up a window. Note down your windows version number and build number.
51
+
This will open up a window. Note down your Windows version number and build number.
52
52
53
53

54
54
@@ -63,10 +63,10 @@ Make sure your version and build meet the following criteria:
63
63
64
64
You can install WSL2 by following the steps [here](https://docs.microsoft.com/en-us/windows/wsl/install-win10) until step 5.
65
65
66
-
* The windows version number and build number will be useful in determining whether or not your system needs to be updated.
66
+
* The Windows version number and build number will be useful in determining whether or not your system needs to be updated.
67
67
68
68
69
-
## Step 3: Install the ubuntu app from the Microsoft Store
69
+
## Step 3: Install the Ubuntu app from the Microsoft Store
70
70
71
71
Install Ubuntu 18.04 LTS from the Microsoft Store.
72
72
@@ -77,7 +77,7 @@ Once it is installed, run the app from the startup menu. After initializing your
77
77
|-|-|
78
78
|||
79
79
80
-
**Note: You can go for Ubuntu 20.04 or "Ubuntu" as well but it comes as a barebones config. It means that you will have to install all the libs yourself, i.e, gcc, make, etc to run oppia. If you are familiar with these processes then you can use these as well.**
80
+
**Note: You can go for Ubuntu 20.04 or "Ubuntu" as well but it comes as a barebones config. It means that you will have to install all the libs yourself, i.e., gcc, make, etc. to run Oppia. If you are familiar with these processes then you can use these as well.**
81
81
82
82
## Step 4: Clone your fork and setup
83
83
@@ -87,7 +87,7 @@ If you are facing problems with pushing the code to your fork check this link: [
87
87
88
88
## Step 5: Download and install google-chrome (in the Ubuntu Environment)
89
89
90
-
_Even if you have Chrome installed on you windows system, you still need to do this to run E2E tests and unit tests._
90
+
_Even if you have Chrome installed on your Windows system, you still need to do this to run E2E tests and unit tests._
91
91
92
92
Run the following commands to download latest chrome:
93
93
@@ -136,18 +136,18 @@ Add these lines:
136
136
startxfce4
137
137
```
138
138
139
-
Once inside Nano, you can use the arrow keys to move between lines. When you are done with your changes press: `ctrl+x`followedby `Y`followedby enter to save the file.
139
+
Once inside Nano, you can use the arrow keys to move between lines. When you are done with your changes press: `ctrl+x`followed by `Y`followed by enter to save the file.
140
140
You can read more about RDP, XFCE, XRDP in the [Appendix](#appendix).
141
141
142
-
## Step 7: Start the rdp server
142
+
## Step 7: Start the RDP server
143
143
144
144
```console
145
145
sudo /etc/init.d/xrdp start
146
146
```
147
147
148
148
## Step 8: Connect to the server using the Windows RDP client
149
149
150
-
The name of the app is "Remote Desktop Connection". It is already installed in the windows system by default. No need to use any third-party app.
150
+
The name of the app is "Remote Desktop Connection". It is already installed in the Windows system by default. No need to use any third-party app.
151
151
152
152

153
153
@@ -168,13 +168,13 @@ Navigate to any browser and access Oppia at http://localhost:8181.
168
168
169
169
## How to run the E2E tests?
170
170
171
-
Open the terminal (in the ubuntu-desktop env/ the RDP client) and run `google-chrome`. Then Open a new terminal tab and run your e2e tests 🙂. To check you can run `python -m scripts.run_e2e_tests --suite="users"`.
171
+
Open the terminal (in the ubuntu-desktop env/ the RDP client) and run `google-chrome`. Then open a new terminal tab and run your e2e tests 🙂. To check you can run `python -m scripts.run_e2e_tests --suite="users"`.
172
172
173
173
**Note: You only need to use the RDP client to run e2e tests. You don't have to start the X server for developing and pushing code.**
174
174
175
175
## Miscellaneous
176
176
177
-
- The WSL environment does not support audio, but it can be enabled by installing the [PulseAudio](https://wiki.ubuntu.com/PulseAudio) server on Windows following [this guide](https://token2shell.com/howto/x410/enabling-sound-in-wsl-ubuntu-let-it-sing/). With the latest [wslu package](https://launchpad.net/ubuntu/+source/wslu) installed the starting Ubuntu app detects the running[PulseAudio](https://wiki.ubuntu.com/PulseAudio) server and enables audio.
177
+
- The WSL environment does not support audio, but it can be enabled by installing the [PulseAudio](https://wiki.ubuntu.com/PulseAudio) server on Windows following [this guide](https://token2shell.com/howto/x410/enabling-sound-in-wsl-ubuntu-let-it-sing/). With the latest [wslu package](https://launchpad.net/ubuntu/+source/wslu) installed, the Ubuntu app on startup detects the [PulseAudio](https://wiki.ubuntu.com/PulseAudio) server and enables audio.
178
178
- VSCode comes with an extension called remote-wsl, that makes it very easy to code when the code exists in your Ubuntu folder.
179
179
- Per [this AskUbuntu question](https://askubuntu.com/questions/1115564/wsl-ubuntu-distro-how-to-solve-operation-not-permitted-on-cloning-repository), Git clone doesn’t work on mounted drives within WSL so be sure not to use it.
180
180
- When in the Ubuntu file system, you can type `explorer.exe .` (don't forget the extra dot at the end) to open that folder in your Windows file explorer.
@@ -195,7 +195,7 @@ Any VM manager is fine, but the instructions here are specific to VirtualBox.
195
195
196
196
1. Install VirtualBox from [here](https://www.virtualbox.org/wiki/Downloads).
197
197
2. Open VirtualBox and click New.
198
-
3. Select Type as "Linux", Version "Ubuntu 64bit" and give some name for the VM.
198
+
3. Select Type as "Linux", Version "Ubuntu 64-bit" and give some name for the VM.
199
199
4. In the next page, select an appropriate amount of RAM for the VM (can be changed later). The whole dev environment is verified to work smoothly at 6 GB RAM. At least 4 GB is recommended.
200
200
5. In the next page, select "Create a virtual hard disk now" and click Create.
201
201
6. Select VDI as the file type.
@@ -204,10 +204,10 @@ Any VM manager is fine, but the instructions here are specific to VirtualBox.
204
204
205
205
## Install Ubuntu 18 ISO
206
206
207
-
1. Download the Ubuntu 18.04 64bit ISO from [here](https://releases.ubuntu.com/18.04/). Alternatively the version 22.04 can be downloaded from (https://releases.ubuntu.com/jammy/).
207
+
1. Download the Ubuntu 18.04 64-bit ISO from [here](https://releases.ubuntu.com/18.04/). Alternatively the version 22.04 can be downloaded from (https://releases.ubuntu.com/jammy/).
208
208
2. Select the newly created VM in the virtual box and click Start.
209
209
3. Here, a window pops up where you have to link the downloaded ISO file. Click the folder icon and select the ISO from your machine.
210
-
4. Now, go through the normal Ubuntu installation steps, you can do the following the specific steps:
210
+
4. Now, go through the normal Ubuntu installation steps, you can do the following specific steps:
211
211
* Select "Minimal Installation", and check both checkboxes below it.
212
212
* Select "Erase disk and install Ubuntu". Don't worry, no data in your host machine will be affected :).
213
213
5. Once, Ubuntu is running and everything is done installing, exit from VM.
0 commit comments