Lighthouse logoFile sharing

There are a few ways to share files with other computers using Lighthouse64. They are:

FTP -- File transfer protocol.

HTTP --- Web server.

Samba --- aka SMB, server message block.

NFS -- Network File system.

FTP

FTP is a good choice if you want to just move single files, not whole folders. Files must be moved one at a time with FTP, so if you want to do a folder it’s best to zip the folder up into one file. To start the FTP server click on PureFTPd found under Network in the main menu. To connect from another computer you’ll need the IP address of the computer running the FTP server. Open a terminal and type ifconfig, it will look something like this:

# ifconfig

lo       Link encap:Local Loopback  

         inet addr:127.0.0.1  Mask:255.0.0.0

         UP LOOPBACK RUNNING  MTU:16436  Metric:1

         RX packets:0 errors:0 dropped:0 overruns:0 frame:0

         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

         collisions:0 txqueuelen:0

         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0    Link encap:Ethernet  HWaddr 00:23:14:DC:48:B8  

         inet addr:192.168.254.42  Bcast:192.168.254.255      

         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

         RX packets:48110 errors:0 dropped:0 overruns:0 frame:0

         TX packets:8953 errors:0 dropped:0 overruns:0 carrier:0

         collisions:0 txqueuelen:1000

         RX bytes:17773416 (16.9 MiB)  TX bytes:1027903 (1003.8 KiB)
#

In this example our IP address is 192.168.254.42. The other piece of information we need is a login name and password. To login as root the default password is woofwoof. It’s a very good idea to change that if you’re going to allow root logins. To change the root password, open a terminal and type:

# passwd

You’ll be prompted for a new password. From the other computer open Firefox and in the address box type ftp://192.168.254.42 That’s for the example above, substitute your IP address. You’ll be prompted for a user name and password.  Or you can connect using gFTP, which is found under Network in the main menu. You can make this available over the internet too. To do that you’ll need to login to your router and forward port 21 to the IP address of the computer running the FTP server. 


HTTP web server

Http can be a good choice if you want others to be able to download files, but not upload. To start the web server click on Monkey-Server found under Network in the main menu. The Monkey web server forks itself to run as user nobody. The server's root is located at /usr/share/monkey/htdocs. Files or links placed there will be visable to users of the web server. To connect open a web browser and enter your IP address. The configuration file for the server is located at /etc/monkey/monkey.conf. You can make this available over the internet too. To do that you’ll need to login to your router and forward port 80 to the IP address of the computer running the HTTP server. 


Samba

If you want to share files with other computers on your local network, including Windows computers, this is the way to go. To start the Samba server click on Samba-Server found under Network in the main menu. This will share your Downloads folder as user spot. To connect from another computer running Lighthouse64 use LameSMBxplorer. From Windows go network neighborhood/places. You might have to click refresh a few times for it to show up, the server can take a minute to get going. Clients will only be able to write files in folders that user spot has permission. If you want clients to follow symlinks from the Downloads folder, edit /etc/samba/smb.conf and un-comment the two lines indicated in the file.


NFS

This is similar to Samba but is native to Linux, however it can be difficult to use if your not careful. The other two methods are less problematic. The biggest problem on a small network is if the server goes down while clients are connected. If this happens clients will sometimes lock-up. This can happen to some extent with Samba, but usually not as severe.


Back to FAQs Index