LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs > arniekat
User Name
Password

Notices

Rate this Entry

Slackware-13.37-Hacks-Dropbox/OpenSSL

Posted 03-28-2012 at 02:09 PM by arniekat

DROPBOX CONFIGURATION

Compile and install Dropbox-1.2.49 from SlackBuilds.org
The following tutorial is from that version of the Software. After installing:

Go to the KDE Menu > Internet > Dropbox (Network Storage)

Select “I don't have a Dropbox Account”
Click “Next”

Dropbox Setup
First Name: <First_Name>
Last Name: <Last_Name>
EMail: <EMail_Address>
Password: <Dropbox_Password>
Verify Password: <Dropbox_Password>
Computer Name: <Computer_Name>
CHECK I have read and agree to the terms of service.
Click “Next”

Select your Dropbox Size
2 GB Free
Click “Next”

Choose setup type
Typical - Setup Dropbox with the recommended settings
Advanced - Choose your Dropbox's location, which folders will be synced, and if extended attributes should be synced.
Click “Install”

Welcome to Dropbox. Part 1 of 5
Your dropbox is a special folder on your computer. Simply dropin files and they will be instantly available on any of your other computers and the web.
Click “Next”

Access your files from anywhere using dropbox.com Part 2 of 5
If you need access to your files from someone else's computer, simply login to www.dropbox.com. You can view, download, and upload your files securely from any web browser.
Click “Next”

The Dropbox Notification Area Icon Part 3 of 5
Click the icon to quickly open your Dropbox Folder, access the dropbox website, find help and information, and change your dropbox preferences.
Click “Next”

Share Folders with People You Know Part 4 of 5
You can share any folder in your Dropbox with your friends and colleagues, even if they use a different operating system from you.
Click “Next”

That's It! Part 5 of 5
Dropbox has finished installing and you're all setup and ready to go. Thanks for using dropbox. We hope you enjoy it.
CHECK Open my Dropbox Folder NOW.
Click “Finish”

A new folder $HOME/Dropbox is created and you will see messages that it is synced with the Dropbox Server. It has a Photos and Public Directory along with a Getting Started PDF Document. The Dropbox applet starts automatically with KDE-4.5.5

USING OPENSSL WITH DROPBOX

Any Personal Files that are confidential should be encrypted before they are synced with the Dropbox Server. First, setup your Dropbox account and make sure it works. Then, you can use the following commands on a folder before you copy it to the Dropbox folder. In this tutorial assume there is a folder named $HOME/Dropbox that gets synced with the Dropbox Server and the folder with the files to be encrypted called $HOME/Backup

$ cd $HOME
Be sure you are doing this as a Regular Non-Root User!

$ tar czf <Backup-Date>.tar.gz Backup
I use the date of the backup as file name <Backup-Date>, but suit yourself.

$ openssl enc -e -aes256 -in <Backup-Date>.tar.gz -out ./Dropbox/<Backup-Date>.tar.gz.enc
enter aes-256-cbc encryption password: <Password> <ENTER>
Verifying - enter aes-256-cbc encryption password: <Password> <ENTER>

$ shred -u <Backup-Date>.tar.gz
This is a way of shredding files and removing them. You still have your Backup Folder to worry about.

NOTE - A really clever way to get passwords is to use Jesse Smith's idea from the Distrowatch article “Head In The Clouds”. It involves getting an MD5SUM of the *.tar.gz and using only the first 16 characters of the MD5SUM as the OpenSSL Password. You keep track of the passwords by putting them into a text file. You can keep the password file safe by using a TrueCrypt Volume, EncFS Encrypted Folders, or a Vim Password Safe-type file.

To decrypt the file

$ openssl enc -d -aes256 -in <Backup-Date>.tar.gz.enc -out <Backup-Date>.tar.gz
enter aes-256-cbc decryption password: <Password> <ENTER>
$
Posted in Uncategorized
Views 874 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 01:16 AM.

Main Menu

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration