Page 1 of 1

run google-chrome as root, how?

Posted: Tue Mar 21, 2023 5:54 am
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?


Re: run google-chrome as root, how?

Posted: Tue Mar 21, 2023 8:52 am
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.


Re: run google-chrome as root, how?

Posted: Tue Mar 21, 2023 8:57 am
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) ?


Re: run google-chrome as root, how?

Posted: Tue Mar 21, 2023 9:04 am
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.


Re: run google-chrome as root, how?

Posted: Tue Mar 21, 2023 9:14 am
by gychang

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


Re: run google-chrome as root, how?

Posted: Tue Mar 21, 2023 9:35 am
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.


Re: run google-chrome as root, how?

Posted: Tue Mar 21, 2023 12:09 pm
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?


Re: run google-chrome as root, how?

Posted: Tue Mar 21, 2023 12:25 pm
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.


Re: run google-chrome as root, how?

Posted: Tue Mar 21, 2023 12:36 pm
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. ;)


Re: run google-chrome as root, how?

Posted: Tue Mar 21, 2023 1:55 pm
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: