LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-24-2020, 09:13 AM   #1
wdarledge
Member
 
Registered: Nov 2017
Location: Dallas, TX (North Dallas)
Distribution: Slackware 14.2
Posts: 98
Blog Entries: 8

Rep: Reputation: Disabled
how to install an ftp server in Slack


ok...

I have trouble synching w/my Android.

the best advice to me, was that I need to set-up an ftp server

now... blinking cursor.....

what is step #1?
odin
 
Old 08-24-2020, 09:20 AM   #2
StalocX
Member
 
Registered: Aug 2020
Distribution: Slackware
Posts: 50

Rep: Reputation: 11
I use syncthing to sync everything I need between PCs and android phone. If you need ftp take a look at FTP Server from F-Droid. You can connect with gFTP that comes with Slackware.

Last edited by StalocX; 08-24-2020 at 09:23 AM.
 
Old 08-24-2020, 09:26 AM   #3
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,072

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
My preferred tool for transfer between my android and pc is the FireFTP plugin for the Palemoon browser (a "legacy" plugin, so sadly not available for more recent Firefox versions).
Filezilla (see slackbuilds.org) is a handy tool as well.
 
1 members found this post helpful.
Old 08-24-2020, 09:38 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Slackware comes with proftpd and vsftpd.
 
2 members found this post helpful.
Old 08-24-2020, 11:23 AM   #5
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Rep: Reputation: 279Reputation: 279Reputation: 279
As dugan stated, Slackware already comes with proftpd and vsftpd. In the past I have used vsftpd. This is initialized through inetd (check your /etc/rc.d directory). It is configured via /etc/vsftpd.conf. I would read the documentation before proceeding, as having an FTP server on your machine can open up significant security issues if you don't know what you're doing.

Another option is to use sftp (not to be confused with ftps) which is ftp over ssh. In so doing, you're not setting up an ftp server per se but rather you're using something FTP-like over the ssh protocol. You would log in using your ordinary user credentials and get access to your home directory over ssh.

You can then look at something like Turbo Client for Android which does support sftp.
 
2 members found this post helpful.
Old 08-24-2020, 02:09 PM   #6
chemfire
Member
 
Registered: Sep 2012
Posts: 422

Rep: Reputation: Disabled
If you have a satisfactory SFTP client on your device, I would go that route. You probably don't need to do any more than

#chmod +x /etc/rc.d/rc.sshd

on your Slackware system to get that working, if you don't already have sshd running. Its relatively secure out of the box. You could make it even more secure and easier if you set up ssh keys etc but you can learn about that stuff after you determine your basic need is met.

FTP really IMHO should be avoided in 2020. There are certainly cases where its still just all one endpoint can speak and in those cases you *may* be able to improve matters by moving to ftp(s):// and using something like stunnel if the client does not support TLS but can at least support PASV ftp. There are also things that are "not broken" so maybe should not be "fixed." Still for any new setups even ftps should really be considered deprecated, you can still run into odd traps where the control Chanel is encrypted but actual transfers go clear text unintentionally. Its really unfriendly to NATs even when PASV is supported, and requires weird often broken inspects. Its unfriendly to ipv4->ipv6 gateways. Maybe none of these things apply to home LAN much but just keep in mind FTP should generally be the last tool in the box you go after.
 
3 members found this post helpful.
Old 08-25-2020, 08:23 AM   #7
ReFracture
Member
 
Registered: Oct 2007
Posts: 209

Rep: Reputation: 222Reputation: 222Reputation: 222
+1 to SFTP. There are apps available readily on both iOS and Android that can make use of it to transfer files.
 
Old 08-25-2020, 04:20 PM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,457
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by wdarledge View Post
the best advice to me, was that I need to set-up an ftp server
Set one up... On the phone. This one is easy to use: https://f-droid.org/en/packages/org.primftpd/

Then you can use gftp on Slackware (or whatever client you prefer) to connect to it.
 
1 members found this post helpful.
Old 08-27-2020, 02:37 PM   #9
wdarledge
Member
 
Registered: Nov 2017
Location: Dallas, TX (North Dallas)
Distribution: Slackware 14.2
Posts: 98

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
.... so Host would be the name of my PC

and would this connect using USB?

odin
 
Old 08-28-2020, 10:24 AM   #10
wdarledge
Member
 
Registered: Nov 2017
Location: Dallas, TX (North Dallas)
Distribution: Slackware 14.2
Posts: 98

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
i am not at all sure I am doing this correct

#chmod +x /etc/rc.d/rc.sshd on my Linux box

dowload TurboClient on Android

