How to download faster from Chinese Baidu cloud service (Linux)

I was struggling more than few times trying to download (especially big) files from Chinese BaiduYun cloud servers. Download is usually very slow, breaks alot of times and can’t be resumed.

While ago I figured how to download from Baidu without pain, praying and with excellent speed 🙂

I’m writing this tutorial as Linux user but download utility used (aria2) is available for other operating systems as well.

So, here’s what you need:

  • Google Chrome web browser
  • BaiduExporter extension for Chrome which you can get from Chrome Web Store
  • aria2 download utility (Debian based distros usually have it in official repositories as aria2 package)

Step 0: Install BaiduExporter in your Chrome

Step 1: Open shared link from which you want to download

panbaidu-step1

Step 2: When page is fully loaded (this can take some time), select files you want to download and put your pointer over button which says 导出下载. Picture of button: panbaidu-button

When mouse is over that button, menu should pop up as shown on picture below:

panbaidu-step2

Step 3: Click on middle item in menu that showed. After some time links to selected files will be shown in popup window as can be seen on picture below:

panbaidu-step3

Step 4:

  • Copy and paste these links somewhere (you will need them if download gets interrupted to resume download)
  • Open terminal window and navigate to folder where you want to download selected files
  • Each line starts with aria2c and whole line is basically your download command. So, take one line, copy it and paste it in your terminal window, press enter and download should start.

Note: You are not limited by instances of aria2 clients running and number of files you are downloading at same time (as far as I tested). Your limitation is your Internet speed. I managed to successfully download 5x4Gb files with aprox. speed of 10MB/s for each file on high bandwidth Internet connection.

I hope this will be helpful to someone 🙂

Kernel for few Amlogic MX devices

Since I was asked multiple times about kernels for some devices I worked on I found some time and went trough archives.

Kernel (Android one) is located on my GitHub account – kernel-amlogic-mx.

Boards covered by this kernel:

  • Prestigio PMP5670C (meson6_pmp5670c_defconfig) with panel configuration and touchscreen driver
  • VissonTech ATV-102S/ATV-106/Tronsmart Prometheus (meson6_g18_atv102s_defconfig)
  • Zoomtak T6 (meson6_g18_dbxm6_defconfig) – does not include VFD driver
  • Shiningworth MX, Gbox Midnight MX2 and most of its clones (meson6_g18_dbxmx_defconfig)

As I said, this is Android kernel based on 2014-04-28 SDK. To compile it, you need rest of SDK (JellyBean 4.2.2) which can be found on Internet.

For kernel building only, you will need ARM Linaro toolchain from Amlogic download site and modules (Wifi, nand, Mali) which hopefully still can be found on another Amlogic download site. Keep in mind that Mali driver used in your kernel must match version of Mali binaries in userspace otherwise it won’t work.