VLC won't run in BionicDog64 (SOLVED)

Moderator: fredx181

Post Reply
User avatar
taersh
Posts: 951
Joined: Tue Jul 07, 2020 11:13 pm
Location: Germany
Has thanked: 53 times
Been thanked: 119 times

Re: VLC won't run in BionicDog64

Post by taersh »

Hi.

Enter into terminal:

Code: Select all

sed -i 's/geteuid/getppid/' /usr/bin/vlc
and hit enter. After this is executed, VLC should run as root.
Mine does run as root after executing this action.

Don't know, probably your VLC is under a different path?

My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!

backi
Posts: 589
Joined: Thu Jul 23, 2020 2:28 pm
Has thanked: 71 times
Been thanked: 65 times

Re: VLC won't run in BionicDog64 (SOLVED)

Post by backi »

Hi PeteAir !

There is something to consider........
In Case you do a Quick-remaster.....and reboot.....it wil not work any longer.
You have to repeat Taersh `s Procedure again ......and save it .
(after each Quick-Remaster it will be gone....and you have to "sed -i 's/geteuid/getppid/' /usr/bin/vlc
vlc"--- again and save it.)

I made a little Script ....

#!/bin/sh
sed -i 's/geteuid/getppid/' /usr/bin/vlc
vlc

saved it as (for Example):
" Vlc- Root"
......and make it executable....clicking on it will evoke Vlc.
User avatar
fredx181
Posts: 2600
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 283 times
Been thanked: 1014 times
Contact:

Re: VLC won't run in BionicDog64 (SOLVED)

Post by fredx181 »

backi wrote:(after each Quick-Remaster it will be gone....and you have to "sed -i 's/geteuid/getppid/' /usr/bin/vlc
vlc"--- again and save it.)
That is not correct :thumbdown: , if that were the case then quick-remaster wouldn't do a good job.
Are you sure that's what you experienced, backi ?

I would agree btw, if you said "after each vlc update with apt-get or synaptic, you'll have to run "sed -i 's/geteuid/getppid/' /usr/bin/vlc" again" (as /usr/bin/vlc will then be overwritten by installing new version), but that's another story.

Fred
backi
Posts: 589
Joined: Thu Jul 23, 2020 2:28 pm
Has thanked: 71 times
Been thanked: 65 times

Re: VLC won't run in BionicDog64 (SOLVED)

Post by backi »

Hi Fred !

You are correct.......
Made a few Quick-Remaster to test ......now Vlc works without any Problems.
Sorry for Confusion.
Don`t know why it to happened to me a few Times (definitely) .......maybe cause i use to place vlc.squashfs in casper/base Folder to load it at Startup.Makes me wonder.
Have no VLC full Install....using Apps/Programms as squashfs Modules is my prefered Method.

Nevertheless ......Case (seems) solved.
Works correct for me after Quick-Remaster.

Regards !
backi
Posts: 589
Joined: Thu Jul 23, 2020 2:28 pm
Has thanked: 71 times
Been thanked: 65 times

Re: VLC won't run in BionicDog64 (SOLVED)

Post by backi »

EDIT:
Was not completely wrong......

After doing a Quick-Remaster Vlc will start .......but not as Root.....

Means ......
All my VLC-Settings are gone.....

When applying "sed -i 's/geteuid/getppid/' /usr/bin/vlc" again ( and saving)....
VLC will start as root .......and all Settings are completely restored.

