Update Semester 1 authored by Frédéric Vlummens's avatar Frédéric Vlummens
......@@ -78,89 +78,6 @@ By the first class this group will be populated with your *real exercises*.
* Download the iso and put it on a nice location (for example Documents folder) do not download the .iso to a synced folder (for example Google Drive or OneDrive)!
* **Only download! No further actions are required!!**
# Web Development Essentials
## **Vagrant box - Homestead**
- **prerequisites:**
- Git (see [General Software > Git](General-Software#git))
- SSH-key:
- Make sure you followed the steps described [here.](software/ssh-keys)
- This means you have 2 files: `id_ed25519` and `id_ed25519.pub` in a folder called `.ssh` in your homefolder (= this is the folder with your name of the user you logged in with on your computer).
- Verifiy this by opening `git bash`
- Type `ls ~/.ssh`
- You should see **at least** the 2 files
- **download and install Vagrant:**
- https://www.vagrantup.com/downloads
- **download and install the specific version 6.1 of Virtual Box:**
- virtual box 6.1 https://www.virtualbox.org/wiki/Download_Old_Builds_6_1
- **clone and install Homestead:**
- Open the command line or Git Bash terminal and execute the commands below in **your documents folder**.
```bash
>> git clone https://github.com/laravel/homestead.git Homestead
>> cd Homestead
>> git checkout release
```
- Next, execute the bash init.sh command from the Homestead directory to create the Homestead.yaml configuration file.
```bash
# macOS / Linux...
>> bash init.sh
# Windows...
>> ./init.bat
```
- Update the properties **authorize** and **keys** in your Homestead.yaml file with:
macOS:
```yaml
authorize: ~/.ssh/id_ed25519.pub
keys:
- ~/.ssh/id_ed25519
```
Windows:
```yaml
authorize: C:/Full/Path/To/Your/HomeDir/.ssh/id_ed25519.pub
keys:
- C:/Full/Path/To/Your/HomeDir/.ssh/id_ed25519
```
- **test the installation:**
- Launching the Homestead Box:
- Run the **vagrant up** command from your Homestead directory, to boot your Homestead box. _When you run the **vagrant up** command for the first time, and only then, it will start with downloading the Homestead box._
```bash
>> vagrant up
```
- Run the **vagrant ssh** command from your Homestead directory, to login into your Homestead box.
```bash
>> vagrant ssh
```
- Logout from the Homestead Box:
- Terminate the SSH session with the **exit** or **logout** command.
```bash
# exit
vagrant@vagrant:~$ exit
# or
# logout
vagrant@vagrant:~$ logout
```
- Make sure you shut down the running Homestead Box after using it:
- Run the **vagrant halt** command from your Homestead directory, to shut down your Homestead box.
```bash
>> vagrant halt
```
- **More information or troubleshooting:**
If there are teachers around, go ahead and ask! :)
Otherwise, this might help: https://laravel.com/docs/10.x/homestead
# Congratulations
Pfew! We are done. You (and your computer) are ready to start! :)
\ No newline at end of file