Phần 4. Cài đặt Pyload cho Nas buffalo

Sau khi sử dụng NAS Buffalo với vài ngày vọc vạch phải cài đi cài lại nhiều lần. Mình tìm được một cách cài đặt pyLoad rất dễ dàng và tự khởi động và tắt cùng với NAS.
Trên trang chủ của pyLoad đã có hướng dẫn cài đặt riêng cho NAS sử dụng IPKG. Các bạn chỉ cần chạy những đoạn code sau.
1. Cài đặt những gói cần thiết cho pyLoad.
Code:
ipkg install wget tesseract-ocr tesseract-ocr-lang-eng ossp-js unrar
2. Tải về pyLoad phiên bản 0.4.9
link download:

copy vào thư mục share
3. Cài đặt pyLoad 0.4.9
Code:
ipkg install /mnt/disk1/share/pyload-v0.4.9-noarch.ipk
4. Khởi động pyLoad để cài đặt các thông số thiết lập cơ bản. Các bạn chỉ cần trả lời những câu hỏi khi setup. Phần này mình sẽ cập nhật chi tiết sau.
Code:
pyLoadCore -s
5. Trả lời các thông số cài đặt cơ bản.
Code:
Choose your Language / Wähle deine Sprache ([en], de, fr, it, es, nl, sv, ru, pl, cs, sr, pt_BR): en

Welcome to the pyLoad Configuration Assistent.
It will check your system and make a basic setup in order to run pyLoad.

The value in brackets [] always is the default value,
in case you don't want to change it or you are unsure what to choose, just hit enter.
Don't forget: You can always rerun this assistent with --setup or -s parameter, when you start pyLoadCore.
If you have any problems with this assistent hit STRG-C,
to abort and don't let him start with pyLoadCore automatically anymore.

When you are ready for system check, hit enter.

## System Check ##
Python Version: OK
pycurl: OK
sqlite3: OK

pycrypto: OK
py-OpenSSL: OK

py-imaging: OK
tesseract: OK

PyQt4: missing

jinja2: OK
beaker: OK
JS engine: OK

System check finished, hit enter to see your status report.

## Status ##

Features available: container decrypting, ssl connection, automatic captcha decryption, Webinterface, extended Click'N'Load

Continue with setup? ([y]/n): y

Do you want to change the config path? Current is /opt/share/pyload_config
If you use pyLoad on a server or the home partition lives on an iternal flash it may be a good idea to change it.
Change config path? (y/[n]): n

Do you want to configure login data and basic settings?
This is recommend for first run.
Make basic setup? ([y]/n): y

## Basic Setup ##

The following logindata is valid for CLI, GUI and webinterface.
Username [User]: admin
Password: ******
Password (again): ******

External clients (GUI, CLI or other) need remote access to work over the network.
However, if you only want to use the webinterface you may disable it to save ram.
Enable remote access ([y]/n): y

Language ([en], de, fr, it, es, nl, sv, ru, pl, cs, sr, pt_BR): en
Downloadfolder [Downloads]: /mnt/disk1/share/downloads/
Max parallel downloads [3]: 3
Use Reconnect? (y/[n]): n

Do you want to configure ssl?
Configure ssl? (y/[n]): n

Do you want to configure webinterface?
Configure webinterface? ([y]/n): y

## Webinterface Setup ##

Activate webinterface? ([y]/n): y

Listen address, if you use 127.0.0.1 or localhost, the webinterface will only accessible locally.
Address [0.0.0.0]: 0.0.0.0
Port [8000]: 8000

pyLoad offers several server backends, now following a short explanation.
builtin: Default server, best choice if you dont know which one to choose.
threaded: This server offers SSL and is a good alternative to builtin.
fastcgi: Can be used by apache, lighttpd, requires you to configure them, which is not too easy job.
lightweight: Very fast alternative written in C, requires libev and linux knowlegde.
        Get it from here: https://github.com/jonashaag/bjoern, compile it
        and copy bjoern.so to module/lib

Attention: In some rare cases the builtin server is not working, if you notice problems with the webinterface
come back here and change the builtin server to the threaded one here.
Server ([builtin], threaded, fastcgi, lightweight): builtin

Setup finished successfully.
Hit enter to exit and restart pyLoad
Các bạn tùy chọn cho mình thông số Username và Password truy cập vào pyLoad qua giao diện web. Ngoài ra các bạn có thể thay đổi port mặc định. Còn các thông số cài đặt còn lại tốt nhất là giữ mặc định.
Tiếp theo, chúng ta sẽ cài đặt pyLoad khởi động và kết thúc cùng với NAS. Mình cài đặt gần như tương tự với Transmission.
1. Tạo tập tin khởi động

Tải file copy vao thư mục share: S95Pyload

Code:
mv /mnt/disk1/share/S95starPyload /opt/etc/init.d/S95startPyload
chmod +x /opt/etc/init.d/S95startPyload
update-rc.d /opt/etc/init.d/S95startPyload defaults

Nhận xét

Bài đăng phổ biến từ blog này

Hướng dẫn cài đặt NAS Buffalo

Phần 2. Hướng dẫn cài đặt Transmission trên NAS Buffalo chạy CPU ARM