please refer to this new version, that supports also Debian like distro and
armhf version (like rPi and BananaPi).
Install init.d script for CopyConsole in Debian-like distros
Installation of CopyConsole
First of all you need to install CopyConsole, that may be done with this simple script, that must be run with superuser privileges (we need CopyConsole to be installed in a system directory, to make it available to all system users):
Warning! You must define if 32bit or 64bit version in VERSION var!
#!/bin/bash VERSION=x86_64 # Select this for 64bit version #VERSION=x86 # Select this for 32bit version if [ $UID -eq 0 ]; then cd /usr/local wget https://copy.com/install/linux/Copy.tgz -O copy.tgz --no-check-certificate tar xfvz copy.tgz ln -s copy/$VERSION/CopyConsole /usr/bin/CopyConsole else echo "Run this script as superuser. Installation Failed" fi
User validation for CopyConsole
(Taken from: https://coderwall.com/p/rwxnma thank's to Marcelo Waisman)
The user must be validated the first time. To do that, this command must be inserted by the user
CopyConsole -u=USER_COPY_MAIL -r=$HOME/USER_COPY_DIR -p=USER_COPY_PASSWORD
When CopyCoonsole replies with
press enter to exit user may exit, and we are ready to use the init script.
init.d script installation
First of all, you need to create the script in which it is saved the script. This could be done easily with a single line command:
sudo wget https://gist.githubusercontent.com/MatteoRagni/9271828/raw/ffb03b431671185080feb086627c29a3fff4f774/.etc.init.d.CopyConsole --no-check-certificate -O /etc/init.d/CopyConsole && sudo chmod +x /etc/init.d/CopyConsole
After that, you need to configure the script. If You have used previous instructions, you have only to insert users in the users list. Users shall be separated by a space, and you may insert as many user as you want.
The last step is to enable the init script:
sudo update-rc.d CopyConsole defaults
and it's done!