LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-18-2015, 04:13 PM   #1
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Slackware + Android


I was wondering what can I do to get Dolphing to open up directories and files from my android device when I plug it to the laptop. I am in Slackware 14.1 with KDE 4.14.x.
I am aware I can transfer data wirelessly through ssh or SAMBA. But I would like tackle this issue as an average user. Let say my uncle Bob wants to copy couple of mp3s from my music folder into his Galaxy Note while I am mowing outside. Is the gvfs-mtp plugin for dolphin all I need? I will appreciate your suggestions. Thank you.
 
Old 11-18-2015, 04:59 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
If you install KDEConnect for Android on that phone, and sshfs-fuse on your Slackware computer, then the kdeconnect-kde package in Slackware will be able to communicate with the phone. IT will be capable of much more than filetransfer. Your phone's notifications will show up in Slackware's KDE notification area, you'll be able to share the clipboard, remotely control your Slackware computer's keyboard & mouse, etcetera.
 
2 members found this post helpful.
Old 11-18-2015, 05:01 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
... and of course, the above works over your local network. If you connect the phone through USB cable, the MTP protocol driver should make your phone's storage available to the computer and as far as I remember, the phone storage should be mountable.
 
1 members found this post helpful.
Old 11-18-2015, 05:17 PM   #4
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
I did test this recently, ideally the phone should ask if storage should be enabled on usb cable connect.
When enabled in the phone, udisks detects the card normally, just like any other partition, and user can mount it through the dolphin side bar.
But to access files on internal storage (not sdcard) one should enable debugging in the phone and build android-tools from sbo.
 
1 members found this post helpful.
Old 11-19-2015, 06:20 AM   #5
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,971

Rep: Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549
Slackware64-current

I was using KDE Connect successfully to transfer files from my Samsung S4 with Dolphin. I don't use it often and I went to transfer some files the other day from my phone to my pc and discovered it no longer works. In Dolphin the are two folders showing for my device, "Camera pictures" and "All files". When selecting the folders I get these errors in Dolphin:
Code:
The file or folder /home/chris/.kde/share/apps/kdeconnect/9359abf8f594255/storage/emulated/0/DCIM/Camera does not exist.
The file or folder /home/chris/.kde/share/apps/kdeconnect/9359abf8f594255/storage/emulated/0 does not exist
They do exist on the phone.

I recompiled sshfs-fuse, no change. This worked before, now is does not. I am guessing it's something in the update from (Thu Oct 29 20:12:14 UTC 2015); but it could be before that; perhaps the openssh update in September. To date I have not be able to pin down the problem.

