run google-chrome as root, how?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
gychang
Posts: 591
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 206 times
Been thanked: 64 times

run google-chrome as root, how?

Post by gychang »

I am running F96-CE_3.iso frugal install to SSD, running google_chrome-portable from Mikes mega site, extracted running in /opt. I can run as spot by /opt/Google_Chrome-portable/LAUNCH or chrome --user-data-dir --test-type --no-sandbox from terminal, but both seems to be running as spot (only download to ./spot). I read the older "How to run chrome as root" here: viewtopic.php?t=1216&sid=1826c35f779c4d ... beda8f9eb9 but no go...
How do I run this as root so I can download to my /root/Downloads directory?

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

thinkpadfreak
Posts: 265
Joined: Thu Jul 16, 2020 6:37 am
Has thanked: 7 times
Been thanked: 57 times

Re: run google-chrome as root, how?

Post by thinkpadfreak »

Hello.

I publish Chrome sfs made from the official deb file.

Chrome sfs
https://sakurapup.com/forum1/viewtopic.php?f=25&t=3305

To run it as root:
# google-chrome-stable --no-sandbox

You can add --test-type in order to eliminate the warning message, but you won't be able to log in to various google services.

Edit:
Before you load the sfs, be sure to unload (or uninstall) any other version of Chrome package.

User avatar
gychang
Posts: 591
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 206 times
Been thanked: 64 times

Re: run google-chrome as root, how?

Post by gychang »

thinkpadfreak wrote: Tue Mar 21, 2023 8:52 am

Hello.

I publish Chrome sfs made from the official deb file.

Chrome sfs
https://sakurapup.com/forum1/viewtopic.php?f=25&t=3305

To run it as root:
# google-chrome-stable --no-sandbox

You can add --test-type in order to eliminate the warning message, but you won't be able to log in to various google services.

Edit:
Before you load the sfs, be sure to unload (or uninstall) any other version of Chrome package.

is this the correct sfs (google-chrome-111.0.5563.64-x64.sfs) ?

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

thinkpadfreak
Posts: 265
Joined: Thu Jul 16, 2020 6:37 am
Has thanked: 7 times
Been thanked: 57 times

Re: run google-chrome as root, how?

Post by thinkpadfreak »

gychang wrote: Tue Mar 21, 2023 8:57 am

is this the correct sfs (google-chrome-111.0.5563.64-x64.sfs) ?

Yes, it is.
Please be sure to unload or uninstall any other Chrome package before you load the sfs. Otherwise they will conflict and damage Puppy.

User avatar
gychang
Posts: 591
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 206 times
Been thanked: 64 times

Re: run google-chrome as root, how?

Post by gychang »

@thinkpadfreak thanks, I keep getting no-sandbox warning sign even after clicking them off. Is this expected behavior?

Attachments
Screenshot.png
Screenshot.png (20.19 KiB) Viewed 299 times

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

thinkpadfreak
Posts: 265
Joined: Thu Jul 16, 2020 6:37 am
Has thanked: 7 times
Been thanked: 57 times

Re: run google-chrome as root, how?

Post by thinkpadfreak »

gychang wrote: Tue Mar 21, 2023 9:14 am

I keep getting these 2 warnings after clicking them off. Is this expected behavior?

Strange.
They may appear every time Chrome starts. But once I close them, they don't appear until I restart Chrome.

The behavior may be due to a previous install of Chrome. If you delete /root/.config/google-chrome, the settings will go back to the default. But all data (bookmark, history, etc) will be lost.

User avatar
gychang
Posts: 591
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 206 times
Been thanked: 64 times

Re: run google-chrome as root, how?

Post by gychang »

thinkpadfreak wrote: Tue Mar 21, 2023 9:35 am
gychang wrote: Tue Mar 21, 2023 9:14 am

I keep getting these 2 warnings after clicking them off. Is this expected behavior?

Strange.
They may appear every time Chrome starts. But once I close them, they don't appear until I restart Chrome.

The behavior may be due to a previous install of Chrome. If you delete /root/.config/google-chrome, the settings will go back to the default. But all data (bookmark, history, etc) will be lost.

Just one "no --sandbox ..." keeps showing up everytime chrome starts?, is there a work around?

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

thinkpadfreak
Posts: 265
Joined: Thu Jul 16, 2020 6:37 am
Has thanked: 7 times
Been thanked: 57 times

Re: run google-chrome as root, how?

Post by thinkpadfreak »

You can add --test-type option to suppress the warning, but you will not be able to log in to google services.
If you need to log in to google with Chrome run as root, you will have to see the warning every time you start Chrome.

User avatar
mikewalsh
Moderator
Posts: 6155
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 793 times
Been thanked: 1979 times

Re: run google-chrome as root, how?

Post by mikewalsh »

@gychang :-

gychang wrote: Tue Mar 21, 2023 9:14 am

@thinkpadfreak thanks, I keep getting no-sandbox warning sign even after clicking them off. Is this expected behavior?

Aye. It IS "expected behaviour", Greg. It all comes down to our trying to defeat all the built-in sandbox protection, etc. Big Brother has decided, in his wisdom, that since he knows better than poor old Joe Bloggs in the street, dire warnings are in order if you attempt to run the browser in a way that was NOT intended..! :roll:

As thinkpadfreak says, we found out a while back that use of the "--test-type" switch stops Google account services from functioning properly. It's the sole side-effect, though.

Me, I've got so used to clicking the banner off every time I fire up, it doesn't even 'register' any more. I do so without thinking; it's become automatic for me....

You get used to it!

Mike. ;)

User avatar
gychang
Posts: 591
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 206 times
Been thanked: 64 times

Re: run google-chrome as root, how?

Post by gychang »

mikewalsh wrote: Tue Mar 21, 2023 12:36 pm

@gychang :-

gychang wrote: Tue Mar 21, 2023 9:14 am

@thinkpadfreak thanks, I keep getting no-sandbox warning sign even after clicking them off. Is this expected behavior?

Aye. It IS "expected behaviour", Greg. It all comes down to our trying to defeat all the built-in sandbox protection, etc. Big Brother has decided, in his wisdom, that since he knows better than poor old Joe Bloggs in the street, dire warnings are in order if you attempt to run the browser in a way that was NOT intended..! :roll:

As thinkpadfreak says, we found out a while back that use of the "--test-type" switch stops Google account services from functioning properly. It's the sole side-effect, though.

Me, I've got so used to clicking the banner off every time I fire up, it doesn't even 'register' any more. I do so without thinking; it's become automatic for me....

You get used to it!

Mike. ;)

thanks Mike, I can live with it, by the way your Mega portable pkg download is VERY useful.

Greg :thumbup2:

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

Post Reply

Return to “Users”