1 Star 0 Fork 62

Andieqqq / Tmoe-linux

forked from Moe / TMOE
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
GPL-2.0

🍭Tmoe-linux

. <(curl -L gitee.com/mo2/linux/raw/2/2)

If you do not understand the following readme, please give me an issue to explain the situation,or open README.en.md
化繁为简,让 GNU/Linux 的乐趣触手可及。

如需反馈 bug,请前往github

介绍 Introduction

GNU/LinuxAndroid TermuxWindows10 的 linux 子系统上配置 GNU/Linux chroot 或 proot 容器环境,并 configure remote desktop、pulseaudio 音频服务和 system。

Support multiple systems and virtualized environments

map

Preview

install alpine arm64 chroot container (Nihongo.ver)

install alpine arm64 Nihongo.ver

Support multiple architectures

arch

Support multiple languages

tmoe-linux tool

main menu English.ver

一.不同平台的安装教程 Installation

You can run tmoe-linux manager not only on termux, but also on GNU/Linux.

您不仅可以在 WSL 运行本工具,亦可在 Android 手机上运行。

1.Windows10

Tutorial:

第一章 WSL 篇

001 002 003

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

After restarting the win10 system, run powershell again as an administrator, then type the following command.
重启系统后再次以管理员身份运行 powershell ,然后输

wsl --set-default-version 2

enable
store
若无法连接Microsoft Store,那么也可以手动安装。
Debian
Kali
Ubuntu

004 005 006 007 008 009


打开子系统,然后根据提示更新 WSL2 的 linux 内核。更新完成后,重新打开子系统,然后输

    sudo apt update
    sudo apt install -y curl
    bash -c "$(curl -L gitee.com/mo2/linux/raw/2/2)"

If you do not live in China, please enter

    bash -c "$(curl -L git.io/linux.sh)"

若已经为 root 用户,则可以去掉 sudo。

最后按方向键和回车键进行操作。

注:WSL 请选择安装工具
后期注:建议 WSL 用户直接安装 gui ,不要在里面先套娃安装 chroot 容器,再装 gui,因为这将导致 windows 程序调用失败。

2.Android-Termux

1.安装安卓版TermuxTermux:api
2.打开 termux,输入以下命令

    . <(curl -L gitee.com/mo2/linux/raw/2/2)

If you are using fish,then type the following commands.

  apt update
  apt install -y curl
  curl -Lo manager.sh gitee.com/mo2/linux/raw/2/2
  bash manager.sh

3.若您使用的是 manager,则可以使用触摸屏进行点击;若为 tool,则可使用触摸屏进行滑动,回车键进行确认。
When you are using the manager, you can use the touch screen to click.When you are using the tool, you can use the touch screen to slide and press the Enter to confirm.

4.如需使用 gui,可能还需要安装 VNC apk,您可以前往 Google play 或使用 Tmoe-linux 的 debian-i 来下载。
注:web 端的 novnc 无需安装 apk,但触控操作体验不佳。

3.Debian/Ubuntu/Mint/Kali

    sudo apt update
    sudo apt install -y curl
    bash -c "$(curl -L gitee.com/mo2/linux/raw/2/2)"

不兼容 debian 8 jessie 及更低版本

4.Fedora/CentOS Stream

    sudo dnf install -y curl || sudo yum install -y curl
    bash -c "$(curl -L https://gitee.com/mo2/linux/raw/2/2)"

不兼容 CentOS 7/RHEL 7 及更低版本

5.Arch/Manjaro

    [[ $(command -v curl) ]] || sudo pacman -Syu curl
    bash -c "$(curl -L https://gitee.com/mo2/linux/raw/2/2)"

6.OpenWRT/Entware

202010 不再支持 OpenWRT ,请路由器用户自行解决依赖关系。

    opkg update
    opkg install libustream-openssl ca-bundle ca-certificates wget bash
    bash -c "$(wget --no-check-certificate -O- https://gitee.com/mo2/linux/raw/2/2)"

7.Alpine

    apk update
    apk add wget bash sudo
    cd /tmp
    wget -O .tmoe-linux.sh https://gitee.com/mo2/linux/raw/2/2
    bash .tmoe-linux.sh

8.Void

     [[ $(command -v wget) ]] || sudo xbps-install -Sy wget
    bash -c "$(wget -O- https://gitee.com/mo2/linux/raw/2/2)"

9.Gentoo/Funtoo

202010 不再对 gentoo 进行支持和维护。

    [[ $(command -v sudo) ]] || emerge -avk app-admin/sudo
    [[ $(command -v curl) ]] || emerge -avk net-misc/curl
    bash -c "$(curl -L https://gitee.com/mo2/linux/raw/2/2)"

10.OpenSUSE

    [[ $(command -v curl) ]] || sudo zypper in -y curl
    bash -c "$(curl -L https://gitee.com/mo2/linux/raw/2/2)"

11.Other

其它 system 未测试!!!

例如:GuixSD等发行版

若您需手动克隆本仓库,则请自行解决依赖关系。

I think you can resolve dependencies manually.

The dependencies of the old version before 2020-10(v1.10beta) are git aria2 pv curl grep procps less tar xz(xz-utils) newt(whiptail) sudo

In addition, the new version has more dependencies, please check the source code yourself to understand the dependencies.
After resolving the dependencies,you can git clone this repo manually

case $(uname -o) in
Android) TMOE_LINUX_DIR="${HOME}/.local/share/tmoe-linux" ;;
*) TMOE_LINUX_DIR="/usr/local/etc/tmoe-linux" ;;
esac
TMOE_GIT_URL="https://gitee.com/mo2/linux"
TMOE_GIT_DIR="${TMOE_LINUX_DIR}/git"
[[ -e ${TMOE_GIT_DIR}/.git ]] || mkdir -pv ${TMOE_LINUX_DIR}
git clone --depth=1 ${TMOE_GIT_URL} ${TMOE_GIT_DIR}

After cloning the repo, you can type bash ${TMOE_GIT_DIR}/manager.sh to start tmoe-linux manager.

11-2.FAQ

Q:I don't know how to use it?

A:Type startvnc to start vncserver,type stopvnc to stop it.
You can also type startxsdl to startx.


