Running an ftp server in Minix under VMware
1. If the virtual network adapters get set up ok you should be able to
use ftp to transfer files between the host pc and the minix vmware
client.
a. I don't have an ftp server running on my host machine and don't
particularly won't to set one up.
b. You can temporarily run an ftp server on Minix and then from the
host machine transfer files with get to the host from minx or with put
from the host to minix.
c. To run the ftp server temporarily on Minix,
c1. log in as root
c2. run this command
# tcpd ftp /usr/bin/in.ftpd &
#
This will run the ftp daemon in the background and give you
back the shell prompt.
c3. Type ifconfig to find out the ip address of the Minix virtual
machine.
d. From the host pc, run ftp with the Minix virtual machine's ip
address e. You can then go back and kill the tcpd process at
any time or simply shutdown the minix machine.
2. Alternatively, if you have trouble with the virtual network
adapters in Minix, the documents page has the same two prebuilt
Minix virtual machines for use with VMware except that I've added
the vmw utility. This utility lets you copy files in minix to the
host pc's clipboard or copy from the host's clipboard into minix.
Here is the man page for vmw:
VMW(1) Minix Programmer's Manual
VMW(1)
NAME
vmw - copy to VMware host clipboard or paste from VMware host
clipboard
SYNOPSIS
vmw copy [file]
---- ----
vmw paste
-----
EXAMPLES
vmw copy # Input lines copied to host clipboard until
ctrl-d
vmw copy prog.c # Minx file prog.c copied to host clipboard
vmw copyinput.txt # Clipboard copied to Minix file input.txt
ls | vmw copy # Copies a listing of current Minix directory
to host
clipboard
DESCRIPTION
Vmw copy reads from standard input and copies to the host
clipboard.
Vmw paste reads from the host clipboard and copies to standard
output.
NOTE
Only text files can be used with vmw.
To copy binary files from Minix, first encode the file as ASCII
text file
using uue.
If the host clipboard contains an encoded binary file, first
paste it.
Then use uud to decode it.
SEE ALSO
uue(1),uud(1).
AUTHOR
Vmw was written by Ken Kato and ported to Minix by Kenichi
Takahagi to
provide some of the functionality of VMWare Tools in VMware
Player.
VMWare Tools allows copy/paste between host and guest and
other
operations. However, VMware Tools was only available for
VMware
Workstation, VMware Server, and other VMware prodcuts, but not
VMware
Player.
1
3. Finally, since you have already added code and modified your minix
virtual machine, you probably don't want option 2 since that would
mean starting over with a new virtual Minix machine. So you could
keep the virtual machine you have modified and do the following:
a. Download the vmw.zip file from the class web site (Documents page).
b. Unzip the vmw.zip in some directory on your host pc to unpack the
vmw executable. (It won't run on the pc).
c. Using ftp on the host pc transfer this file to the Minix virtual
machine. Make sure you set the transfer
mode to binary first.
Example. Assume that you used ifconfig in Minix and found the ip
address of the Minix virtual machine to be xxx.xxx.x.xxx
On the host pc
c:/somedirectory> ftp xxx.xxx.x.xxx
Name: root
Password: xxxxx
ftp>
ftp> cd /usr/local/bin
ftp> put vmw
ftp> bye
d. I put the vmw file in the /usr/local/bin/ directory. This
directory is already in users' path.
Then you can use the vmw command to copy files without having to have
the ftp daemon running.