# Setting-Up Files, Folders and Setting Permissions

##### Files &amp; Folders

Create the [recommended folder and file structure](https://info.zusammenkunft.net/books/how-to-set-up/page/structure "Structure"):

```bash
cd $HOME;
mkdir -p meetings/lib/ meetings/bin/ meetings/recordings/;
touch meetings/bin/meeting-start meetings/bin/meeting-stop meetings/bin/meeting-follow;
chmod 755 meetings/bin/meeting-start meetings/bin/meeting-stop meetings/bin/meeting-follow;
touch meetings/lib/paths.sh meetings/lib/whisper.sh;
```

##### Editing the Scripts

Enter the [scripts](https://info.zusammenkunft.net/books/the-scripts "The Scripts")' contents into the prepared files using your preferred editor.

If you are not comfortable using a command line editor like [vi ](https://www.cs.colostate.edu/helpdocs/vi.html)or [nano](https://www.nano-editor.org/dist/latest/nano.html), use any text or code editor on your main computer and copy the files by the way of [scp](https://linux.die.net/man/1/scp) or a [(s)ftp](https://www.sftp.net/clients) client onto the Raspberry Pi 500.

##### Checking the Scripts Are Executable

Now check the permissions. `meeting-start`, `meeting-stop` and `meeting-follow` have to be executable. (This is done by `chmod 755` above.)

```bash
ls -l meetings/bin/
```

You should see a result like this:

```bash
mela@Cox:~ $ ls -l meetings/bin/
total 20
-rwxr-xr-x 1 mela mela  526 Jan 11 08:51 meeting-follow
-rwxr-xr-x 1 mela mela 4558 Feb 21 00:17 meeting-start
-rwxr-xr-x 1 mela mela 2596 Feb 21 00:24 meeting-stop

```

`-rwxr-xr-x` means the file is executable (for user, group and world).

##### Adding the Scripts to the PATH environment variable

Add $HOME/meetings/bin/ to the command line's path.

```
vi .bashrc
```

Add a last line:

```
export PATH="$HOME/meetings/bin:$PATH"
```

Save, and close the editor. Then load the updated `.bashrc` into your active session by entering:

```
source .bashrc
```