Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 19 Dec 2014, 00:02
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Google`s new Chrome 24 won`t run as root. [ Solved ]
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 5043
Location: Arizona, U.S.A.

PostPosted: Fri 11 Jan 2013, 21:59    Post subject:  Google`s new Chrome 24 won`t run as root. [ Solved ]  

I get this message:
Code:
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, 01:55; edited 1 time in total
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 2232
Location: The Blue Marble

PostPosted: Fri 11 Jan 2013, 22:58    Post subject:  

Exactly like it says. From terminal, run:
Code:
google-chrome --user-data-dir=/path/to/somewhere

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5043
Location: Arizona, U.S.A.

PostPosted: Sat 12 Jan 2013, 01:18    Post subject:  

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

So I assume that the path has to be anywhere except /root
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Sat 12 Jan 2013, 02:00    Post subject:  

The path can be anywhere.. so long as it's available to you. (/root/somedir included)
_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
sunburnt


Joined: 08 Jun 2005
Posts: 5043
Location: Arizona, U.S.A.

PostPosted: Sat 12 Jan 2013, 05:02    Post subject:  

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:
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.
.
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 1943
Location: wales

PostPosted: Sat 12 Jan 2013, 20:54    Post subject:  

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:
#! /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

Very Happy

_________________
Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=96178
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5043
Location: Arizona, U.S.A.

PostPosted: Sat 12 Jan 2013, 23:18    Post subject:  

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.
Back to top
View user's profile Send private message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Sun 13 Jan 2013, 03:40    Post subject:  

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:
#! /bin/sh
bbe -e 's/geteuid/getppid/' /opt/.../.../prog > /tmp/prog-temp1
    mv -f /tmp/prog-temp1 /opt/.../.../prog
    chmod 755 /opt/.../.../prog

Very Happy


Oh, after "BLESS" this program is something new...

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.


Last edited by postfs1 on Sun 13 Jan 2013, 07:49; edited 4 times in total
Back to top
View user's profile Send private message 
bark_bark_bark

Joined: 05 Jun 2012
Posts: 934
Location: USA

PostPosted: Sun 13 Jan 2013, 07:34    Post subject:  

I don't know if google would like that hack.
_________________
......
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 1943
Location: wales

PostPosted: Sun 13 Jan 2013, 13:44    Post subject:  

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

LOL Very Happy

_________________
Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=96178
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5043
Location: Arizona, U.S.A.

PostPosted: Sun 13 Jan 2013, 16:04    Post subject:  

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:
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
Back to top
View user's profile Send private message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Sun 13 Jan 2013, 20:10    Post subject:  

Perhaps the version, what you use, is for Ubuntu, and such a version requires DBUS, maybe even activated DBUS.
_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.


Last edited by postfs1 on Mon 14 Jan 2013, 06:47; edited 2 times in total
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5043
Location: Arizona, U.S.A.

PostPosted: Sun 13 Jan 2013, 22:36    Post subject:  

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:
 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?
.
Back to top
View user's profile Send private message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Sun 13 Jan 2013, 23:18    Post subject:  

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.

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.


Last edited by postfs1 on Mon 14 Jan 2013, 06:44; edited 2 times in total
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Mon 14 Jan 2013, 03:14    Post subject:  

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
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1062s ][ Queries: 12 (0.0050s) ][ GZIP on ]