INSTALLATION:

Dependencies:

  • Python (http://www.python.org, update for and tested with version 2.7)
  • Pexpect (http://pexpect.sf.net, tested with version 2.4)

Use included script:

  1. Login or su to root.
  2. ./install.sh --install

Note: ./install.sh --uninstall to remove all installed files.

Note2: Installing a new version and/or unistalling an old version will NOT remove the configuration files (/usr/local/etc/pydsh)

OR by hand:

  1. Install App:

    Login or su to root.
    cp SRC/pydsh.py /usr/local/bin
    chown root.staff /usr/local/bin/pydsh.py
    chmod 775 /usr/local/bin/pydsh.py
    ln -s /usr/local/bin/pydsh.py /usr/local/bin/pydsh
    ln -s /usr/local/bin/pydsh.py /usr/local/bin/pydcp

  2. Install documentation:

    Login or su to root.
    cp DOC/pydsh.8.gz /usr/share/man/man8/pydsh.8.gz
    chown root.root /usr/share/man/man8/pydsh.8.gz
    chmod 644 /usr/share/man/man8/pydsh.8.gz

    cp DOC/pydcp.8.gz /usr/share/man/man8/pydcp.8.gz
    chown root.root /usr/share/man/man8/pydcp.8.gz
    chmod 644 /usr/share/man/man8/pydcp.8.gz

  3. Create Configuration directory:

    mkdir -p /usr/local/etc/pydsh/groups
    chowm -R root.root /usr/local/etc/pydsh
    chmod -R 755 /usr/local/etc/pydsh

  4. Create ALL group:

    Add hosts one to a line to the /usr/local/etc/pydsh/groups/all file.

Building man pages:

For this project I used the txt2man translator to format the pydcp.man and pydsh.man files into the correct format. To build them, use the following command:

txt2man -s 8 -p pydsh.man | gzip -c > pydsh.8.gz
txt2man -s 8 -p pydcp.man | gzip -c > pydcp.8.gz