Hi everyone,
I just finished setting up the latest version of Chrome to run from root (mainly for Netflix).
I downloaded the latest iso and did a manual frugal install as I described before and installed all the stuff I usually install.
I then used Iceweasel to go to the Chrome website and download the Chrome 64 .deb file. When it downloaded, I let it install it directly from Iceweasel.
I found 2 ways to get it to run when logged in as root, I am sure there are more.
The first is to use the --no-sandbox switch. I created the following script and put a link to it on my desktop.
Code: Select all
#!/bin/sh
/usr/bin/google-chrome-stable --user-data-dir=/root/chrome/user --disk-cache-dir="/root/chrome/cache" --disk-cache-size=10000000 --media-cache-size=10000000 --no-sandbox
The other parameters aren't really necessary.
This results in a warning everytime you log on that running without the sandbox isn't safe.
So, I searched and found a way to run it as user puppy.
First, you need to install the package "gksu".
Then, you can create the following script.
Code: Select all
#!/bin/sh
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"
All the extra parameters aren't actually needed, this will work just fine.
Code: Select all
#!/bin/sh
gksu -u puppy /usr/bin/google-chrome-stable
The first time you use it, you get a warning about changing users without a password, but you can check a box so you don't get that again.
After that, I uninstalled Iceweasel and remastered. During the remaster, I used GDmap to search and delete all the Iceweasel cache and configuration and all the left over Chrome user profiles and caches. I ended up with a 240 MB .squashfs file with Chrome set up and Iceweasel gone.
Edit: I also had to go into pcmanfm, find an *.html file, and add the correct parameters to get Chrome to open local *.html files. See attached. I assume that I'll need to do the same for rox filer.
Probably a better/different way to do this would be to find the wrapper script that Chrome uses and alter it, like some of the people who make Chrome pets and sfs's for Puppy do. I assume if you did that, the same approach I used would still work.