LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-18-2004, 06:47 PM   #1
psycoperl
LQ Newbie
 
Registered: Sep 2004
Location: New York
Distribution: Mandrake
Posts: 2

Rep: Reputation: 0
Setting up FTP


I would like to know how I can configure ftp to work so that when I ftp to my linux box. I am able to post the files on the webserver instead of having to navigate to it....

Mandrake 10.0
 
Old 09-18-2004, 09:09 PM   #2
JCdude2525
Member
 
Registered: Mar 2004
Location: Berlinsville
Distribution: Slackware/Fedora
Posts: 103

Rep: Reputation: 15
You want to learn how to make an FTP server then?

If that's the case, here we go.

Now, if you just want one done quickly then there is an FTP server called AnomicFTPd.
It runs using java, so if you don't have java installed then you have to goto java.sun.com and
install it. If you don't know how to install java then here are the steps-

One- download the latest version of Java from java.sun.com, don't download the RPM, download
binary
Two- run the setup program. Do this by-

Code:
cd /home/username/download
umask 0 ./j2re-1_4_2_05-linux-i586.bin
./j2re-1_4_2_05-linux-i586.bin
And then read and agree to the lisence agreement. It now installs it. I'm not sure what
happens after this, because I always download the sdk so I can compile java programs. But
if it asks you for a install directory, just install it to /opt(need root privilages, su at the shell).
Anyway, if it doens't ask you for a directory, just wait untill it's done. After that, type in this
at the command line-

Code:
java
If you get a bunch of stuff, then java's installed. If you get an error, then that means you installed it to another directory, such as /opt. If this be the case, edit your PATH variable.

Code:
su root
vi /etc/profile
Then add this to the bottom-
PATH=$PATH:/opt/j2sdk1.4.2_05/bin
Where /opt/j2sdk1.4.2_05/bin is the directory where java was installed, the /bin is there
because 'java' is in the /bin directory of that.

After that, log out, then log back in. You should be able to go to the command line and
have java run without errors. With this done, now to the ftp server.

One- goto http://www.anomic.de/ and download anomic ftp server
Two- extract it to some directory
Three- The directory name is really long, so rename it to somthing like aftpd
Four- edit these three files from the directory where you extracted the ftp server-

ftpd.groups, ftpd.accounts, ftpd.init.

It tells you in the config files how to configure them.

When you are all done, open a command line window, and do this-

Code:
cd /home/username/aftpd
./ftpd.sh
Then you will see a bunch of stuff. Read the stuff to make sure the ports are correct and
everything else is correct. DO NOT CLOSE THE TERMINAL WINDOW!!!! If you do so the
ftp server will shut down. This is only one of the ftp servers you can use. Two more popular
yet advaced ones are ProFTPd, and vsftpd.

Have fun!

-JCdude2525
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
setting up FTP mole_13 Linux - Newbie 3 03-22-2005 03:08 AM
Setting up FTP Carpaurion Linux - Newbie 1 11-09-2004 09:02 PM
Setting up a ftp.... Xetox Linux - Newbie 3 08-05-2003 12:42 PM
Setting up ftp klada Slackware 1 05-10-2003 06:29 PM
Setting up FTP .... sudhir Linux - Networking 14 02-13-2003 08:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:51 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