if you have not noticed, this is my ubuntu master thesis....
check it out and share it with your friends =)
alot of help came from this web page....
much credit to them....
im going to my friends place in a few days and have some movies to share. im bringing my laptop to distribute the movies though i do not have apache (gasp) on the linux machine. apache is a bit of a heavy handed solution to share 3 files, so i will instead setup an anon access vsftpd server instead. vsftpd is good enough for kernel.org, its good enough for 3 files.
alt + f2
go god mode
(if you dont have vsftpd already then drop this code)
drop this block of code....
apt-get install vsftpd
drop a test file in /home/ftp...
mv /etc/vsftpd.conf /etc/vsftpd.conf.default
cat > /etc/vsftpd.conf.anon << EOF
ln -s /etc/vsftpd.conf.anon /etc/vsftpd.conf
point your browser @ ftp://127.0.0.1/
sudo touch /home/ftp/test
to verify that the test has gone successfully.
then remove the test file and mount bind to link files to the FTP root, vsftp does not like symlinks.
for me, im sharing videos found in $HOME/Videos
the previous command will populate files directly to the FTP anon root. the next command will give the videos their own subdirectory in the ftp root for if i want to populate other files directly to the root of the ftp like a welcome message.
sudo mount --bind $HOME/Videos /home/ftp
to make this permanent upon reboot sudo gedit /etc/fstab and add (change the USER to the holder of videos)
sudo mkdir /home/ftp/videos
sudo mount --bind $HOME/Videos /home/ftp/videos
/home/USER/Videos /home/ftp/videos none bind 0 0