Q:启动 VNC 的命令有点复杂,我记不住 🤣,欺负老年人么?st...什么来着 😨

A:完整命令是 startvnc,您只需记住 st,然后就能借助 zsh 的自动补全插件来解决。
输完 st 后,您可以按下 TAB 键(⇆),即可生成补全内容。
您也可以直接按方向键 → 或者是 ↑,此操作亦能自动补全。😋


Q:我可以在 Linux Deploy 上使用这个脚本吗?

A:可以哒!ヾ(≧▽≦*)o 您可以在其它主流的 GNU/Linux 发行版,包括但不限于容器、虚拟机和实体机上使用这个脚本。
注:截止 2020 年 7 月份,LinuxDeploy 配置的 archlinux 容器存在某个问题,导致 libnewt 无法被正确配置,进而导致本脚本无法在上面正常运行。
解决方法很简单,删掉某个文件夹再重新配置就可以了。因为本工具开发者已经很久没用过 LinuxDeploy 了,所以忘记是哪个啦!
如果您在使用过程中出现问题,那么建议您前往 github 提交 issue,开发者很乐意帮您解决问题。


Q:我觉得 tmoe-linux tool/manager 的依赖有点多

A: 对于必要依赖,在安装时会显示安装信息,并将依赖关系记录至 tmoe-linux 目录 /usr/local/etc/tmoe-linux/ 下的 MANAGER_DEPENDENCIES.txtTOOL_DEPENDENCIES.txt 。对于 Android 系统,tmoe-linux 目录为 ~/.local/share/tmoe-linux
对于非必要依赖,请留意安装过程中出现的提示。
开发者花费了大量的时间和精力去维护脚本、软件和镜像仓库,就算是您要喷开发者,也希望您能够轻喷,谢谢。

二:容器 Container 篇

1.debian and startvnc commands

For the docker container, the command is docker, so I will not repeat it here. The following will introduce the startup commands of proot and chroot containers. The startup command of the most recently used container is debian

如果容器只有一个,或者您最近使用过那个容器,那么其启动命令为 debian 不管是 kali rolling i386,还是 ubuntu focal arm64,只要您最近使用过它,那就是 debian 在 v1.10 beta 中,加入了新命令 tmoe,支持启动特定的 GNU/Linux 容器版本。

You can type startvnc to start tiger vncserver. If your host system is Android,then the vnc viewer will be started at the same time.

在宿主系统下,输startvnc将启动容器 + tiger vncserver 若宿主系统为 Android,则将同时启动 Real vncviewer 在容器环境下,输startvnc仅启动 tiger vncserver

You can type startx11vnc to start x11 vncserver.

在宿主系统下,输startx11vnc将启动容器 + x11 vncserver 在容器环境下,输startx11vnc仅启动 x11 vncserver

You can type stopvnc to stop VNC server

在容器环境下,输stopvnc来停止启动 VNC server 如需了解更多参数,例如-non-stop-dbus(不停止 dbus-daemon),请输stopvnc --help 如果您遇到了无法退出容器的情况,则请将 stopvnc 添加至 ~/.zlogout

[[ $(egrep '^[^#]*stopvnc' ~/.zlogout) ]] || printf "%s\n" "stopvnc" >> ~/.zlogout

You can type startxsdl to start X client & server.

在容器环境下,输startxsdl仅启动 X client
若您的宿主系统为 win10,则输入startxsdl 将同时启动 VcXsrv X server

2.tmoe command

command
For different distros and different architectures, the startup commands of the container are different.
The complete command is similar to tmoe chroot kali rolling arm64 x11
完整的启动命令类似于 tmoe proot debian sid amd64 vnc
Next, I will introduce the meaning of each parameter.

    The 1st parameter is the container-type.
    You can type "tmoe p" instead of "tmoe proot"
    在第一个参数中,chroot可以简化为c;proot可简化为p
    For example,"tmoe chroot"="tmoe c"

    "$1":
        "c:chroot:A chroot is an operation that changes the apparent root directory for the current running process and their children."
        "chroot:与宿主机共享相同的内核,硬件,进程空间和网络子系统"
        "p:proot - mount --bind and binfmt_misc without privilege/setupmount"
        "proot:能在用户空间内运行的程序,I/O性能弱于chroot"
        "ns:systemd-nspawn:It supports executing systemctl commands in the container."
        "nspawn:systemd容器,支持执行systemctl"
-------------
    The 2nd parameter is the distribution name.
    在第二个参数中,"arch"可以简化为"a";"debian"可简化为"d";"fedora"可简化为"f";"ubuntu"可简化为"u"
    例如:"tmoe p debian"="tmoe p d"

    "$2":
        "a:arch"
        "arch:simplicity,modernity,pragmatism,user centrality and versatility"
        "al:alpine"
        "ap:alpine"
        "alpine:Small. Simple. Secure. Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox"
        "arm:armbian"
        "armbian:香蕉派,香橙派,nanopi"
        "c:centos"
        "centos:CentOS is a community-driven free software effort focused on delivering a robust open source ecosystem around a Linux platform"
        "d:debian"
        "debian:Debian is a distro composed of free and open-source software"
        "devuan:Devuan is a fork of Debian that uses sysvinit or OpenRC instead of systemd"
        "f:fedora"
        "fedora:developed by the community-supported Fedora Project which is sponsored primarily by Red Hat"
        "g:gentoo"
        "gentoo:追求极限配置和极高自由"
        "k:kali"
        "kali:Kali is a Debian-derived distro designed for digital forensics and penetration testing"
        "m:manjaro"
        "manjaro:Free fast and secure Linux based operating system for everyone"
        "mi:mint"
        "mint:Elegant, easy to use, up to date and comfortable GNU/Linux desktop distribution."
        "o:opensuse"
        "suse:opensuse"
        "opensuse"
        "ow:openwrt"
        "openwrt:OpenWRT is a Linux OS targeting embedded devices"
        "r:raspios"
        "raspios:Raspberry Pi OS"
        "s:slackware"
        "slackware:Slackware is a distro created by Patrick Volkerding in 1993"
        "u:ubuntu"
        "ub:ubuntu"
        "ubuntu:Ubuntu is the modern, open source OS."
        "v:void"
        "void:Void is a general purpose operating system, based on the monolithic Linux kernel"
