The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

Things look quiet here. But I've been doing a lot of blogging at dan.langille.org because I prefer WordPress now. Not all my posts there are FreeBSD related. I am in the midst of migrating The FreeBSD Diary over to WordPress (and you can read about that here). Once the migration is completed, I'll move the FreeBSD posts into the new FreeBSD Diary website.

FTP from a CD-ROM 10 June 1999
Need more help on this topic? Click here
This article has no comments
Show me similar articles
This article shows you how to mount a CD-ROM so it can be accessed via anonymous ftp. If you are using a 4CD set, and want to allow others to install from this CD, then you want disc 1 from that set.

If you do not have an FTP server set up already, it might be easier for you to mount the CDROM and export it via NFS. /stand/sysinstall can install from NFS. /stand/sysinstall can also install an anonymous FTP server for you (see Configure | Networking | Anon FTP).

Mounting the CD on your machine
This is easy as!  All you do is change the place to which the CD is mounted.   The hardest task was creating the directories.  And here's how I did it:
cd /var/ftp/pub
mkdir FreeBSD
cd FreeBSD
mkdir releases
cd releases
mkdir i386
cd i386
mkdir 2.2.8-RELEASE

Then comes the easy bit.  The mount:

mount -t cd9660 -o ro /dev/cd0a /var/ftp/pub/FreeBSD/releases/i386/2.2.8-RELEASE
The URL
If you follow the instructions above, then the URL you would enter for your ftp install would be:
ftp://your.ftp.server/pub/FreeBSD/releases/i386/2.2.8-RELEASE
What it looks like
Here's what you should find when you ftp to that box:
# ftp fred
Connected to fred.freebsddiary.cx.
220 fred.nz.freebsd.org FTP server (Version 6.00) ready.
Name (fred:dan): anonymous
331 Guest login ok, send your email address as password.
Password:
230- Welcome to the NZFUG FreeBSD Install-A-Thon ftp server.
230-
230-
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for '/bin/ls'.
total 8
dr-xr-xr-x  2 root  operator  512 May  5 04:53 bin
dr-xr-xr-x  2 root  operator  512 May  5 04:54 etc
drwxrwxrwt  2 root  operator  512 May  5 04:53 incoming
drwxr-xr-x  3 root  operator  512 May  5 04:58 pub
226 Transfer complete.
ftp> cd pub/FreeBSD/releases/i386
250 CWD command successful.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for '/bin/ls'.
total 12
drwxr-xr-x  24 root  wheel  6144 Feb 16  1999 2.2.8-RELEASE
226 Transfer complete.
ftp> cd 2.2.8-RELEASE
250 CWD command successful.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for '/bin/ls'.
total 10697
-r--r--r--   1 root  wheel     1886 Feb 16  1999 00_TRANS.TBL
-rw-r--r--   1 root  wheel     1401 Feb 15  1999 00_index.txt
-rw-r--r--   1 root  wheel     8891 Feb 15  1999 ABOUT.TXT
-rw-r--r--   1 root  wheel     1649 Feb 16  1999 ERRATA.TXT
-rw-r--r--   1 root  wheel    22442 Feb 15  1999 HARDWARE.TXT
-rw-r--r--   1 root  wheel    22811 Feb 15  1999 INSTALL.TXT
-rw-r--r--   1 root  wheel     4738 Feb 15  1999 LAYOUT.TXT
-rw-r--r--   1 root  wheel     3815 Feb 15  1999 README.TXT
-rw-r--r--   1 root  wheel    20285 Feb 15  1999 RELNOTES.TXT
-rw-r--r--   1 root  wheel    16323 Feb 15  1999 TROUBLE.TXT
-rw-r--r--   1 root  wheel     7300 Feb 15  1999 UPGRADE.TXT
drwxr-xr-x   4 root  wheel     6144 Feb 16  1999 XF86333
drwxr-xr-x   2 root  wheel    14336 Feb 15  1999 bin
-rw-r--r--   1 root  wheel    26513 Feb 15  1999 catalog.txt
drwxr-xr-x   2 root  wheel     4096 Feb 15  1999 catpages
-rw-r--r--   1 root  wheel      160 Feb 16  1999 cdrom.cfg
-rw-r--r--   1 root  wheel       25 Feb 15  1999 cdrom.inf
drwxr-xr-x  14 root  wheel     2048 Feb 15  1999 commerce
drwxr-xr-x   2 root  wheel     2048 Feb 15  1999 compat1x
drwxr-xr-x   2 root  wheel     2048 Feb 15  1999 compat20
drwxr-xr-x   2 root  wheel     2048 Feb 15  1999 compat21
drwxr-xr-x   2 root  wheel     2048 Feb 15  1999 compat22
drwxr-xr-x   2 root  wheel     4096 Feb 15  1999 des
drwxr-xr-x   2 root  wheel     2048 Feb 15  1999 dict
drwxr-xr-x   2 root  wheel     4096 Feb 15  1999 doc
-rw-r--r--   1 root  wheel    55191 Feb 16  1999 filename.txt
drwxr-xr-x   2 root  wheel     2048 Feb 16  1999 floppies
drwxr-xr-x   2 root  wheel     4096 Feb 15  1999 games
drwxr-xr-x   2 root  wheel     2048 Feb 15  1999 info
-rw-r--r--   1 root  wheel       24 Jul 22  1998 install.bat
-rw-r--r--   1 root  wheel  4995893 Feb 16  1999 kernel
-rw-r--r--   1 root  wheel      538 Feb 15  1999 makeflp.bat
drwxr-xr-x   2 root  wheel     6144 Feb 15  1999 manpages
drwxr-xr-x  56 root  wheel     8192 Feb 15  1999 packages
drwxr-xr-x   2 root  wheel     2048 Feb 15  1999 ports
drwxr-xr-x   2 root  wheel     2048 Feb 15  1999 proflibs
drwxr-xr-x   2 root  wheel    30720 Feb 15  1999 src
drwxr-xr-x   4 root  wheel     4096 Feb 15  1999 tools
drwxr-xr-x   2 root  wheel     2048 Feb 16  1999 utils
-rw-r--r--   1 root  wheel   178238 Mar 25  1998 view.exe
-rw-r--r--   1 root  wheel      545 Mar 25  1998 view.pif
drwxr-xr-x  23 root  wheel     4096 Feb 15  1999 xperimnt
226 Transfer complete.
ftp>

Share
Need more help on this topic? Click here
This article has no comments
Show me similar articles