Code Monkey home page Code Monkey logo

modded-ubuntu's People

Contributors

bdhackers009 avatar htr-tech avatar maehara-keisuke avatar

Stargazers

 avatar

modded-ubuntu's Issues

Fix some paths in setup.sh

Remove extra usr in distro()

mv $PREFIX/usr/etc/proot-distro/ubuntu.sh $PREFIX/usr/etc/proot-distro/ubuntu.sh.bkup
cp ./distro/ubuntu.sh $PREFIX/usr/etc/proot-distro/

fix typo in `distro/ros-noetic.sh`

typo

ros-noetic() {
    echo -e "${R} [${W}-${R}]${C} Installing ROS Noetic(ROS Base) ..."${W}

right

ros-noetic() {
    echo -e "${R} [${W}-${R}]${C} Installing ROS Noetic(Desktop) ..."${W}

Persist Ubuntu distro to Ubuntu 20.04(Focal)

  • Put ubuntu.sh on distro directory

distro/ubuntu.sh

# This is a default distribution plug-in.
# Do not modify this file as your changes will be overwritten on next update.
# If you want customize installation, please make a copy.
DISTRO_NAME="Ubuntu (focal)"

TARBALL_URL['aarch64']="https://github.com/termux/proot-distro/releases/download/v2.2.0/ubuntu-aarch64-pd-v2.2.0.tar.xz"
TARBALL_SHA256['aarch64']="486de37668963c1b6a0d131e33b91486be8eb1919b0813ad03726885753feba6"

distro_setup() {
	# Don't update gvfs-daemons and udisks2
	run_proot_cmd apt-mark hold gvfs-daemons udisks2
}
  • Modify distro() in setup.sh as follows

distro()

distro() {
    echo -e "\n${R} [${W}-${R}]${C} Checking for Distro..."${W}
    termux-reload-settings
    
    if [[ -d "$PREFIX/var/lib/proot-distro/installed-rootfs/ubuntu" ]]; then
        echo -e "\n${R} [${W}-${R}]${G} Distro already installed."${W}
        exit 0
    else
        mv $PREFIX/usr/etc/proot-distro/ubuntu.sh $PREFIX/usr/etc/proot-distro/ubuntu.sh.bkup
        cp ./distro/ubuntu.sh $PREFIX/usr/etc/proot-distro/
        proot-distro install ubuntu
        termux-reload-settings
    fi
    
    if [[ -d "$PREFIX/var/lib/proot-distro/installed-rootfs/ubuntu" ]]; then
        echo -e "\n${R} [${W}-${R}]${G} Installed Successfully !!"${W}
    else
        echo -e "\n${R} [${W}-${R}]${G} Error Installing Distro !\n"${W}
        exit 0
    fi
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.