Link to home
Start Free TrialLog in
Avatar of Andrew_schneider
Andrew_schneider

asked on

ftp server is Redhat 9.0 and more...

I am new to linux, I am just starting out for a month or too with Redhat.  I want to make a server (ftp and webserver (http) out of  this machine.  I installed everything in Redhat 9.  I am starting to get  some understanding of how linux works but am unsure of how the background services work.  For example, in windows you have a program running in the system tray that loads on startup and does the funstion you want it too, in this case an FTP server.

I noticed that i can do alot from the terminal, but I likr to work with the gui interfaces with programs.  I installed TightVNC and can't figure out how to launch the GUI server so that I can set it up.

As you can see much help is needed, and I appreciate all the help!!!
Avatar of Giovanni G
Giovanni G
Flag of Italy image


for the ftp server it's quite straight..
edit /etc/xinetd/wu-ftpd and comment out the disable = yes row (add # in front of it)

then type the following command (from the console):
service xinetd start

and the ftp server is up.

for the apache (http) server you need first to configure it. I would suggest reading the Apache manual for starting out.
anyway generally it is
Avatar of Andrew_schneider
Andrew_schneider

ASKER

need a little bit more than that....

what is the syntax for commenting out in Linux?
what does that 'add #' do? etc etc....

I appreciate the help

Andrew
Hi,

I use to use redhat 9 in the install you should select httpd server also you will should see an ftp server
when you have installed redhat 9 you can goto services and you will see everthing you can run

the httpd server is located in /usr/sbin so to get the web server running open a terminal and do:

[Damo@linux /usr/sbin]# ./httpd

you must be root to start the httpd server
ASKER CERTIFIED SOLUTION
Avatar of EmbeddedMind
EmbeddedMind

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I tried editting the vsftpd.conf file in terminal and it won't let me I either get a bad command or file not found.  I tried browsing through Nautilus andit says that i have no viewer or application that can read the file...no what?

Thanks
have you login as root or su- in the terminal?

which editor you using to edit the vsftpd.conf??

'no viewer or application that can read the file' look like the user don't have the access right to open the file, so try login as root.
Andrew, sorry, I possibly forgot to tell you how to view it. You can open this program using a text editor; like GnuEdit. The best way, since you will not need to edit very much, is to use a program called "vi." At the command line, while logged in as root, type

vi /etc/vsftpd/vsftpd.conf

Once you are in the config file you can see all the availible options etc. This link shows how to use vi

http://cac.uvi.edu/miscfaq/vi-cheat.html

This is the perfect chance to learn vi, vi will save you hours of time in the long run. But as I said you could use GnuEdit or any of the other text editors to open this file. Just open GnuEdit and click "file>open> /etc/vsftpd/vsftpd.conf." If it says that it cannot find the file, then vsftpd hasn't been installed. Hope this helps.
*Emebedded
Ok changes my mind.... going to only worry about the FTP side of this the web server can wait....

Embedded,
I used the command you just sai and saw the file, not quite sure what to add to it, (as far as users) and also not sure how to save it.

Any good sites or other info?

Andrew
Last question then I will hve to split the points because both of you have been helpful...

why can't I play Mp3's with xmms??  It says something about taking out support for playing mp3's or something.....

also,   what players do you suggest and what is the procedure of installing them etc...

I remember vaguely something about the command

tar -vcf or something like tha then [filename]
is there an untar command to?

Thanks so much guys..
Andrew
OH really important thing!!!!

Where is the  pub folder??? for anonymous logins
and how can I add a folder to the ftp so that it shows up for a user.... haven't looked at the link yet if it is in there.

LAST question I PROMISE
i also will raise the points for both of you


with my samba client, I can get files going from the RH 9.0 to the win2k computer that is on  on my network, but I cannot get files  going from the Redhat 9.0 to the Win 2k.   Both are on the same workgroup.

Thanks again and again.....
that depend on when u install, normally /var/ftp/pub

are the samba, you mean they are on the same network and workgroup right? so what's the error while on the workgroup
Yes, the pub folder is in "/var/ftp/pub." You can add a folder (directory) in that folder. For instance, the command:

mkdir -p /var/ftp/pub/uploads

Makes a directory called "uploads" in the directory /var/ftp/pub

For samba, go to the Server Settings -> Samba and add a share. Also, you will need to start the following services in the "Services" applet: "smbd" and if there are any other samba related entries start those as well. Do this using the same procedure I gave you for the other services.
*Emebedded
OK i lied, one more question....

how do I list an existing folder in the ftp... for instance...


ftp:// MY FTP blah blah

pub
MyMedia
in your broswer you can do the ftp://ftp.yourdomain.com/pub this will show up all your things in your ftp pub directory,

or your can use WS_FTP Pro (it's not free), login as anonymous, you can also get the list.

or use the do prompt - ftp ftp.yourdomain.com and login as anonymous, ls -l, you will also get the list.

many many .....
Paul,

SAMBA
when on the win2k machine, I dont see the linux machine, but when on the linux machine I can see and get files from the win2k machine.

and I don't quite get what ur sayin...
say I have a folder MyMedia which path is /home/ME/MyMedia

and I wanted to add that folder to be viewed on the ftp, hod do I do that?
For SAMBA, I think you have start it up, but have you config it rigth??

in /etc/samba/smb.conf have you change it for sharing out the folder for Windows users??
if no, sure the user from windows can't read/write
try to read the document in samba or redhat website.



will /home/ME/MyMedia open to public to read??

If yes, I will suggest you build a synbolic link in to the /var/ftp/pub

ln -s /home/ME/MyMedia /var/ftp/pub/MyMedia

for this MyMedia will list on the pub, and you have to set the access right in /home/ME/MyMedia to 744, so others can only read, only the owner and root can read/write.
hey i'm also trying to setup a vsFTp server on RH 9.0 ... but i just dont know how to start it, i Cant just run vsftp from console as it comes up with :"500 OOPS: vsftpd: does not run standalone, must be started from inetd" So how do i start it from inetd? also what do i edit to make Smb start on boot up and to make things automount on start up keep in mind i'm not using any GUI or Xserver here so above advice wasnt any help to me all the work i'm doing is done via ssh remotely.

thanks , Josh
Jester-

Pls post your request and give out the point, I don't think we will answer your question, please do the same as Andrew_schneider or read here https://www.experts-exchange.com/help/#2

Thanks
Paul