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: 224)
  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 repository status henrythemouse 16 8,528 04-10-2024, 10:02 AM
Last Post: diederik
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 15 1,812 03-25-2024, 09:07 AM
Last Post: anonymous
  cant verify mobian image at website gnugpg penguins_rule 0 111 03-18-2024, 08:54 PM
Last Post: penguins_rule
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 1,884 11-22-2023, 11:46 AM
Last Post: aLoop100o
  What actions needed to keep on mobian testing user641 3 1,764 09-05-2023, 06:44 AM
Last Post: Zebulon Walton
  Mobian boot failed with zstd message after upgrade. Mahgue 0 616 09-01-2023, 11:29 AM
Last Post: Mahgue
  how to update mobian over tor vusra 13 6,785 07-09-2023, 08:57 PM
Last Post: vusra
  opensnitch outbound firewall now works on mobian vusra 2 1,872 07-09-2023, 01:37 AM
Last Post: vusra
  Using Nativefier on PP64 with Mobian paulcarton 0 614 07-05-2023, 03:57 AM
Last Post: paulcarton
  Has anyone got briar-desktop running on mobian? vusra 5 2,961 06-19-2023, 03:02 PM
Last Post: vusra

Forum Jump:


Users browsing this thread: 1 Guest(s)