set TurboClient up with user and pass as directed or the one I use natively

connect usb

get error "Java exception, unknown host:HOSTNAME" using the name of my machine as Host name.

any ideas?
odin
 
Old 08-31-2020, 07:02 PM   #11
wdarledge
Member
 
Registered: Nov 2017
Location: Dallas, TX (North Dallas)
Distribution: Slackware 14.2
Posts: 98

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
This is one thing I hate about Slackware, to the posters they understand and think they are helping when they are doing nothing for anybody.

Not for me, not for the hundreds of people who have looked at this thread.

Every post on here lacks instruction, a path from Point A to Point ?

Listing websites or programs on the web is useless if there is not a set of instructions that help.

Otherwise this is all futile.

Failures of posts like this to me, are the reason Ubuntu is the go to Distro and Windows and Apple rule the
world.

To all the posters who led me down a dirty road with a dead-end waiting for me .... (0) eat me!!!!!!
odin
 
Old 08-31-2020, 08:37 PM   #12
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
./bassmadrigal -v

Quote:
Originally Posted by wdarledge View Post
This is one thing I hate about Slackware, to the posters they understand and think they are helping when they are doing nothing for anybody.

Not for me, not for the hundreds of people who have looked at this thread.

Every post on here lacks instruction, a path from Point A to Point ?

Listing websites or programs on the web is useless if there is not a set of instructions that help.

Otherwise this is all futile.

Failures of posts like this to me, are the reason Ubuntu is the go to Distro and Windows and Apple rule the
world.

To all the posters who led me down a dirty road with a dead-end waiting for me .... (0) eat me!!!!!!
odin
If you want to sling mud, I'll sling it right back.

What did you expect? You asked what step #1 would be. Why not ask Google? (slackware ftp server) This would at least get you some information on Slackware and FTP servers. The second main link for me (we should probably ignore the first links to the LQ forum since apparently we suck since we don't write all the instructions for software that includes man pages or help online) is titled "Configure VSFTPD on Slackware Linux". Whoa! Could it be that easy?

