How to run Chrome as root

Moderator: Forum moderators

Post Reply
User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

How to run Chrome as root

Post by JASpup »

I haven't tested all the old distros I use, but the one I'm using at the moment (a Slacko 6.3.2 puplet) won't run Chrome as root.

I just did this hack for Ubuntu and it works:
https://www.computernetworkingnotes.com ... linux.html
To run Chrome as root, open the file /opt/google/chrome/google-chrome for editing.

open configuration file for editing

Append the following configuration values in the last line of the file.

Code: Select all

--user-data-dir --test-type --no-sandbox
After editing, last line should look like the following line.

Code: Select all

exec -a "$0" "$HERE/chrome" "$@"--user-data-dir --test-type --no-sandbox
Last edited by JASpup on Fri Oct 30, 2020 7:24 am, edited 1 time in total.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

dancytron
Posts: 711
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 504 times
Been thanked: 213 times

Re: How to run Chrome as root

Post by dancytron »

The forum works for me on the latest Chrome using --no-sandbox.

I use an external script (the Debian Dog way). I use the same script in Puppy, except it's /mnt/home instead of /live/image

Code: Select all

#!/bin/sh

/usr/bin/google-chrome-stable --user-data-dir=/live/image/ChromeSettings/google-chrome/config --disk-cache-dir=/live/image/ChromeSettings/google-chrome/cache --disk-cache-size=10000000 --media-cache-size=10000000 --no-sandbox --disable-infobars "$@" file:///bookmarks.html
User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: How to run Chrome as root

Post by JASpup »

dancytron wrote: Fri Oct 30, 2020 5:19 am The forum works for me on the latest Chrome using --no-sandbox.
I never use the latest Chrome unless I have to.

It wasn't working for me because I accidentally disabled javascript.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

User avatar
mikeslr
Posts: 2944
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 178 times
Been thanked: 905 times

Re: How to run Chrome as root

Post by mikeslr »

Mike Walsh beat you by 3 months, :lol: publishing both the information and (for those of us who are lazy) a package. viewtopic.php?p=479#p479.

I know it may be hard to believe --Puppy Linux not being a major distro-- but Puppy's Forum is the first place to search for 'cutting edge' information. Being a 'Do-archracy', it's fans follow their own interests, which leads some of them to strange places where they discover exotic ideas for discussion and possible use under Puppies. Which is why, although Mike's original code used the '--test-type' argument, it has since been changed to read:

run-as-spot "$HERE/chrome" --user-data-dir=$HERE/spot/.config/google-chrome --disable-infobars "$@"

because wiak discovered that using '--text-type' gmail login no longer functioned, viewtopic.php?p=729#p729 and suspected its use might present other security issues.
User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: How to run Chrome as root

Post by JASpup »

mikeslr wrote: Fri Oct 30, 2020 1:49 pm
I know it may be hard to believe --Puppy Linux not being a major distro-- but Puppy's Forum is the first place to search for 'cutting edge' information. Being a 'Do-archracy', it's fans follow their own interests, which leads some of them to strange places where they discover exotic ideas for discussion and possible use under Puppies.
To the extent productivity matters, I'd rather be doing CAD and MIDI, but instead I'm learning how to no-sandbox a browser.

I don't fault anyone for that, but I'm very interested in common ground and clear communication.

It's fun to learn, but the elegant thing already created should be a tool above an exercise challenge.

Ostensibly you have an os for modest resource/older pc's and people drawn to the dog theme, but it's really for intelligent, technically minded users who can both understand how it works and who are dissatisfied with mainstream computing. That's how I see people describing Arch (have never booted it).

http://wikka.puppylinux.com/HowPuppyWorks

Puppy usage would rise dramatically with an official release user-friendly default windows manager.

It would explode if it weren't for competition.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

Post Reply

Return to “Browsers”