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)
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
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
mkdir -p /usr/local/etc/pydsh/groups
chowm -R root.root /usr/local/etc/pydsh
chmod -R 755 /usr/local/etc/pydsh
Add hosts one to a line to the /usr/local/etc/pydsh/groups/all file.
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