View Single Post
Maemish's Avatar
Posts: 1,704 | Thanked: 4,752 times | Joined on Apr 2018 @ Helsinki, Finland.
#1
THIS FIRST POST IS UPDATED AND I ADD TO THIS THE LATEST INSTRUCTIONS OF RUNNING CHROMIUM 57 ON N900!

Here are instructions to get 0day wholes having chromium 57 browser to be installed on N900 if you really need it (as I do for whatsapp and instagram).

WARNING: PREVIOUS INSTRUCTIONS OF USING FIREJAIL WITH CHROMIUM HAVE BEEN REMOVED CAUSE KERNEL DOESN'T SUPPORT FIREJAIL FULLY. ALSO IT MAY BE THAT THERE IS NO SECURITY BENEFITS OF USING CHROMIUM IN KIOSK MODE.

After installing jessie on ED from the link in this instruction page

https://wiki.maemo.org/Easy_Debian/L..._Debian_Jessie

by juiceme go Debian Chroot and:

apt-get update

groupadd crontab

- Otherwise for me it throws "unknown user group in statoverride" error and prevents from installing. I searched a lot about it and there are different possibilities to resolve it. Most common is to remove /var/lib/dpkg/statoverride and some say also to remove the /var/lib/dpkg/lock. Some instructed to search for a certain line with crontab and remove that only. But it was said that the securest way is to add the groub crontab with groupadd to prevent from harming the system. I have decided to follow that cause have had so many problems and not know if some were because of removing the whole statoverride. If there is a better solution let me know.

apt-get install ca-certificates openssl libcurl3

Next one (installing netsurf with the instructions by juiceme) is optional but because I do not know if this added something which made chromium work better I install it first. Installing after chromium did not work at least once.

Follow the instructions of getting and and installing netsurf from juiceme.

https://wiki.maemo.org/Easy_Debian/L..._Debian_Jessie

apt-get install leafpad (or use what ever you prefer and is better)

leafpad /etc/apt/sources.list


Add to sources and save if you need for something firejail sandbox. Don't use it with chromium. It doesn't add security but may even weaken it with chromiums own sandbox preferences.To use it with chromium was just an idea which didn't carry far.

deb http://http.debian.net/debian jessie-backports main

apt-get update

apt-get install -t jessie-backports firejail


And now to installing Chromium:

apt-get install apt-transport-https

cd /etc/apt/sources.list.d

Get mavericks jessie repository list for odroid:

wget https://oph.mdrjr.net/meveric/source...ssie-main.list

- There is also a list for mavericks jessie-backports where some may find usefull stuff for some things but atleast once when I tried to install chromium the backports list enabled I got lots of dependency errors and couldn't anymore install chromium. I also tried installing it from official jessie backports which was also a mistake and had to reinstall image cause didn't know how to fix things. So get for this only jessie main list.

wget -O- http://oph.mdrjr.net/meveric/meveric.asc | apt-key add -

apt-get update

apt-get install chromium-browser-odroid

Now if you know how to get N900 keyboard work properly on jessie do that (probably with Xbindkeys fix icon and instructions on ED wiki, I haven't got that part working yet).

Close Debian Chroot and fire up LXDE desktop.

- Now if you have overclocked and made swap adjustments I suggest to change the max cpu to 805 and change swap to default settings except maybe the echo "30" > /proc/sys/vm/swappiness. I have CSSU devel, Kernel Power 53 and had overclocked to 900 and had swappolube proposed settings and they worked well untill firing up chromium. Then device booted.

Start chromium either from Run or from the menu.

- It should be in menu if you installed jessie by putting the right path in /home/user/.chroot. ED finds and uses the image from MyDocs even without the path but there are some things which do not work.

Let chromium open up and do not try to use it before you see the cpu meter showing low. Do not just look and wait but do something, read or have a coffee. It takes couple of minutes the couple first times and untill you have made the right settings. Then it will work about like iceweasel.

After it has loaded shut the chromium. This was needed only for chromium to make right files. Not sure if the next one is neccessary or is sulu image such that the rights are not that restricted but according to Easy Debbie wiki instruction page you need to give chromium access to here in chroot:

chown -R user /home/user/.cache/chromium

chown -R user /home/user/.config/chromium

Now it should be certain that your settings stick. Open chromium again (and wait and wait untill cpu is down) and then adjust settings. When you get settings open bookmark it with SET (short name).

VERY IMPORTANT SETTING:

Change the page where chromium opens to chrome://chrome-urls

Change that to be also the home button page.

Chromium opens much faster and it is usefull to have a very light page under home button.

Show bookmarks bar (you need it).

Make a user

Then go to content settings and bookmark that too with short name.

Disable images (for now)

Disable flash always (and for good)

Disable microphone, camera, and everything else you want. I also disabled programs to do anything after closing.

After this it is maybe good thing to make what ever magic you do to free ram on your device. Open chromium this time from run with 'firejail chromium'. Then google data saver chrome (could not find it from webstore otherwise) and click the link you find. First time webstore loads longer, next times it's ok.

Install data saver and click the icon to start it.

Google xtab and do the same as with data saver. When xtab is installed click the icon, click the arrow on the box to change open pages and then select more in the bottom. Type 2 on the box. Otherwise you will soon loose the game with chromium making extra processes for each tab.

Now you may click settings from bookmark bar and go to clear cache/browsing. When you get there bookmark that too with short name. Clear your history.

If you want to try to make it work even better you may try using chrome://flags. I tried almost everything but can't really say what would really work. One friend once said that the more flags you put the more the browser needs to read settings for each page when opening. It seemed that way with this N900. In internet you can find with 'flags for faster chrome' or 'reduce ram with flags on chrome'. I decided not to use them after all. Should be a proper machine with monitoring enabled to really see effects on ram and cpu and loading times before using.


Using chromium without LXDE desktop

You can launch chromium straight from xterm in Hildon with 'debbie chromium'.

There comes also all kinds of errors when you launch it like this. If you know and find out how to make chromium to work the same way as netsurf does when launched from chroot (right sized window, able to write and click stuff well, no errors) then pliiz tell me.

For now when you launch it you can click stuff and get them opened but you can't write unless you first press shutdown button and when the menu appears click somewhere in chromium to make it disappear and then you can type. But then to be able to click some things you need to exit the ED with ctrl backspace and then come back. And for some things (as editing xtab from icon menu) you just can't make it work.

One workaround is that when chrome is launched from LXDE install chrome input tools. You can there select languages and then you can use virtual keyboard without need to all the time change mode when chromium is launched from xterm. Chromium is much faster when launched from xterm.

Launching chromium to kiosk mode. It may give some performance benefits. About adding security it may give nothing extra.

In terminal type:

debbie chromium --kiosk http://www.google.com

Put whatever webpage url, both http and https works. Can be used also from the Run box in LXDE start menu.

It will open a maximized window without any chromium settings top bar which are not in use in kiosk mode. You (the user) can't use them (not sure how it is with what webpage can or can't in this mode).

Any help on this matter (getting chromium to work better) is welcomed!

ALERT AND CAUTION: USE THIS BROWSER ONLY TO ACCESS CERTAIN PLACES YOU OTHERWISE YET CAN'T WITH N900!!!
Attached Images
 

Last edited by Maemish; 2019-08-21 at 18:08.
 

The Following 4 Users Say Thank You to Maemish For This Useful Post: