Skip to content

Commit

Permalink
Add Note for setting up local development environment on M1 Macs (#143)
Browse files Browse the repository at this point in the history
* Create local-development-on-arm-macs.md

* Update notes/local-development-on-arm-macs.md

Co-authored-by: Anatoli Nicolae <[email protected]>

---------

Co-authored-by: Anatoli Nicolae <[email protected]>
  • Loading branch information
broskees and anatolinicolae authored Jun 27, 2024
1 parent f9949d4 commit 0f23d31
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions notes/local-development-on-arm-macs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Local Development on ARM based Macs
tags:
- development
- mac
emoji: 💻
---

1. Install [UTM](https://mac.getutm.app/)
2. Set up an **emulated** x86 Rocky Linux 8 VM with UTM & QEMU. ([You can loosely follow along here](https://docs.getutm.app/basics/basics/))
3. Set Networking to Emulated VLAN and port forwarded the following ports via TCP:

| VM Port | Forwarded Port |
| ------- | -------------- |
| 22 | 2222 |
| 2082 | 2082 |
| 2083 | 2083 |

5. Enter the shell of your VM with `ssh root@localhost -p 2222` and [install and configure Apiscp as you would normally](https://docs.apiscp.com/INSTALL/#bootstrapper).
6. Login via [http://localhost:2082](http://localhost:2082)

## Additional Tips
If using VIM or Neovim, you can edit apiscp directly by:
1. Copying your keys over to your vm: `ssh-copy-id -p 2222 root@localhost`
2. Starting neovim/vim in scp mode for NetRW `nvim scp://root@localhost:2222//usr/local/apnscp/` or `vim scp://root@localhost:2222//usr/local/apnscp/`

0 comments on commit 0f23d31

Please sign in to comment.