试用linux上的百度云客户端

我使用的linux是startos5.1,博客是我在http://vb2005xu.iteye.com/blog/2119240

我的本地gcc版本是

写道

[email protected]:~/softken$ gcc -v

使用内建 specs。

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/lto-wrapper

目标:i686-pc-linux-gnu

配置为:../configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --localstatedir=/var --infodir=/usr/share/info --mandir=/usr/share/man --enable-shared --libexecdir=/usr/lib --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,fortran,lto,objc,obj-c++ --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --enable-checking=release --disable-bootstrap

线程模型:posix

gcc 版本 4.6.3 (GCC for StartOS)

百度云有个linux客户端版本,当前貌似是很简单的雏形代码,不过已经能够正常使用了,

https://github.com/loujiayu/Baiduyun

安装步骤如下

写道

Dependencies

You may need following libraries:

Boost(Boost filesystem)

json-c(https://github.com/json-c/json-c)

openssl

cmake

libcurl

Installation

$ cd Baiduyun

$ mkdir build

$ cd build

$ cmake ..

$ make

我在本地安装过程中,先安装了 Boost库,以及 json-c库,在使用 cmake的时候告诉我找不到 jsonc的so文件,诸如此类错误:

写道

缺少动态连接库.so--cannot open shared object file: No such file or directory

写道

总结下来主要有3种方法:

1. 用ln将需要的so文件链接到/usr/lib或者/lib这两个默认的目录下边

ln -s /where/you/install/lib/*.so /usr/lib

sudo ldconfig

2.修改LD_LIBRARY_PATH

export LD_LIBRARY_PATH=/where/you/install/lib:$LD_LIBRARY_PATH

sudo ldconfig

3.修改/etc/ld.so.conf,然后刷新

vim /etc/ld.so.conf

add /where/you/install/lib

sudo ldconfig

此处我检查了 确实在 /usr/local/lib下存在这个文件,所以 执行了 sudo ldconfig 后再进行cmake 就可以正常生成makefile文件了

接着运行 make 的时候爆出以下错误 -std=gnu++11 不能识别,这个选项应该是在gcc 4.8之后才加入的,故全目录搜索了下,对这个做了下替换,换成 -std=c++0x

另外还有一个问题是 src/filesystem.cc 中头声明中少了 #include <fstream> 头的声明

关于这些bug,详见我提的issue: https://github.com/loujiayu/Baiduyun/issues/1

make 之后在生成了如下文件 baiduyun

这个就是生成的 程序文件,你可以运行它,第一次运行时请使用 -a 参数来获取一个授权码,他会打印一个url,并在当前目录下新建一个名为MyBaidu的目录,你使用浏览器打开这个url并把得到的授权码输入到终端输入框中,回车得到授权,成功之后会在MyBaidu的目录下建立一个.baiduyun 的隐藏文件,此处放置 授权的令牌信息

使用 -h 参数查看支持的选项,当前支持

写道

[email protected]:~/softken/yunbaidu$ ./baiduyun -h

Usage: baiduyun [option]

options:

-a authenicate: authenticate your account with access token

-d download: download files from /apps/ldrive

-u upload: upload files from ./Baidu_Yun

-s synchronise: detect files need to be downloaded or uploaded and do it

-h help: help message

当你使用 -d 参数时,确实会建立一个名为 Baidu_Yun 的目录,其对应着 你百度云中的我的应用数据->ldrive 

之后 要上传下载的文件都会放在这里,比如 你把本地一个文件传到百度云,只需要

写道

[email protected]:~/softken/yunbaidu$ ls Baidu_Yun/

kenvim.tar.gz vim-note.txt

[email protected]:~/softken/yunbaidu$ ./baiduyun -u kenvim.tar.gz

运行成功之后,稍作等待,然后你在你的百度云中就能看到

可以建一个软链,把这个文件夹映射到某个地方,呵呵

附件是我从 github 上捡下来的代码

时间: 2024-08-12 09:55:16

试用linux上的百度云客户端的相关文章

linux百度云客户端使用!

http://copr.fedoraproject.org/coprs/mosquito/myrepo/repo/fedora-20/mosquito-myrepo-fedora-20.repo [mosquito-myrepo]name=Copr repo for myrepo owned by mosquitobaseurl=https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo/fedora-$releasever-$

Opensuse 13.2安装百度云客户端

首先,百度官方并未出Linux客户端,此客户端由第三方工程师开发,项目托管在github,地址:https://github.com/LiuLang/bcloud-packages 在Opensuse 13.2环境下安装步骤: 1.http://software.opensuse.org中已经有bcloud的安装包,地址:https://software.opensuse.org/package/bcloud 2.因为此客户端基于Python 3 开发,因此建议从 home:qgymib  这个

Linux上oracle精简版客户端快速部署

RHEL6 + Oracle 11g客户端快速部署 需求:只是用到客户端的sqlplus, sqlldr功能. 方案:用精简版实现客户端的快速部署 1.上传oracle精简版客户端到服务器/tmp目录下,解压到/opt目录下,改名为oracleclient # cd /opt # unzip /tmp/oracle_instantclient_11_2_for_linux.zip # mv oracle_instantclient_11_2_for_linux oracleclient # ch

ubuntu 安装百度云客户端

下载地址:http://pan.baidu.com/download 如果没有安装alien,安装 [email protected]:~$sudo apt-get install alien Reading package lists... DoneBuilding dependency tree Reading state information... DoneThe following packages were automatically installed and are no lon

centos 安装百度云/百度网盘Python客户端

通过pip来安装:pip install bypy (支持Python 2.7+, 3.3+) centos 6.5python版本为2.6的,这里我们先要安装python2.7 1.安装 sqlite-devel #yum install sqlite-devel -y 2.安装 Python 2.7 #wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz #tar xf Python-2.7.8.tgz #cd Pytho

js 百度云搜索框

// ==UserScript==// @name 百度云插件+APIKey// @namespace // @version 5.0.2.1// @description 在百度云网盘的页面添加一个搜索框,调用搜索API搜索所有公开分享文件// To add a search frame that calls some api for searching some public shared files in BaiduYun cloud netdisk. // @include /https

百度云满速下载原理与方法

前言 今天给大家介绍一款好用的开源工具proxyee-down,之前已经测试了好多天了,挺强大,可以满速下载百度云里的文件,而且不用输入账号,因此不存在盗号的可能性. github地址: https://github.com/proxyee-down-org/proxyee-down 百度云下载地址: https://pan.baidu.com/share/init?surl=fgBnWJ0gl6ZkneGkVDIEfQ ,密码d92x. 百度大文件破解 1.限速与封号 使用过百度云的朋友肯定知

百度云受邀成为 LF Edge 创始成员

导读 1月24日,Linux Foundation(Linux基金会,以下简称LF)宣布正式成立旗下子机构边缘计算基金会LF Edge,旨在建立边缘计算统一开源框架.百度云受邀成为创始成员. 中国公司不再只是技术发展的分享者.受益者,正在积极成为贡献者.1月24日,Linux Foundation(Linux基金会,以下简称LF)宣布正式成立旗下子机构边缘计算基金会LF Edge,旨在建立边缘计算统一开源框架.百度云受邀成为创始成员.百度云和LF Edge还将在百度开源边缘计算平台OpenEdg

百度云下载的一些解决方案

一.修改"https://" 1.使用360安全浏览器.360极速浏览器.百度.搜狗等的极速模式(高速模式),在百度云盘下载地址前添加"https://"按Enter键回车访问即可(浏览器可以随意使用,经测试主流浏览器均支持): 2.然后再点击"下载"按钮就会发现可以直接打开迅雷下载大文件了,再也不用使用龟速的百度云管家了(前提是电脑已安装迅雷下载并和浏览器做了关联). 二.使用JS脚本 1.随意打开一个网页,按快捷键Ctrl+D,然后将网址替换