Home>CGI source code>Other categories
     References  Wikipedia Indonesia  KBBI  Indonesian Glossary  English-Indonesian  Indonesian English
      ShoutBox    About

secured

This blank file set server status. If renamed to .secured, server run in production mode with UUID as parameter, otherwise server run in development mode that display id as integer.

Install

Make sure you have file install.txt inside directory install.

  • Turn on the router with the storage media attached and connect using the command:

telnet 192.168.1.1
  • Continue the setup by typing the mount command and executing the installation script as follows:

mkdir -p /mnt/usb
mount -t vfat /dev/sda1 /mnt/usb 
cd /mnt/usb/ugai/install
sh setup.sh

Done. Next, check for the SSID named Komugai and type http://192.168.1.1 from your browser.

Recommended Data Size

  • TP-Link MR3020: Limit to fewer than 1,000 entries, with a maximum of 3 tags per collection.

  • TP-Link MR3420: Limit to fewer than 5,000 entries, with a maximum of 3 tags per collection.

  • TP-Link WR1043ND: Limit to fewer than 10,000 entries, with a maximum of 3 tags per collection.

The Calibre database itself virtualy has no total limit while using ugai.cgi. However, restrictions apply to the total number and logic of items in the navigation menu and the available media storage size.

Example Scenario

Imagine you have a collection of 17,000 educational textbooks in PDF format, officially issued by your country's Ministry of Education as standard text book. You intend to store these on an MR3420 server for high school use. Additionally, you have hundreds of educational videos created by local high school teachers.

Organize Your Collection:

  1. Segment by Reader Level: Since these resources are for a high school, separate any non-high school materials into a different Calibre database.

  2. Manage Excess Volumes: If the collection of high school-appropriate ebooks (or teacher-created videos) exceeds 5,000 items, further divide them by subject (e.g., Physics, Chemistry, Biology, Sociology, Economics, etc.). Calibre it self has excelent tools to do this job easily. This step will be more easier if you already set tags for each item base on subject. Again, Calibre it self has excelent tools to do this job easily.

Your directory will appear as follows:

ugai
├── install
└── www
    └── data
        ├── elementaryschool
        ├── highschool_biology
        ├── highschool_chemistry
        ├── highschool_economy
        ├── highschool_history
        ├── highschool_physics
        ├── komugai
        ├── midschool
        └── references

Next, rewrite navigation.txt as follows using you text editor (Notepad, GEdit, nano, dll)

db=komugai, home
# Text Books
## db=highschool_biology, biology
## db=highschool_chemistry, chemistry
## db=highschool_economy, economy
## db=highschool_history, history
## db=highschool_physics, physics
# Bonuses
## db=midschool, midschool
## db=elementaryschool, elementaryschool
## db=references, references

Plug your USB/HDD into MR3420 and power-on.

Maintenance

Add/Delete/Edit Calibre Data

After making changes to data (such as adding, deleting, renaming, etc. from Calibre), create a blank file named index.txt inside the ugaiinstall directory, and then return your media to the router.

ugai
└── install
    └── index.txt

Whenever index.txt is found, the system will generate index files for each database to enhance response times. During this process, the system will be very busy and may not be able to handle any requests. After the index files are generated, the system will reboot, and operations will return to normal.

Upgrade

If you need to upgrade the ugai.cgi file while keeping your customized design, simply download file ugai.cgi and ugai.kom then replace the existing one.

Reinstall

If there are issues with the current version, you can reinstall while preserve your own Calibre data by following these steps:

  • Create a blank text file named reset.txt and save into directory ugaiinstall.

ugai
└── install
    └── reset.txt
  • Start the router as usual to reset it. Power off router and put back your USB/SSD/HDD to computer. Wait until reboot and put back your storage into computer.

  • If you have existing Calibre data, move the data directory and navigation.txt file to a location outside of the ugai directory.

