helloSystem / Utilities

Utilities written in PyQt5, meant for use with helloSystem
BSD 2-Clause "Simplified" License
28 stars 29 forks source link

No such file or directory: /compat/debian.img #124

Closed darkoverlordofdata closed 2 years ago

darkoverlordofdata commented 2 years ago

When I try to 'Install Debian Runtime' and select Debian Bullseye, it fails with the message:

No such file or directory: /compat/debian.img

Where do I get this img?

probonopd commented 2 years ago

The 'Install Debian Runtime' utility should download exactly this image and put it into /compat/debian.img.

Can you manually create the directory /compat and then try again? Thanks.

darkoverlordofdata commented 2 years ago

I downloaded the debian.img, selected local file and then that download. Still get the same error.

darkoverlordofdata commented 2 years ago

Doh. I realized I was trying to install from ~/Downloads. My brain is still fried from the omicrud. So I put it in /compat, and now whem I try to install, it says it is already installed. So now I just need to determine how to test this.

Thanks for all your hard work - helloSystem is looking great!

probonopd commented 2 years ago

Please do:

sudo rm -rf /compat
sudo mkdir  /compat
launch "Install Debian Runtime"

and see what happens.

darkoverlordofdata commented 2 years ago

Yes, that worked ... at least it says it did ;)

I tried using sublimetext (sudo pkg install sublime-text-4) but it still gets an unrecognized ELF format. I have to enable linux per the older freebsd documentation, so I'm sure I have the wrong expectation, because it uses /compat/linux.

Is there a way to install sublimetext that would cause it to use /compat/debian.img?

On Sat, Feb 5, 2022, 12:57 AM probonopd @.***> wrote:

Please do:

sudo rm -rf /compat sudo mkdir /compat launch "Install Debian Runtime"

and see what happens.

— Reply to this email directly, view it on GitHub <helloSystem/Utilities#124>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUE4QPI7AJ25Q527X3IW3UZTRBBANCNFSM5NPQ62IQ . You are receiving this because you authored the thread.Message ID: @.***>

probonopd commented 2 years ago

What does sysctl compat.linux.emul_path say?

What does ls /media/.debian say?

darkoverlordofdata commented 2 years ago

$ sysctl compat.linux.emul_path sysctl: unknown oid 'compat.linux.emul_path' $ ls /media/.debian

after I double click the img file, it mounts:

@.*** ~$ ls /media/.debian bin boot dev etc home lib lib32 lib64 libx32 media mnt opt proc root run sbin srv sys tmp usr var

On Sat, Feb 5, 2022 at 12:47 PM probonopd @.***> wrote:

What does sysctl compat.linux.emul_path say?

What does ls /media/.debian say?

— Reply to this email directly, view it on GitHub <helloSystem/Utilities#124>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUE4TONJ3T6EICXOAYBHLUZVPDXANCNFSM5NPQ62IQ . You are receiving this because you authored the thread.Message ID: @.***>

--

Bruce Davidson

darkoverlordofdata commented 2 years ago

No... $ sublime_text ELF binary type "0" not known. exec: /usr/local/share/sublime-text4/sublime_text: Exec format error

thought; This is the freebsd pkg version of sublime. It's been hacked to use the linux-c7-* libraries from the freebsd repo. Would it be better to chroot to the debian img and install it from the debian repo? Not sure how i would actually chroot here, it gives me an error:

sudo chroot /media/.debian /bin/sh Password: ELF binary type "0" not known. ELF binary type "0" not known. chroot: /bin/sh: Exec format error

On Sat, Feb 5, 2022 at 1:27 PM probonopd @.***> wrote:

Now that it is mounted, does it work?

— Reply to this email directly, view it on GitHub <helloSystem/Utilities#124>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUE4SW54VHO6U7QQR2NJDUZVTZLANCNFSM5NPQ62IQ . You are receiving this because you authored the thread.Message ID: @.***>

--

Bruce Davidson

probonopd commented 2 years ago

So, what does sudo service debian start say?

darkoverlordofdata commented 2 years ago

$ sudo service debian start debian does not exist in /etc/rc.d or the local startup directories (/usr/local/etc/rc.d), or is not executable

$ sudo service .debian start .debian does not exist in /etc/rc.d or the local startup directories (/usr/local/etc/rc.d), or is not executable

On Sat, Feb 5, 2022 at 2:04 PM probonopd @.***> wrote:

So, what does sudo service debian start say?

— Reply to this email directly, view it on GitHub <helloSystem/Utilities#124>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUE4UYUACH2GU6AKOCIITUZVYDRANCNFSM5NPQ62IQ . You are receiving this because you authored the thread.Message ID: @.***>

--

Bruce Davidson

probonopd commented 2 years ago

That's the issue then...

What does ls -lh /usr/local/etc/rc.d/debian say?

sudo chmod +x /usr/local/etc/rc.d/debian
sudo service debian start

Any difference?

darkoverlordofdata commented 2 years ago

$ ls -lh /usr/local/etc/rc.d/debian ls: /usr/local/etc/rc.d/debian: No such file or directory

$ sudo chmod +x /usr/local/etc/rc.d/debian chmod: /usr/local/etc/rc.d/debian: No such file or directory

$ sudo service debian start debian does not exist in /etc/rc.d or the local startup directories (/usr/local/etc/rc.d), or is not executable

It's missing the /usr/local/etc/rc.d entry.

On Sat, Feb 5, 2022 at 2:12 PM probonopd @.***> wrote:

That's the issue then...

What does ls -lh /usr/local/etc/rc.d/debian say?

sudo chmod +x /usr/local/etc/rc.d/debian sudo service debian start

Any difference?

— Reply to this email directly, view it on GitHub <helloSystem/Utilities#124>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUE4W6TAJFNSUMMCXJFG3UZVZC7ANCNFSM5NPQ62IQ . You are receiving this because you authored the thread.Message ID: @.***>

--

Bruce Davidson

probonopd commented 2 years ago

Ouch!

https://github.com/helloSystem/Utilities/blob/a4374726366e68ee3b2b570477a41b6dff132264/Under%20Construction/Install%20Debian%20Runtime.app/Resources/download-debian.py#L401

contains a bug. debian of course doesn't work, it has to be the path.