{"id":69,"date":"2013-11-04T15:08:20","date_gmt":"2013-11-04T15:08:20","guid":{"rendered":"http:\/\/www.nerdlingen.de\/?p=69"},"modified":"2019-02-01T09:14:41","modified_gmt":"2019-02-01T08:14:41","slug":"dropbox-on-non-supported-linux","status":"publish","type":"post","link":"https:\/\/www.nerdlingen.de\/?p=69","title":{"rendered":"Dropbox on non-supported Linux"},"content":{"rendered":"<p>When installing Dropbox in a non-supported distro like Mageia, you&#8217;l soon encounter the problem, that starting Dropbox upon login to the UI (in this case: KDE) is not that easy.<\/p>\n<p>Once you <a title=\"Dropbox' hompage and download link\" href=\"https:\/\/www.dropbox.com\/install?os=lnx\" target=\"_blank\">downloaded the Dropbox-Distribution and installed it as described here<\/a>, you should also download the CLI-script provided by Dropbox from <a title=\"CLI-Dropbox\" href=\"https:\/\/linux.dropbox.com\/packages\/dropbox.py\" target=\"_blank\">here<\/a>. After this, you can use the following script to automatically start Dropbox after login with KDE; is should be in the same directory as the CLI-Script.<\/p>\n<pre class=\"brush: bash; gutter: true\">#!\/bin\/bash\n\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" &amp;&amp; pwd )\"\nif [[ -z \"$DROPBOXPY\" ]]; then\n  DROPBOXPY=\"$DIR\/dropbox.py\"\nelse\n  echo \"Using preconfigured dropbox.py from $DROPBOXPY.\"\nfi\n\nif [ -f $DROPBOXPY ]; then\n  echo \"Found $DROPBOXPY. Check if the daemon is running...\"\n  eval \"$DROPBOXPY running\"\n  RUNNING=$?\n  if [ $RUNNING -eq 0 ]; then\n    echo \"Nope. Start it...\"\n    eval \"$DROPBOXPY start\"\n  else\n    echo \"Yes, nothing to do.\"\n  fi\nelse\n  echo \"Cannot find \/ load dropbox.py.\"\nfi<\/pre>\n<p>This script does not take any arguments by default, but simply asks the Dropbox&#8217; CLI-Script to start the daemon; hence can be run by KDE&#8217;s Autostart-System:<\/p>\n<p><a href=\"http:\/\/www.nerdlingen.de\/wp-content\/uploads\/DropboxAutostart.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-70\" alt=\"Picture of Dropbox configured for autostart with KDE\" src=\"http:\/\/www.nerdlingen.de\/wp-content\/uploads\/DropboxAutostart.png\" width=\"360\" height=\"125\" srcset=\"https:\/\/www.nerdlingen.de\/wp-content\/uploads\/DropboxAutostart.png 612w, https:\/\/www.nerdlingen.de\/wp-content\/uploads\/DropboxAutostart-300x104.png 300w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/><\/a><\/p>\n<p><strong>edit:<\/strong> if dropbox.py results in the error<\/p>\n<pre class=\"brush: text; gutter: true\">Traceback (most recent call last):\n&nbsp; File \"\/home\/alex\/.dropbox-dist\/dropbox.py\", line 25, in &lt;module&gt;\n&nbsp;&nbsp;&nbsp; import locale\n&nbsp; File \"\/usr\/lib64\/python2.7\/locale.py\", line 18, in &lt;module&gt;\n&nbsp;&nbsp;&nbsp; import operator\nImportError: \/home\/alex\/.dropbox-dist\/operator.so: undefined symbol: _PyUnicodeUCS2_AsDefaultEncodedString<\/pre>\n<p>you might place both dropbox.py and the starter-script into a different folder than the one created by the Dropbox-installer (which is ~\/.dropbox-dist). E.g. use ~\/.dropbox for both files, this should do the trick. Dropbox itself uses a custom build of Python, with some not-so-compatible libraries coming along.<\/p>\n<p>Now, once we have installed Dropbox, we might want <a title=\"Dolphin homepage\" href=\"http:\/\/dolphin.kde.org\/\" target=\"_blank\">Dolphin<\/a> to show the status of files and folders in our Dropbox. Well, there&#8217;s a <a title=\"Dropbox ServiceMenu for Dolphin - Plugin Homepage\" href=\"http:\/\/kde-apps.org\/content\/show.php\/Dropbox+ServiceMenu?content=124416\" target=\"_blank\">Plugin available<\/a> for download in Dolphin&#8217;s settings that adds some Dropbox-specific menu entries to the context menu, but it doesn&#8217;t provide icon overlays. Another <a title=\"T. Richard's Dropbox Plugin\" href=\"http:\/\/trichard-kde.blogspot.de\/2010\/12\/introducing-dropbox-integration-for.html\" target=\"_blank\">plugin written by Thomas Richard<\/a>, however not available via the wizard, does.<\/p>\n<p>You can download, compile and install the plugin with the following commands (you need CMake installed for this):<\/p>\n<pre class=\"brush: bash; gutter: true\">git clone git:\/\/anongit.kde.org\/scratch\/trichard\/dolphin-box-plugin.git\ncd dolphin-box-plugin\/\ncmake . -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`\nsu -c 'make install'<\/pre>\n<p>The kde4-config-Part was taken from a commend at the Plugin&#8217;s &#8220;Homepage&#8221; and ensures that the plugin get&#8217;s installed into the right directory. After installing, you have to restart dolphin; after that, you get some pretty cool icons floating above the file and folder icons in your Dolphin indicating the sync-status of your files!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When installing Dropbox in a non-supported distro like Mageia, you&#8217;l soon encounter the problem, that starting Dropbox upon login to the UI (in this case: KDE) is not that easy. Once you downloaded the Dropbox-Distribution and installed it as described &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.nerdlingen.de\/?p=69\"> <span class=\"screen-reader-text\">Dropbox on non-supported Linux<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-english","category-software"],"_links":{"self":[{"href":"https:\/\/www.nerdlingen.de\/index.php?rest_route=\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nerdlingen.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nerdlingen.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nerdlingen.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nerdlingen.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=69"}],"version-history":[{"count":5,"href":"https:\/\/www.nerdlingen.de\/index.php?rest_route=\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":289,"href":"https:\/\/www.nerdlingen.de\/index.php?rest_route=\/wp\/v2\/posts\/69\/revisions\/289"}],"wp:attachment":[{"href":"https:\/\/www.nerdlingen.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nerdlingen.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nerdlingen.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}