But no, you hop on a forum and ask the question. Cool. You got a lot of responses. Rather than be grateful for many choices, you choose to complain because there's not a step-by-step guide? Then we go back to dugan's post where he actually tells you that Slackware comes with 2 FTP servers (one of which was listed in the Google search above... with step-by-step instructions). Do you decide to search on how to use proftpd and vsftpd? Apparently not as you then jump to sftp (which, I'll admit, I prefer over FTP).

Then you get an error, whether on the phone or the computer, we have to guess and no further details. No one responds... so, of course, Slackware users suck.

Why not try another method?

I was originally going to post and add my two cents, but since so many people responded, I let it be at the time.

As for you mentioning USB, FTP can't work over that. It's designed to work over a network and USB doesn't create a network. If you want to use USB, then this would be entirely different instructions with various possible methods of attaining your goal.

As for the "hundreds of views", I imagine a lot of those are from internet crawlers like Google or the Wayback Machine. But even if it was hundreds of legit views, that doesn't automatically mean that people are going to know how to fix your problem, or maybe they feel you didn't do enough research and decided to skip over the thread, or maybe they're just lurking. I lurked on this forum for years before I started properly contributing to it. I learn a lot more by reading what other people do than the research I could make on my own.

However, here I come to spoon feed you instructions. This is using sftp over ssh as I don't use FTP for anything anymore. There are probably hundreds of ways to do this and you could use any number apps that support sftp, but I use Solid Explorer. This will be over a network, so you'll need to make sure that both the computer and phone are connected to the same local network (your computer can be wired or wireless, but, for hopefully obvious reasons, your phone will need to be on wifi).

First make sure rc.sshd is executable and started
Code:
chmod +x /etc/rc.d/rc.sshd
sh /etc/rc.d/rc.sshd start
Now get your IP address or hostname. (Check /etc/hostname or ifconfig output for this info.)

Install Solid Explorer on your Android device.
Open it and Select the plus sign in the bottom right corner.
Select "New Cloud Connection" and select "SFTP" in the next screen.
Click Next.
Now type your server name (the name of your computer) or the IP address of your computer. Keep the port as 22 unless you know you've changed it to something else.
Click Next.
Keep the default of "Username and password".
Click Next.
Then type in your username and password.
Click Next.
Keep "No" selected.
Click Next.
Click Next.
Click Connect.

Now you can browse your computer's filesystem on your phone.

=====If you want to move things from the computer to your phone====
On the second screen (your computer's filesystem), press and hold to select the items you want to copy. Select copy. Slide to the left screen and navigate to where you want the files saved and select paste.

=====If you want to move things from the phone to your computer====
On the first screen (your phone's memory), press and hold to select the items you want to copy. Select copy. Slide to the right screen and navigate to where you want the files saved and select paste.

================================

Slackware is not designed to be easy to use. Some of us feel it is easy to use, but there's no grand design other than trying to keep things vanilla. You should expect to need to get your hands dirty in Slackware. You'll probably break it at some point. You should be comfortable trying to figure out how to do things yourself. You should not expect handouts on the forum. You should use that as a starting point and try to get what you can done, and if you run into issues, post *detailed* information so we can try and help you.

Overall, I imagine most Slackware users don't care how popular Windows, OSX, or Ubuntu are. We like that Slackware sticks to its principles. If you need the type of hand-holding that the Ubuntu forums can offer you, maybe you should switch to Ubuntu. There is no best distro for everyone. However, for some, a distro can be the best *for them*. There's nothing wrong if someone finds a distro that is better for them than Slackware. Maybe you should have a think on if this is the right distro for you. If it is, then I'd recommend trying to use the forum as a starting point. Get some suggestions, then dig in and try to find the solution. Ideally, you could even come share that solution back here so others can benefit from it.
 
5 members found this post helpful.
Old 09-01-2020, 01:35 AM   #13
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,457
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
^bm, that is way more time than this person deserves. Well done for having the patience. As for me, I'm gonna go eat a chocolate donut.
 
2 members found this post helpful.
Old 09-03-2020, 10:02 AM   #14
ReFracture
Member
 
Registered: Oct 2007
Posts: 209

Rep: Reputation: 222Reputation: 222Reputation: 222
Heh you're a lot nicer than me bass.

Look OP, putting aside how disrespectful you are towards people just trying to help.. if you are not willing to read documentation and learn a thing or two about what is you're trying to do.. then there's no distro on the surface of this earth that you'll be truly happy with. Even the most UI driven distros like Ubuntu at times will fail you if you're unwilling to read and learn a little bit.. (to an extend I'd argue this is the case for computers.. period, with any operating system, but I digress)..
 
Old 09-03-2020, 04:35 PM   #15
wdarledge
Member
 
Registered: Nov 2017
Location: Dallas, TX (North Dallas)
Distribution: Slackware 14.2
Posts: 98

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
bassmadrigal - i will put it to the test and see what comes up....

life is tough guys.... go eat a chocolate dougnut if you wish... your blood pressure medicine, you PCP and your body fat content will love you for it!!!

you don't like what i say.... don't read it!

can't take the heat.... walk away or "strap it on"....

i don't take exception with people except when they deserve it ...

not one time, that i know of, has anybody ever taken it well when that happens!!!

does that mean my point is invalid? No! It does not! Am I responsible if you get your feeling hurt? No! I am not!

Help is help only if it is explained to the point that gets a person back on track. If you do not do that, if you give a "half-ass" try and expect to be applauded for it...
then THAT is the whole problem right there.

you do the job.... you get the praise!

you do half a job... throw out some nonsense that doesn't "do the job".... then you ought to be used to having your ass handed to you!

every thread on here i have posted, DOES have a wrap up at the end. I intend that for every person - whether Google searchers or not - that reads one of my threads, that they can do what I just learned how to do.

Point is, linux is FULL of ASSHOLES who THINK they are superior to everyone else SIMPLY because you ARE willing to put up with not being able to run a DVD from the box, or plug in a USB device and have it NOT read the device OUT OF THE BOX ....

Whether you have the time to search every little thing down, implement it, only to have it fail, then have a bunch of fat, hairy, slow, uneducated farts tell you "go look it up for yourself" and give me the web site ..... then I would hope that YOU don't represent the vast majority of Linux users who, like me, do want the Liberty Linux offers....

Linux is great, you old grippy, hypocritical, mean, short-tempered farts are NOT!!!!!!!!!!!!!!!
 
  


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
FTP error -ftp://192.168.122.176/repodata/repomd.xml: [Errrno 14] FTP error 550 - petespa CentOS 3 11-28-2015 05:07 PM
LXer: Setup FTP server using VsFtp and Configure Secure FTP connections on Ubuntu 14.04 Server LXer Syndicated Linux News 0 08-20-2014 07:00 PM
when I use ftp://user@ftp.blah.com it works. But when I type just ftp.blah.com says.. hunterhunter Linux - General 15 03-05-2014 09:12 AM
file transfer from one ftp server to another ftp server divyashree Linux - Newbie 7 02-24-2010 02:48 AM

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

All times are GMT -5. The time now is 05:21 AM.

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