Author |
Message |
DanYHKim

Joined: 14 Sep 2008 Posts: 103
|
Posted: Thu 14 Mar 2013, 12:00 Post subject:
This is great! Works really well Subject description: Created a script and .desktop to launch it |
|
I am running Lucid 5.2.8 on a Motion M1300 tablet. My wife wanted to be able to read Kindle books using their Cloud Reader in Chrome, but I couldn't make it work with a new Chrome install. It was driving me nuts.
(Needed a new install because the .pet for Chrome does not support offline reading)
Installed Chrome 25.0.1364172 (google-chrome-stable_current_i386.deb)
Installed puppy-gc-001.pet
Made relative symlink from /opt/google/chrome of "product_logo_48.png" to /usr/share/pixmaps
Made a script to put in /usr/bin called "chrome_noroot" that has:
Code: | #!/bin/sh
LD_PRELOAD="/usr/lib/libpuppygc.so" google-chrome |
Made a .desktop file in /usr/share/applications called google-chrome.desktop that invokes the script in its "Exec=" line, and also assigned the product_logo_48.png file as its icon.
Also dragged this .desktop to the Desktop and assigned it the same icon.
Now, I can launch Chrome from the menu or from the desktop icon, and it will run the preload, then chrome. It takes a little time to load up, but afterwards is appears to run without problems.
Thank you so much for this contribution. I was at the end of my rope.
|
Back to top
|
|
 |
psfal
Joined: 24 Jul 2013 Posts: 7
|
Posted: Sat 27 Jul 2013, 00:34 Post subject:
|
|
Command not found
|
Back to top
|
|
 |
Semme

Joined: 07 Aug 2011 Posts: 8021 Location: World_Hub
|
Posted: Sat 27 Jul 2013, 07:40 Post subject:
|
|
Psfal- I thought you said you'd try Fatdog?
Code: | google-chrome --user-data-dir "$@" |
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6991 Location: Auckland, New Zealand
|
Posted: Mon 29 Jul 2013, 06:24 Post subject:
|
|
Neat. This could do with a wiki page listing offending applications that it works with (and any super offensive ones that it doesn't, if there are any)
_________________ Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6991 Location: Auckland, New Zealand
|
Posted: Mon 29 Jul 2013, 06:47 Post subject:
|
|
Quote: | I was able to get rid of the warning message in the vanilla ROX-Filer this way, too. I just had to override getgid instead of geteuid. |
It looks (i.e. I tested that the programs start, but did not test all the features) like if you just override getuid() then you can use this to start bibledit as root, and to remove the warning message in the stock xsane.
I tried creating a single lib that overrides all three functions, and in the process demonstrated that there can be adverse effects: if geteuid is overridden then bibledit-gtk freezes on startup.
_________________ Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
|
Back to top
|
|
 |
psfal
Joined: 24 Jul 2013 Posts: 7
|
Posted: Mon 29 Jul 2013, 19:18 Post subject:
|
|
I tried, some of the code must be missing, I'm not a nuts & bolts guy, so if something else is needed to run those commands, I don't know what it is
|
Back to top
|
|
 |
psfal
Joined: 24 Jul 2013 Posts: 7
|
Posted: Mon 29 Jul 2013, 19:21 Post subject:
|
|
@Semme, I am trying Fatdog, it's being vague, and actually minus the chromium "run as root" issue, Puppy is more cooperative with much more available software...
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6991 Location: Auckland, New Zealand
|
Posted: Mon 29 Jul 2013, 21:28 Post subject:
|
|
Iguleder wrote: | I was able to get rid of the warning message in the vanilla ROX-Filer this way, too. I just had to override getgid instead of geteuid. |
Weird - here I need to override geteuid for Rox. Perhaps it was Chrome that needed getgid?
_________________ Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
|
Back to top
|
|
 |
greengeek

Joined: 20 Jul 2010 Posts: 5624 Location: Republic of Novo Zelande
|
Posted: Mon 29 Jul 2013, 22:32 Post subject:
|
|
Iguleder wrote: | I think we could use it for stubborn applications that don't like being executed as root.
This could be sort of a de-sudo  |
Or maybe a "sudon't" ...
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6991 Location: Auckland, New Zealand
|
Posted: Thu 01 Aug 2013, 02:05 Post subject:
|
|
disciple wrote: | Iguleder wrote: | I was able to get rid of the warning message in the vanilla ROX-Filer this way, too. I just had to override getgid instead of geteuid. |
Weird - here I need to override geteuid for Rox. |
Note that there are adverse effects with rox - it means when you open a terminal from rox it doesn't have root permissions.
_________________ Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6991 Location: Auckland, New Zealand
|
Posted: Wed 06 Nov 2013, 21:41 Post subject:
|
|
FWIW I can also get rid of an offensive running as root warning in mousepad by overriding geteuid. But it causes this error message, although I don't know what actual adverse effects there are:
Code: | Mousepad-Message: Failed to connect to the D-BUS session bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. |
_________________ Do you know a good gtkdialog program? Please post a link here
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4872 Location: Blue Springs, MO
|
Posted: Sat 09 Nov 2013, 16:08 Post subject:
|
|
I had done something similar but figured out that if you are careful and replace N characters with N characters (otherwise you mess up the GOT), you can use sed to change the binary itself ... Code: | sed -i "s/getuid/getpid/g" bin_or_lib_file
sed -i "s/geteuid/getppid/g" bin_or_lib_file | ... but this may be against EULA
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
Direxion

Joined: 24 Jan 2012 Posts: 2 Location: North Texas
|
Posted: Thu 14 Nov 2013, 15:43 Post subject:
Thanks Subject description: It worked |
|
Thanks! I also got the "can't run as root" message after installing Chrome (Version 31.0.1650.4 and the puppy-gc-001 pet worked. However I did have to modify /usr/bin/puppy-chrome line 3 to "google chrome-stable" to match the package. So far Chrome seems to be running fine however after launching I did get this:
http://i783.photobucket.com/albums/yy112/ldctbf/capture1053.png
which apparently means that Chrome will not be able to update. I probably won't use it then for very long but it was a fun exercise.
|
Back to top
|
|
 |
Mike Walsh

Joined: 28 Jun 2014 Posts: 5623 Location: King's Lynn, UK.
|
Posted: Mon 06 Feb 2017, 10:36 Post subject:
|
|
Thanks for this, iguleder. Still works perfectly.....and even better now that peebee's converted 'libpuppygc.so' to 64-bit.
Current 64-bit Chrome works a treat with this...and I shall know exactly what to do with future Iron and SlimJet builds, when they begin basing them on Chrome 56 or later.
(*Take that, Google...!*) Nice one.
Many, many thanks. Cheers!
Mike.
_________________ MY 'PUPPY' PACKAGES

|
Back to top
|
|
 |
slavvo67
Joined: 12 Oct 2012 Posts: 1616 Location: The other Mr. 305
|
Posted: Fri 17 Feb 2017, 02:30 Post subject:
|
|
How do you amend this for another application, such as Iron?
Also, I tried to package the puppy-chrome pet with a downloaded chrome but when I installed the combined pet, I received the running as root error.... Do you know of a way to overcome this or does Chrome need to be packages separately from your pet in order for the Chrome as Root to work? The reasoning behind trying to package together is for easier install via WoofQ.
Thanks,
Slavvo67
|
Back to top
|
|
 |
|