navigation.txt
data
ugai
└── install
└── www
  • Delete or rename the ugai directory.

  • Download the new source code from GitHub.

  • Replace wwwdata directory with your backup and also replace navigation.txt inside directory ugaiinstall.

  • Follow the installation instructions as previously described to set up a fresh system with your Calibre data and navigation menu intact.

This process will ensure you have a clean installation while preserving your custom and navigation data.

Problem with Calibre Version

The Calibre Desktop Application, starting from version 4, utilizes sqlite3 features that are not supported by the version used in OpenWRT 12.09. Therefore, to avoid any issues when running the "ugai" webapp, please use Calibre Desktop Application version 3.48. To obtain version 3.48 (2019), you need to remove your current Calibre app first and downgrade to 3.48 from Calibre repositori. If you are already have Calibre newer than 3.48 and reluctant to downgrade, you can choose portable edition (Windows 64-bit only).

If you've never used Calibre before, you can find plenty of tutorials on the internet, including on YouTube. For more tailored assistance, consider joining the Calibre community.

Common Error Cases

ERROR 503: Server not respond

  • Make sure your data readable. Change mode to 755 (chmod -R 777 ugaiwwwdata) ussually works.

  • Make sure ugai.cgi and ugai.kom executable. Change mode to +x (chmod +x ugaiwwwugai.cgi and chmod +x ugaiwwwugai.kom) ussually works.

  • Make sure your server is not in extremelly busy status, in example, when still reindex process.

Page Not Displayed / CGI Error

  • Ensure that all entries in config.json are absolutely correct.

Web Running but Not Displaying Entries from Calibre

  • Double-check config.json to ensure the "server" value is correctly configured.

Cannot Find config.json

  • Enable your file manager to show all hidden files and directories by pressing CTRL+H.

  • Upon boot, the ugai.cgi environment automatically renames config.json to .config.json.

Running Too Slow

  • The more active users there are, the more resources are required, which are already limited (512 MB memory). Consider reducing the number of items in your Calibre database.

  • Create a new Calibre database within the data directory, then move (copy-and-delete) items into this new database based on criteria like subject, format, publisher, authors, pulished date, tags, etc.

  • Remember to register your new database in navigation.txt to display it in the navigation panel.

Incomplete Item

  • A collection will not be displayed if it lacks a cover, comments/description, or file attachment.

  • If you need just a single page (similar to a blog post), use the Calibre feature to add a blank file (TXT).

  • If you don't have cover, use Calibre built-in feature to make cover.

About

Ugai

Imagine ugai.cgi, pronounced ooh-guy, as the brain of a person. Just like your brain helps you think and do your schoolwork, ugai.cgi helps organize all the digital books in a special library called Calibre. It makes sure everything in the library works just right, so you can read and learn without any problems. Ugai.cgi is super important because it keeps the library running smoothly. In the real world, the name ugai refers to a hamlet on Siberut Island in the Mentawai Islands, Indonesia, meaning "home."

Komugai

Now, think of Komugai, pronounced co-mooh-guy, as the body of a person, including the clothes they wear. Imagine you can change your outfits anytime you like. Komugai decides how the online library looks and feels, kind of like how you pick your clothes every day. If you wear different clothes, you're still you, but you might not look like you belong to a specific group, like your school or a sports team, unless you wear their standard outfit. Komugai helps make the library easy to use and nice to look at, just like how your favorite outfit makes you feel good. Under the MIT License, you can change the "clothes" any way you want, as long as you still show the original creator's "brand" on your clothes. In short: ugai is the brain of Komugai 2024. You can keep using "Komugai" for your new "clothes" or pick a totally new name, but one thing is certain: you're still using ugai.cgi and need pay attention about it's upgrade version in the future.

The prefix kom in Komugai stands for communications. The Komugai server is specifically designed to operate in remote areas and can function off-grid without an Internet connection. Equipped with a shoutbox application, Komugai serves as a communication tool for local communities. This feature is extremely valuable, especially during the COVID-19 pandemic, when classrooms in remote areas of Indonesia have been closed.

The term komugai also means 'creatively using available resources to solve problems.' This term is borrowed from the Mee ethnic group in Papua, Indonesia, and it aligns perfectly with the project's environmentally friendly goals.

Perpustakaan Nirkabel

Finally, Perpustakaan Nirkabel, or the Wireless Library Project, is about what you do with this setup after it's installed. Starting from 2014, this project sends educational materials to people in remote places where it's hard to get such resources. It's like going out and helping other people learn new things, using your brain (Ugai) and your body (Komugai) to make a difference. If you use the tools and designs from ugai.cgi and Komugai but are helping out with a different group or in your own community, you're doing great work, but you're not officially part of the Perpustakaan Nirkabel Project.

Also, if you download and use this setup for personal reasons (like learning HTML, JavaScript, jQuery, pentesting, office meeting room, even make personal profit) or just in your school, you're not considered part of the 'Perpustakaan Nirkabel' Project, but you're still a user of both ugai.cgi and Komugai digital wireless server system. Some people call this "social impact."

In short: ugai.cgi is the brain that makes everything work, Komugai is like your whole body and the clothes that make you unique, and Perpustakaan Nirkabel Project is how you use these tools to help others.

Screenshot v2024.1.5

As e-library

Managed and share education materials (audio, video, or all ebooks format)

Ebooks

As communication tools

Communications using Shoutbox proved really useful during the COVID-19 Pandemic of 2020-2021. This nifty open communication feature shines in chaotic disaster situations, helps lost hikers in trekking areas, and keeps refugee camps connected. Just pack it into a tiny MR3020 with a powerful antenna, and bam! You're all set for seamless connectivity.

Dictionary

As mini portable blog

Educators can write and share their own materials here without relaying to Internet connection.

Blog Style

As references

Dictionary

As a library, Perpustakaan Nirkabel 2024 isn’t just about tossing books and videos at you from afar. This e-library can beam multimedia goodies, dictionaries, and even the mighty Wikipedia to the most remote corners of the Earth. It's like sending the entire 12,000-year saga of human achievement to places where the internet is a daylight robbery or just a distant dream.

DictionaryWikipedia

Dictionary

Wikipedia Bahasa Indonesia

Perpustakaan Nirkabel 2024's dictionary capabilities aren't just stuck in the land of Latin characters. Nope, this brainy library is a linguistic chameleon, ready to tackle Asian fonts like Chinese, Korean, Japanese, even Russia. Planning a trip to Indonesia? You'll be chatting like a local in no time, thanks to the handy audio pronunciations attached to every dictionary entry. Just pack this system into a tiny MR3020 router and embark on your Indonesian adventure. Impress Indonesian with their own proverbs and help them to speak with your own language. Terima kasih!

Dictionary

Dictionary

Dictionary

Dictionary

Dictionary

Dictionary

Dictionary

as community-based independent digital school

Through simple games like word-guessing and quizzes, this project empowers communities to independently establish digital schools. Teachers and volunteers can use digital technology to teach local customs and traditions. This approach not only utilizes videos but also interactive games to preserve and promote cultural heritage. A hyper-local community-based independent digital school combines digital flexibility with local engagement, tailoring education to local needs and enhancing accessibility. It fosters community involvement, supports local development, and preserves cultural identity, making education more relevant and inclusive.

Digital School

Revive the spirit of collaborative learning as a community! Gather at the library and explore knowledge through the magical charm of quiz games, where you can delve into learning independently, free from the internet and all its messiness. Let books, videos, Wikipedia, and dictionaries be your guides to a world full of fun and discovery!

Digital School

References

More info about ugai.cgi

More info about Perpustakaan Nirkabel

SocMed: https://www.threads.net/@sri.sutyoko

Home

Expand
Additional Information