-------------
   The 3rd parameter is the distro version code.
   在第三个参数中,"sid"可以简化为"s";"无版本代号"既可以简化为"n",也可以忽略,直接使用第四个参数。
   Note: The following list does not include all codes. If there is no version code, you can skip it.
    如果版本代号不为空,且参数列表中没有出现其具体代号名称,那么请手动输入完整代号。
    如果存在简化版代号,则可使用简化版代号来替代完整代号。
    例如ubuntu 21.04,您可以用"21.04"来代替"hirsute",至于其他版本却不一定可以,故建议第三个参数使用完整的代号。

    We recommend that you type the complete code.
    For example, for Debian 12, you should use "tmoe c d bookworm" or "tmoe p d bookworm" instead of "tmoe c d 12".

   "$3":
        "s:debian sid"
        "sid"
        "n:none(Rolling releases like archlinux do not have a version code)"
        "none:諸如arch之類的發行版無代號"
        "r:kali rolling"
        "21.04:ubuntu hirsute"
        "20.10:ubuntu groovy"
        "20.04:ubuntu focal"
        "buster:debian10"
        "bullseye:debian11"
        "bookworm:debian12"
        "trixie:debian13"
        "18.04:ubuntu bionic"
        "31:fedora 31"
        "32:fedora 32"
        "33:fedora 33"
        "3.12:alpine 3.12"
        "3.13:alpine 3.13"
        "edge:alpine edge"
        "8-Stream:CentOS 8-Stream"
        "tumbleweed:OpenSUSE tumbleweed"
-------------
    The 4th parameter is the architecture.
    在第四个参数中,"arm64"可以简化为"a";"amd64"可以简化为"x";"i386"可以简化为"i";"armhf"可以简化为"h"
    If you are not using qemu-user for cross-architecture,then you can skip it.
    例如:"tmoe p arch arm64"="tmoe p a a"
    若您未选择跨架构运行,且当前架构为"arm64",则可去除 "arm64" 参数,直接输入"tmoe p a" 就能启动"proot archlinux arm64"容器

    "$4":
        "x:x64/amd64"
        "amd64:It defines a 64-bit virtual address format, of which the low-order 48 bits are used in current implementations.It defines a 64-bit virtual address format, of which the low-order 48 bits are used in current implementations."
        "a:aarch64/arm64"
        "arm64:64-bit extension of the ARM architecture"
        "h:armhf/arm"
        "armhf:32-bit arm hard float"
        "armel:32-bit arm soft float"
        "i:i386/x86/x32"
        "i386:x86 is a family of instruction set architectures initially developed by Intel based on the Intel 8086 microprocessor and its 8088 variant"
        "p:ppc64el"
        "ppc64el:a pure little-endian mode that has been introduced with the POWER8 as the prime target"
        "s390x:Linux on IBM Z is not generally appropriate on premises for small businesses that would have fewer than about 10 distributed Linux servers"
        "m:mipsel:Microprocessor without Interlocked Pipelined Stages little-endian"
        "riscv64:RISC-V is an open standard instruction set architecture (ISA) based on established reduced instruction set computer (RISC) principlesRISC-V is an open standard instruction set architecture (ISA) based on established reduced instruction set computer (RISC) principles"
-------------
        The 5th parameter can start a specific program of the container, such as vnc.
        If it is empty, then zsh will be started.
        在第五个参数中,"vnc"可简化为"v"
        启动chroot ubuntu-focal_arm64 tiger vncserver的命令:
        "tmoe c u focal arm64 vnc"
        可以简化为"tmoe c u focal a v"
        虽然"xsdl"在第五个参数中可以简化为"x",但是在第四个参数中只能简化为"xs"
        若第五个参数为空,则将启动zsh作为默认登录shell,并且不会启动远程服务。

    "$5":
        "v:vnc(startvnc)"
        "vnc:tight/tiger vnc server"
        "x11:x11 vnc server"
        "xs:xserver"
        "xsdl:xserver"
        "bash:GNU Bourne-Again SHell"
        "zsh:z shell(Default)"
        "ash:command interpreter (shell)"
-------------

根据上述参数的用法,可推出 debian-sid_amd64 systemd-nspawn 容器的启动命令为

tmoe ns d s x

SUMMARY

Take the kali-rolling_arm64 chroot container as an example here
Full command:

tmoe chroot kali rolling arm64

Simplified command:

tmoe c k r a

Start kali-rolling_arm64 + tigervnc server:

tmoe c k r a v

Start kali-rolling_arm64 + x11vnc server:

tmoe c k r a x11

Start kali-rolling_arm64 + X client & server:

tmoe c k r a xs

The default login shell is zsh, if you want to start bash,then type

tmoe c k r a bash

Start ash as a login shell:

tmoe c k r a ash

此处以 debian-sid_i386 proot 为例
启动 debian-sid_i386 proot 容器的完整命令为

tmoe proot debian sid i386

精简命令为

tmoe p d s i

若您使用的是 tmoe-zsh 配置的环境,则可以进一步简化为

t p d s i

同时启动 debian-sid_i386 容器+tigervnc server 的命令为

t p d s i v

同时启动 debian-sid_i386 容器+x11vnc server 的命令为

t p d s i x11

同时启动 debian-sid_i386 容器+x client + XSDL/VcXsrv 的命令为

t p d s i x

容器的默认登录 SHELL 为 zsh,若您需要使用其它 shell,则请使用以下命令
临时使用 bash 作为登录 SHELL:

t p d s i bash

临时使用 ash 作为登录 SHELL:

t p d s i ash

额外拓展功能

(补全功能)说明
shell 环境要求:zsh

The completion function exists separately as a zsh plugin, so bash and other shells are not supported.
仅支持 zsh,不支持 bash

tmoe-zsh 会自动加载 tmoe 补全插件,其他插件管理器需要手动加载。

zinit 插件管理器手动配置补全插件:

If you are using Android system,then type the following command.

