Installing Copy.com on linux servers (headless linux) to simplify file transfer and deployment.
Credits to Marcelo Waiseman. His article on the process was of great help. Here's the link to his solution https://coderwall.com/p/rwxnma . Forgot to add it after so much edits. :(
Copy is a very interesting alternative to Dropbox and Google Drive.
Why?
For me personally (developers opinion), it's because of the free space and the cli option it offers. :)
Here's how you go about installing it on your linux server
- Sign up for an account at this link : Registration Link https://copy.com?r=qhAV2u
Note : Registering through this link would earn me an additional 5GB and you get 20GB. ;) Be sure to verify your email after registering on the service.
- Download the linux client, unzip and run it.
Shell Commands :
wget --no-check-certificate https://copy.com/install/linux/Copy.tgz
tar -zxf Copy.tgz
cd copy
the 'copy' folder contains the x86 and x8664 folders. Choose your platform. I run a RHEL 6, 64 bit so the x8664 folder is my option
cd x86_64
./CopyConsole -u=emailyouregisteredwith -r=/home/yourlinuxusername/copy/ -p=passwordyouregisteredwith
Let it run until you see something like these :
**Staring copy...success**
**Logged in as user: 'emailyouregisteredwith'**
**Copy folder is: '/home/yourlinuxusername/copy'**
**Press enter to exit**
- Press enter to exit and the following command to make it run continuously and check for file changes :
Shell Command :
nohup ./CopyConsole &
Voila!! you now have copy.com running 'forever' on your server. You can navigate to /home/yourlinuxusername/copy/ to gain access to your files.
With this, you can easily transfer your deployable packages as a .zip file to your amazon ec2 server instances or any other cloud servers you wanna deploy apps to.
Written by Akapo Damilola Francis
Related protips
4 Responses
Now, this defines awesomeness! cool stuff
The least you could do was to credit me
https://coderwall.com/p/rwxnma
Added the credits. Apologies once again. :)
Very useful guide. Is there a command to check the status of Copy via ssh?