pavement

Installing FreeBSD from a Local FTP Site

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
(FreeBSD)
 
Line 39: Line 39:
 
** [http://filezilla.sourceforge.net/ Filezilla (server) ]
 
** [http://filezilla.sourceforge.net/ Filezilla (server) ]
 
** [http://support.jgaa.com/index.php?MenuPage=download WarFTPD ("Free" Proprietary License)]
 
** [http://support.jgaa.com/index.php?MenuPage=download WarFTPD ("Free" Proprietary License)]
Anyone with network connectivity to your machine can now chose a media type of FTP and type in <nowiki>ftp://your machine</nowiki> after picking “Other” in the FTP sites menu during the install.
+
Anyone with network connectivity to your machine can now chose a media type of FTP and type in <nowiki>ftp://your machine</nowiki> after picking “Other” in the FTP sites menu during the install.
  
 
Note: If the boot media (floppy disks, usually) for your FTP clients is not precisely the same version as that provided by the local FTP site, then sysinstall will not let you complete the installation. If the versions are not similar and you want to override this, you must go into the Options menu and change distribution name to any.
 
Note: If the boot media (floppy disks, usually) for your FTP clients is not precisely the same version as that provided by the local FTP site, then sysinstall will not let you complete the installation. If the versions are not similar and you want to override this, you must go into the Options menu and change distribution name to any.

Latest revision as of 08:16, 1 June 2010

Contents

[edit] Creating a Local FTP Site with a FreeBSD Disc

FreeBSD ISO images (discs) have a layout similar to the FTP site. This makes it very easy for you to create a local FTP site that can be used by other machines on your network when installing FreeBSD. See FreeBSD ISO layout for more details.

[edit] Mount a FreeBSD CDROM

[edit] FreeBSD

On the FreeBSD computer that will host the FTP site, ensure that the CDROM is in the drive, and mounted on /cdrom.

# mount /cdrom

This only mounts the first CD. To recreate the entire FTP site keep reading.

[edit] Mount a FreeBSD CDROM Image

[edit] FreeBSD

Mounting ISOs under FreeBSD 5.x (also applies to 6.x)

[edit] Windows

Obtain software that will mount an iso image.

  • Daemon Tools 3.4.7 ("Free" for non-commercial use. Not Open Source. Proprietary License.)
    • Note: More recent versions contain adware.
    • Install the software and mount the iso.

[edit] Copy All Files to a New Directory to Recreate the FTP Site

[edit] FreeBSD

# cp -Rp /cdrom /ftproot

[edit] Create Anonymous FTP Account

Create an account for anonymous FTP in /etc/passwd. Do this by editing /etc/passwd using vipw(8) and adding this line:

ftp:*:99:99::0:0:FTP:/cdrom:/nonexistent

[edit] Enable FTP Service

[edit] FreeBSD

Ensure that the FTP service is enabled in /etc/inetd.conf.

[edit] Windows

Anyone with network connectivity to your machine can now chose a media type of FTP and type in ftp://your machine after picking “Other” in the FTP sites menu during the install.

Note: If the boot media (floppy disks, usually) for your FTP clients is not precisely the same version as that provided by the local FTP site, then sysinstall will not let you complete the installation. If the versions are not similar and you want to override this, you must go into the Options menu and change distribution name to any.

Warning: This approach is OK for a machine that is on your local network, and that is protected by your firewall. Offering up FTP services to other machines over the Internet (and not your local network) exposes your computer to the attention of crackers and other undesirables. We strongly recommend that you follow good security practices (ie, use sftp instead of straight-up ftp) if you do this. If you are determined to open a bare ftp server to the internet, a chroot ftp configuration offers a reasonable security compromise if your OS provides this. It won't protect you from abuse of your bandwidth by the gratification-deprived, and you will have to plan your storage allocation more carefully, as chroot environments will refuse to follow symlinks to other file systems on your ftp host.

Personal tools