[[ $(egrep '^[^#]*zinit.*completion/_tmoe' ${HOME}/.zshrc) ]] || sed -i '$ a\zinit ice lucid wait=1 as"completion" && zinit snippet ${HOME}/.local/share/tmoe-linux/git/share/completion/_tmoe' ${HOME}/.zshrc

If you are using GNU/Linux system,then type the following command.

[[ $(egrep '^[^#]*zinit.*completion/_tmoe' ${HOME}/.zshrc) ]] || sed -i '$ a\zinit ice lucid wait=1 as"completion" && zinit snippet /usr/local/etc/tmoe-linux/git/share/completion/_tmoe' ${HOME}/.zshrc

至于其他插件管理器,例如oh-my-zsh,因开发者并未进行测试,故请自行加载插件。

TIPS OF TMOE COMPLETION PLUGIN
1.在 TMOE-ZSH 配置的环境下,输 t,按下空格,再按下 TAB 键 进行补全,输/进行连续补全,在该模式下支持搜索发行版名称。
2.在其他插件管理器配置的环境下,输入 tmoe,不按回车,按下 TAB 键 进行补全.
Type tmoe, then don't press enter, press Tab to complete.

zsh plugin

gif preview
以 alpine 3.12 arm64 proot 以例 tmoe proot alpine 3.12 arm64 ash English.ver


3.Debian Container

① 在 Android 系统上运行 Debian GNU/Linux arm64 应用
debian arm64
debian version
② 跨架构支持,在 Qualcomm 高通 arm64 cpu 的手机上借助 qemu-user 来模拟运行 x86(i686)架构的 Debian GNU/Linux,并通过 pulseaudio 来传输音频。 debian i386
arch

4.Ubuntu Container

① 在 Android 设备上运行的 Ubuntu 容器,你可以通过 VNC 来连接自己;
通过 adb 远程来调试自己(Android);
还能通过 scrcpy+adb 调试来实现自己投屏给自己,将手机中 VNC 的画面投屏给手机中的 VNC。
ubuntu arm64 scrcpy
② Desktop beautification

  • 1)十年 Mint 和 Ubuntu 壁纸包
  • 2)主题链接解析功能
    解析主题链接(gnome-look 和 xfce-look),并根据主题压缩包内容,自动生成删除/卸载的命令。
    wallpaper01

番外篇

🍸 目前支持的容器

Supported containers:

  • Debian stable+sid
  • Ubuntu LTS+dev
  • Kali rolling
  • Arch
  • Fedora rawhide
  • CentOS stream
  • Gentoo
  • Alpine edge
  • OpenSUSE tumbleweed
  • Void
  • Raspios
  • Mint
  • Devuan
  • Armbian

gentoo
配置和优化步骤仅适用于 Debian、Ubuntu、Kali、Arch、Fedora 和 Alpine。
🍹 All configuration and optimization steps only apply to Debian,Ubuntu,Kali,Fedora and Arch.

部分功能预览

qemu 虚拟机管理
qemu虚拟机管理
安装和配置各种工具
secret garden
steam
部分软件因其已存在强大的第三方 GUI 配置工具,故仅提供安装,不提供配置脚本。
ATRI

三:System 配置篇

1.✨ 支持配置多国语言环境,并执行其它优化步骤。
locales 在安装容器前选择相关选项,运行容器后会自动配置相应语言环境,以“日语_日本”为例: 日本語
2-1.换源功能,全球镜像站
全球镜像站 除 debian 官方的全球镜像站外,更有 ubuntu,arch,alpine,fedora,kali 和 manjaro 国内镜像站。

2-2. 额外源功能:arch 添加 archlinux_cn 源,centos 添加 epel 源,debian 添加 kali 源,debian 添加 ubuntu ppa 源并自动解决公钥问题。
Capture__2020-02-16-02-23-49.png

3.sudo 用户组管理

sudo用户组

4.UEFI 开机启动项管理

uefi开机启动项

四:远程桌面配置篇

1.支持一键安装图形界面。
Support one-key graphical user interface installation. de&wm

2.TUI 式界面,便捷配置 remote desktop configuration
分辨率

3.对于不同系统,不同虚拟化环境进行适配
3-1.以 tightvnc/tigervnc 服务为例:
对于 deb 系的虚拟机和实体机,启动 de/wm 的脚本中包含了 dbus-launch --exit-with-session,不加的话可能会出现无法连接至设置服务的错误,而 deb 系的 proot 容器加上这个会很容易闪退,所以对 proot 容器和虚拟机分别进行适配。
而 arch 系虚拟机只需要 dbus-launch,不需要加那个参数。
3-2.自动修复 deb 系发行版+xfce4.14 在 tightvnc 下窗口标题栏丢失的问题。
3-3. 对桌面的多启动命令问题进行修正。
举例:对于 KDE plasma 桌面来说,新版的启动命令为 startplasma-x11 和 startplasma-wayland,不再包含 startkde,而本工具同时兼顾了新版和旧版。
3-4.自动解决非 root 用户在初次配置时可能出现的权限问题。
3-5.对于 WSL2 的适配: 自动识别出 B 类内网动态的 NAT ip,并通过 pulseaudio 实现音频传输,通过调用宿主机(win10)进程来实现便捷式 X 转发。
自动配置只是其中一个解决方案,还有一个是手动配置管理。

4.🍸 Supported GUI(DE)
目前支持的图形界面(桌面环境):
(仅部分系统支持)

  • xfce4
  • lxde
  • mate
  • lxqt
  • kde plasma 5
  • cinnamon
  • gnome 3
  • deepin desktop

注 1:Only some systems support desktop environment installation.
仅部分系统支持
注 2:Prioritize XFCE
优先适配 xfce
注 3: 未打勾的选项在容器/远程桌面环境下存在一些问题
Some desktops may not display properly through the remote desktop

4-1.Arch + Deepin desktop 在 VNC 下会黑屏
下图的 Arch 是运行在 debian 里的 chroot 容器。 Snipaste_2020-04-12_05-09-13.png
后期注:经测试 qemu 虚拟机下的 arch+dde+tigervncserver 没有问题,但是我没有再次测试 WSL2 的兼容性。

