{"id":19397957,"url":"https://github.com/linuztx/proot-server","last_synced_at":"2025-04-24T05:31:17.692Z","repository":{"id":241815983,"uuid":"807709336","full_name":"linuztx/proot-server","owner":"linuztx","description":"Proot Server is a script designed to install and run a Linux base system (Ubuntu, Alpine, Fedora or Debian) on servers or environments where root access is not available.","archived":false,"fork":false,"pushed_at":"2024-10-13T02:25:34.000Z","size":37,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T00:24:36.074Z","etag":null,"topics":["bash","linux","proot","server","serverless","sudo","terminal"],"latest_commit_sha":null,"homepage":"","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/linuztx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-29T16:14:48.000Z","updated_at":"2025-01-06T09:47:45.000Z","dependencies_parsed_at":"2024-06-08T14:23:46.041Z","dependency_job_id":"88ca04ee-c11a-46d1-b464-7e6a61558349","html_url":"https://github.com/linuztx/proot-server","commit_stats":null,"previous_names":["linuztuxx/proot-server","linuztx/proot-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuztx%2Fproot-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuztx%2Fproot-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuztx%2Fproot-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linuztx%2Fproot-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linuztx","download_url":"https://codeload.github.com/linuztx/proot-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250572267,"owners_count":21452327,"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":["bash","linux","proot","server","serverless","sudo","terminal"],"created_at":"2024-11-10T11:03:48.514Z","updated_at":"2025-04-24T05:31:17.403Z","avatar_url":"https://github.com/linuztx.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Proot Server: Linux Server Installer Pro\n\n[![GitHub](https://img.shields.io/github/license/linuztx/proot-server)](https://github.com/linuztx/proot-server/blob/main/LICENSE)\n\n![proot-server](https://github.com/user-attachments/assets/976c7478-8d4b-4d4b-b35e-ad49c77ae5fe)\n\n## Overview\n\nProot Server is a powerful shell script that enables you to install and run various Linux distributions (Ubuntu, Alpine, Debian, or Fedora) in a proot environment. This tool is particularly useful for setting up Linux environments on systems where you don't have root access or in situations where you need isolated Linux instances.\n\n## Features\n\n- **Multiple Distribution Support**: Choose from Ubuntu 20.04 Focal Fossa, Alpine 3.19, Debian 12 Bookworm, or Fedora 40.\n- **Architecture Compatibility**: Supports x86_64 (amd64) and aarch64 (arm64) architectures.\n- **Proot Integration**: Utilizes proot for creating a chroot-like environment without requiring root privileges.\n- **Persistent Installation**: Installed distributions can be reused in subsequent runs.\n- **Automatic Dependency Handling**: Downloads and sets up proot if not already installed.\n- **DNS Configuration**: Automatically sets up DNS resolution using Cloudflare's DNS servers.\n\n## Prerequisites\n\n- `curl`: For downloading distribution files and proot.\n- `tar`: For extracting downloaded files.\n- Internet connection for downloading necessary files.\n\n## Usage\n\n1. **Clone the Repository**:\n   ```\n   git clone https://github.com/linuztx/proot-server.git\n   cd proot-server\n   ```\n\n2. **Run the Script**:\n   ```\n   ./run.sh\n   ```\n\n3. **Choose a Distribution**:\n   - Select from options 1-4 to install a new distribution.\n   - Choose option 5 to use an already installed distribution.\n\n4. **Installation Process**:\n   - The script will download the selected distribution's rootfs.\n   - It will extract the files and set up the environment.\n\n5. **Proot Setup**:\n   - If not present, the script will download and configure proot.\n\n6. **Entering the Environment**:\n   - After setup, you'll be automatically entered into the proot environment.\n   - Use `su` to switch to root user within the environment.\n\n7. **Exiting the Environment**:\n   - Type `exit` twice to fully exit the proot environment.\n\n## Supported Distributions and Versions\n\n- Ubuntu 20.04 Focal Fossa\n- Alpine 3.19\n- Debian 12 Bookworm\n- Fedora 40\n\n## Directory Structure\n\nThe script creates directories for each installed distribution:\n- `./ubuntu` for Ubuntu\n- `./alpine` for Alpine\n- `./debian` for Debian\n- `./fedora` for Fedora\n\n## Network Configuration\n\nThe script automatically sets up `/etc/resolv.conf` with Cloudflare's DNS servers (1.1.1.1 and 1.0.0.1).\n\n## Limitations\n\n- While proot provides a chroot-like environment, it does not offer full system isolation.\n- Some operations requiring true root access may not function as expected.\n\n## Troubleshooting\n\n- If downloads fail, the script will retry up to 10 times with a 1-second delay between attempts.\n- Ensure you have a stable internet connection for successful downloads.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuztx%2Fproot-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuztx%2Fproot-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuztx%2Fproot-server/lists"}