2. Step-By-Step Appliance Installation Procedures
3. Logging in to webmin and configuring the Appliance Name
4. Using Webmin to Create New Users on Linux
5. Using Webmin to Setup AppleTalk (Netatalk) on Linux
6. Using Webmin to Setup of Samba on Linux
8. Using sfadmin to Setup and Manage Beehive and Sendfile accounts
9. Logging in to sfadmin and configuring the Beehive Linux FTP Manager
Appendix A: Using Webmin to Configure an ftp proxy server on Linux
1. Beehive Appliance Introduction
The Beehive appliance is installed one of two ways:
Once the system is installed, it can be completely managed and configured by two web-based administration programs :
return to top
2 Step-By-Step Appliance Installation Procedures:
Very few customers actually install their own appliance software since installation is included in the price of the appliance, but here are the details of what a Beehive Engineer performs when he installs and configures an appliance remotely.
Prerequisites:
Red Hat Linux 7.1 or later installed.
Beehive RPMs
-----Assigning an IP address in Red Hat----------
In Red Hat Linux the network is usually set up when the OS is installed. After that, you may use the 'netcfg' command to set up the IP address and router information.
-----Beehive/SendFile Installation Procedure----------
#### Part 1 -- Support RPMs ####
netatalk, samba, ImageMagick, htmldoc, webmin and postgres should be installed before the SendFile software is installed. Note that these may already be installed on your system. If something is already installed, do not install it again. To install the RPMs, run:
only on Red Hat 7.2 or later --> rpm -ivh openssl096-0.9.6-13.i386.rpm
rpm -ivh webmin-1.020-1.noarch.rpm
rpm -ivh htmldoc-1.8.14-1.i386.rpm
rpm -ivh ImageMagick-5.4.3.11-1.i386.rpm
rpm -ivh netatalk-1.5.2-3.i386.rpm
rpm -ivh samba-2.2.3a-6.i386.rpm samba-common-2.2.3a-6.i386.rpm
rpm -ivh postgresql-7.2.1-5.i386.rpm postgresql-libs-7.2.1-5.i386.rpm postgresql-server-7.2.1-5.i386.rpm
-- Configure the PostgreSQL database --
// create a symlink to the PostgreSQL shared library (only on Red Hat 7.2
// or later)
cd /usr/lib
ln -s libpq.so.2.2 libpq.so
// make sure the PostgreSQL server is running and the database is
// initialized
/sbin/service postgresql start
// edit the postgresql access file
vi or emacs /var/lib/pgsql/data/pg_hba.conf
The very last line in this file needs to say "local all trust". Change it
if necessary
// save the file, and restart the postgresql server to apply the changes
/sbin/service postgresql restart
# Part 2 Install necessary. Beehive SendFile RPMs:
rpm -ivh mod_sendfile-1.3-0.i386.rpm
rpm -ivh mod_fileserv-1.3-0.i386.rpm
(note that the mod_sendfile rpm dumps out some error messages while it installs, including possibly some SQL errors. It is safe to ignore these.)
# Part 3 Configure the apache web server
// Open the httpd.conf file in vi or emacs
vi /etc/httpd/conf/httpd.conf
// make the following additions and edits to httpd.conf:
LoadModule sendfile_module modules/mod_sendfile.so
LoadModule fileserv_module modules/mod_fileserv.so
AddModule mod_sendfile.c
AddModule mod_fileserv.c
User nobody #instead of Apache
Group nobody #instead of Apache
DocumentRoot "/home/httpd/html" #instead of /var/www/html
<Directory "/home/httpd/html"> # instead of <Directory "/var/www/html">
AllowOverride All #instead of None
// save the file, and restart apache
/sbin/service httpd restart
-----Beehive/Sendfile/File manager Config Procedure----------
If the installations were successful, you are now ready to set up a SendFile account on your server.
Browse to http://<your server name>/sfadmin
It will prompt you for a password. Enter User ID "sfadmin", password "sfadmin".
Click on "Create New Account" to create a new sendfile account on the box. Choose a name for the account, enter the account sponsor's e-mail address (presumably yours), and choose a password. Provide the account sponsor's full name in the "Sponsor Name" box. In the "Client Serial #" box, enter "542839771954". Make sure that "Auto Register", and "GetFile support" are both checked, then click on "Create Account"
This will get you to a page that summarizes the details of the account that you just created.
Click on the Account ID string to get into the account. It will prompt you for a password again. This time, log in as the account sponsor's e-mail address with the password that you chose.
Click on the "Sponsor" button in the top menu. This will bring up the account administration page. You can click on "Manage Sites" to set up the servers that you want to send jobs to. Click on "Add New Site..." to create a new server key. In the "Add New Site" form, pick a name for the site, and specify the server name of your Linux server. Set the Path to "jobsin", the user id to "beehive" and the password also to "beehive". Make sure that "Use PASV" and "Use Compression" are checked, then click the "Save" button.
Now you should be ready to send files by clicking on the "Send Files"
button.
3. Logging in to webmin and configuring the Appliance Name:
When setting up the Beehive Appliance you FIRST need to tell some of the support applications about the domain name/hostname that you are going to use for your system.
To use Webmin to configure hostnames, first access Webmin via the following URL:
http://youripaddress:10000
and then login to Webmin with your root password.
Step 1 - Setting up the appliance DNS for your hostname
When the Webmin main window opens, select the Hardware tab and then click on the Network configuration icon. The Network Configuration window will open. Select the DNS Client icon. This will open the DNS Client window:
Type in the "hostname" field the domain name of the box. Type in the DNS server IPs (typically from your ISP). Save the configuration.
Step 2 - Configuring the Apache Web Server for your Hostname
From the main Webmin window, select the Servers tab and then the Apache Web Server icon, click on the "Default Server" icon in the Virtual Servers area. In the next window select the "Networking and Addresses" icon. This will open the Networking and addresses window for the Sendfile webserver.
Make sure that "Server Hostname" is switched to automatic so it will look at the correct name for the IP address. Save the configuration.
Step 3 - Configuring the Appliance PostgreSQL database for your Hostname
This setup must done before the Beehive sfadmin configuration application can run. This configuration tells the Beehive/Sendfile PostgreSQL Database what the name of the service will be, i.e. your hostname.
From the main Webmin window, select the Servers tab and then click on the "PostgreSQL" icon. Click on "Nobody" and then on "sfconfig." Once you are in "sfconfig", click on "View Data." If there is a row there, place a check in the front of the row and then click "edit selected row." Then add the hostname in the last space on the row.
If there isn't a row there, click "Add Row" and then follow the steps above.
Once you have done all of that. Stop the PostgreSQL server and start it again. Also Restart the Apache Web server. Once all of that is done, go to the "Systems" tab and click on the "Bootup and Shutdown" icon. Scroll down until you come to "Network." Click on "Network" and then click the restart button. It may take a few moments, so be patient.
4. Using Webmin to Create New Users on Linux:
To use Webmin to setup user accounts, first access Webmin via:
http://youripaddress:10000
and then login to Webmin with your root password.
After you have logged in, the Webmin main window will open. First Click on the "System" tab and then select the "Users and Groups" icon.
This will open the "Users and Groups" window. Under the local users listing, select the "Create a new user" link. This will open the Create User window:
The Webmin Help.. link in the upper left hand corner of this page covers most of the parameters on this page in complete detail.
5. Using Webmin to Setup AppleTalk on Linux:
Open"WebMin" using the following URL in your browser (inserting your ipaddress) :
http://youripaddress:10000
NOTE: your ipaddress may be substituted with your Domain Name if it is DNS resolved.
Now select the"Server" tag. (Figure 1.)


