MTP Services Mobian
#6
Hi,

there'd been no news for a while how to get back MTP-Service on the PinePhone.
As i use the phone mainly as a media player, i simply need a real easy way to transfer some files (mainly with Win10 Laptops).
So i had a look at the source repos and decided to turn the wheel back.
Reference:
https://salsa.debian.org/Mobian-team/mob...e03aacb86c

Here's how you re-activate umtp-responder (make sure you are root or use sudo while performing these steps):

- reinstall umtp-responder package:
  sudo apt-get install umtp-responder

- stop the specific services to do the changes:
  sudo systemctl stop umtp-responder.service
  sudo systemctl disable umtp-responder.service
  sudo systemctl stop mobian-usb-gadget.service
  sudo systemctl disable mobian-usb-gadget.service

- create a folder "umtp-responder.service.d" in /lib/sytemd/system:
  sudo mkdir /lib/sytemd/system/umtp-responder.service.d

- copy override.conf to /lib/sytemd/system/umtp-responder.service.d

- copy mobian.conf to /etc/umtprd

- replace mobian-usb-gadget in /usr/sbin

- replace mobian-usb-gadget.service in /lib/systemd/system

- replace umtp-responder.service in /lib/systemd/system

- enable and start the specific services:
  sudo systemctl enable mobian-usb-gadget.service
  sudo systemctl start mobian-usb-gadget.service
  sudo systemctl enable umtp-responder.service
  sudo systemctl start umtp-responder.service

Please see the tar.gz archiv for the directory structure as well... you may even extract the folder over your root...
but it is better to do it manually and try to understand the parts involved.

I made a slight change to the mobian.conf file as i use a sdcard for the media and do not need to access the home folder.
Because the sdcard is vfat there is no issue with the files permission.
As said before...
Try to understand what's involved, tweak it yourself and think about the security flaws mentioned in the mobian issue tracker.
It's your decision and i'm not responsible if the secret agent plans got stolen...
I like it a little more comfortable  Big Grin

EDIT: Just for completeness... it has been tested on up to date mobian system (emmc) while still on 5.10 linux kernel.
Make sure to keep some backup copies of the files replaced, to revert back...
Right now this should be treated as a temporary hack, because we could not simply put it back into the packages already distributed (e.g. mobian-tweaks, umtp-responder).

Cheers,
scholbert


Attached Files
.gz   umtp-restore.tar.gz (Size: 1.78 KB / Downloads: 354)
  Reply


Messages In This Thread
MTP Services Mobian - by exhoplex - 12-27-2020, 09:25 PM
RE: MTP Services Mobian - by exhoplex - 12-27-2020, 10:29 PM
RE: MTP Services Mobian - by scholbert - 01-06-2021, 07:37 AM
RE: MTP Services Mobian - by calinb - 01-22-2021, 09:55 PM
RE: MTP Services Mobian - by calinb - 01-23-2021, 04:46 PM
RE: MTP Services Mobian - by scholbert - 04-13-2021, 02:46 AM
RE: MTP Services Mobian - by MtnSk8 - 04-17-2021, 11:27 PM
RE: MTP Services Mobian - by calinb - 04-18-2021, 01:15 AM
RE: MTP Services Mobian - by MtnSk8 - 04-18-2021, 09:36 AM
RE: MTP Services Mobian - by calinb - 04-18-2021, 12:10 PM
RE: MTP Services Mobian - by a-wai - 04-19-2021, 07:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mobian Pinephone Notification LED biketool 0 108 05-30-2025, 03:40 AM
Last Post: biketool
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 62 18,524 05-14-2025, 03:28 AM
Last Post: anonymous
  Vivaldi Web browser nearly native for Mobian biketool 3 486 05-06-2025, 02:19 AM
Last Post: biketool
  mobian calamares fail merom 2 590 04-29-2025, 02:10 PM
Last Post: mdk
  mobian phosh on screen keyboard not popping up for Chromium/Electron apps grump_fiddle_reinstall 1 680 01-15-2025, 08:08 PM
Last Post: Kevin Kofler
  How to use QR codes on Mobian Sid(unstable) Pinephone Pro biketool 1 603 01-02-2025, 12:47 PM
Last Post: zetabeta
  Upgrade to Mobian (Trixie) Staging biketool 13 2,835 12-29-2024, 10:35 AM
Last Post: biketool
  Mobian Bulleyes aberrio 0 845 12-16-2024, 08:27 AM
Last Post: aberrio
  Mobian, Suspend, and Audio Playback biketool 0 771 12-11-2024, 12:56 AM
Last Post: biketool
  how to update mobian over tor vusra 14 11,958 12-04-2024, 07:01 PM
Last Post: vusra

Forum Jump:


Users browsing this thread: 1 Guest(s)