Google`s new Chrome 24 won`t run as root. [ Solved ]

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

Google`s new Chrome 24 won`t run as root. [ Solved ]

#1 Post by sunburnt »

I get this message:

Code: Select all

Google Chrome can not be run as root.

Please start Google Chrome as a normal user. To run as root, you must specify an alternate --user-data-dir for storage of profile information.
I`m not sure what they mean by "an alternate --user-data-dir".
I assume they`re talking about one of the environment variables.
The only env vars. in Puppy that have /root are:
XDG_CONFIG_HOME
XDG_CACHE_HOME
HOME
XDG_DATA_HOME ( modded in the google-chrome wrapper script )
Last edited by sunburnt on Tue 15 Jan 2013, 05:55, edited 1 time in total.

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#2 Post by jamesbond »

Exactly like it says. From terminal, run:

Code: Select all

google-chrome --user-data-dir=/path/to/somewhere
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#3 Post by sunburnt »

Ahhh, Duh... Thanks James Bond, I didn`t check for option sets.

So I assume that the path has to be anywhere except /root

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#4 Post by 01micko »

The path can be anywhere.. so long as it's available to you. (/root/somedir included)
Puppy Linux Blog - contact me for access

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#5 Post by sunburnt »

Got it working ( writing this on Chrome-24 ), but it dumps a list of errors.
Some of it may be due to my crummy old Celeron PC not being up to it.
And of course Puppy`s libraries also, ldd said they`re all there, but...
Errors:

Code: Select all

sh-4.1# [6074:6160:0112/015432:ERROR:object_proxy.cc(608)] Failed to get name owner. Got org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.NetworkManager': no such name
[6074:6074:0112/015433:ERROR:master_preferences.cc(104)] Failed to read master_preferences file at /mnt/sda3/AppPkg/build/Chrome-24_i386.AppPkg/.AppPkg/chrome-24_i386.app/opt/google/chrome/master_preferences. Falling back to default preferences.
[6074:6180:0112/015436:ERROR:object_proxy.cc(608)] Failed to get name owner. Got org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.chromium.Mtpd': no such name
[6074:6180:0112/015436:ERROR:object_proxy.cc(608)] Failed to get name owner. Got org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.chromium.Mtpd': no such name
[6074:6074:0112/015439:ERROR:object_proxy.cc(513)] Failed to call method: org.chromium.Mtpd.EnumerateStorage: object_path= /org/chromium/Mtpd: org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.Mtpd was not provided by any .service files
[6787:7018:0112/015546:ERROR:gpu_watchdog_thread.cc(201)] The GPU process hung. Terminating after 10000 ms.
[6074:6074:0112/015552:ERROR:extension_prefs.cc(1576)] Bad or missing pref 'version' for extension 'apdfllckaahabafndbhieahigkjlhalf'
[6074:6074:0112/015552:ERROR:extension_prefs.cc(1576)] Bad or missing pref 'version' for extension 'aohghmighlieiainnegkcijnfilokake'
[6074:6074:0112/015555:ERROR:extension_prefs.cc(1576)] Bad or missing pref 'version' for extension 'blpcfgokakmgnkcojhhkbfbldkacnbeo'
[6074:6074:0112/015555:ERROR:extension_prefs.cc(1576)] Bad or missing pref 'version' for extension 'pjkljhegncpnkpknbcohdijeoejaedia'
[6074:6074:0112/015555:ERROR:extension_prefs.cc(1576)] Bad or missing pref 'version' for extension 'coobgpohoikkiipiblmjeljniedjpjpf'
[6122:6122:0112/015631:ERROR:render_sandbox_host_linux.cc(663)] sendmsg: Connection refused
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
[9804:9804:0112/015915:ERROR:gl_surface_glx.cc(63)] GLX 1.3 or later is required.
[9804:9804:0112/015915:ERROR:gl_surface_linux.cc(58)] GLSurfaceGLX::InitializeOneOff failed.
[10218:10218:0112/015942:ERROR:gl_surface_glx.cc(63)] GLX 1.3 or later is required.
[10218:10218:0112/015942:ERROR:gl_surface_linux.cc(58)] GLSurfaceGLX::InitializeOneOff failed.
Thoughts: Chrome`s a perfect example of messed-up non-compliant apps.
Things done and put in places just to be incompatible ( desktop file is one).
Other browsers are probably no better, Firefox I know is about the same.

Debian - Ubuntu have .diff files that fix the app., how about just fixing it?

# Have a group of people that fix new apps so they are compliant.
.

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#6 Post by 666philb »

hi sunburnt,

barry k found a nifty program for editing binaries called 'bbe' .... quote "bbe is a sed-like utility for binary files". 'bbe' is now includied in modern pups.

for example, 'vlc' from the ubuntu repos in precise will only run as root, so when you install vlc from the PPM in precise puppy, there's a script that's run that uses 'bbe' to edit the vlc binary removing the root check. the script is /usr/local/petget/hacks-postinstall.sh

i've used it on the chrome binary and it seems to work just fine, allowing google chrome to run as root.... here's the script ....just point it any 'anti-root' binary or lib

Code: Select all

#! /bin/sh
bbe -e 's/geteuid/getppid/' /opt/google/chrome/chrome > /tmp/chrome-temp1
    mv -f /tmp/chrome-temp1 /opt/google/chrome/chrome
    chmod 755 /opt/google/chrome/chrome
:D
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#7 Post by sunburnt »

666philb; That`s interesting, much like modding dep. paths I`ve done.
If a complete set of mod. commands were made for all the methods that
are used for apps. locating their deps., apps. would run from anywhere.

