LinuxQuestions.org
Help answer threads with 0 replies.
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 10-22-2008, 08:20 PM   #1
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 279

Rep: Reputation: 69
Network install via vsftpd


Hello,
I am trying to ultimately install CentOS via a network install from an iso (dvd) image on another computer running Fedora 7. I tried installing vsftpd which apparently worked; by typing ftp://127.0.0.1/ in my browser I was able to see a 'pub' folder (/var/ftp/pub) and could place files in there which would then show up in the browser. However when placing the iso image in this folder it did not show up in my browser. I'm guessing the 3.7 GB file is too big, but nowhere in the documentation am I seeing anything about a maximum file size.

Similarly I tried creating a directory and mounting the image there (mount -t iso9660 -o loop centos.iso /var/ftp/pub/install), however the mounted directory appeared empty in firefox.

Is there a better way to do this? thanks.
 
Old 10-27-2008, 05:45 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Installing over FTP requires the packages inside the ISO to be available to the installer. Empty dir probably has to do with access rights. Check the logs?
 
Old 10-27-2008, 08:19 PM   #3
roach7711x
LQ Newbie
 
Registered: Oct 2008
Posts: 18

Rep: Reputation: 1
I would try chmod -R 755 pubs/

Then open up Firefox and check if you can see your file.
 
Old 10-31-2008, 06:04 PM   #4
ordealbyfire83
Member
 
Registered: Oct 2006
Location: Leiden, Netherlands
Distribution: LFS, Ubuntu Hardy
Posts: 279

Original Poster
Rep: Reputation: 69
Thanks for the replies. I ended up just downloading the cd iso's and installing from there.

Quote:
Originally Posted by unSpawn View Post
Installing over FTP requires the packages inside the ISO to be available to the installer. Empty dir probably has to do with access rights. Check the logs?
From what I gather vsftpd doesn't work with files from mounted iso files. One must probably need to extract them instead. (Once a directory contains a files mounted from an external iso image, the directory disappears in the browser. Thus doing a recursive chmod doesn't work for these read-only files.)

I still haven't resolved the file size issue though. Files of ~700mb show up just fine, but nothing over ~2 gb.
 
Old 11-02-2008, 04:30 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by ordealbyfire83 View Post
From what I gather vsftpd doesn't work with files from mounted iso files.
Sure it does:
Code:
mount /some_drive_device /some_mountpoint
losetup /dev/loop0 /some_mountpoint/some.iso
mount /dev/loop0 /some_other_mountpoint -o context=system_u:object_r:removable_t,gid=some_GID,uid=some_UID
mount --bind /some_other_mountpoint /var/ftp/pub
On FTP login as valid user and with a valid vsftpd.conf all directories are recursable in octal mode 0755 and all files are listed and available with octal mode 0644...


Quote:
Originally Posted by ordealbyfire83 View Post
One must probably need to extract them instead. (Once a directory contains a files mounted from an external iso image, the directory disappears in the browser. Thus doing a recursive chmod doesn't work for these read-only files.)
Extraction is better (faster) because you skip intermediate layers of "interpretation", but in the case of serving up ISO contents mount allows you to (temporarily and superficially) change the representation of what you're serving.


Quote:
Originally Posted by ordealbyfire83 View Post
I still haven't resolved the file size issue though. Files of ~700mb show up just fine, but nothing over ~2 gb.
What's the filesystem it resides on?
 
  


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
How to un-install vsFTPd? Ordinary12 Fedora 4 05-15-2007 10:03 AM
How to install VSFTPD ? sothy Linux - Networking 4 03-01-2006 07:13 AM
two network cards - one for local network, one for http/vsftpd server scottster Linux - Networking 1 01-20-2005 08:52 PM
vsftpd install problem rajesh_b Linux - Software 5 11-12-2004 11:08 AM
vsftpd install samshiver Linux - Software 3 03-14-2004 10:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:47 AM.

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