I'm kinda wired right now, so apologies in advance if this is hard to read, hard to follow, or just plain weird. Also, I skipped many of my usual editing steps like making sure capitalization is consistent.
- Don't even bother with downloading the Linux Dropbox client from their site. Arch Linux has a PKGBUILD available in AUR for dropbox-cli. So go grab that instead.
- Put the PKGBUILD in its own directory somewhere on your server (for the sake of these instructions, I'll use ~/dropbox-cli)
- If you've never used makepkg before, go edit /etc/makepkg.conf as root and change some stuff:
- If you know what CFLAGS you want to use, change that, otherwise, the defaults will work. (You're not even compiling anything for this anyway lol)
- Go down to where it says "PACKAGER", uncomment the line, and then give yourself credit lol.
- Now, cd into ~/dropbox-cli
- edit the PKGBUILD file to remove the dependency for "dropbox". Building the package with this dependency will cause a fair number of GUI-related dependencies to be installed. Which will just eat up hard drive space unnecessarily given that you're running headless. Also by "a fair number" I mean GTK.
- run makepkg -s. The -s flag makes it get any dependencies you might need, which in this case will only be python2 if you don't already have that installed.
- after a short amount of time the package will be built.
- now type pacman -U dropbox-cli and hit tab to autocomplete the package filename. Press enter and it's installed (if you ran it as root lol). You're not done yet, though.
- run dropbox start -i. Dropbox will download the one remaining piece of software it needs and then start.
- At this point it'll give you a link to visit to link this install to your account. Go do that.
- Now. Head on over to ArchWiki's Dropbox page. There they have an init script you can copy/paste so you can have dropbox start up on system startup and terminate on shutdown. Copy it, then open /etc/rc.d/dropboxd as root, and paste that shit in.
- It needs some modification, partly by design, and partly because, well, I dunno why. Change the USER= line to set $USER to the username you're running dropbox as. This is the modification by design.
- Change the PID= line so that the path to dropbox is /home/$USER/.dropbox-dist/dropbox
- Also, change the line below stat_busy "Starting Dropbox Service" to run /home/$USER/.dropbox-dist/dropboxd. These are both the modification due to because, well, I dunno why. My guess is that the locations in the original init script used to be correct but were changed at some point and that wiki page hasn't been updated yet.
- save that shit.
- now you can add dropboxd to the DAEMONS list in /etc/rc.conf if you want to. Otherwise you get to run /etc/rc.d/dropboxd start and /etc/rc.d/dropboxd stop manually.
No comments:
Post a Comment
I moderate comments because when Blogger originally implemented a spam filter it wouldn't work without comment moderation enabled. So if your comment doesn't show up right away, that would be why.