在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):xybu/onedrive-d-old开源软件地址(OpenSource Url):https://github.com/xybu/onedrive-d-old开源编程语言(OpenSource Language):Python 96.0%开源软件介绍(OpenSource Introduction):onedrive-dhttps://github.com/xybu/onedrived-dev.Keep an eye onA Microsoft OneDrive desktop client / daemon on Linux, written in Python 3. InstallSteps 1, 2, and 5 need to be done manually. For steps 3 and 4, the script file (1) Always uninstall older versions before installing newer ones # To remove onedrive-d < 1.0
sudo pip uninstall onedrive-d
# To remove onedrive-d >= 1.0
sudo pip3 uninstall onedrive-d
# Remove residual config files
rm -rfv ~/.onedrive (2) Grab the source code git clone https://github.com/xybu/onedrive-d-old.git
cd onedrive-d Or you can browse https://github.com/xybu/onedrive-d-old and download the ZIP file manually. (3) Pre-requisites Your local filesystem must store UTC timestamps, not local time. This is true for most Unix filesystems. onedrive-d requires Python3 intepreter. If Python version is older than 3.4, Python3 intepreter must use Unicode mode (default for most Linux distro) otherwise its string datatype won't work. The daemon package ( For GUI component to work, Python3 binding of GObject ( Another recommended package is (4) Install onedrive-d # Register package
sudo python3 setup.py install
# Clean temporary files
sudo python3 setup.py clean
# Create settings dir
mkdir ~/.onedrive
cp ./onedrive_d/res/default_ignore.ini ~/.onedrive/ignore_v2.ini
# Create log file
sudo touch /var/log/onedrive_d.log
# you may need to change `whoami` to your username
sudo chown `whoami` /var/log/onedrive_d.log (5) Configure / start onedrive-d # First read help info
onedrive-pref --help
onedrive-d --help
# Run config program with CLI
onedrive-pref
# Or run with GUI
onedrive-pref --ui=gtk
# Run onedrive-d
# start as a daemon
onedrive-d start
# or start as a regular process
onedrive-d start --debug Run without installationTo run the source code directly without installing it to the system, do steps 1 to 3 in Installation section, and copy config files by mkdir ~/.onedrive
cp ./onedrive_d/res/default_ignore.ini ~/.onedrive/ignore_v2.ini
# Create log file if you need to run onedrive-d as daemon
sudo touch /var/log/onedrive_d.log
# you may need to change `whoami` to your username
sudo chown `whoami` /var/log/onedrive_d.log Now you can run the program by commands # assume you are in "onedrive-d" folder that contains "onedrive_d" folder.
# equivalent to `onedrive-pref` command
python3 -m onedrive_d.od_pref --help
# equivalent to `onedrive-d` command
python3 -m onedrive_d.od_main --help Note that the commands above are no longer valid after installing the package to the system. RemoveRefer to step 1 of section "Installation". Notes for UsersNote that this is the older version. the current version is still in development. If you are having problems with python make sure you have the correct version and that you have installed the correct modules (i.e. apt-get install python3-dev). Data Integrity
Uploading / Downloading by BlocksWhen file size exceeds an amount (e.g., 8 MiB), onedrive-d will choose to upload / download it by blocks of smaller size (e.g., 512 KiB). This results in smaller cost (thus better reliability) when recovering from network failures, but more HTTP requests may slow down the process. Tweak the parameters to best fit your network condition. Copying and Moving Files and FoldersBecause the various behaviors of file managers on Linux, it is hard to determine what actions a user performed based on the log of Most file managers, including Things are even worse when one copies / moves a directory. In most cases the mtime attribute will be changed, resulting in onedrive-d uploading the whole folder. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论