epiccurious / jade-diy

Securely custody your bitcoin with Open Source software and generic hardware.
MIT No Attribution
20 stars 2 forks source link

Invalid operation /usr/bin/python3 when using Proxmox + Debian 11 #11

Open epiccurious opened 1 year ago

epiccurious commented 1 year ago

User reported:

Yeah, I gotta figure out how to trick this Container into thinking there an esp32 somehow image showing error

Asked the user to try sudo apt install python3

I tried that but it says python is already installed and that I’m on 3.9.2

Need to attempt to reproduce the user's python3 issue in ProxMox

epiccurious commented 1 year ago
  1. Create a bootable Proxmox USB installer with Balena Etcher.
  2. Install Proxmox VI on your hardware.
    • Save time/frustration by connecting ethernet before running the installer, so that IP and gateway are automatically returned.
    • Recommended: set hostname to pve1.local
    • Optional: set DNS to 1.1.1.1.
    • You can either install to disk or install to another bootable USB.
    • On the last screen, leave it set to reboot after install completes
  3. After Proxmox installs, the system will reboot to a login page. Right above, you will see an IP address and port number (for example, https://192.168.1.5:8006)
  4. Plug the DIY Jade hardware into your Proxmox server.
  5. On a different computer, open a browser and go to that address, including the https:// and port. You will see a security warning. Click advanced then click to continue.
  6. Log in as user root with the password you created.
  7. On the left, you will see Datacenter with one entry pve1. Click the arrow to the left of pv1 to show one or more local storage.
  8. Add the ISO image for Debian.
  9. Create VM
    • Make note of the VM ID on the first tab (default is 100)
    • Give it a familiar name like diy.
    • Recommend: For memory, use 4096 MB instead of the default 2048 MB
    • FOR other settings, use default options but choose to not start the VM after creating
  10. You will see a new entry on the left under pv1 with the new VM ID and name you just created (for example 100 (diy).
  11. Click on the VM entry then click Hardware, then click Add, then click USB Device.
  12. Click Use USB Vendor/Device ID then choose your device. (Look at the Product column.)
  13. Click to Start the VM, click Console, and navigate through the installer with your mouse and keyboard. This process can take over an hour.
    • Choose language, country, keyboard
    • For Hostname use debian
    • For Domain name, use anything made up .local (for example domain6224048534.local)
    • To simplify the process, leave the Root password blank so the user gets default access to the sudo command / sudoer. This is a funny quirk with Debian.
    • Set up the partition tables as you prefer, or do Guided with whole disk.
    • Leave package manager and proxy settings as default (No, blank)
    • Use defaults for package manager, server selection, proxy configuration, popularity-contest, software selection, and GRUB boot loader.
    • For the Device for boot loader installation, choose the QEMU_HARDDISK option
epiccurious commented 1 year ago

When Debian boots to the desktop…

First, prepare the environment

Next, start the script

epiccurious commented 1 year ago

Success!

successful

BigBossRabbit commented 1 year ago

As the user who originally sent you this query on Twitter, I'd like to thank you for taking a look at it & taking the time out to assist. I have now run it all according to the instructions above & it succeeded all the way till it asked to choose a device or quit.

Screenshot 2023-05-28 at 9 58 31 PM

BigBossRabbit commented 1 year ago

When attempting to use the command 'ls -l /dev/ttyUSB0' or 'ls -l /dev/ttyACM0' it returns : "No such file or directory"

I have attached screenshots to further illustrate., Could it be the option I chose for the USB Vendor/Device ID?

Screenshot 2023-05-28 at 10 18 14 PM

Screenshot 2023-05-28 at 10 18 39 PM