4-2.如下图所示,Debian sid + KDE Plasma 5 转发 X11 后,窗口显示会出现问题。
注:在 RDP 下此问题未复现
注 2:qemu 虚拟机运行的 Debian+KDE+x11vnc 也没有问题。
Snipaste_2020-04-12_07-28-58.png

4-3.GNOME3 的 VNC 配置脚本也没有问题。
虽然在 Proot 容器上跑可能会出问题,但是换 qemu-system 虚拟机后就没问题了。 Screenshot_20200608-003126.png

五.软件配置篇

1.提供了某些官方软件源中不包含的软件包,例如 vscode 截图_2020-02-01_08-53-21.jpg 你可以在手机的容器里安装 vscode。
2.对于部分工具提供了配置管理功能,例如 arm64 的 vscode-server。
3.对于特定虚拟化环境下运行报错的应用执行打补丁操作。
4.对 aria2 上百个参数进行配置管理。 aria2 ua aria2 bt
5.对输入法进行安装和配置。

六.支持的架构 Supported architecture

Debian 容器支持 arm64(aarch64)、armhf、armel、amd64(x86_64) 、i386(x86)、s390x 和 ppc64el

可以支持,但不想支持的是 mipsel In addition, the mipsel architecture is also supported! The developer has tested it on the router

2020-03-24 已经支持 mipsel 架构了!(已经在路由器上测试过了 🍥)

可能支持 RISC-V (靠理论知识写出来的,未实际测试。由于现在暂时无法构建 risc-v 的基础容器镜像,故只能靠 qemu 在 risc-v 的设备上模拟其它架构的系统。)

下表中的所有系统均支持 x64 和 arm64
*表示仅旧版支持

Distro x86 armhf ppc64el
Debian
Ubuntu *<=19.10
Kali X
Arch X X
Fedora *<=29
Alpine
CentOS *<=7 *<=7

七.其他说明(旧版)

简易版说明(萌新专用)

1.安装 Tmoe GNU/Linux 管理工具的命令

You can use the following command to install Tmoe GNU/Linux manager

bash -c "$(curl -L https://gitee.com/mo2/linux/raw/2/2)"

(旧版)视频教程链接 提取码: debb(已废弃)

进入工具后,按方向键和回车键进行操作,基本上所有操作都有提示。

Snipaste_2020-03-20_17-10-48.png

2.启动命令

如需了解完整命令,请看新版教程。

  • 启动最近使用的容器
 debian

If you want to start GNU/Linux next time, you can just type debian.

  • 启动 tigervnc server
    若宿主机为 Android 设备,则将同时启动 VNC viewer

    startvnc
  • 启动 x11vnc server

    startx11vnc
  • 启动 X client & server 若宿主系统为 win10,则将同时启动 VcXsrv

    startxsdl
3.卸载命令

debian-rm #(已废弃)

请在管理菜单中单独选择容器名称及其 umount & remove 选项

bash ~/容器选择菜单.sh

If your locale is not "zh_.*UTF-8" or "ja_JP.UTF-8", please type

bash ~/TMOE-CONTAINER-MENU.sh
4.启动工具箱(同时支持,但管理的内容不同)

宿主系统将调用 tmoe-linux manager,容器将调用 tool.

debian-i
5.停止 vnc 命令(同时支持)
 stopvnc
不停止 x11vnc
 stopvnc -non-stop-x11vnc
不停止 dbus-daemon
 stopvnc -non-stop-dbus

Step2.安装图形化桌面环境

2-1.安装前(关于桌面环境的安装与卸载)

进入 GNU/Linux 容器后,您可以从 xfce、lxde、mate、lxqt 中选择一种。

2-3.安装后

startvnc启动 vnc 服务, 输stopvnc停止 vnc 服务。 完成后,打开 vnc viewer 客户端,输 localhost:5902

其它说明

  • 1.若无法退出 GNU/Linux 容器,则请在原系统内输stopvnc
  • 2.若 zsh 配置失败,则请输./zsh.sh进行重新配置。
  • 3.主目录下的 sh 文件可以删除,但 sd、tf 和 termux 三个目录不要删
  • 因为这三个目录挂载了设备存储空间,分别和内置存储、tf 卡(termux 专有目录)以及 termux 主目录联动。

可选步骤

1.修改 vnc 分辨率的方法
  • 1-1.工具修改

在 GNU/Linux 容器内输debian-i打开工具箱,然后选择相关选项,需要注意的只有一点,x 为英文小写,不是乘号。

  • 1-2.亦可手动修改
apt install -y nano
nano $(command -v startvnc)

1440x720(竖屏)改成你需要的分辨率,例如 1920x1080(横屏) 修改完成后,按Ctrl+S 保存,Ctrl+X退出。


八.相关项目

termux/proot-distro
mo2/tmoe-zsh
coslyk/debianopt-repo

九.更新日志 logs

2019 年

11、12 月

旧版脚本部分命令借鉴了 atilo-cn 和 AnLinux,除此之外,大部分都是本人手打的。可能会有出错的地方,欢迎指正。

