SkywalkerSW5
Posts: 76
Joined: Fri Apr 19, 2019 3:54 pm

piRoot: A way to run x86 Debian apps on Raspbian

Tue Oct 01, 2019 9:40 pm

NOTE: Go to the latest post for newer information

Hello!

This would have been out sooner, but I have had a bunch of homework. piRoot is my new app that lets you run x86_64 Debian AND Raspbian. It is a .deb app, so you can just install the file.

Instructions are in my GitHub wiki, linked here https://github.com/SkywalkerSW5/piRoot/ ... oot-Beta-1

If there is any criticism good or bad, let me know. There probably is, but when I used it, it worked fine.

NOTE: Don't hit the Update button. It right now doesn't work, but that should be fixed by tommorow. (It is not an app problem, haven't uploaded the files to my Drive yet.)


hello rahap
Last edited by SkywalkerSW5 on Sat Oct 26, 2019 10:12 pm, edited 4 times in total.
Random dude. Likes dogs. And Linux. Complete NOOB.

SkywalkerSW5
Posts: 76
Joined: Fri Apr 19, 2019 3:54 pm

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Tue Oct 01, 2019 11:42 pm

Here is an image of piRoot

Image

Also, piRoot is an amd64 system. It is 64 bit.
Random dude. Likes dogs. And Linux. Complete NOOB.

User avatar
rin67630
Posts: 568
Joined: Fri Mar 04, 2016 10:15 am

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Wed Oct 02, 2019 11:37 am

Please don't call "Raspbian" anything that does not run on a Raspberry Pi.

hippy
Posts: 6069
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Wed Oct 02, 2019 11:55 am

SkywalkerSW5 wrote:
Tue Oct 01, 2019 9:40 pm
piRoot is my new app that lets you run x86_64 Debian AND Raspbian. It is a .deb app, so you can just install the file.
It's really not clear whether this installs on a Pi or an X86/X86_64, nor what it actually runs, running X86_64 Debian on a Pi or ARM Raspbian on an X86/X86_64, or something else.

Perhaps you could clarify.

SkywalkerSW5
Posts: 76
Joined: Fri Apr 19, 2019 3:54 pm

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Wed Oct 02, 2019 12:09 pm

You install the app on a Raspberry Pi, and in the app menu you can choose to either run an x86_64 version of Debian, or Raspbian. You can run Raspbian on top of itself.
Last edited by SkywalkerSW5 on Wed Oct 02, 2019 12:25 pm, edited 1 time in total.
Random dude. Likes dogs. And Linux. Complete NOOB.

User avatar
neilgl
Posts: 1102
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Wed Oct 02, 2019 12:16 pm

Is the source code to be released on Github?

SkywalkerSW5
Posts: 76
Joined: Fri Apr 19, 2019 3:54 pm

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Wed Oct 02, 2019 12:24 pm

I would have, but the file size was two large. Right now I am making a version without the OSes, and will post that on GitHub.
Random dude. Likes dogs. And Linux. Complete NOOB.

hippy
Posts: 6069
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Wed Oct 02, 2019 12:39 pm

SkywalkerSW5 wrote:
Wed Oct 02, 2019 12:09 pm
You install the app on a Raspberry Pi, and in the app menu you can choose to either run an x86_64 version of Debian, or Raspbian. You can run Raspbian on top of itself.
Thanks. I hadn't paid attention to the username in the OP, but would now presume this is the culmination and future path of your previous pi386/Rpi686 work. If so it all makes sense now.

hippy
Posts: 6069
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Wed Oct 02, 2019 12:47 pm

Tried to download it, got to https://skywalkersw5.github.io/piRoot clicked the Download Beta 1 Here link, for me, using Firefox on my PC -

Code: Select all

https://doc-04-c8-docs.googleusercontent.com/docs/securesc/gonk9at1rub0arh33vpbfd1n14unqqrl/0n4h2f4t6sc9fd8jk7nlb210p5h5cr3i/1569960000000/12765498832491239823/12765498832491239823/1X9FG_XRlEMCO4vM6HFV-CoRObUnwmvVA?e=download&nonce=b78r63ve6bcfo&user=12765498832491239823&hash=nrmutdfbkil03sl2cl4jcki6farf8p65
In Firefox it just gave me a blank page. On Chrome it gave "Access to doc-04-c8-docs.googleusercontent.com was denied - You don't have authorisation to view this page - 403"

SkywalkerSW5
Posts: 76
Joined: Fri Apr 19, 2019 3:54 pm

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Wed Oct 02, 2019 2:30 pm

Hmm. I wll fix that in a little bit. Right now I'm at school though. (Totally supposed to be on this.)
Random dude. Likes dogs. And Linux. Complete NOOB.

SkywalkerSW5
Posts: 76
Joined: Fri Apr 19, 2019 3:54 pm

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Wed Oct 02, 2019 9:29 pm

Okay, the link is back up. Unrelated question, but can anyone tell me why I get this error when I try to chroot into Kali Linux?

Code: Select all

qemu: uncaught target signal 11 (segmentation fault) - core dumped
Random dude. Likes dogs. And Linux. Complete NOOB.

User avatar
rin67630
Posts: 568
Joined: Fri Mar 04, 2016 10:15 am

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Thu Oct 03, 2019 12:20 pm

Could it be possible to get an overview upon the very purpose of that development?
What is the benefit? What are the drawbacks?
If the purpose is to run applications that were compiled for AMD64 on a Pi, that would practically mean, that an AMD64 processor and the corresponding bridges are emulated on the Pi by software. Right?
Can that be done fast enough to not run those applications ridiculously slowly?

hippy
Posts: 6069
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Thu Oct 03, 2019 1:45 pm

rin67630 wrote:
Thu Oct 03, 2019 12:20 pm
Can that be done fast enough to not run those applications ridiculously slowly?
It greatly depends on the application or use case.

The company I work for produces command line Linux X86 compilers for the processors they produce and they are satisfactory and fast enough when run on a Pi using QEMU emulation, even a Pi Zero.

I am sure there will be other things which emulate too slowly to be tolerable, but that can be offset by a willingness to be more tolerant in having it than not having it at all.

SkywalkerSW5
Posts: 76
Joined: Fri Apr 19, 2019 3:54 pm

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Thu Oct 03, 2019 3:47 pm

Its mainly for people who are using the Pi for whatever, and say they want to run Spotify or whatever. Or if you just want to use the Raspbian option as a sandbox for experiments.
Random dude. Likes dogs. And Linux. Complete NOOB.

ejolson
Posts: 3681
Joined: Tue Mar 18, 2014 11:47 am

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Thu Oct 03, 2019 3:53 pm

SkywalkerSW5 wrote:
Thu Oct 03, 2019 3:47 pm
Its mainly for people who are using the Pi for whatever, and say they want to run Spotify or whatever. Or if you just want to use the Raspbian option as a sandbox for experiments.
It would also be nice to run user-mode x86 binary-only printer drivers.

User avatar
rin67630
Posts: 568
Joined: Fri Mar 04, 2016 10:15 am

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Thu Oct 03, 2019 4:56 pm

hippy wrote:
Thu Oct 03, 2019 1:45 pm
I am sure there will be other things which emulate too slowly to be tolerable, but that can be offset by a willingness to be more tolerant in having it than not having it at all.
Ok, I fully agree with that. I do also compile for the Arduino on remote PiZeroes over VNC...

SkywalkerSW5
Posts: 76
Joined: Fri Apr 19, 2019 3:54 pm

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Thu Oct 03, 2019 8:08 pm

hippy wrote:
Thu Oct 03, 2019 1:45 pm
I am sure there will be other things which emulate too slowly to be tolerable, but that can be offset by a willingness to be more tolerant in having it than not having it at all.
“I can run Steam on my Raspberry Pi”
Random dude. Likes dogs. And Linux. Complete NOOB.

SkywalkerSW5
Posts: 76
Joined: Fri Apr 19, 2019 3:54 pm

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Fri Oct 04, 2019 2:48 am

A few things:

- If I were to add more operating systems to piRoot, what would you want?

- Rpi686 is dead. If you are still using it (hope not), please upgrade to piRoot. Or if you still want to use it, read the README on GitHub.

- The website has been updated. The wiki pages are moving over there. - http://skywalkersw5.github.io/piRoot/

- Would it be possible to use a desktop environment with chroot?
Random dude. Likes dogs. And Linux. Complete NOOB.

User avatar
Pulsar33
Posts: 102
Joined: Sun Aug 25, 2019 4:06 pm
Location: Bordeaux France

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Fri Oct 04, 2019 7:11 am

Hello,

Don't understand what all this is about.
No information, just a snapshot of a shell, a link to download the beta1, and a text saying it's a deb package.
Can we have answers to all these judicious questions ?
rin67630 wrote:
Thu Oct 03, 2019 12:20 pm
Could it be possible to get an overview upon the very purpose of that development?
What is the benefit? What are the drawbacks?
If the purpose is to run applications that were compiled for AMD64 on a Pi, that would practically mean, that an AMD64 processor and the corresponding bridges are emulated on the Pi by software. Right?
Can that be done fast enough to not run those applications ridiculously slowly?
Have a nice day
Pulsar33
Pi 4 with 4Gb memory, DVB TV pHAT ------------------- Desktop : Core i5 Linux MINT 19.2

hippy
Posts: 6069
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Fri Oct 04, 2019 1:01 pm

SkywalkerSW5 wrote:
Fri Oct 04, 2019 2:48 am
- If I were to add more operating systems to piRoot, what would you want?
Full Windows 10 :mrgreen: :mrgreen: :mrgreen:

I am guessing this is some kind of VM for hosting emulated OS's but am not sure. It is, as others have said, and I agree, not exactly clear what it is you are providing, what it does and how it's used, and I haven't had time to download, install and try it to find out.

hippy
Posts: 6069
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Fri Oct 04, 2019 1:33 pm

I downloaded and installed it on my Pi 3B Buster.

It created a text file on the desktop, rather than adding a Start Menu option. None the less double-clicking and selecting Execute seems to make that work.

Then I get three options; Standard Mode, Root and Update. Selecting either of the first two and clicking OK takes me to two options; Raspbian (still working on) and Debian, where selecting either and clicking on OK just closes the window.

So; what's it meant to do ? And what am I missing to make it do what it's meant to do ?

SkywalkerSW5
Posts: 76
Joined: Fri Apr 19, 2019 3:54 pm

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Fri Oct 04, 2019 4:05 pm

It is supposed to go into the console, and if you chose Debian it should say [email protected] If it doesn't work, try running

Code: Select all

/usr/piRoot/app/piRoot
.
Random dude. Likes dogs. And Linux. Complete NOOB.

User avatar
DougieLawson
Posts: 36306
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Fri Oct 04, 2019 5:10 pm

You still haven't published enough details of what your stuff is trying to do.

There's no way on earth that anyone should knowingly download your image file, unzip it, run it. How do we know what's in it? How do we know it's not going to turn our Raspberries into a spam spewing zombie botnet? How do we know it's not going to scan our LANs and compromise every machine it finds on there?

If you want folks to work with your experimental project you're going to have to publish the source and publish the intended consequences of running it. It's all about scrutiny.

The very paranoid can then build from source and will be fully cognisant with what your code is doing and the purpose of its existence.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

ejolson
Posts: 3681
Joined: Tue Mar 18, 2014 11:47 am

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Fri Oct 04, 2019 5:34 pm

DougieLawson wrote:
Fri Oct 04, 2019 5:10 pm
There's no way on earth that anyone should knowingly download your image file, unzip it, run it. How do we know what's in it? How do we know it's not going to turn our Raspberries into a spam spewing zombie botnet? How do we know it's not going to scan our LANs and compromise every machine it finds on there?
This is a good point, especially when it appears that the sole purpose of certain brands of smart switches and light bulbs is to extract WiFi passwords from cell phones and send them to the cloud.

Still, with a properly segmented local-area network, it should be possible to keep one's credit-card information safe even if a newly-connected device runs amok. To this end, an access point using a Zero W, 3B, 3B+ or 4B can be set up as an isolated wireless network to test suspicious devices running untrusted binaries.

It would be nice if someone who is brave enough could place a sacrificial Pi on such an isolated network and test the binaries mentioned earlier in this thread.

hippy
Posts: 6069
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: piRoot: A way to run x86_64 Debian, and Raspbian in the terminal.

Fri Oct 04, 2019 6:12 pm

ejolson wrote:
Fri Oct 04, 2019 5:34 pm
It would be nice if someone who is brave enough could place a sacrificial Pi on such an isolated network and test the binaries mentioned earlier in this thread.
That's what I'm doing and why I know it doesn't work ;)
SkywalkerSW5 wrote:
Fri Oct 04, 2019 4:05 pm
It is supposed to go into the console, and if you chose Debian it should say [email protected] If it doesn't work, try running

Code: Select all

/usr/piRoot/app/piRoot
Well that does shine some light on things. That starts the application which asks, Normal, root, update then Raspbian or Debian but then when I click the final OK ...

Code: Select all

Starting Raspbian...
chroot: failed to run command '/bin/su': No such file or directory

Code: Select all

Booting into Debian...
chroot: failed to run command '/bin/su': Exec format error

Return to “General discussion”