5. InstallationSharity is installed by a shell script. We decided for the old fashioned text-based way and against a GUI (Graphical User Interface) because it is more compatible across platforms. It also allows installation on machines without graphics display or remotely from a terminal.5.1 Installation TypesBefore you run the installation script, you should know which type of installation you want:Stand-Alone Installation
Server-Based Installation
Server-Based Installation with shared Configuration
Customized Configuration 5.2 Running the Installation Script interactivelyAfter you decided for an installation type, you can start the script. We assume that you have a binary distribution and that you have managed to unpack the archive. You would not be able to read the manual otherwise. If you have a previous version of Sharity installed, you should remove it now. Change directory to the installation directory (it contains the script setup). Then start the script with./setupThe script tries to be friendly and verbose. The first question you will have to answer is which type of installation you want to perform: What kind of installation do you want to perform? Valid options are: 1 stand-alone for a completely independent installation of Sharity (recommended!) 2 server for a (NFS) file server installation on the server 3 client-shared for a file server installation on the client with shared configuration 4 client-local for a file server installation on the client with local configurationIf you decided for the stand-alone installation, the answer is clear. For the other types of installation, the answer depends on whether you are installing on the client or the NFS server. If you install on the server, choose 2 for server. If you install on the client for shared configuration, choose 3 for client-shared. If you install a client with independent configuration, choose 4 for client-local. For the rest of the questions, please read the text on the screen carefully. Hitting Return without entering a new value chooses the default. 5.3 Running the Installation Script in Batch ModeIf you have to install on a lot of clients, it becomes boring (and is error prone) to answer all questions asked by the installation script each time. In this case you should edit the file filelist, which is part of the binary distribution, to contain your choices as default values. You can then start the installation script with the option -q (which means quiet mode) and it will use the defaults without asking.You should also consider to write an additional script which adds the Sharity daemon to the system startup, starts the daemon, issues the registration key (unless it is stored on the server anyway) and maybe adds the GUI program to all users' X-Windows startup. Because this script depends on a lot of operating system and site conventions, we leave it as an exercies for the experienced system administrator... 5.4 Compiling from the SourcesThe above sections all assumed that you have a binary distribution. Since we don't have access to all platforms where Sharity runs, the binary distribution for your platform may be out of date or even not available. If that's the case, you are better off when you compile from the sources. You need:
After editing Makefile.config, just type make to build the binaries. This will create a binary distribution in the directory install (which is at the same level as the source directory, not within it). Change to the install directory and proceed as if you had obtained a binary distribution. 5.5 Removing an installed SharityIf you want to install a new version of Sharity, you must remove the old version first. This can be done with the uninstall script which is created during the installation. It is created locally on each client and reverts every step carried out during installation. Since one of these steps was the creation of the uninstall script, it could be unpleasant if the uninstall fails after deleting itself. To avoid this problem, a backup of uninstall is made to the /tmp directory.Important Note: Never delete Sharity with rm -r. Sharity mounts your servers in /usr/local/sharity/var/mount. The rm -r could delete all files on your server, too!
Sharity Manual 2.9 Beta 7 | Copyright (C) 2004 OBJECTIVE DEVELOPMENT Software GmbH | http://www.obdev.at/
|