Ullaakut / cameradar

Cameradar hacks its way into RTSP videosurveillance cameras
MIT License
4.04k stars 513 forks source link

M1 Macbook (linux/arm64/v8) support #328

Open OsintUK opened 1 year ago

OsintUK commented 1 year ago

I'm running Kali Linux from VMware Fusion on an M1 MacBook.

When I run the docker I get the following issue and was wondering is there a way I can run it:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

rikosintie commented 1 year ago

I haven't tried thus but when the m1 was released I saw this on Twitter. ZSH alias for dockerAdd these aliases to your .zshrc and start docker w your terminal (after downloading m1 docker version & running “arm”) ✌🏼# Switch from m1 to rosetta intel emulatoralias arm="env /usr/bin/arch -arm64 /bin/zsh --login"alias intel="env /usr/bin/arch -x86_64 /bin/zsh --login"Try use export DOCKER_DEFAULT_PLATFORM=linux/amd64 to make it as defaultMichael HubbardTwitter - @rikosintieblog - mwhubbard.blogspot.comGitHub - github.com/rikosintiewww.linkedin.com/in/mwhubbardMinilock ID - 22LXKQertj4op8vCjpWNmGJyaGPryp3BEFv8d2y4rTzG4Q-- When encryption is outlawed only outlaws will have encryption"Freedom is the ability to do something that somebody else disagrees with. To make a choice that somebody else wouldn't make. The problem with disrupting our right to privacy is that at the same time we do that, we disrupt our right to free speech. And without the ability to speak freely, a democracy is no longer a democracy." Ladar LevinsonOn Jul 20, 2023, at 14:13, OsintUK @.***> wrote: I'm running Kali Linux from VMware Fusion on an M1 MacBook. When I run the docker I get the following issue and was wondering is there a way I can run it: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

OsintUK commented 1 year ago

Thanks, I have tried this but it doesn't seem to work

OsintUK commented 1 year ago

@Ullaakut Any advice?

Ullaakut commented 1 year ago

Hi @OsintUK. I do not have such a machine, so besides compiling it yourself (which is going to be very tricky, due in part to #320 which is still not fixed) I don't have much to suggest, sorry.

I had some time lately to start doing some work on Cameradar, and I have a local branch that addresses some of the current issues on master, but it's far from ready, and I don't have much time anymore.

bc0la commented 1 month ago

My solution was running it in a multipass vm and using docker run -t ullaakut/cameradar:arm64 as seen here: https://github.com/Ullaakut/cameradar/issues/333#issuecomment-1792619058

Didn't try on baremetal, docker was having some issues launching with my current operation restrictions (RAT on a macbook with shell-only access atm)