Difference between revisions of "WPKG with Samba"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (How WPKG works)
m
Line 16: Line 16:
 
* extremely small footprint on the server: no additional service/daemon is started
 
* extremely small footprint on the server: no additional service/daemon is started
 
* keep inventory of software installed on your Windows workstations  
 
* keep inventory of software installed on your Windows workstations  
 +
  
 
== How WPKG works ==
 
== How WPKG works ==
Line 21: Line 22:
 
WPKG keeps its configuration in three XML files, which can be changed easily in an editor like ''vi'' or ''mcedit'', or even automatically.
 
WPKG keeps its configuration in three XML files, which can be changed easily in an editor like ''vi'' or ''mcedit'', or even automatically.
  
These files are:
+
These XML files are:
* [[hosts.xml]] - defines the hosts and associated profiles, which these hosts will use.
+
* [[hosts.xml]] - defines the hosts and associated profiles, which these hosts will use,
* [[profiles.xml]] - defines the software packages or scripts, which will be installed/executed on hosts.
+
* [[profiles.xml]] - defines the software packages or scripts, which will be installed/executed on hosts,
* [[packages.xml]] - defines how to install and uninstall software packages. In other words, it is a list of all packages and scripts that can be deployed or executed on workstations.
+
* [[packages.xml]] - defines how to install and uninstall software packages. In other words, it is a list of all applications and scripts that can be deployed or executed on workstations.
 +
 
 +
There is also one more file, [[wpkg.js]], which we can call a "WPKG engine". It is written in JScript, and is executed by the workstations.
 +
 
 +
 
 +
=== Server side (Samba) ===
 +
 
 +
You don't have to run any additional software on your Samba server to use WPKG.<br>
 +
You only need a share, accessible by the workstations, with the files used by WPKG: [[wpkg.js]] ("WPKG engine"), [[hosts.xml]] (host names, which will use WPKG), [[profiles.xml]] (which host will use which profile) and [[packages.xml]] (applications and scripts that can be deployed or executed on workstations).
 +
 
 +
Of course, you also need a folder, where you will store your applications, scripts etc. - in other words - everything that you need to install or run on your workstations.
 +
 
 +
 
 +
=== Client side (Windows workstations) ===
 +
 
 +
Your Windows workstations will not be aware of WPKG just because you created an additional share on your Samba server.
 +
 
 +
They need to be told to use WPKG first.
 +
 
 +
All you need to use WPKG on a Windows workstation is to run a command like below:
 +
 
 +
<code>cscript \\server\wpkg\wpkg.js /synchronize /quiet</code>
 +
 
 +
You will likely run it manually as a local or domain Administrator when you would be still testing WPKG (just open a command line using menu Start -> Run -> cmd).
 +
 
 +
When you finally configure everything the way you like, you will want to run it automatically on each of your dozens or hundreds of workstations.
  
There is also one more file, [[wpkg.js]], which we can call a "WPKG engine".
 
  
 
== WPKG installation ==
 
== WPKG installation ==

Revision as of 21:38, 12 October 2005

WPKG overview

WPKG can add great value to your Samba setup, as it allows to perform software installation, updates, removal etc. on your workstations.

It is also possible to execute custom scripts on your workstations, like synchronizing time, setting printers, changing permissions or adding registry entries (basically, some of the things you would do with Active Directory and Group Policy / GPO).

This is a list that summarizes what WPKG can do for you:

  • deploy software in any format - MSI, EXE, etc.
  • deploy software to different groups of computers or single workstations
  • easily install, upgrade or remove software
  • run custom scripts to set printers, synchronize time, change permissions, add registry entries etc.
  • work in a domain, in a workgroup, or even over internet or VPN (no domain controller needed)
  • work with Windows 2000, XP and 2003 clients
  • extremely small footprint on the client: no additional service is started
  • extremely small footprint on the server: no additional service/daemon is started
  • keep inventory of software installed on your Windows workstations


How WPKG works

WPKG keeps its configuration in three XML files, which can be changed easily in an editor like vi or mcedit, or even automatically.

These XML files are:

  • hosts.xml - defines the hosts and associated profiles, which these hosts will use,
  • profiles.xml - defines the software packages or scripts, which will be installed/executed on hosts,
  • packages.xml - defines how to install and uninstall software packages. In other words, it is a list of all applications and scripts that can be deployed or executed on workstations.

There is also one more file, wpkg.js, which we can call a "WPKG engine". It is written in JScript, and is executed by the workstations.


Server side (Samba)

You don't have to run any additional software on your Samba server to use WPKG.
You only need a share, accessible by the workstations, with the files used by WPKG: wpkg.js ("WPKG engine"), hosts.xml (host names, which will use WPKG), profiles.xml (which host will use which profile) and packages.xml (applications and scripts that can be deployed or executed on workstations).

Of course, you also need a folder, where you will store your applications, scripts etc. - in other words - everything that you need to install or run on your workstations.


Client side (Windows workstations)

Your Windows workstations will not be aware of WPKG just because you created an additional share on your Samba server.

They need to be told to use WPKG first.

All you need to use WPKG on a Windows workstation is to run a command like below:

cscript \\server\wpkg\wpkg.js /synchronize /quiet

You will likely run it manually as a local or domain Administrator when you would be still testing WPKG (just open a command line using menu Start -> Run -> cmd).

When you finally configure everything the way you like, you will want to run it automatically on each of your dozens or hundreds of workstations.


WPKG installation

To use WPKG, you have to setup two things:

  • Server side - configure a share on a Samba server with your software, scripts and WPKG files


  • Client side - configure your workstations to run WPKG off a share you configured earlier

Server side configuration

  • configure a share for software, scripts, and WPKG files


Client side configuration

  • using Task Scheduler
  • using srvany


To be continued...