I don't use arch linux (no particular reason), and I avoid VMs like the plague (VM configuration is something you will have to figure out, but it has "surprises" in a number of cases which I don't want to find and solve).
However, "chroot
" is something quite interesting, and useful to know about. This isn't just for arch linux. You should also know about the command which exists just about everywhere, "exit
".
When Linux boots it will quite often use a kind of "adapter" between the boot content and the actual running o/s. The story is long, but a shorter version is that for Linux content to be available to the boot stage it might need to understand the things which Linux itself has drivers for. Instead, RAM can be treated as a very simple filesystem with a tree structure, and the boot stage can install Linux in its most basic form (the kernel), and then put a temporary o/s support in that RAM which pretends to be a partition (and the bootloader always understands this). This gets a tiny micro environment running that Linux kernel. If the Linux kernel in that environment has everything it needs to work with the actual root filesystem device, then the only thing left is to transfer operation to that.
It is the "chroot
" (or a pivot root variant) which works to do this. chroot
will "stack" the previous root, but transfer to the new root. pivot_root
(and friends) throw away the old root filesystem and transfer to the new root filesystem. One is temporary, one is permanent. On the temporary "chroot
" one can "exit
". Then you will be back in the original.
While in the "new" rootfs you are strictly running what that environment has and not accessing the original operating system (e.g., Windows) other than through the VM functions. If you run the command "exit
", then you should be out of the VM environment. This is a lot like "booting" into the new o/s, but you are booting into the VM's child and have a way back out (assuming the "exit" command is supported).
So far as that particular command goes, I don't know. One would have to know what system calls are made. It is the VM which restricts or allows those system calls (incidentally, in Linux one can see system calls, or calls to the kernel, with the "strace
" tool). However, in real Linux, the kernel itself talks directly to hardware. With the VM the VM itself is pretending to be isolated hardware. If that physical access fails, then it is likely due to the VM restricting it. I avoid VMs and couldn't tell you which VM "tuning" is required. The answer is usually very specific to the VM brand and the host PC o/s the VM runs on.
Thanks for your reply
I have given up trying to get on there forum. I just decided to use what else that i can. I went on android central,xda,linux.org, and even a hacker website that i am a little
afraid of, for good reason LOL. I was hoping someone on the hacker forum would know about proot-distro.
Proot-Distro seems to be a little bit of a mystery when it comes to certain particular distros like Arch Linux. Ubuntu and Debian seem to have alot information available on how to get the system running. I can't even figure out when Proot-Distro became a thing, google doesn't know when proot-distro came into existence. It just says that it probably came to be along with the creation of Termux.
I have read the Arch Linux WIKI but it never seems to answer my questions and doesn't have a section yet on Proot-Distro in particular.
Running linux on a smart tv has been interesting, The system works kinda but there some bugs and errors and i expected that. So i am currently working around some issues. There are Kernel limitations, I don't think that i can configure my kernel in proot-distro, I would have to have real root. But the error that i see often is lamelock not supported by the kernel. Proot-Distro uses the android kernel. So i am stuck with that.
I am getting packages made for Armv7H when my processor is a Armv7L but everything seems to work still. The L or little endian vs the H for higher end machines.
As root i can't run makepkg -si cause the OS won't let me. It give me an error. So i created a regular user and then ran makepkg -si again, it works further but then tries to download a dependency witch requires root privilage. It prompts for a password , I enter the password correctly but then tells me that my user that i created is not a sudeor. So i then added the user that i created to group wheel, edited sudoers file with nano and made wheel or gave group wheel root privilages. I then tried to run the command again makepkg -si but it tells me the same thing that my regular user is not in the sudoers club or team or group.
So i am having a Sudo error. I can't get the package yay installed the helper to install AUR packages. Just trying or was trying to install the realvnc package from AUR.
I can't create a sudoer for some reason that along with the lamelock error. Those are the biggest errors that i have encountered so far. Maybe Nano corrupted my Sudoers file or something.
I installed the wrong desktop, for anyone out there the only supported desktops are xfce, xqlt, and i forgot the other one. Termux x11 doesn't support all desktop environments. I did not know that. So for anyone else running proot there are only 3 desktops that are supported witch is a bummer unless i am wrong and all desktop environments are supported by termux.
Anyway i will be working on this project for awhile. getting linux on a TV and getting it to run properly. Most people using proot-distro seem to be using phone devices and or tablets, Which really sucks because when you search about proot distro there a tons of phones or videos of people running proot on there phone. There are no videos on people running proot distro on other strange adroid devices like tvs.
So i am on my own kinda. If i were a linux power user or superuser or expert this would be done by now. But being a beginner i am way behind the power curve.
Thanks to Toms hardware for helping me.