Monday, September 29, 2014

How to mount and unmount Samsung Galaxy Devices on Fedora 20

First of all you will need some packages. You can install using yum:

sudo yum install gcc-c++ fuse-devel libmtp libmtp-devel glib-devel glib2-devel file-devel

then download jmtps library

git clone https://github.com/kiorky/jmtpfs.git

and build it:

cd jmpts/
./configure
make
sudo make install

Now make edit the /etc/fuse.conf to allow other mount the device:
Change the line:

# user_allow_other

to

user_allow_other


Then make a directory to mount the device:

mkdir -p ~/My_Device

Now you can mount your device using the following command:

jmtpfs -o allow_other ~/My_Device

Now you can copy files from your PC to your device or backwards

When you finished, you have to unmount thee device using the command:

fusermount -u ~/My_Device

You can make two scripts with the command above.

echo -e "#/bin/bash\n# Author: Nikos Papakonstantinou <npapak@gmail.com>\nmkdir -p ~/My_Device\njmtpfs -o allow_other ~/My_Device" > imount | chmod +x imount

and

echo -e "#/bin/bash\n# Author: Nikos Papakonstantinou <npapak@gmail.com>\nfusermount -u ~/My_Device" > iumount | chmod +x iumount

source: https://ask.fedoraproject.org/en/question/9606/folder-opening-in-terminal-but-not-in-nautilus-file-manager/


1 comment:

  1. You will cherish it to make the most of our new application Amazon Alexa Apk : which you can download and appreciate free.

    ReplyDelete