You can also change the setting in the configuration files. For more information, see http://www.linuxdoc.org/HOWTO/NetHOWTO/x2202.html
6. Using Webmin to Setup of Samba on Linux:
Samba is the protocol by which a lot of PC-related machines share files and printers and other information such as lists of available files and printers. Operating systems that support this natively include Windows NT, OS/2, and Linux. Add on packages that achieve the same thing are available for DOS, Windows, VMS, Unix of all kinds, MVS, and more. Apple Macs and some Web Browsers can speak this protocol as well.
There are four basic things that one can do with Samba:
The Samba server is already installed with the installation of the Linux server. All the configuration files are in /etc/samba/. Similarly to the configuration of ApplaTalk, you can use WebMin to do the job. On the WebMin page, select the "Server" tag, and then choose the "Samba Windows File Sharing" to configure the Samba server (Figure 3.).

You can set the UNIX and Windows file sharing and printer sharing from the various sub windows.
For more information about the Samba setting, see http://www.linuxdoc.org/HOWTO/SMB-HOWTO.html
For more information on Proftp, see the official website: http://www.proftpd.net/
8. Using sfadmin to Setup and Manage Beehive and Sendfile accounts:
The sfadmin management utility is also used to setup and manage the Beehive/Sendfile file transfer accounts. There are two different levels of browser accounts that can be setup from sfadmin:
Master accounts - a master account setup is for a group of users. All of the users within each master account use the same forms, site keys and splash screens. Each Master account has it's own unique 32 character account code created by the sfadmin application. A separate administrator is can be setup for each master account tusing a URL of the form :
http://www.sendfile.net/**acctnohere**/sponsor
User Accounts - every user of the system is assigned a user account within a Master account. These accounts may be pre-assigned or they may be autoregistered. Each browser user typically logs into the system from the Sendfile links in the "How to send us files page". There are usually two separate URLs in the "How to send us files page":
To setup a Master account, login to sfadmin as the administrator-set your browser to : http://ipaddress/sfadmin (the ipaddress may be substituted with a domain name, if one is resolved). When prompted for a password type sfadmin again. NOTE: Obviously, it makes sense to change the admin password when you get into sfadmin.
You will be presented with the sfadmin window:
From this main window you should select the "Create new Account" link and fill out the text fields in the Create new Accounts Window:
After the account is created, you will be given a confirmation window that contains the account's 32 character account code. Be sure to copy this code becasue you must use it in all of the URLs that people will use to access the account.
After an account is created, you may edit the account information with the "Edit Accounts" link:
This window allows you to open any of your Sendfile master accounts and view the administrator information. You may also upgrade and delete accounts from this window. Click directly on the "Account Name" link to open the information window for the account:
If you want to add or delete features from the account, click on the "upgrade" link next to the account:
The following parameters may be upgraded:
To change the master administrator's password, select the "Change Admin Password" link:
To review the documentation for the configuration options within each master account, consult the administration portion of the Sendfile user documentation at:
9. Logging in to sfadmin and configuring the Beehive FTP Manager:
The latest version of the LINUX FTP manager is now integrated with the Sendfile apache server. The newest sf-apache rpm will automatically install the FTP Manager. The rpm is distributed in the directory /usr/src/redhat/RPMS/i386/ when the Appliance is installed at a client site.
The Beehive FTP Manager runs in the background on the Beehive Linux box. The FTP Manager will check the source directory regularly to see whether there are new files in the directory. A newly uploaded job always includes a form. If the job is finished sending, the Beehive client program will name the form - "form.html" in the same directory with the job files. Until the job is completely done sending, the client program will temporarily set the form name to "form.inc" in the directory. When the FTP Manager sees the "form.html" file, it understands that this as a completed job and will process it, otherwise it will set a time flag in the current directory. When the FTP Manager finds that a job has not been completely transferred within 4 hours, it will send a notification of an incomplete job to the administrator.
If the job is complete, the FTP Manager will first check whether the file is a compressed file. If it is, it will decompress it. Then the FTP Manager will check whether the file is a Mac Binary file (the format which Macintosh uses). If it is a Mac Binary file, the FTP Manager will decode the file and put it into a separate directory for the Mac. Otherwise it will put the files into the target directory specified by the user.
The sf-apache rpm creates a user named "beehive" with password "beehive". In this user's home directory, subdirectories named "jobsin" and "processed" are made. These directories are configured to be the default source and destination directories for the FTP Manager. If the user wants, he can specify the path on the sfadmin page. Then the FTP Manager will do the job. By default, the "beehive" user's home directory is configured for both samba and appletalk-share. To get to the appletalk-share, just type in the IP address in the chooser, and log in as "beehive" / "beehive". Similarly, with samba, connect to \\ipaddress\homes as user "beehive" That way, the "processed" directory where the FTP manager stores its files can be shared over the network. If other directories should be shared, this can be easily set up in webmin in the samba and netatalk modules. Before an appliance is brought online, the password of the "beehive" user should be changed to something less obvious.
When the job finished, the FTP Manager will send a notification to the administrator and the user as well as print out the job form. Also the original files in the source directory will be removed to save space
To Login to the sfadmin webpage (sendfile administration) set your browser to : http://ipaddress/sfadmin (the ipaddress may be substituted with a domain name, if one is resolved).
When prompted for a userID and password type sfadmin and sfadmin again. NOTE: Obviously, it makes sense to change the admin password when you get into sfadmin.
When the Sendfile Administration Window open select the FTP Manager link. This will open the FTP Manager setup page:
Setting up the FTP Manager involves the following steps. Usually the defaults are adaquate.
Appendix A. Using Webmin to Configure an ftp proxy server on the Linux
It will popup a new page like below:

Some important details of the setting: