Below are all the necessary steps for installing OpenMemories-Tweak on a Sony a6000 camera and linux.

  1. Download Sony-PMCA-RE from GitHub or from a mirror - master a82f5ba on 18 Aug 2022.
  2. Go into the repository folder and install the necessary requirements.
    pip install -r requirements.txt
    sudo apt install python3-tk
    
  3. Add udev rule to access your camera over USB
    sudo nano /etc/udev/rules.d/99-sony-a6000.rules
    

    with:

    SUBSYSTEM=="usb", ATTRS{idVendor}=="054c", MODE="0666"
    

    and reload rules

    sudo udevadm control --reload-rules && sudo udevadm trigger
    

    For other cameras check the vendor id with lsusb. Connect or reconnect your camera through usb and power it on.

  4. Run the gui app and click on Get camera info.
    ./pmca-gui.py
    

    You should get the following output

    Loading app list
    Found 11 apps
    No native drivers available
    Using drivers libusb-MSC, libusb-MTP, libusb-vendor-specific
    Looking for Sony devices
    Querying mass storage device
    Sony DSC is a camera in mass storage mode
    Model:              ILCE-6000
    Product code:       xxxxxxxxxx
    Serial number:      xxxxxxxx
    Firmware version:   3.21
    Lens:               Model 0xxxxxxxxx (Firmware x.xx)
    
  5. In the Install app tab select OpenMemories: Tweak from the first list and click Install selected app. You should get the following output:
    Querying mass storage device
    Sony DSC is a camera in mass storage mode
    Switching to app install mode
    Waiting for camera to switch...
    Downloading apk
    Analyzing apk
    Warning: Invalid apk file
    Starting task
    Starting communication
    Uploading 0%
    Uploading 100%
    Downloading 100%
    Installing 0%
    Installing 100%
    Uploading 0%
    Uploading 100%
    Task completed successfully
    

    If the app disappears you can download it from this mirror - master d1acfe8 on 28 Feb 2018

  6. Disconnect your camera and navigate to apps menu. OpenMemories should be available in the menu.