Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

archlinux 安装 Dropbox 的两种方式 #8

Open
xiaozefeng opened this issue Jun 7, 2019 · 1 comment
Open

archlinux 安装 Dropbox 的两种方式 #8

xiaozefeng opened this issue Jun 7, 2019 · 1 comment

Comments

@xiaozefeng
Copy link
Owner

No description provided.

@xiaozefeng
Copy link
Owner Author

第一种是 AUR

yay  dropbox

我下载的时候会出现网络断线的问题,所以需要手动下载

  1. 访问 aur , 找到 dropbox, 获取 https://aur.archlinux.org/dropbox.git

  2. 下载 git clone https://aur.archlinux.org/dropbox.git

  3. 编译 cd dropbox , makepkg -si

  4. 如果还是出现网络问题问题,手动下载dropbox的包,修改 PKGBUILD
    source_x86_64=("https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-$pkgver.tar.gz"{,.asc})
    这个链接 https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-$pkgver.tar.gz
    从网络下载,然后修改引用成本地文件
    source_x86_64=(./dropbox-lnx.x86_64.tar.gz)
    重新执行
    makepkg -si

手动安装

上面的这种方式需要对 AUR比较熟悉 ,掌握AUR的手动安装的一些细节,建议 安装Dropbox官方的方式 去安装

cd ~
wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
# 启动
~/.dropbox-dist/dropboxd

作为服务启动

vim /etc/systemd/system/[email protected]
添加以下内容

$HOME/.config/systemd/user/[email protected]
[Unit]
Description=Dropbox as a systemd service
After=xorg.target

[Service]
ExecStart=/home/你的用户名/.dropbox-dist/dropboxd
ExecReload=/bin/kill -HUP $MAINPID
Environment=DISPLAY=%i

[Install]
WantedBy=default.target

开机启动
systemctl --user enable dropbox@:0.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant