{"id":26022437,"url":"https://github.com/2moe/tmoe","last_synced_at":"2025-03-06T09:55:19.990Z","repository":{"id":37008925,"uuid":"254190135","full_name":"2moe/tmoe","owner":"2moe","description":"TMOE, More Optional Environments.","archived":true,"fork":false,"pushed_at":"2024-10-11T08:31:01.000Z","size":10954,"stargazers_count":897,"open_issues_count":55,"forks_count":82,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-02-28T11:45:46.104Z","etag":null,"topics":["chroot","container","cross-architecture"],"latest_commit_sha":null,"homepage":"https://doc.tmoe.me","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2moe.png","metadata":{"files":{"readme":"Readme-old.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-04-08T20:11:30.000Z","updated_at":"2025-02-25T15:27:17.000Z","dependencies_parsed_at":"2023-02-14T06:31:23.837Z","dependency_job_id":"5e855fc0-be4e-40b8-a14f-da2480827cc7","html_url":"https://github.com/2moe/tmoe","commit_stats":{"total_commits":4104,"total_committers":3,"mean_commits":1368.0,"dds":"0.23757309941520466","last_synced_commit":"d1e51a1f57a331d1195ace2ea33215a77f68ee25"},"previous_names":["2moe/tmoe-linux"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2moe%2Ftmoe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2moe%2Ftmoe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2moe%2Ftmoe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2moe%2Ftmoe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2moe","download_url":"https://codeload.github.com/2moe/tmoe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242187663,"owners_count":20086218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chroot","container","cross-architecture"],"created_at":"2025-03-06T09:55:17.606Z","updated_at":"2025-03-06T09:55:19.963Z","avatar_url":"https://github.com/2moe.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# TMOE\n\nTMOE, More Optional Environments.\n\n![index](./assets/map/readme_index.svg)\n\n## Foreword\n\nSorry, guys.  \nThe current edition has a lot of bugs.  \nIn the next, if I have time, I will improve it step by step.  \nFor now it is only suitable for running in container environment.\n\nModifying tens of thousands of lines of POSIX-compliant sh \u0026 bash scripts is killing me, especially since a lot of this stuff was written years ago.\n\nI may rewrite some of the modules in a more powerful language and gradually integrate them in. Finally, a complete rewrite!\n\n## ChangeLog\n\n### 2022-10-30\n\n#### Fixed\n\nFixed a fatal issue with TUI on Android 7.  \nIf you still have related issues, feel free to give feedback.\n\n### 2022-10-29\n\n\u003cdetails\u003e\n\n#### Fixed\n\nTemporary fix for tui-related issues on debian-sid and fedora-rawhide.  \nNote: this is only a temporary fix.  \nWaiting for upstream updates is the way to go.\n\nHalf a month ago, debian-sid updated `libpopt0` to `1.19`, which caused a problem with TUI-related parts.  \nThis was not the fault of `libpopt0`, they fixed a memory leak.  \nHowever, the use of the new version of `libpopt0` for the TUI-related libraries leads to invalid pointers.\n\nPerhaps we should not discuss pointers and memory safety in changlog.\n\nBut this is an important issue for debian, and it affects the configuration package functionality of `dpkg`.\n\nAlthough we are free to choose the front end of `debconf`, it is by default the TUI front end.\n\nFor tmoe's container environment, it will apply the patch automatically.  \nIf you are using a virtual machine, then you will need to fix it manually.\n\nYou can use `dpkg-query -W libnewt0.52 libpopt0` to check the version.  \nIf `libnewt0.52` is **0.52.21-6**, and `libpopt0` is **1.19+dfsg-1**, then you can run the following commands.\n\n```sh\n  _file=\"wrapper.tar.gz\"\n  _arch=$(dpkg --print-architecture)\n  curl -Lo $_file \"https://packages.tmoe.me/patch/debian/w/whiptail/whiptail-wrapper_0.52.21_$_arch.tar.gz\"\n  sudo tar -zxvf $_file -C /\n  sudo /usr/local/sbin/whiptail-wrapper --init\n  unlink $_file\n```\n\nps: You can run `sudo /usr/local/sbin/whiptail-wrapper --remove` to remove it.\n\n#### Features\n\nUnfortunately, no new features have been added this time.\n\nBut there is good news, the ubuntu 23.04 version codename is out!  \nThat's Lunar Lobster (🌙🦞).  \nAs per usual, I would have added it and happily written it in the commit log.\nHowever, given the stability issues, I'll probably wait a while before adding it in.\n\nFortunately, you can manually change the src to 23.04.  \nYou can use the latest 22.10 container, then run the following cmds as root.\n\n```sh\nsed -i 's@ kinetic@ lunar@g' /etc/apt/sources.list\napt update\napt dist-upgrade\n```\n\n\u003cimg src=\"./assets/changelog/20221029/ubuntu lunar src list.jpg\"/\u003e\n\nIt's time to experience the mysterious magic of the moon!\n\n\u003c/details\u003e\n\n## Preview\n\n\u003cdetails\u003e\n\u003cimg src=\"assets/preview/2022-05-12_16-29-43.png\" tag=\"locale\"/\u003e\n\u003cimg src=\"assets/preview/2022-05-12_16-31-26.png\" tag=\"container menu\"/\u003e\n\u003cimg src=\"assets/preview/2022-05-12_16-32-09.png\" tag=\"debian-xfce\"/\u003e\n\n\u003c/details\u003e\n\n## Documentation\n\n[doc.tmoe.me](https://doc.tmoe.me)\n\nUnfortunately, the documentation is far from complete.  \nAnd, as I am designing the new edition, some of it may need to be revised.\n\n## Quick Start\n\nJust focus on steps 1 and 2.\n\n\u003c!-- cargo r -- -t '[[Step, Description, Command]; [0(optional), \"access to tmp dir\"]]' --\u003e\n\n| Step          | Description           | Command                                        |\n| ------------- | --------------------- | ---------------------------------------------- |\n| 0(optional)   | access to tmp dir     | `cd /tmp` \\|\\| `cd $TMPDIR`                    |\n| 1             | get awk file          | `curl -LO https://l.tmoe.me/2.awk`             |\n| 2             | run it                | `awk -f 2.awk`                                 |\n| 2.5(optional) | pass in specific vars | `awk -f 2.awk -v lang=zh-mo -v tmp_dir=\"/tmp\"` |\n\nIf you can't remember, then you can use this.\n\n```sh\nrm 2.awk; wget l.tmoe.me/2.awk; awk -f 2.awk\n```\n\nAlthough it will automatically redirect `http` to `https`.  \nHowever, in theory you need to worry about http **hijacking** if you don't add `https`.  \nSo, it's better to add it!\n\n---\n\nQ: I have a garbled code problem, what should I do?\n\n![non-utf8](assets/about-awk/non-utf-8-environment.jpg)\n\nIf the \"garbled content\" is not a human-readable word or sentence, this may be a character encoding or font issue.  \nIf you see something in a foreign language that you don't understand, it may be a problem with an older version of i18n.  \nI'm sorry that I didn't handle i18n well.  \nBut, the new **edition** released later may do better.\n\nObviously, the above is a character encoding issue.\n\nYou can specify `lang` as English: `awk -f 2.awk -v lang=en-us`  \nYou can also switch the encoding of the current environment to UTF-8: `cmd /K chcp 65001`\n\nIncidentally, it is not planned to support windows for some time to come.  \nPlease **do not** run it on windows now!  \nAlthough you can use it on WSL, win already has WSLg.  \nSo, you know, you probably don't need it.\n\n---\n\nQ: Is there only one method or uri for installation?\n\nA: No. As it is hosted on the git platform, you can also get it from github or gitee.\n\ngithub:\n\n```sh\ncurl -LO --compressed https://raw.githubusercontent.com/2moe/tmoe/2/2.awk\nawk -f 2.awk\n```\n\nGreat, but slightly long.\n\ngitee:\n\n```sh\ncurl -LO https://gitee.com/mo2/linux/raw/2/2.awk\nawk -f 2.awk\n```\n\nIn practice, the choice of uri depends on the state of your network.  \nIf you have good internet. Just pick the one you like.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2moe%2Ftmoe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2moe%2Ftmoe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2moe%2Ftmoe/lists"}