[ Milos88_vkbgd @ 29.12.2010. 12:50 ] @
Da li neko moze da mi objasni kako da podignem FTP server na Linux Ubuntu 10.04? Skinuo sam sa Apache sajta Apache FtpServer 1.0.5 released, sa ovog linka http://mina.apache.org/ftpserv...che-ftpserver-105-release.html i to sam skinuo iz odeljka Getting the Binary Distributions pa na Download link za Linux sisteme, PGP signature nisam skidao i nisam skidao Source Code. Otpakovao sam fajl iz download sekcije sajta na Desktop. Kada fajl ftpd.sh iz direktorijuma bin pokrenem u terminalu dobijam poruku o gresci:
Code:
JAVA_HOME is not defined correctly.
  We cannot execute java

Da li moze neko da mi objasni korak po korak kako da podignem ftp server na Ubuntu 10.04 jer sam totalni pocetnik, sto se tice koriscenja Linuxa, a pogotovu podizanja ftp servera. Ali koliko kapiram putanja do java direktorijuma koja se nalazi u fajlu ftpd.sh je pogresno napisana za Ubuntu 10.04 i trebala bi da se izmeni, jer ja kada odem na tu putanju kod mene na Linuxu se ne nalazi u tom folderu Java, nego u
Code:
/usr/share/java


Hvala vam i nadam se uspesnoj saradnji.
Pozdrav.
[ mulaz @ 29.12.2010. 14:02 ] @
http://www.cyberciti.biz/faq/ubuntu-vsftpd-ftp-service-server/
[ Milos88_vkbgd @ 29.12.2010. 23:39 ] @
Prvi korak prodje dobro, tj. instalira se ftp, drugi korak ne kapiram. Trazi da otvorim u nekom text editoru fajl vsftpd.conf i da obrisem znak # ispred local_enable=YES , ako sam dobro razumeo? Problem je u tome sto taj fajl vsftpd.conf mogu da otvorim, ali nista ne mogu u njemu da editujem, odnosno menjam. 3 korak za restartovanje ftp servera, ne dobijam istu poruku kao i na tutorialu, vec nesto drugacije. Jel bi mogao molim te malo detalnjnije da mi kazes sta bi trebao u tim koracima da uradim?

Code:
milos@milos-desktop:~$  sudo apt-get install vsftpd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
vsftpd is already the newest version.
The following packages were automatically installed and are no longer required:
  sdparm
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
milos@milos-desktop:~$  sudo vi /etc/vsftpd.conf

Code:
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Disabled by default)
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
#write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
#local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# If enabled, vsftpd will display directory listings with the time
# in  your  local  time  zone.  The default is to display GMT. The
# times returned by the MDTM FTP command are also affected by this
# option.
use_localtime=YES
#





[ nino1987 @ 30.12.2010. 00:40 ] @
moras bit root ili pozvat sa sudo kad mjenjas fajlove
[ Srđan Pavlović @ 30.12.2010. 12:10 ] @
Ako su neki sistemski fajlovi, onda da - ne moze da ih edituje obican koristnik, mora
se editor pozivati sa sudo ili biti logovan na root nalog.

sudo nano /etc/vsftpd.conf

Ako si manje iskusan, predlazem da umesto "vi" editora koristis "nano".

Ili jos bolje iz grafickog okruzenja sa gedit-om:

sudo gedit /etc/vsftpd.conf

zatim izmeni sta treba i snimi promene, onda idi dalje korake kako pise tamo.
[ Milos88_vkbgd @ 31.12.2010. 11:31 ] @
Ok, hvala Srdjane. Probacu sledece godine. :) Ma na Linuxu ne znam da radim, sada sam ga instalirao tek i zelim da naucim da radim, a kako nauciti ako ne isprobamo razne varijante.:)