linuxdeploy icon indicating copy to clipboard operation
linuxdeploy copied to clipboard

I found a way to install ubuntu 20.04 (focal)

Open qwerty65432 opened this issue 3 years ago • 14 comments

If you want please comment. I will tell you if you need

qwerty65432 avatar Jun 11 '21 15:06 qwerty65432

isn't there anyone that need run ubuntu 20.04 on linux deploy?

qwerty65432 avatar Jun 13 '21 04:06 qwerty65432

@qwerty65432 I managed to upgrade from Bionic (18.04) all the way up to 21.10!

Firstly, update /etc/apt/sources.list to include bionic-updates main restricted entry then run sudo apt install update-manager-core

  1. sudo apt update && sudo apt upgrade
  2. sudo do-release-upgrade

Repeat the above 2 steps for each incremental upgrade.

When you get to LTS release update this file and change to prompt=normal sudo nano /etc/update-manager/release-upgrades

When you get to 21.04 instead of running sudo do-release-upgrade run sudo do-release-upgrade -d (for development version)

You got a better way?

falkor2k15 avatar Jun 13 '21 19:06 falkor2k15

idk, but i think its a bit better. it's better to install focal instead of upgrade to focal. good thing about linux deploy, you can change almost every thing on installing and configuring linux distros: to install focal after you install linux deploy run linux deploy and then exit.(run programm makes it create ENV directory and files) on your phone go to /data/user/ru.meefik.linuxdeploy/files/include/bootstrap/ubuntu/deploy.sh see this link and edit the file, you can even install groovy http://ports.ubuntu.com/dists/ for install focall edit it to belowe

#!/bin/sh
# Linux Deploy Component
# (c) Anton Skshidlevsky <[email protected]>, GPLv3

[ -n "focal" ] || SUITE="focal"

if [ -z "${ARCH}" ]
then
    case "$(get_platform)" in
    x86) ARCH="i386" ;;
    x86_64) ARCH="amd64" ;;
    arm) ARCH="armhf" ;;
    arm_64) ARCH="arm64" ;;
    esac
fi

if [ -z "${SOURCE_PATH}" ]
then
    case "$(get_platform ${ARCH})" in
    x86*) SOURCE_PATH="http://archive.ubuntu.com/ubuntu/" ;;
    arm*) SOURCE_PATH="http://ports.ubuntu.com/" ;;
    esac
fi

apt_repository()
{
    # Backup sources.list
    if [ -e "${CHROOT_DIR}/etc/apt/sources.list" ]; then
        cp "${CHROOT_DIR}/etc/apt/sources.list" "${CHROOT_DIR}/etc/apt/sources.list.bak"
    fi
    # Fix for resolv problem in xenial
    echo 'Debug::NoDropPrivs true;' > "${CHROOT_DIR}/etc/apt/apt.conf.d/00no-drop-privs"
    # Update sources.list
    echo "deb ${SOURCE_PATH} focal main universe multiverse" > "${CHROOT_DIR}/etc/apt/sources.list"
    echo "deb-src ${SOURCE_PATH} focal main universe multiverse" >> "${CHROOT_DIR}/etc/apt/sources.list"
    # Fix for upstart
    if [ -e "${CHROOT_DIR}/sbin/initctl" ]; then
        chroot_exec -u root dpkg-divert --local --rename --add /sbin/initctl
        ln -s /bin/true "${CHROOT_DIR}/sbin/initctl"
    fi
}

do_help()
{
cat <<EOF
   --arch="${ARCH}"
     Architecture of Linux distribution, supported "armel", "armhf", "arm64", "i386" and "amd64".

   --suite="focal"
     Version of Linux distribution, supported versions "precise", "trusty", "xenial", "focal" and "bionic".

   --source-path="${SOURCE_PATH}"
     Installation source, can specify address of the repository or path to the rootfs archive.

   --extra-packages="${EXTRA_PACKAGES}"
     List of optional installation packages, separated by spaces.

EOF
}

qwerty65432 avatar Jun 14 '21 06:06 qwerty65432

I tried, but focal complained about missing fonts and impish complained about missing public key.

