Setting up an FTP server

Ask questions about Arch Linux ARM. Please search before making a new topic.

Setting up an FTP server

Postby w00tguy123 » Sun Jan 16, 2011 3:32 am

The reason I installed Arch Linux ARM install was because the pogoplug service was problematic and slow (I was dling at a few kb/s). I'm pretty new to Linux, so what would be the easiest way to set up an ftp server on the pogoplug v2? I have successfully set up a server on windows using Filezilla, but I haven't a clue how to install and configure any ftp program through the Linux terminal. I don't want to have to spend hours learning how to do this, but if it's my only option, then where should I start? I figured I would try to get it set up on a desktop Linux distro first because I would at least have a gui to work with.
w00tguy123
 
Posts: 2
Joined: Sun Jan 16, 2011 3:06 am

Re: Setting up an FTP server

Postby oddballhero » Sun Jan 16, 2011 3:41 am

oddballhero
 
Posts: 17
Joined: Tue Sep 28, 2010 7:59 am

Re: Setting up an FTP server

Postby w00tguy123 » Sun Jan 16, 2011 5:28 am

Thank you very much, I can now access my pogoplug and any attached usb drives remotely! I can't wait to test out the speed of this setup.
w00tguy123
 
Posts: 2
Joined: Sun Jan 16, 2011 3:06 am

Re: Setting up an FTP server

Postby oddballhero » Sun Jan 16, 2011 8:10 am

Should you get bored:
https://wiki.archlinux.org/index.php/Si ... bDav_Setup
http://www.Arch Linux ARM.com/index.php5?titl ... n:Ddclient
http://www.dyndns.com/ or http://www.no-ip.com/
Make sure to beef up your network security.

Recreate what should have been the pogoplug experience,
or
Just stick with ftp since it is tried and true.
oddballhero
 
Posts: 17
Joined: Tue Sep 28, 2010 7:59 am

Re: Setting up an FTP server

Postby TheDurtch » Thu May 03, 2012 1:45 am

i tried to build the package using this https://wiki.archlinux.org/index.php/Ar ... g_packages and i get this:
==> ERROR: pure-ftpd is not available for the 'arm' architecture.
Note that many packages may need a line added to their PKGBUILD
such as arch=('arm').

am I doing something wrong.

what i did was:
$ wget --no-check-certificate https://aur.archlinux.org/packages/pu/p ... tpd.tar.gz
$ wget --no-check-certificate http://aur.archlinux.org/packages/pu/pure-ftpd/PKGBUILD #Just in case i need it
$ makepkg -s
==> ERROR: pure-ftpd is not available for the 'arm' architecture.
Note that many packages may need a line added to their PKGBUILD
such as arch=('arm').

I am putting it in my home dir
TheDurtch
 
Posts: 28
Joined: Wed May 02, 2012 2:59 pm

Re: Setting up an FTP server

Postby pepedog » Thu May 03, 2012 8:27 am

makepkg -Acs
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Setting up an FTP server

Postby TheDurtch » Thu May 03, 2012 9:12 pm

ok so i have it working now. how do i get it so when i get on via ftp my start dir is /mnt/sdx instead of /home/user/
Last edited by TheDurtch on Thu May 03, 2012 10:20 pm, edited 2 times in total.
TheDurtch
 
Posts: 28
Joined: Wed May 02, 2012 2:59 pm

Re: Setting up an FTP server

Postby WarheadsSE » Thu May 03, 2012 10:02 pm

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Setting up an FTP server

Postby Mewit » Mon Aug 27, 2012 6:18 am

Hi there,
I'm trying to do the same thing with a pogoplug v2 - run an ftp server on it by installing pure-ftpd. I ran into the same problem with it saying not supported for ARM, but got around it by putting arch=('arm') in the PKGCONFIG and it seemed to work. Except for two things, running makepkg -s gives me this error:

ERROR: Running makepkg as root is a BAD idea and can cause permanent,
catastrophic damage to your system. If you wish to run as root, please
use the --asroot option.

not sure if that means I haven't got sudo installed or something? Didn't know that was possible, but sudo as a command doesn't work either. Anyway, when I run makepkg --asroot it works, but it says:


==> Making package: pure-ftpd 1.0.35-1 (Thu Jan 1 04:19:15 CST 1970)
==> Checking runtime dependencies...
==> Missing Dependencies:
-> libmysqlclient
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

So I try to install libmysqlclient like this:

[root@alarm pure-ftpd-1.0.35]# pacman -S libmysqlclient
resolving dependencies...
looking for inter-conflicts...

Targets (1): libmysqlclient-5.5.25.a-1

Total Download Size: 3.24 MiB
Total Installed Size: 19.85 MiB

Proceed with installation? [Y/n] y
:: Retrieving packages from extra...
error: failed retrieving file 'libmysqlclient-5.5.25.a-1-arm.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404
warning: failed to retrieve some files from extra
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.

So in case it isn't obvious, I'm pretty new to linux and I know my problem is almost certainly something stupid I'm doing but.. help?
Thanks a lot,
Alex

ps. also I tried to run pacman -S base-devel like it says in the package installation page but most of the options (1 through 11) don't seem to work. Gives me the same 404 error. Is this related?
Mewit
 
Posts: 6
Joined: Mon Aug 27, 2012 6:04 am

Re: Setting up an FTP server

Postby karog » Mon Aug 27, 2012 1:24 pm

Your first issue is saying that you are running makepkg while running as root and it is advising against that. Using --asroot says to do it anyway.

The libmysqlclient issue would appear to be that your package list is out of date. Update it first with:
$this->bbcode_second_pass_code('', '
pacman -Syy
pacman -S libmysqlclient')
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Next

Return to User Questions

Who is online

Users browsing this forum: No registered users and 5 guests