LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2004, 11:14 PM   #1
Vid
Member
 
Registered: Jan 2004
Distribution: Debian, FedoraC1, Slack 9.1, MDK 9.2/10.0
Posts: 55

Rep: Reputation: 15
FTP on Mandrake 9.2 HELP!!!


so i installed 'pro-ftpd' off of the RPMs that come on the mandrake 9.2 CDs. it claims to have installed sucessfully but unlike most things that I install they didnt show up in my menu.

so i brought up and terminal and did a 'locate proftpd' and i went to the directory where most of the files for those applications have been installed to. ive tried './proftpd' and just 'proftpd' and got bad command unknown command errors.

ive done and tried all this for 'wu-ftpd' as well.

so i guess my question is how can i start these applications because they seem to have installed ok but didnt show up in my menu, and i know i can add them using MenuDrake, but i dont know the command to start the application from the termintal so its usless..

any help is highly appriceated, thanks..
 
Old 01-27-2004, 11:27 PM   #2
tmorton
Member
 
Registered: Jan 2003
Location: In front of my computer in Oregon, USA
Distribution: Slackware
Posts: 198

Rep: Reputation: 31
Hi,
pro-ftpd is a server, and console at that. For that reason, it's not on the menu--like Apache.

Try running which proftpd, and then running:
rpm -q --whatprovides <location>

Also, you might try rpm -qal pro-ftpd.

BTW, I wouldn't recommend Mandrake for an FTP server. Try something less crashy, like Slack or Red Hat. Mandrake is more desktop orinted.
--Taj
 
Old 01-28-2004, 02:31 AM   #3
Vid
Member
 
Registered: Jan 2004
Distribution: Debian, FedoraC1, Slack 9.1, MDK 9.2/10.0
Posts: 55

Original Poster
Rep: Reputation: 15
alright, since im rather noobish to linux i dont really know what you mean by 'Try running which proftpd, and then running:'

but i opened up my terminal and i did the...
'rpm -q --whatprovides /usr/share/webmin/proftpd/' and on the next line it said
'webmin-1.100-2mdk' and then went back to the prompt. So i really dont know what that means.

then i did the 'rpm -qal pro-ftpd' and it hung for a sec and went right back to the prompt.

so those commands obviosly did something but i still cant figure out how to start and run the program.. any other tips?
 
Old 01-28-2004, 07:50 AM   #4
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
Thumbs up Here is how to get proftpd to work

tmorton, thanks for trying to help him, but you are leading vid in the totally wrong direction.

Vid, I understand your problem and what you need to do to (hopefully) fix it.

First off, you said the install was gravy and it didn't install a menu icon for proftp on your menu. It is not supposed to, proftpd is an ftp server, not an ftp client. Servers aka daemons aka services are normally started during boot using init scripts. You can find all of the init scripts in the /etc/rc.d/init.d directory on your mdk system.

rpm -ql proftpd

will list all files proftp has installed. If you notice, one of those files is '/etc/rc.d/init.d/proftpd'. If you change to that directory, you can manually start the service:

cd /etc/rc.d/init.d
./proftpd start

the commands status stop and restart are also useful. This is the manual way to do it. An easier way is using the service command.

service proftpd start

works nicely. All of this works great, if you don't mind manually starting and stopping the server EVERY time you want to use it, but this can get tedious. It was designed to be started through the init scripts during boot so here are a few ways to do that... first the manual way (so you learn) and then a few easier ways.

Assuming you boot into xwindows (mdk default) I am going to assume that you are in runlevel 5. The runlevel 5 startup directory is '/etc/rc.d/rc5.d' Change into that directory. and list the contents

'cd /etc/rc.d/rc5.d'
'ls'

You will see something like this:

K15postgresql@ K60atd@ S15netfs@ S60lpd@ S90xfs@
K20nfs@ K96pcmcia@ S20random@ S60nfs@ S99linuxconf@
K20rstatd@ S05apmd@ S30syslog@ S66yppasswdd@ S99local@
K20rusersd@ S10network@ S40crond@ S75keytable@
K20rwhod@ S11portmap@ S50inet@ S85gpm@
K30sendmail@ S12ypserv@ S55named@ S85httpd@
K35smb@ S13ypbind@ S55routed@ S85sound@

The S scripts are services that are started during boot or runlevel changes. The K scripts are services that are stopped during shutdown or runlevel changes. The above are all symbolic (soft) links to the scripts in /etc/rc.d/init.d.

Installing the proftpd rpm will install '/etc/rc.d/init.d/proftpd' and you can see this by a simple 'rpm -ql proftpd | less' Now you make a symlink from the aforementioned script to the runlevel 5 startup directory and everytime the computer boots up, proftpd will be started. Here is how you accomplish this.

