mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-02-03 23:40:14 +08:00
translated
This commit is contained in:
parent
182211431b
commit
5f970ad373
@ -1,42 +0,0 @@
|
||||
translating---geekpi
|
||||
|
||||
WD My Passport Wireless Linux Hacks
|
||||
============================================================
|
||||
|
||||
While WD My Passport Wireless is a rather useful device in its own right, the fact that it powered by a lightweight yet complete Linux distribution means that its capabilities can be extended even further. Deploy, for example, [rclone][3] on the device, and you can back up the photos and raw files stored on the disk to any supported cloud storage service.
|
||||
|
||||
Before you can do this, though, you need to connect the device to a Wi-Fi network and enable SSH (so that you can access the underlying Linux system via SSH). To connect the WD My Passport Wireless to you current Wi-Fi network, power the device and connect to the wireless hotspot it creates from your regular Linux machine. Open a browser, point it to _[http://mypassport.local][1]_, and log in to the device’s web interface. Switch to the Wi-Fi section, and connect to the existing your local Wi-Fi network. Switch then to the Admin section and enable SSH access.
|
||||
|
||||
![wd-mypassport-wireless-admin](https://scribblesandsnaps.files.wordpress.com/2017/02/wd-mypassport-wireless-admin.png?w=605)
|
||||
|
||||
On your Linux machine, open the terminal and connect to the device using the `ssh root@mypassport.local` command.
|
||||
|
||||
Deploying rclone then is a matter of running the following commands:
|
||||
|
||||
| 123456789 | `curl -O http:``//downloads``.rclone.org``/rclone-current-linux-arm``.zip``unzip rclone-current-linux-arm.zip``cd` `rclone-*-linux-arm``cp` `rclone` `/usr/sbin/``chown` `root:root` `/usr/sbin/rclone``chmod` `755` `/usr/sbin/rclone``mkdir` `-p` `/usr/local/share/man/man1``sudo` `cp` `rclone.1` `/usr/local/share/man/man1/``sudo` `mandb` |
|
||||
|
||||
Once you’ve done that, run the `rclone config` command. Since you are configuring rclone on a headless machine, follow the instructions on the [Remote Setup][4] page. You’ll find detailed information on configuring and using rclone in the [Linux Photography][5] book.
|
||||
|
||||
You can put the WD My Passport Wireless to other practical uses, too. Since the device comes with Python, you can run scripts and Python-based web applications on the device. For example, you can deploy the simple [What’s in My Bag][6] application to track your photographic gear.
|
||||
|
||||
| 12345 | `curl -LOk https:``//github``.com``/dmpop/wimb/archive/master``.zip``unzip master.zip``mv` `wimb-master/ wimb``cd` `wimb``curl -LOk https:``//github``.com``/bottlepy/bottle/raw/master/bottle``.py` |
|
||||
|
||||
Run `./wimb.py` to start the app and point the browser to _[http://mypassport:8080/wimb][2]_ to access and use the application.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://scribblesandsnaps.com/2017/02/10/wd-my-passport-wireless-linux-hacks/
|
||||
|
||||
作者:[Dmitri Popov ][a]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:https://scribblesandsnaps.com/author/dmpop/
|
||||
[1]:http://mypassport.local/
|
||||
[2]:http://mypassport:8080/wimb
|
||||
[3]:http://rclone.org/
|
||||
[4]:http://rclone.org/remote_setup/
|
||||
[5]:https://gumroad.com/l/linux-photography
|
||||
[6]:https://github.com/dmpop/wimb
|
@ -0,0 +1,40 @@
|
||||
西部数据 My Passport Wireless 的 Linux Hack
|
||||
============================================================
|
||||
|
||||
虽然 WD My Passport Wireless 本身就是一个相当有用的设备,但它有一个轻量级但完整的 Linux 发行版提供支持的事实意味着其功能可以进一步扩展。例如,在设备上部署[rclone][3],这样你可以将存储在磁盘上的照片和原始文件备份到任何支持的云存储服务中。
|
||||
|
||||
在开始之前,你需要将设备连接到 Wi-Fi 网络并启用SSH(以便你可以通过 SSH 访问底层 Linux 系统)。要将 WD My Passport Wireless 连接到当前的 Wi-Fi 网络中,请为设备供电并连接到从常规 Linux 计算机创建的无线热点。打开浏览器,进入 _[http://mypassport.local][1] _,然后登录到设备的 web 界面。切换到 Wi-Fi 一栏,并连接到现有的本地 Wi-Fi 网络。然后切换到管理员部分并启用 SSH 访问。
|
||||
|
||||
![wd-mypassport-wireless-admin](https://scribblesandsnaps.files.wordpress.com/2017/02/wd-mypassport-wireless-admin.png?w=605)
|
||||
|
||||
在你的 Linux 机器上,打开终端并使用 `ssh root@mypassport.local` 连接到设备。
|
||||
|
||||
使用下面的命令部署 rclone:
|
||||
|
||||
| 123456789 | `curl -O http:``//downloads``.rclone.org``/rclone-current-linux-arm``.zip``unzip rclone-current-linux-arm.zip``cd` `rclone-*-linux-arm``cp` `rclone` `/usr/sbin/``chown` `root:root` `/usr/sbin/rclone``chmod` `755` `/usr/sbin/rclone``mkdir` `-p` `/usr/local/share/man/man1``sudo` `cp` `rclone.1` `/usr/local/share/man/man1/``sudo` `mandb` |
|
||||
|
||||
完成后运行 `rclone config` 命令。由于在无外接机上配置 rclone,请按照[远程设置][4]页面上的说明进行操作。你可以在 [Linux Photography][5] 这本书中找到有关配置和使用 rclone 的详细信息。
|
||||
|
||||
你也可以将 WD My Passport Wireless 用到其他实际用途。由于设备附带了 Python,因此你可以在设备上运行脚本和基于 Python 的 web 应用程序。例如,你可以部署简单的 [What’s in My Bag][6] 程序来跟踪你的照相设备。
|
||||
|
||||
| 12345 | `curl -LOk https:``//github``.com``/dmpop/wimb/archive/master``.zip``unzip master.zip``mv` `wimb-master/ wimb``cd` `wimb``curl -LOk https:``//github``.com``/bottlepy/bottle/raw/master/bottle``.py` |
|
||||
|
||||
运行 `./wimb.py` 启动应用,并在浏览器中打开 _[http://mypassport:8080/wimb][2]_ 访问并使用程序。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://scribblesandsnaps.com/2017/02/10/wd-my-passport-wireless-linux-hacks/
|
||||
|
||||
作者:[Dmitri Popov ][a]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:https://scribblesandsnaps.com/author/dmpop/
|
||||
[1]:http://mypassport.local/
|
||||
[2]:http://mypassport:8080/wimb
|
||||
[3]:http://rclone.org/
|
||||
[4]:http://rclone.org/remote_setup/
|
||||
[5]:https://gumroad.com/l/linux-photography
|
||||
[6]:https://github.com/dmpop/wimb
|
Loading…
Reference in New Issue
Block a user