The Linux O.S. is just horrible in the total lack of consistent app. building.

postfs1

#8 Post by postfs1 »

666philb wrote:... "bbe is a sed-like utility for binary files". 'bbe' is now includied in modern pups.

for example, 'vlc' from the ubuntu repos in precise will only run as root, so when you install vlc from the PPM in precise puppy, there's a script that's run that uses 'bbe' to edit the vlc binary removing the root check. the script is /usr/local/petget/hacks-postinstall.sh

i've used it on the ... binary and it seems to work just fine, allowing ... ... to run as root.... here's the script ....just point it any 'anti-root' binary or lib

Code: Select all

#! /bin/sh
bbe -e 's/geteuid/getppid/' /opt/.../.../prog > /tmp/prog-temp1
    mv -f /tmp/prog-temp1 /opt/.../.../prog
    chmod 755 /opt/.../.../prog
:D
Oh, after "BLESS" this program is something new...
Last edited by postfs1 on Sun 13 Jan 2013, 11:49, edited 4 times in total.

bark_bark_bark
Posts: 1885
Joined: Tue 05 Jun 2012, 12:17
Location: Wisconsin USA

#9 Post by bark_bark_bark »

I don't know if google would like that hack.
....

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#10 Post by 666philb »

bark_bark_bark wrote:I don't know if google would like that hack.
LOL :D
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#11 Post by sunburnt »

I must say that the reports are correct. Chrome 24 is fast!
My old Celeron with 500 MB of ram really shows speed compared to Firefox.
The jerkyness and stuttering are smoothed, and video ( YouTube ) is great!
I think I have me a new browser, Chrome seems to really rock!

Some of the errors went away ( first run faults ), but some remain:

Code: Select all

sh-4.1# [9627:9714:0113/120928:ERROR:object_proxy.cc(608)] Failed to get name owner. Got org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.NetworkManager': no such name
[9627:9736:0113/120929:ERROR:object_proxy.cc(608)] Failed to get name owner. Got org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.chromium.Mtpd': no such name
[9627:9736:0113/120929:ERROR:object_proxy.cc(608)] Failed to get name owner. Got org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.chromium.Mtpd': no such name
[9627:9627:0113/120932:ERROR:object_proxy.cc(513)] Failed to call method: org.chromium.Mtpd.EnumerateStorage: object_path= /org/chromium/Mtpd: org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.Mtpd was not provided by any .service files
[9807:9807:0113/120941:ERROR:gl_surface_glx.cc(63)] GLX 1.3 or later is required.
[9807:9807:0113/120941:ERROR:gl_surface_linux.cc(58)] GLSurfaceGLX::InitializeOneOff failed.
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
[11543:11543:0113/121124:ERROR:gl_surface_glx.cc(63)] GLX 1.3 or later is required.
[11543:11543:0113/121124:ERROR:gl_surface_linux.cc(58)] GLSurfaceGLX::InitializeOneOff failed.
[12921:12921:0113/121259:ERROR:gl_surface_glx.cc(63)] GLX 1.3 or later is required.
[12921:12921:0113/121259:ERROR:gl_surface_linux.cc(58)] GLSurfaceGLX::InitializeOneOff failed.
### If someone could point out what the causes for the errors are...

# The first 4 errors look like a problem with Puppy`s FreeDesktop.

# What library are these errors about: GLX 1.3 or later is required.

# And then 2 errors about the Alsa sound:
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream

postfs1

#12 Post by postfs1 »

Perhaps the version, what you use, is for Ubuntu, and such a version requires DBUS, maybe even activated DBUS.
Last edited by postfs1 on Mon 14 Jan 2013, 10:47, edited 2 times in total.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#13 Post by sunburnt »

postfs1; Yes, it`s an Ubuntu package and I`m using Puppy 5.28-004 made from Lucid.
I should also try it in Puppy 5.4 made from Ubuntu Precise to see if it behaves better.

# It works good and so far I`ve not seen any problems, but I`d like to squash errors.

So far I`ve had no trouble with any Ubuntu apps. I`ve tried in these Puppies.
However web browsers are on the complex side and incompatibilities surface.

This is a section of "ps":

Code: Select all

 6842 root       0:00 dbus-launch --autolaunch da31662b59e4f8cb08290ff24e623f4a --binary-syntax --close-stderr
 6844 root       0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
I don`t know much about dbus, or an activated dbus, but it looks like it`s running.

### postfs1; Could you please explain further?
.

postfs1

#14 Post by postfs1 »

sunburnt wrote:... using Puppy 5.28-004 made from Lucid
...
I'm not a user of such a version. Firewall Configurator from the Menu is as a discovery. I assume that the DBUS in "Puppy-5.28" is as a discovery too, but maybe it is not so.

More likely a situation is such what the "Ubuntu" is free off such a things.
Last edited by postfs1 on Mon 14 Jan 2013, 10:44, edited 2 times in total.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#15 Post by nooby »

When you say /path/to/somewhere you mean a particular such
I am not supposed to write somewhere unless I have a directory
with that name?

How does one know what to write instead of /path/to/somewhere

/mnt/dev_save/chrome24 or what?
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#16 Post by sunburnt »

nooby; I`m not sure what you`re getting at, I think you`re asking a Q of jamesbond.

google-chrome --user-data-dir=/path/to/somewhere

This command sets the path to where Chrome will keep it`s user data.
And as 01micko said, it can be anywhere that is accessible ( writable ).

Post Reply