'ln -s /etc/rc.d/init.d/proftpd /etc/rc.d/rc5.d/S51proftpd'

Make sure to check the configuration of proftpd is correct. '/etc/proftpd.conf' is the configuration file and '/usr/share/doc/proftpd-1.2.9/Configuration.html' will answer any configuration related questions you might have. You should also check your xinetd configuration for proftpd '/etc/xinetd.d/proftpd-xinetd'

There are easier ways to do the same thing. A few tools come to mind. Menu based 'ntsysv' or 'tksysv' work beautifully and if you want to script it, use 'chkconfig' Enable proftpd on runlevel 5 Also, did you update your version of proftpd? Read the advisory I posted below. You should always update your software.

Links:
http://www.mandrakeuser.org/docs/mdo...sv-levels.html
http://www.mandrakesecure.net/en/adv...MDKSA-2003:095
http://rpm.pbone.net/index.php3/stat....i686.rpm.html

Last edited by enigmasoldier; 01-28-2004 at 07:51 AM.
 
Old 01-28-2004, 10:52 AM   #5
tmorton
Member
 
Registered: Jan 2003
Location: In front of my computer in Oregon, USA
Distribution: Slackware
Posts: 198

Rep: Reputation: 31
Thanks for helping...wasen't sure if he wanted a server or a client...
--Taj
 
Old 01-28-2004, 07:55 PM   #6
Vid
Member
 
Registered: Jan 2004
Distribution: Debian, FedoraC1, Slack 9.1, MDK 9.2/10.0
Posts: 55

Original Poster
Rep: Reputation: 15
ahh, excellent, typing './proftpd start' as root does seem to start the program, it sais Starting proftpd: [ ok ] and then returns to the prompt. But i guess my question now is, is proftpd text based only? because it sais it starting and then sais OK but thats all that happens so im assuming its not graphic interface because thats all it did.

if this is the case, is there a good ftp server application that has a graphical environment and dosent have to be run primarily through the terminal?

and if thats not the case is there something i can do to start and run proftpd in a graphical environment?

i installed wuftpd and the same thing happened and i didnt know how to start it. but ill try to work with this information to get that working as well (since ive heard wuftpd is more secure)

all i need is a decent ftp server thats GUI and generally not to mind numbing to use.


thanks for the help guys, I appreciate it greatly,,

Last edited by Vid; 01-28-2004 at 08:01 PM.
 
Old 01-29-2004, 02:24 AM   #7
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
FTP Servers were designed long before there was a gui or when the gui sucked. They are very simple to configure and use by modifying the configuration files. I don't think you are really understanding that if something works from the command line that it can be scripted which saves LOTS of time for serious system administrators. You don't need a new ftp server "with a gui" you just need a frontend for a console ftp server. Gotta love open source!

Links:
http://rpms.mandrakeclub.com/rpms/ma...3mdk.i586.html
http://mange.dynup.net/linux.html Gproftpd Gnome frontend for proftpd configuration

Last edited by enigmasoldier; 01-29-2004 at 02:26 AM.
 
Old 01-29-2004, 04:48 PM   #8
Vid
Member
 
Registered: Jan 2004
Distribution: Debian, FedoraC1, Slack 9.1, MDK 9.2/10.0
Posts: 55

Original Poster
Rep: Reputation: 15
ahh, well, i did not know this, so I guess ill start learning to configure and run Proftpd from terminal and what now,, ill google it or something,

hey what you mean when you say "you just need a frontend for a console ftp server."?
 
Old 01-30-2004, 01:45 AM   #9
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
I gave you a link to Gproftpd. Gproftpd is a (graphical) frontend that makes it much easier to configure the ftp server and do basic administration. A frontend is just something pretty to look at and you can point and click. All it really does is edit the configuration file or silently run the console software and give you the results it spits back out. Think of it as a mask for an ugly person (the command line being ugly for the newbie) Check out the links I gave you in the previous post. Look at the screenshots of Gproftpd. I didn't just put the link up there for the heck of it. I gave you that so you could go check it out.
 
  


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
FTP for Mandrake n00bpenguin Linux - Networking 1 09-15-2005 12:05 PM
ftp to mandrake 10 jhaas Linux - Software 0 01-01-2005 08:39 AM
problem with ftp on mandrake 10.1 Official, ftp speeds system wide (anybody noticed?) equinox Mandriva 15 11-10-2004 03:07 PM
Ftp to Mandrake 10.0 Server Help! :( andy1 Mandriva 1 05-05-2004 12:59 PM
FTP software for Mandrake 9.1 kotton Linux - Software 1 05-24-2003 11:20 PM


All times are GMT -5. The time now is 04:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration