What is netkite? [中文]

 

    netkite is a personal simple upgrade system. In this system, the client checks

with md5 code whether the server has available update files for client to accept modules.

 

 

The netkited( server )

===============================

 

Satisfy netkited pre-requisites:

    At first, netkited will chroot to ROOT, then create this directory in case it

does not already exist.

 

Example:

    1. Ensure server basic directory configuration:

   

        sh-2.05b# mkdir /var/upgrade

       

    2. Create test module:

   

        sh-2.05b# mkdir /var/upgrade/TEST

        sh-2.05b# mkdir /var/upgrade/TEST/TEST_SUB

       

    3. Put test file to TEST and TEST_SUB

   

        sh-2.05b# echo "father" > /var/upgrade/TEST/file.father

        sh-2.05b# echo "son" > /var/upgrade/TEST/TEST_SUB/file.son

       

    4. Rename test file so that it can be identified by remote client:

       

        sh-2.05b# mv /var/upgrade/TEST/file.father /var/upgrade/TEST/^root^file.father

        sh-2.05b# mv /var/upgrade/TEST/TEST_SUB/file.son /var/upgrade/TEST/TEST_SUB/hdc2^home^test^file.son

       

    5. Execute netkited:

   

        sh-2.05b# netkited -r /var/upgrade -g

       

Notes:

    Server needs to know the client disk/directory configuration in device mode.

 

Bugs:

    Ensure the source filename does't contain character '^'.

   

 

The netkite( client )

===============================

 

Satisfy netkite pre-requisites:

    Netkite needs the (empty) file /etc/upgrade.conf in the default

configuration, then create this file in case it does not already exist.

 

 

Example_1:

 

    Specify the accepted module name as TEST, and execute netkite:

   

        sh-2.05b# netkite -h 127.0.0.1 -m TEST

       

    The file "^root^file.father" will be got from server;

    then change the file "^root^file.father" into "/root/file.father"

    in current root.

   

Example_2:

   

    Specify the accepted module name as TEST_SUB, and execute netkite:

   

        sh-2.05b# netkite -h 127.0.0.1 -m TEST_SUB

       

    The files "^root^file.father" and "hdc2^home^test^file.son" will be

    got form server; then change the file "^root^file.father" into "/root/file.father"

    in current root, and then change the file "hdc2^home^test^file.son" into

    "/home/test/file.son" in /dev/hdc2

 

Notes:

    1. Client will get files and inherit father modules layer-by-layer.

    2. Client will create object directory in case it does not already exist.

   

 

Other information

===============================

 

Support This Project Download netkite: http://sourceforge.net/projects/netkite

Type "-h" for help.

Report bugs to <binary@eniak.org>.

 

/* Copyright (C) 2006, Binary Ma */