How To set up the FTP or Web server


Forum: Networking
Topic: How To set up the FTP or Web server
started by: bdkives

Posted by bdkives on Jan. 08 2005,06:16
How To get  files from the hard drive using the FTP or Web server.

I've seen the above problem duplicated numerous times on the board, and I finally figured out how to do it. Getting the BetaFTP server to work from the /ramdisk was easy. Getting it working from a Windows2000 hard drive file system was harder. As of DSL 9.1, there were still two bugs in DSL preventing it. Here's how to get it working.

1) Start the Network
Right Click, SYSTEM > NET SETUP > NET CARD > CONFIG

2) Start an XTerminal (click on it) and the type "sudo su",
or right click on XShells > ROOT ACCESS

3) Set the DSL password
passwd dsl
You could also add a new user, and make his home directory /mnt .

4) Temporary fix (for this session)
change fstab to read/write
chmod 666 /etc/fstab
edit /etc/fstab using vi, scite, beaver, whatever.
There should be a like that looks like this:

# Added by KNOPPIX
/dev/hda2 /mnt/hda2 ntfs noauto,users,exec,ro,uid=1001,gid=500 0 0

It may be hda1 or hda3. Change the 500 to 50 and add a ",umask=0222". It should look like this:
/dev/hda2 /mnt/hda2 ntfs noauto,users,exec,ro,umask=0222,uid=1001,gid=50 0 0

and save it.

5) mount the hard drive.
Use whatever hda # you had above.
mount /dev/hda1
or
mount /mnt/hda1
or you could use the doc-app slit on the lower right to mount it.

6) Start up the FTP server
SYSTEM > DAEMONS > FTPD > BetaFTP > START

and use your remote FTP client to download the files from /mnt/hda1
the user name is "dsl" and the password is what ever you set it to.

---------------
4B) Optional
To make the changes permanent for hard drive installation or CD re-master.
Edit the /usr/sbin/rebuildfstab or /KNOPPIX/usr/sbin/rebuildfstab file.

Change the line
group="500"
to
group="50"

Change the line
   ntfs) options="${options},ro" ;;
to
   ntfs) options="${options},ro,umask=0222" ;;

Save it and reboot or re-master the CD

---------------
Optional)   Starting the web server
Do steps 1)-6) above
edit the file /opt/monkey/conf/monkey.conf
change the second line to
Server_root /mnt/hda1
and save it.
Then Click on SYSTEM >  DAEMONS > MONKEY WEB SERVER > MONKEY START

Go over to your remote system browser and and put in the DSL system IP Address in the URL. You should see your hard drives files listed in the browser.
Don't know your  IP Address? Type "ifconfig" in the root XTerm.
From the remote browser, do a "save target as" to save your files to the remote hard drive. Or click on the directories.

-Bruce Kives

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.