后期注:Anlinux 的脚本有些地方写得并不好,并且我知道它存在的某些缺陷。反正原作者也看不到,所以我在这里调侃也没事。😹
你去了解更本质的东西就知道哪些地方写得不好了!`(>﹏<)′
相比之下,Linux Deploy 的开发者写的东西要比他强很多。

2020 年

02-15

完全重写脚本! 和别人写的脚本已经完全不一样了,重点不在于安装的方式,而在于配置优化以及与安卓原系统的联动,难点在于一些鬼点子。

本来是不想维护的,但是我发现了一个很严重的 bug,所以干脆重写一遍。 本次更新的内容真的有点多,而且真的很强哦 ✨ ο(=•ω <=)ρ⌒☆,我自己都觉得太强了!

2020-02-15 更新内容
  • 1.获取镜像途径依旧是清华镜像站,但把下载工具从 wget 换成了 aria2,从原本的单线程变成现在的 16 线程,加快了下载速度。
    后期注:盲目调大线程最终适得其反,后期已改为 5 线程。

  • ​ 2.自动配置中文环境,默认就是中文,无需手动配置。

  • ​ 3.修复旧版脚本中非 xfce 桌面的 xstartup 文件问题。

  • ​ 4.新增自动配置 zsh 的功能,初次启动会出现提示,若在指定时间内无操作会自动开始安装并配置 zsh。

  • ​ 包含主题和语法高亮、语法历史记录插件。

  • ​ 5.简化安装流程,且不再需要某种很神奇的 internet 工具。

  • ​ 6.将 debian 10 buster (stable)换成 sid bullseye(unstable),滚动升级,一直都是新版。

  • ​ 7.修复 chromium 浏览器的启动问题,使用 ./chromium.sh 安装的版本,可以直接点击图标启动,在 root 环境下无需加--no-sandbox 参数。

  • ​ 8.加入对 armhf 和 x86_64(amd64)的支持。

  • ​ 9.支持一键更换为 kali 源,debian 变身 kali 就是这么简单!

  • ​ 10.简化卸载流程,安装脚本也可以执行卸载操作。

  • ​ 11.根据当前 linux shell 环境自动修改 proot 启动脚本。

  • ​ 12.修复启动 vnc 后,debian 无法正常关闭的 bug ,(请在 termux 原系统内输 stopvnc)

  • ​ 13.简化启动流程,你可以在 termux 原系统里输 startvnc 来启动 debian+vnc 客户端

  • ​ 14.vnc 支持自动获取本机局域网 ip,地址格式类似于 192.168.123.3:5902


之后的更新内容真的是太多了,有空的话会从酷安原帖搬过来的。其中最突出的更新内容是将安装 gui 和其它软件、管理远程桌面配置等内容整合在 GNU/Linux 容器内的 debian-i 里,以及修复了 VNC 音频传输中可能存在的一些问题。 2020-04-29 注:包含更新日志的帖子已被酷安删除,由于超过 2 周时间,故无法恢复。


2020-02-16 至 2020-03-22 的更新日志待补


2020-03-23 更新日志

本次更新专注于用户体验方面的优化。

  • 1.zsh 加入新插件:aloxaf开发的fzf-tab
    这是一款非常出色的补全插件! Snipaste_2020-03-24_07-48-22.png

  • 2.将默认主题更换为 powerlevel 10k,并同时修复 termux 和 xfce4 终端的字体显示问题。

  • 3.加入 Command-not-found 插件。
    当您未安装相关软件时,输入的是错误的命令。例如输 sshd 时,会出现apt install openssh-server的提示,而不是单纯的显示:Command not found.

后期注:宿主机为 OpenWRT 的路由器,不会加载上述部分插件,且默认主题非 p10k。

2020-03-24 更新日志
  • 1.支持 mipsel 架构,已在路由器上测试过了。

Snipaste_2020-03-24_05-36-44.png

  • 2.尝试让 RISC-V 架构的设备能运行 debian 容器,需要宿主机原系统为 deb 系。
    当检测到设备为 riscv 架构时,将下载其他架构的容器镜像。 调用 qemu+chroot 来实现跨 CPU 架构运行容器,这是一个理论性操作,未实际测试。

    2020-10 注:勿需跨架构,支持直接运行 riscv64 容器。

2020-03-25 更新日志
  • 1.在 iOS 13.3 上发现致命 bug,不再对 iOS-iSH 提供支持。
  • 请勿在苹果 iOS 设备上使用本脚本!
  • 注:iSH为苹果 iOS 上的 Alpine Linux i686 模拟器。
2020-03-26 更新日志
  • 1.全面适配 WSL2 (第二代 windows 的 linux 子系统)
  • 注:在 WSL1 中出现严重 bug,但在 WSL2 中却没有复现。
  • 1-1.输startxsdl能同时启动 windows 的 X 服务
  • 1-2.支持 WSL 的音频传输
  • 2.修复 novnc 在非 Android 系统上重复安装的问题
  • 3.在软件商店中加入了网易云音乐和百度网盘
2020-03-27 至 2020-04-01 更新日志
  • 1.加入测试功能,可在工具内手动安装输入法(如 sunpinyin 和 sogou-pinyin)、电子书阅读器、视频剪辑(openshot)、数字绘图(krita)、社交应用(如 Wechat 和 Telegram) 等等。
  • 2.全面优化 Windows 平台的 pulseaudio(音频传输)服务
  • 3.对于 WSL 的常见问题,给出了解决方案,部分内容还附有截图。
  • 4.加入了修复度盘客户端无法打开的功能

对 WSL2 的支持已经称得上完善了!
最关键的地方在于脚本大量调用了 win10 原系统的程序。
在 win10 2004 下同时运行 linux 和 windows 程序的预览截图GlyxZ8.png
WSL2 与宿主机原系统(win10)的交互联动要比普通虚拟机强数倍,在 linux 子系统下可以直接调用 powershell.exe 等 windows 程序。
如上图所示,目前已经可以接近完美地将 win10 和 GNU/Linux 融为一体。

2020-04-02 更新日志
  • 1.支持非 root 用户配置 vnc 服务
  • 2.修复大量 bug
2020-04-10 更新日志
  • 1.加入测试版容器 arch,fedora,centos,raspbian,mint 等等
2020-04-11 更新日志
  • 1.加入测试版桌面 lxqt,kde,gnome 等。
  • 2.除 deb 系外,还支持给其它发行版安装 gui。
  • 3.支持修复 vnc 闪退。
  • 注 1:由于在这几天的更新中给所有的桌面都加入了 dbus-launch,故在部分安卓设备的 Proot 容器上出现了兼容性问题,容易造成不稳定的状况。
  • 注 2:该操作在 linux 虚拟机及 win10 子系统上没有任何问题
  • 注 3:在最新更新的版本(容器安装方式)中已加入检测功能,理论上不会再出现此问题。你也可以在更新 debian-i 后,单独进行修复。
2020-04-12 更新日志
  • 1.支持切换 VNC 音频传输方式。
2020-04-13 至 2020-04-19 更新日志
  • 1.优化并适配 Arch,Fedrora 系统
  • 2.Gentoo 和 OpenSUSE 仅优化 x64 版
  • 3.加入更多发行版的容器,例如 Slackware,Armbian 等
2020-04-20 更新日志
  • 1.支持安装其它版本的 VSCode,包括 VS Codium,VS Code OSS,以及官方版的 VScode。
  • 自动识别除 i*86 外的主流架构,自动获取最新链接,对 deb 系和红帽系进行分别适配,其它发行版以 tar 压缩包形式进行安装,解压至/usr/local/bin 目录。
  • 2.在服务器上实现了自动构建(获取最新版+重新打包配置) VSCode Server (web 版)。
    每隔一两周,当检测到新版时,远程服务器就会自动更新,完成后将自动同步至国内的 gitee 仓库。因此远程始终都是新版,但是本地的话,得要根据你下载的时间而定,不会自动更新。
2020-04-22 更新日志
  • 1.修复赋予 proot 容器真实 root 权限后,vnc 出现的权限问题。
2020-04-24 更新日志
  • 1.给 ArchLinux 容器添加了 archlinuxcn 源,并将自动安装 yay
2020-04-29 更新日志
  • 1.应 gitee 的小伙伴要求,在测试功能中支持 WPS office 的安装。
2020-05-01 更新日志
  • 1.支持解析视频网站链接,与原版 annie 最大的区别是支持解析 b23.tv ,并且无需完整链接,就能直接解析 BV 号。
2020-05-02 更新日志
  • 1.支持搭建个人云网盘(来自 github 开源项目filebrowser),配合我写的配置脚本来实现简易化管理。
2020-05-03 更新日志
  • 1.支持搭建并配置 WebDAV(nginx)服务,可以非常方便地配置和管理端口号、访问目录、访问账号、日志和进程等内容。
  • 2.支持在工具内配置 VSCode Server 的访问密码。
2020-05-04 更新日志
  • 1.增加 fedora 32 容器,由于在测试过程中发现某些问题,故保留了之前的 31,可以自由选择版本。
2020-05-05 更新日志
  • 1.优化代码,增加高亮提示。

  • 2.在 beta_features 中支持 docker 和 virtualbox 的安装。

  • 其中,当 deb 系发行版初次安装后者时,将会自动获取清华源的最新 deb 包。第二次才会提示是否将其添加至软件源列表。

  • 3.对已支持的所有系统正式开放测试功能!但由于未做过多测试,故 gentoo 、opensuse 和 alpine 等发行版可能会出现未找到匹配软件的错误信息。

2020-05-06 更新日志
  • 1.自动修复 proot 容器环境下,安装 xfce4 桌面时 gvfs 和 udisks2 配置失败的问题,原先是需要在 FAQ 里手动修复的。
  • 2.添加 xrdp 的配置选项,并适配更多桌面。
2020-05-07 至 2020-05-08 更新日志
  • 1.支持给所有已支持的桌面配置 xwayland!(仅支持 Android,不支持 win10)

  • 说明

  • 需要先在 termux 进行配置,并安装 wayland 服务端软件,再进入 GNU/Linux 容器内选择需要配置的桌面环境。

  • 其中后者只是在我之前写的 xorg+xrdp 的配置方案的基础上进行了修改而已。

  • 配置完成后,需要先打开 wayland 服务端,点击start,然后在容器内输startw启动。

  • 特点:可以在 proot 环境下打开 kde 的某些应用(例如 plasma-discover),但是 bug 超级多。

  • 由于 bug 实在过多,故我已经不想维护了。

    触控操作体验极差!建议使用蓝牙鼠标进行操作!
    由于目前在 Android 手机上暂时无法使用 gpu 硬件渲染加速,故实际体验非常糟糕! 不建议配置该服务!
    等 wayland 完善之后,再来继续优化吧!

    2020-10 注:配置 xwayland 的功能已经被我砍掉了!!!请自行研究配置步骤。

2020-05-09 至 2020-05-10 更新日志
  • 1.全面升级备份与还原功能,支持自定义备份文件名称。自动检测备份文件路径,也可以手动选择路径,然后会自动将备份文件排成一个列表,你只需输选项数字并按回车即可恢复所选文件。

  • 2.优化 cookie 文件选择功能,支持图形化文件浏览。 因为改了太多内容了,也没有继续做兼容性测试,所以不确定路由器等嵌入式设备还能不能继续兼容。

  • 3.修复 Android-Termux 赋予 proot 容器真实 root 权限的功能,原因是 termux 更新了 tsu,将 tsudo 切换至 sudo。

  • 4.deb 系 Linux 现在也可以用 proot 容器啦!

    2020-10 注:第三个功能已经被我砍掉了。请不要先输tsu,再输debian。 如果你要这样做的话,那么请使用chown来解决权限问题,再自行解决其他可能存在的问题。

2020-05-11 更新日志
  • 1.支持配置 X11vnc 服务。
  • startx11vnc启动,输stopvnc停止。
  • 2.支持安装窗口管理器 Snipaste_2020-05-11_21-36-18.png 在安装时会自动配置 vnc 服务,我没有为它们写单独的 rdp 配置步骤。
2020-05-13 更新日志
  • 1.修复大量 bug。
  • 2.支持安装 linux arm64 版的 wechat 和搜狗拼音,不保证可以正常运行。 arm64_wechat
2020-05-14 更新日志
  • 1.加入debian-opt仓库,支持安装第三方音乐客户端,感谢仓库的维护者 coslyk,以及各个项目的原开发者。
  • 我在部分基于 electron 的应用中,添加了是否关闭沙盒模式的提醒。简单来说,就是修复 root 用户无法启动的问题。
  • 手机预览截图见下 Screenshot_20200514-024023_1.png -2.加入最新的 ubuntu20.10 容器
2020-05-20 更新日志
  • 1.支持安装 wine、anbox 和 aqemu
  • 2.增加 iso 镜像文件下载功能,支持自动获取 android_x86 镜像,支持下载各个架构的 debian iso 镜像(包含 non-free 固件),以及各个 ubuntu 的衍生版
  • 3.增加烧录 iso 文件至 U 盘的功能
  • 4.支持安装 linux 版百度输入法,此前已经支持讯飞和搜狗输入法。
  • 5.增加 tmoe-deb 软件包安装器,支持在脚本内选择并安装 deb 文件。
  • 后期注:增加了 deb 批量安装功能(GUI)。
2020-05-21 更新日志
  • 1.全面升级换源功能,支持选择多个镜像站。debian,ubuntu,kali,arch,manjaro,fedora 和 alpine 可以单独使用换源功能。
2020-05-22 更新日志
  • 1.修复 Ubuntu20.10 存在的各种问题。
  • 2.镜像站支持测延迟+测速,支持强制信任软件源,去除多余行,一键切换 http/https。
  • 除了主要源外,还支持配置额外源。对于不同的发行版,显示的额外源是不同的。对于 debian,显示的是切换为 kali 源。对于 arch,显示的是配置 archlinux-cn 源。对于 centos,显示的是 epel 源。
2020-05-23 更新日志
  • 1.修复 code-server
  • 由于上游发生变更,因此重写了配置脚本。
2020 年 05 月末 更新日志
  • 1.加入 qemu 配置功能,支持高度的自定义配置。
  • 以 CPU 这一块为例,支持配置 cpu 核心数,cpu 类型,加速类型,多线程。
  • 除了 x86_64 架构外,还适配了 arm64 架构。
  • 除此之外,还支持运行内存分配,多虚拟机管理,磁盘文件管理,配置共享文件夹和端口映射等虚拟机常见功能。
  • 支持自由选择声卡,显卡和网卡,以及 bios 文件。
  • 支持下载 demo 镜像,能在宿主机为安卓的设备上快速运行 docker 容器。

-目前暂不支持的功能: 1.虚拟机显卡硬件直通(需要双显卡,我没有测试条件) 2.快照管理(请自行在 qemu monitor 里管理 snapshoots)

2020-06-01 更新日志
  • 1.支持修改 uefi 开机启动项,备份和恢复 efi 分区。
2020-06-02 更新日志
  • 1.qemu 虚拟机增加 virtio 磁盘的配置选项。
2020-06-03 更新日志
  • 1.修复 qemu 在 VNC 远程桌面环境下无法调用音频的问题
  • 2.更新 Tmoe 文件选择器,自动重定向文件路径。
2020-06-05 更新日志
  • 1.支持配置显示管理器 (Display manager)
2020 年 06 月上旬至中旬 更新日志
  • 1.增加更多系统配置选项,例如配置时间同步服务,开机自启脚本和管理 sudo 用户组等。
  • 2.增加 Debian 配置 Ubuntu ppa 软件源的功能。Debian 使用原版的 add-apt-repository 存在某些问题,例如添加 gpg 密钥失败,而此功能的目的就是解决这些问题。
  • 填写完 ppa 源名称后,会自动检测 launchpad 中该软件描述页面的 gpg 密钥,并添加。接着,需要指定 ubuntu 版本代号,完成后会自动修改软件源列表。
  • 此功能对于 ubuntu 同样有效,经测试部分 ppa 软件源不包含 ubuntu 20.10 groovy 的仓库,此功能可以帮你解决手动修改/etc/apt/sources.list.d/中相关软件源列表的烦恼。
2020 年 07 月 更新日志
  • 1.修复 qemu 模板仓库
  • 2.支持更多的 debian 容器版本,自动检测 debian12 bookworm 等未发布版本。
  • 3.多区域/语言环境配置
  • 4.0711-0716:增加 aria2 配置工具
  • 5.0720-0721:优化跨 cpu 架构运行容器的功能
    Snipaste_2020-07-21_14-30-25.png
  • 6.0723:配置 fcitx5
  • 7.0730 更新教育类,增加高考和考研
08 月 更新日志
  • 1.08-11:更新 docker 配置选项
  • 2.08-14:更新 termux 的换源功能,支持配置多个镜像站。
  • 3.08-16:重构 proot 脚本,修复 deb 系发行版无法使用ps命令的问题。
  • 4.08-21:对 archlinux 等非 deb 系发行版适配音乐 app
  • 5.08-26:支持跨 CPU 架构运行 docker 容器
  • 6.08-29:在恢复容器压缩包时,将根据系统对权限的限制自动判断特殊文件的挂载与否。(仅适用于 0816 之后的版本)
10 月 更新日志
  • 1.增加多容器管理

  • 2.移除功能:xwayland,赋予 proot 容器真实 root 权限等等。
    移除 vscode server 宿主机与容器的联动功能。
    原功能介绍:在宿主机下执行指定命令将同时启动宿主机的浏览器并打开 code server 的 web 页面+容器的 code server。
    此外,还有很多功能也被我砍了,此处不一一列举。
    有些功能维护起来太累了,我不想管了。
    还有的话,不再对 gentoo 和 openwrt 提供支持。

  • 3.10-13:增加 vscode arm64/armhf 官方版,此前 arm 只有第三方编译版。

  • 4.移除发行版: apertis,alt 和 raspbian。

  • 5.新增 deepin v20 容器

  • 6.修复 riscv64 架构容器的配置功能,arm64 可以跨架构运行 risv64。

  • 7.新增 mips64el 架构的容器。

11 月 更新日志
  • 1.重构 qemu-system-x86_64 配置功能。
  • 2.移除功能:qemu-system-aarch64 所有配置选项,烧录 iso 至 U 盘等。
12 月 更新日志
  • 1.修复容器环境下运行 fcitx/fcitx5/ibus 时,环境变量未正确配置的问题。

2021 年 1 月 更新日志
  • 1.增加 Dockerfile ,并为部分发行版+桌面提供每周自动构建镜像。
  • 您现在可以直接下载包含 GUI 的容器镜像。
GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. <signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License.

简介

在📱Android termux和💻WSL上跨CPU架构运行GNU/Linux容器和桌面环境,便捷配置vnc,xserver和xrdp等远程桌面服务以及音频服务🎵。TUI式qemu虚拟机配置管理,🐳支持在安卓手机上运行docker容器。 展开 收起
Shell
GPL-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Shell
1
https://gitee.com/Yyaqq/linux.git
git@gitee.com:Yyaqq/linux.git
Yyaqq
linux
Tmoe-linux
master

搜索帮助

14c37bed 8189591 565d56ea 8189591