From 0f23d318e27c1068a73aa9e02de38073474217a3 Mon Sep 17 00:00:00 2001 From: Joseph Roberts Date: Thu, 27 Jun 2024 03:08:29 -0400 Subject: [PATCH] Add Note for setting up local development environment on M1 Macs (#143) * Create local-development-on-arm-macs.md * Update notes/local-development-on-arm-macs.md Co-authored-by: Anatoli Nicolae --------- Co-authored-by: Anatoli Nicolae --- notes/local-development-on-arm-macs.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 notes/local-development-on-arm-macs.md diff --git a/notes/local-development-on-arm-macs.md b/notes/local-development-on-arm-macs.md new file mode 100644 index 0000000..34749c7 --- /dev/null +++ b/notes/local-development-on-arm-macs.md @@ -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/`