falkor2k15 avatar Jun 14 '21 08:06 falkor2k15

really? i dont have any problems when im using it. do you interested on brain "falkor"? its many many days that im searching for a friend (that interested to his-him brain)

qwerty65432 avatar Jun 14 '21 09:06 qwerty65432

Not sure what you mean by "brain" being connected to my character name? Focal still seems to work besides the "font" error. Going to try hirsute next - let me know if you get impish working? BTW, i also trying to find out how to get LXQT working, and I'm interested in what file manager you use on Android?

falkor2k15 avatar Jun 14 '21 09:06 falkor2k15

I mean exactly "how to improve "intelligence"" that I think it depends on time and neurons. If you want to know about it, I think we can talk about it. I use mixplorer (silver version). I think mixplorer is best android file manager and it have many great tools, it have code editor, text editor, db editor, archive manger an many many tools, it's beautiful (also you can find and install many beautiful themes) And great feature is supporting ROOT features on rooted devices.🙂 You can download silver version on https://www.farsroid.com/mixplorer-android/

qwerty65432 avatar Jun 14 '21 16:06 qwerty65432

I interestd in which keyboard(s) you use.?

qwerty65432 avatar Jun 14 '21 20:06 qwerty65432

Not really sure about how intelligence works (or AI for that matter), but I'm guessing it's based on time, effort, memory, open-mindedness, holistic understanding (trees amongst the forest) and seeing how everything is connected.

So far my best file explorers have been total commander and solid explorer. Sentio file manager would have been the best, but it cannot browse the system root.

I am looking for some ways to bring a desktop experience to Android, but so far I only found Taskbar 6.0 to help on that front. Linux Deploy is proving quite limited too in other ways based on lack of graphics acceleration, so I'm trying to find a compromise between using Android and Linux Deploy.

All my keyboards are UK (wired and bluetooth), but it seems the default layout with VNC viewers is US, so copy and paste + arrow keys don't work for me inside any Linux Deploy distro, unfortunately.

Any suggestions?

falkor2k15 avatar Jun 14 '21 21:06 falkor2k15

I found out that the VNC copy and paste problem is mostly down to the Terminal app and not the keyboard layout: Termux: CTRL+ALT+V Linux Terminal: CTRL+SHIFT+V

falkor2k15 avatar Jun 15 '21 22:06 falkor2k15

hi falkor, are u steel alive? it seems that you know many things about linux os, please help me : i have two phones (i haven't laptop :)) my old phone is rooted but new phone isn't and i don't want to root it because i prefer to receive updates, im using linux deploy on my old phone but i cant always put it on my pocket and connect to it with new phone, so i installed termux and i try some ways to install and run linux distros like proot-distro, anlinux and androlinux; i see that similar distros installed from different ways have different speed and performance (really big different). i want to know why , its really important to me. i searched for it but cant find relevant to that. i read somethings on your github repo and i think you can help me :)

qwerty65432 avatar Jun 18 '21 19:06 qwerty65432

Yeah, not ready to give up yet - always learning new things. I haven't really compared linux deploy vs. proot yet, but I am guessing they will be the same speed since they both use the same Android kernel, and the proot is just a non-root exploit of the normal (root) way of running Linux through Linux Deploy. Unfortunately, they both suffer through lack of graphics accleration as well as running inside a container. A virtual machine would have been better, but Android security simply doesn't allow a hypervisor to run except on less than a handful of phones/chipsets (I know only of the ASUS Zenfone 2 with its x86 kernel) if only there was a list available - bearing in mind that the claim of there being even a handful of such phones might be false. It's unfortunate there's so many restrictions on phones in terms of the bootloader compared to PCs since the hardware/price nowadays are comparable between different form-factors, based on specs.

falkor2k15 avatar Jun 20 '21 14:06 falkor2k15

linux deploy upgrade work, but for some reason proot upgrades fail with "fatal error", so there must be some, other, fundamental difference between them.

falkor2k15 avatar Jun 20 '21 15:06 falkor2k15

thank u

qwerty65432 avatar Jun 23 '21 00:06 qwerty65432