(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 28 Nov 2020, 10:40
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
StretchDog
Moderators: Flash, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 19 of 23 [345 Posts]   Goto page: Previous 1, 2, 3, ..., 17, 18, 19, 20, 21, 22, 23 Next
Author Message
Ether

Joined: 21 Aug 2013
Posts: 262

PostPosted: Sun 01 Mar 2020, 18:51    Post subject:  

dancytron wrote:
Have you tried adapting the 2 scripts I gave you. Each will work.


Quote:

#!/bin/sh

xhost +local:puppy

su puppy -c "/usr/bin/google-chrome-stable "$@" --user-data-dir=/home/puppy/chrome/user --disk-cache-dir=/home/puppy/chrome/cache --disk-cache-size=10000000 --media-cache-size=10000000"

#gksu -u puppy "/usr/bin/google-chrome-stable --user-data-dir=/home/puppy/chrome/user --disk-cache-dir=/home/puppy/chrome/cache --disk-cache-size=10000000 --media-cache-size=10000000"


I created the following folders:
/home/puppy/chrome
/home/puppy/chrome/user
/home/puppy/chrome/cache

Then I edited the script in Geany as follows:


Code:
xhost +local:puppy

su puppy -c "/usr/bin/chromium "$@" --user-data-dir=/home/puppy/chrome/user --disk-cache-dir=/home/puppy/chrome/cache --disk-cache-size=10000000 --media-cache-size=10000000"

...then copy/pasted the edited text into a terminal.

Here's the result :


Quote:
root@live:~# xhost +local:puppy
non-network local connections being added to access control list
root@live:~#
root@live:~# su puppy -c "/usr/bin/chromium "$@" --user-data-dir=/home/puppy/chrome/user --disk-cache-dir=/home/puppy/chrome/cache --disk-cache-size=10000000 --media-cache-size=10000000"
[31748:31748:0301/173746.512499:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /usr/lib/chromium/chrome-sandbox is owned by root and has mode 4755.
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1555

PostPosted: Sun 01 Mar 2020, 19:09    Post subject:  

Delete the folders and let chromium create them when you run it.


Just a guess, but I think the issue is that the folders do not have the correct ownership if you create them from the root user.
Back to top
View user's profile Send private message 
Ether

Joined: 21 Aug 2013
Posts: 262

PostPosted: Sun 01 Mar 2020, 19:26    Post subject:  

dancytron wrote:
Delete the folders and let chromium create them when you run it.


Just a guess, but I think the issue is that the folders do not have the correct ownership if you create them from the root user.

Deleted the 3 folders I manually created:

/home/puppy/chrome
/home/puppy/chrome/user
/home/puppy/chrome/cache

Copy/pasted this code into terminal:


Code:
xhost +local:puppy

su puppy -c "/usr/bin/chromium "$@" --user-data-dir=/home/puppy/chrome/user --disk-cache-dir=/home/puppy/chrome/cache --disk-cache-size=10000000 --media-cache-size=10000000"


Here is the result:

Quote:
root@live:~# xhost +local:puppy
non-network local connections being added to access control list
root@live:~#
root@live:~# su puppy -c "/usr/bin/chromium "$@" --user-data-dir=/home/puppy/chrome/user --disk-cache-dir=/home/puppy/chrome/cache --disk-cache-size=10000000 --media-cache-size=10000000"
[18755:18755:0301/182042.568044:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /usr/lib/chromium/chrome-sandbox is owned by root and has mode 4755.
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1555

PostPosted: Sun 01 Mar 2020, 19:52    Post subject:  

I just installed chromium and it worked for me.

Sorry, I'm stumped.

It is something particular to your install.
2020-03-01-175056_1280x1024_scrot.png
 Description   
 Filesize   176.23 KB
 Viewed   237 Time(s)

2020-03-01-175056_1280x1024_scrot.png

Back to top
View user's profile Send private message 
Ether

Joined: 21 Aug 2013
Posts: 262

PostPosted: Sun 01 Mar 2020, 22:48    Post subject:  

.

Quote:
The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /usr/lib/chromium/chrome-sandbox is owned by root and has mode 4755.


What is "mode 4755" and how do I check it ?

.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4481
Location: holland

PostPosted: Mon 02 Mar 2020, 05:56    Post subject:  

Hi Ether,

Ether wrote:
looks like they are owned by "root" ?. AFAIK, that's the way they were when I installed StretchDog32. or at least, I never made any conscious attempt to change it.

Permissions are totally wrong (from what I see on your screenshot), /home/puppy should be owned by puppy and read-only for group and others
So do in terminal (as root):
Code:
chown -R puppy:puppy /home/puppy

(should only change /home/puppy, not /home)
And :
Code:
chmod -R 755 /home/puppy

(will make read-write permission only puppy)

Quote:
Quote:
The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /usr/lib/chromium/chrome-sandbox is owned by root and has mode 4755.


What is "mode 4755" and how do I check it ?


Open terminal in /usr/lib/chromium and type ls -l
Quote:
root@live:/usr/lib/chromium# ls -l
totaal 195944
-rw-r--r-- 1 root root 885992 mrt 27 2019 chrome_100_percent.pak
-rw-r--r-- 1 root root 1216001 mrt 27 2019 chrome_200_percent.pak
-rwsr-xr-x 1 root root 13928 mrt 27 2019 chrome-sandbox
-rwxr-xr-x 1 root root 168104464 mrt 27 2019 chromium


Notice the difference between chrome-sandbox and chromium.
chrome-sandbox should have an "s" (-rwsr-xr-x)
If it doesn't, fix it by doing:
Code:
chmod 4755 /usr/lib/chromium/chrome-sandbox


Now, the big question is: why did the permissions messed up???
Was it maybe because of a restored backup of savefolder or something else you did?

Anyway, even when the fixes above work, I strongly recommend to start fresh with save folder.
(you may run into other problems because of some other messed up permissions)
EDIT: You may want to check e.g. /root
If it has also write permissions for group and others, then definitely something has gone very wrong and you should start with fresh save.

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Ether

Joined: 21 Aug 2013
Posts: 262

PostPosted: Mon 02 Mar 2020, 12:28    Post subject:  

.

fredx181 wrote:
Hi Ether,... I strongly recommend to start fresh with save folder.


I will try that.

.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4481
Location: holland

PostPosted: Mon 02 Mar 2020, 13:03    Post subject:  

Ether wrote:
.

fredx181 wrote:
Hi Ether,... I strongly recommend to start fresh with save folder.


I will try that.

.


Yeah, that's the best, please let us know how it goes and what may have caused the wrong permissions, so that others can learn from it.

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Ether

Joined: 21 Aug 2013
Posts: 262

PostPosted: Mon 02 Mar 2020, 18:19    Post subject:  

fredx181 wrote:
please let us know how it goes and what may have caused the wrong permissions, so that others can learn from it.
Fred

Here's what I've done so far.

- checked the hash of 01-filesystem.squashfs to make sure it hasn't been modified. It hasn't

- renamed the "changes" folder (while booted to a different distro) so it can't load

- booted Stretch32. Now the following works properly:
    exit X
    terminal prompt is root@live:~#
    if I type "exit" it goes back to the root GUI (as I suppose it should; it wasn't doing that before)
    if I type "login puppy" and the puppy password, it goes to the puppy GUI (that wasn't working before either)
Now I'm ready to download and install Chromium. But a thought occurred to me: am I supposed to do this when I'm logged in as root, or as puppy?? Last time I did as as root. Could that be the problem ?


.
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1874
Location: Connecticut, United States

PostPosted: Mon 02 Mar 2020, 18:29    Post subject:  

yes that might be the problem with Chromium. might start better not as root
Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 4481
Location: holland

PostPosted: Mon 02 Mar 2020, 18:38    Post subject:  

Ether wrote:
Now I'm ready to download and install Chromium. But a thought occurred to me: am I supposed to do this when I'm logged in as root, or as puppy?? Last time I did as as root. Could that be the problem ?

Doesn't really matter. When logged in as puppy (or any other unprivileged user) you need to use "sudo'" for administrator tasks such as installing software, so then:
Code:
sudo apt-get install chromium

(and you'll be asked for password)

If running chromium is the only reason for logging in as puppy, I'd say better stay with login as root and use the "chrome-puppy.sh" script (but modified for chromium as you discussed with dancytron above).

Running the system as root is more convenient IMO.

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Ether

Joined: 21 Aug 2013
Posts: 262

PostPosted: Mon 02 Mar 2020, 18:49    Post subject:  

fredx181 wrote:
If running chromium is the only reason for logging in as puppy, I'd say better stay with login as root and use the "chrome-puppy.sh" script (but modified for chromium as you discussed with dancytron above).

Chromium won't run as root unless you use the switch "--no-sandbox"...

... and if you do use "--no-sandbox", it's unstable and not secure (according to the warning message).

That's why I don't want to run it as root.


.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4481
Location: holland

PostPosted: Mon 02 Mar 2020, 19:28    Post subject:  

@Ether You can run chromium from root login "as" puppy by running the chrome-puppy.sh script.
(then it does not run as root)

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Ether

Joined: 21 Aug 2013
Posts: 262

PostPosted: Mon 02 Mar 2020, 19:42    Post subject:  

fredx181 wrote:
@Ether You can run chromium from root login "as" puppy by running the chrome-puppy.sh script.
(then it does not run as root)

Fred


OK, I will try that again when/if I get this root/puppy issue fixed.

.
Back to top
View user's profile Send private message 
Ether

Joined: 21 Aug 2013
Posts: 262

PostPosted: Tue 03 Mar 2020, 18:46    Post subject:  

Ether wrote:
fredx181 wrote:
@Ether You can run chromium from root login "as" puppy by running the chrome-puppy.sh script.
(then it does not run as root)

Fred


OK, I will try that again when/if I get this root/puppy issue fixed.

.

I got Chromium running with puppy login (by booting without my "changes" folder) but now Google Maps Street View does not click&drag properly. Maybe running without sandbox is what made it run so fast. Oh well.

This corruption of the changes folder is annoying and has tripped me up on every puppy/dog I've ever used for more than a week or two. What is the latest consensus among experienced users concerning the best way to install programs and save setup configurations and login info? Remaster CoW into separate sfs files? save folders? save files? What are the pros and cons of each method?

.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 19 of 23 [345 Posts]   Goto page: Previous 1, 2, 3, ..., 17, 18, 19, 20, 21, 22, 23 Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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.4615s ][ Queries: 12 (0.3466s) ][ GZIP on ]