I can send files from my phone to my pc using the KDE Connect App. That can be a tedious operation since it's one at a time. I can also connect via USB but it's rather convenient to use KDE Connect since the phone is normally in the bed room and my computer is not; which means I have to get up from the computer, go the bed room get my phone. All the other neat stuff with KDE Connect work great (except the App Multimedia control "No players found" which I really don't need).

Quote:
Originally Posted by elcore View Post
I did test this recently, ideally the phone should ask if storage should be enabled on usb cable connect.
When enabled in the phone, udisks detects the card normally, just like any other partition, and user can mount it through the dolphin side bar.
But to access files on internal storage (not sdcard) one should enable debugging in the phone and build android-tools from sbo.
Hmm.. I don't have a sdcard installed. This worked before with out android-tools from SBo. USB debugging was enabled. Perhaps this goes back to the last udisks update in April....

Going to give android-tools a shot and report back the results.
 
Old 11-19-2015, 06:46 AM   #6
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,971

Rep: Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549
Android-tools did not help.
 
Old 11-19-2015, 08:26 AM   #7
nivieru
Member
 
Registered: Feb 2008
Posts: 78

Rep: Reputation: 14
chrisretusn, I had the same problem with kde-connect, apparently due to openssh rejecting legacy algorithms.
the solution was to add to the file ~/.ssh/config the following:
Code:
Host ip.of.android.device
    HostkeyAlgorithms ssh-dss
more info here
 
1 members found this post helpful.
Old 11-19-2015, 09:06 AM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Interestingly, this incompatibility between kdeconnect and openssh was fixed in the kdeconnect repository, but that did not help the version which is contained in Slackware-current because it was fixed afterwards: https://bugs.kde.org/show_bug.cgi?id=351725
 
1 members found this post helpful.
Old 11-19-2015, 09:22 AM   #9
Raveriux
Member
 
Registered: Jul 2013
Location: Lithuania
Distribution: Slackware64 14, Slackware64 -current, Maemo
Posts: 113

Rep: Reputation: Disabled
You can try https://whoozle.github.io/android-file-transfer-linux/
 
Old 11-19-2015, 05:12 PM   #10
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Original Poster
Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Quote:
Originally Posted by Raveriux View Post
I tried to build it with make but it didnt built

Code:
collect2: error: ld returned 1 exit status
make[2]: *** [cli/aft-mtp-cli] Error 1
make[1]: *** [cli/CMakeFiles/aft-mtp-cli.dir/all] Error 2
make: *** [all] Error 2
 
Old 11-19-2015, 05:49 PM   #11
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
We'd need the output further up where it actually shows the error... if you want help in diagnosing why it won't build.
 
Old 11-19-2015, 06:33 PM   #12
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Original Poster
Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Sorry about that, here it is.
Quote:
/usr/lib/gcc/i486-slackware-linux/4.8.2/../../../libreadline.so: undefined reference to `PC'
/usr/lib/gcc/i486-slackware-linux/4.8.2/../../../libreadline.so: undefined reference to `tgetflag'
/usr/lib/gcc/i486-slackware-linux/4.8.2/../../../libreadline.so: undefined reference to `tgetent'
/usr/lib/gcc/i486-slackware-linux/4.8.2/../../../libreadline.so: undefined reference to `UP'
/usr/lib/gcc/i486-slackware-linux/4.8.2/../../../libreadline.so: undefined reference to `tputs'
/usr/lib/gcc/i486-slackware-linux/4.8.2/../../../libreadline.so: undefined reference to `tgoto'
/usr/lib/gcc/i486-slackware-linux/4.8.2/../../../libreadline.so: undefined reference to `tgetnum'
/usr/lib/gcc/i486-slackware-linux/4.8.2/../../../libreadline.so: undefined reference to `BC'
/usr/lib/gcc/i486-slackware-linux/4.8.2/../../../libreadline.so: undefined reference to `tgetstr'
collect2: error: ld returned 1 exit status
make[2]: *** [cli/aft-mtp-cli] Error 1
make[1]: *** [cli/CMakeFiles/aft-mtp-cli.dir/all] Error 2
make: *** [all] Error 2
 
Old 11-19-2015, 07:34 PM   #13
_gin
Member
 
Registered: Aug 2012
Distribution: Oracle Linux
Posts: 106

Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by TroN-0074 View Post
Sorry about that, here it is.

I gave It a try with android-file-transfer-linux-2.4 like this:

Code:
mkdir -p build && cd build
cmake -DCMAKE_EXE_LINKER_FLAGS:STRING="-lreadline -ltermcap" ../
It compiled but I didn't push further I don't know If the software works

It also compiles with:
Code:
cmake -DCMAKE_EXE_LINKER_FLAGS:STRING="-lreadline -lncurses" ../

Last edited by _gin; 11-19-2015 at 07:40 PM.
 
Old 11-20-2015, 02:08 AM   #14
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,971

Rep: Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549
Quote:
Originally Posted by nivieru View Post
chrisretusn, I had the same problem with kde-connect, apparently due to openssh rejecting legacy algorithms.
the solution was to add to the file ~/.ssh/config the following:
Code:
Host ip.of.android.device
    HostkeyAlgorithms ssh-dss
more info here
That fixed it. Thanks.

You know I read that page before and somehow it never registered with me, can't believe I missed that.
 
Old 11-20-2015, 02:49 AM   #15
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,971

Rep: Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549
Quote:
Originally Posted by Alien Bob View Post
Interestingly, this incompatibility between kdeconnect and openssh was fixed in the kdeconnect repository, but that did not help the version which is contained in Slackware-current because it was fixed afterwards: https://bugs.kde.org/show_bug.cgi?id=351725
Well how about that, just got notified my local Slackware mirror has been updated, and guess what is included.

Code:
> kde/kdeconnect-kde-0.8-x86_64-3.txz:  Rebuilt.
>   Patched to fix problems with OpenSSH 7.x.  Thanks to Eric Hameleers.
Thanks Alien Bob.

Guess what I'm going to do in a few minutes.

Last edited by chrisretusn; 11-20-2015 at 02:50 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 14.1 and Android Development? linus72 Slackware 9 09-27-2014 01:27 PM
Slackware in an android chroot? michaelslack Slackware 0 02-25-2014 09:44 AM
android building and Slackware {davros} Slackware 6 07-21-2011 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration