Cách để biến một Raspberry Pi thành một máy chủ sách điện tử eBook

Thứ hai - 31/07/2017 06:27

How to turn a Raspberry Pi into an eBook server

The Calibre eBook management software makes it easy to set up an eBook server on a Raspberry Pi 3, even in low-connectivity areas.

Phần mềm quản lý sách điện tử Calibre làm cho nó dễ dàng để thiết lập một máy chủ sách điện tử trên Raspberry Pi 3, thậm chí ở những khu vực có tính kết nối thấp.

27 Jun 2017, By Don Watkins

Theo: https://opensource.com/article/17/6/raspberrypi-ebook-server

Bài được đưa lên Internet ngày: 27/06/2017

Xem thêm: Phần cứng mở - Phần cứng nguồn mởGiáo dục mở và tài nguyên, giấy phép tư liệu mở.


 

Calibre 3.0 đã được phát hành gần đây, nó cho phép những người sử dụng đọc các cuốn sách trên trình duyệt!

Lưu ý rằng các kho của Raspbian còn chưa được cập nhật ở thời điểm viết bài này.

Sách điện tử eBook là cách tuyệt vời cho các giáo viên, các thủ thư, và những người khác chia sẻ các cuốn sách, các tư liệu lớp học, hoặc các tài liệu với sinh viên - miễn là bạn có sự truy cập rồi và tin cậy tới băng thông rộng. Nhưng thậm chí nếu bạn có kết nối chậm hoặc không có kết nối, thì vẫn có giải pháp dễ dàng: Tạo một máy chủ eBook với phần mềm quản lý eBook có tên là Calibre, chạy trên Raspberry Pi 3. Đây là cách tôi đã làm nó - và bạn cũng có thể làm.

Trước tiên tôi đã tải về hình ảnh Raspbian Pixel image mới nhất và cài nó lên thẻ mới 8GB microSD. Sau đó tôi đã chèn microSD; đã kết nối bàn phím, chuột và một TV LCD cũ với cáp HDMI; và đã khởi động Pi. Sau khi tinh chỉnh đô phân giải của môi trường Pixel trên màn hình của tôi và kết nối tới mạng cục bộ, tôi đã sẵn sàng để bắt đầu. Tôi đã mở màn hình môi trường dòng lệnh (terminal) và gõ vào sudo apt-get update để có được bản cập nhật mới nhất cho hệ điều hành.

Tiếp theo, tôi đã cài đặt phần mềm Calibre bằng cách gõ vào terminal dòng lệnh sudo apt-get install calibre.

Tôi đã khởi tạo Calibre từ dòng lệnh (lưu ý là nó cũng có thể được khởi tạo từ giao diện đồ họa cho người sử dụng GUI). Giao diện của Calibre rất trực quan. Lần đầu bạn khởi tạo, bạn sẽ thấy lời chào mừng tới Calibre (Welcome to Calibre). Tôi đã thay đổi mặc định cho Thư viện Calibre (Calibre Library) sang CalibreLibrary (1 từ), vì dễ dàng hơn khi khởi tạo máy chủ nội dung.

Sau khi chọn vị trí cho nội dung của Calibre của tôi, tôi đã sẵn sàng bắt đầu tải về các cuốn sách.

Tôi đã chọn lựa chọn Get Books (Lấy sách) từ thực đơn, và từng là rất dễ để gõ vào cụm từ tìm kiếm của tôi và chọn nhà cung cấp eBook tôi có quan tâm. Tôi đã tìm kiếm tư liệu không có quản lý các quyền số (non-DRM), nên tôi chọn Project Gutenberg như là nguồn của tôi. (Lời khước từ của Calibre lưu ý rằng các bản dịch sách điện tử eBook là giữa bạn và từng nhà cung cấp nội dung riêng rẽ). Tôi đã gõ vào “Mark Twain” trong trường tác giả và có được 10 kết quả.

Về tác giả

Don Watkins - Nhà giáo dục, chuyên gia công nghệ giáo dục, doanh nhân, người bảo vệ nguồn mở, Thạc sỹ về Tâm lý Giáo dục, MSED về Lãnh đạo Giáo dục, nhà quản trị hệ thống Linux, CCNA, ảo hóa sử dụng Virtual Box. Hãy đi theo tôi tại @Don_Watkins .

Recently Calibre 3.0 was released which enables users to read books in the browser! Note that Raspbian's repositories have not yet been updated yet (as of this writing).

eBooks are a great way for teachers, librarians, and others to share books, classroom materials, or other documents with students—provided you have ready and reliable access to broadband. But even if you have low or no connectivity, there's an easy solution: Create an eBook server with the open source Calibre eBook management software running on a Raspberry Pi 3. Here's how I did it—and you can, too.

First I downloaded the latest Raspbian Pixel image and installed it on a new 8GB microSD card. Then I inserted the microSD; connected a keyboard, mouse, and an old LCD TV with an HDMI cable; and booted the Pi. After adjusting the resolution of the Pixel environment on my monitor and connecting to the local network, I was ready to begin. I opened a terminal and entered sudo apt-get update to get the latest updates for the operating system.

Next, I installed the Calibre software by entering sudo apt-get install calibre in a terminal.

I launched Calibre from the command line (note that it can be launched from the GUI also). The Calibre interface is very intuitive. The first time you launch, you see the Welcome to Calibre wizard. I changed the default Calibre Library to CalibreLibrary (one word), because it's easier when launching the content server.

After choosing the location for my Calibre content, I was ready to begin downloading books.

Educator, education technology specialist,  entrepreneur, open source advocate. M.A. in Educational Psychology, MSED in Educational Leadership, Linux system administrator, CCNA, virtualization using Virtual Box. Follow me at @Don_Watkins .

I selected the Get Books option from the menu, and it was very easy to enter my search terms and select the eBook provider I was interested in. I was looking for non-DRM material, so I chose Project Gutenberg as my source. (Calibre's disclaimer notes that eBook transactions are between you and the individual content providers.) I entered "Mark Twain" in the author field and got 10 results.

About the author

Don Watkins - Educator, education technology specialist,  entrepreneur, open source advocate. M.A. in Educational Psychology, MSED in Educational Leadership, Linux system administrator, CCNA, virtualization using Virtual Box. Follow me at @Don_Watkins .

Dịch: Lê Trung Nghĩa

letrungnghia.foss@gmail.com

I selected Adventures of Huckleberry Finn. On the next screen, I could choose between the MOBI and EPUB eBook formats. I chose EPUB, and the book downloaded very quickly.

You can also add books to the library from other content providers, not in Calibre's list. For example, a teacher could share open educational resources in eBook format with students through this content server.  To load the content, use the "Add Books" menu option at the far left of the interface

Depending on the size of your library, you may also need to increase the size of your microSD card.

start_the_server.png

After you have added content to your eBook server, you are ready to share it with the rest of your network. Get the IP address of your Raspberry Pi by entering ifconfig into the terminal. I was using the wireless network, so I used the result for wlan0 in the example below. Navigate to the far right of the interface and expand the menu. Then, navigate to "Connect and Share" and start the server.

My next step was connecting my client computer to the Raspberry Pi to access the eBooks I'd added. I opened a browser on my client device and navigated to the Raspberry Pi's IP address with the port :8080 appended. In my case, that was http://192.168.1.10:8080 (adapt that format to your Pi's IP address).

You'll see this home page in your browser:

I tested and easily connected to the server with an iPhone and Linux and MacOS computers.

You can explore the options on this home page, or click on All Books to display all the content on your eBook server.

From here, you can download the books to your device and read them offline.

Have you ever set up an eBook server? Or are you thinking about setting up one yourself? Share your advice or questions in the comments.

Dịch: Lê Trung Nghĩa

letrungnghia.foss@gmail.com

Tổng số điểm của bài viết là: 0 trong 0 đánh giá

Click để đánh giá bài viết

  Ý kiến bạn đọc

Những tin mới hơn

Những tin cũ hơn

Về Blog này

Blog này được chuyển đổi từ http://blog.yahoo.com/letrungnghia trên Yahoo Blog sang sử dụng NukeViet sau khi Yahoo Blog đóng cửa tại Việt Nam ngày 17/01/2013.Kể từ ngày 07/02/2013, thông tin trên Blog được cập nhật tiếp tục trở lại với sự hỗ trợ kỹ thuật và đặt chỗ hosting của nhóm phát triển...

Bài đọc nhiều nhất trong năm
Thăm dò ý kiến

Bạn quan tâm gì nhất ở mã nguồn mở?

Thống kê truy cập
  • Đang truy cập251
  • Hôm nay51,716
  • Tháng hiện tại265,813
  • Tổng lượt truy cập31,421,285
Bạn đã không sử dụng Site, Bấm vào đây để duy trì trạng thái đăng nhập. Thời gian chờ: 60 giây