I am just a Layman..don`t know how this comes.
There are always a lot of Quirks on the Way to a perfect Sytem.
User avatar
taersh
Posts: 951
Joined: Tue Jul 07, 2020 11:13 pm
Location: Germany
Has thanked: 53 times
Been thanked: 119 times

Re: VLC won't run in BionicDog64

Post by taersh »

PeteAir wrote: Sun Sep 13, 2020 8:24 am Thanks taersh, That did the trick, :thumbup2:
I got this command from fredx181 who has posted here already. ;)

@backi

Why should VLC change back to not to run as root after doing a remaster?
This would need a separate action to be executed on VLC.
Though, I don't use remaster scripts anymore, I'm building/remastering manually only now.
So, I don't know what quick-remaster is doing in detail...

My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!

User avatar
fredx181
Posts: 2600
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 283 times
Been thanked: 1014 times
Contact:

Re: VLC won't run in BionicDog64 (SOLVED)

Post by fredx181 »

Hi backi,
EDIT:
Was not completely wrong......
Ah, OK, looks like you have done a setup where it could happen, but don't fully understand.
I tried to reproduce, starting BionicDog with vlc.squashfs in casper/base
Ran "sed -i 's/geteuid/getppid/' /usr/bin/vlc" and ran quick-remastergui (latest version 1.2.3, you used that too ?) with checked "Disable extra squashfs modules in casper by renaming to .bak" you did that too ? (probably not, and that might explain the different result)
Then at reboot vlc.squashfs is renamed to vlc.squashfs.bak, so disabled and 01-filesystem.squashfs is containing the vlc binaries and vlc runs at root.
Perhaps you did different, can you say how ?

Fred
dancytron
Posts: 656
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 425 times
Been thanked: 191 times

Re: VLC won't run in BionicDog64 (SOLVED)

Post by dancytron »

fredx181 wrote: Sun Sep 13, 2020 4:55 pm Hi backi,
EDIT:
Was not completely wrong......
Ah, OK, looks like you have done a setup where it could happen, but don't fully understand.
I tried to reproduce, starting BionicDog with vlc.squashfs in casper/base
Ran "sed -i 's/geteuid/getppid/' /usr/bin/vlc" and ran quick-remastergui (latest version 1.2.3, you used that too ?) with checked "Disable extra squashfs modules in casper by renaming to .bak" you did that too ? (probably not, and that might explain the different result)
Then at reboot vlc.squashfs is renamed to vlc.squashfs.bak, so disabled and 01-filesystem.squashfs is containing the vlc binaries and vlc runs at root.
Perhaps you did different, can you say how ?

Fred
Just a guess.

Is it being caused by the old unaltered vlc executable being loaded on top of the 01-filesystem.squashfs and changes when they are merged by the quick remaster?

01-filesystem
changes
vlc

It would fail.

01-filesystem
vlc
changes

It would work.

???????????????????????????????????????/

edit: FWIW, this is what I did

http://murga-linux.com/puppy/viewtopic. ... db0#994610


fredx181 wrote:

Hi Dan, works well using sed:
http://murga-linux.com/puppy/viewtopic. ... 748#992748

Fred

Thanks.
I was able to use this to create an .squashfs file by creating it using apt2sfs, running the script command at your link to patch /usr/bin/vlc, and then using edit-sfs to cut and paste the patched /usr/bin/vlc file into the .squashfs file.
backi
Posts: 589
Joined: Thu Jul 23, 2020 2:28 pm
Has thanked: 71 times
Been thanked: 65 times

Re: VLC won't run in BionicDog64 (SOLVED)

Post by backi »

Fred wrote :
Ran "sed -i 's/geteuid/getppid/' /usr/bin/vlc" and ran quick-remastergui (latest version 1.2.3, you used that too ?) with checked "Disable extra squashfs modules in casper by renaming to .bak" you did that too ? (probably not, and that might explain the different result).
No...no.. did not check "Disable extra squashfs modules in casper by renaming to .bak".

But simply fixed this Quirk by placing a little Script into root/Startup Folder----

Here`s the Script:
"sed -i 's/geteuid/getppid/' /usr/bin/vlc" >>>>into root/Startup Folder.---made it executable....now works fine .

Sorry again for Confusion.
User avatar
rcrsn51
Posts: 1238
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 284 times

Re: VLC won't run in BionicDog64 (SOLVED)

Post by rcrsn51 »

Thanks.
I was able to use this to create an .squashfs file by creating it using apt2sfs, running the script command at your link to patch /usr/bin/vlc, and then using edit-sfs to cut and paste the patched /usr/bin/vlc file into the .squashfs file.
You could do it in one step using repo2sfs.
User avatar
fredx181
Posts: 2600
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 283 times
Been thanked: 1014 times
Contact:

Re: VLC won't run in BionicDog64 (SOLVED)

Post by fredx181 »

Thanks Dan, backi

First: The changes will always override any squashfs modules loaded at boot.

Trying to reproduce backi's experience I came to the following, sorry @backi for my reply at first, you were right with how you did setup)

So let's assume quick-remaster done without disabling extra modules in casper (as backi did, to keep them loaded), so suppose we have:

- 01-filesystem.squashfs, containing the patched usr/bin/vlc (as a result from running quick-remaster after done "sed -i 's/geteuid/getppid/' /usr/bin/vlc"
- vlc.squashfs, containing the unaltered usr/bin/vlc (which doesn't run at root)

Now about the order (alphanumerical, higher will override lower)

I tested:
----------------------------------------------------------------
- All squashfs modules are directly in casper folder (not in base):

casper/01-filesystem.squashfs
casper/vlc.squashfs

Result after reboot: vlc will NOT run as root, since vlc.squashfs is higher in alphanumerical order and will override the patched usr/bin/vlc in 01-filesystem.squashfs
---
00-vlc.squashfs (renamed, so now lower in order)
01-filesystem.squashfs

Result after reboot: vlc will run as root, since vlc.squashfs is lower in alphanumerical order and will not override the patched usr/bin/vlc in 01-filesystem.squashfs
----------------------------------------------------------------

- Not all squashfs modules are directly in casper folder (also in base, as backi has):

casper/01-filesystem.squashfs
casper/base/vlc.squashfs

Result after reboot: vlc will NOT run as root, since vlc.squashfs is higher in alphanumerical order and will override the patched usr/bin/vlc in 01-filesystem.squashfs
---

Now the (for me) unexpected:

casper/base/00-vlc.squashfs (renamed, so now lower in order)
casper/01-filesystem.squashfs

Result after reboot: vlc will NOT run as root, despite the fact that 00-vlc.squashfs is lower in order, it seems that modules in "base' are always overriding others, which is new for me.

Maybe better without the "base" and "modules" folders in next releases, because it's confusing.

Fred
Post Reply

Return to “UbuntuDogs”