INSTALLING VS CODE
You'll need to enable multiarch with armhf support, as you'll be using an armhf build of VS Code since arm64 support is still in the works. (TODO: add github issue link where the VS Code team discusses this)
Now you'll need to head over to code.headmelted.com and get his latest armhf build. (The installer script won't work).
Next up, you'll want to use gdebi to help guide the installation and install the required dependencies.
You should now have code-oss installed! Huzzah! But if you try to run it in its current state, it won't boot up and complain about not being able to open certain shared libraries. There are still two packages left to install. You already have their arm64 version, but VS Code wants armhf.
Huzzah! VS Code should now boot up when you run code-oss in your terminal. The first boot will take a minute or two. Every subsequent boot of VS Code should be much faster. VS Code is probably loading up a thousand npm modules or whatever wizardry is required to get Electron apps to do their magic.
Enjoy! It's actually more performant than I expected an Electron app to be. Not a bad coding experience.
INSTALLING PIROLOCITO'S CHROMIUM
NOTICE: These steps are no longer necessary on Ayufan's newer builds, starting with 0.5.2, as chromium-browser comes preinstalled and does not need the --disable-seccomp-filter-sandbox flag.
While I'm at it, here's how you add Pirolocito's awesome Chromium build. It's the most recent chromium, and runs much faster and smoother than the Pinebook's default Firefox. If you're running ayufan's latest Linux build, you're in for a delightful web browsing experience.
It requires the --disable-seccomp-filter-sandbox flag, so let's write an alias to save our poor human brain from having to remember and type that every time.
All subsequent terminal sessions will now be able to start chromium with its required flag by just running "chrome".
Now add a script/ad blocking extension! For your sanity's sake, and to speed up chromium.
SPEEDING UP CHROMIUM
We've got some new flags to set that should speed up Chromium considerably! All thanks go to Lukasz and longsleep for fiddling with this.
If you're running longsleep's build, then it should already be using these following flags by default.
Run the following with root privileges:
Here are the flags Lukasz would like for us to test as well. I stripped out the ones already specified in longsleep's code:
And as longsleep notes, it's also worthwhile to install the "No MouseWheel Zoom" extension to stop accidentally activating the Pinebook's two finger zooming.
You'll need to enable multiarch with armhf support, as you'll be using an armhf build of VS Code since arm64 support is still in the works. (TODO: add github issue link where the VS Code team discusses this)
Code:
sudo dpkg --add-architecture armhf
sudo apt-get update
Now you'll need to head over to code.headmelted.com and get his latest armhf build. (The installer script won't work).
Code:
https://bintray.com/headmelted/deb-code-oss/download_file?file_path=code-oss_1.10.0-201722210_armhf.deb
Next up, you'll want to use gdebi to help guide the installation and install the required dependencies.
Code:
sudo gdebi code*.deb
You should now have code-oss installed! Huzzah! But if you try to run it in its current state, it won't boot up and complain about not being able to open certain shared libraries. There are still two packages left to install. You already have their arm64 version, but VS Code wants armhf.
Code:
sudo apt-get install libxtst6:armhf
sudo apt-get install libasound2:armhf
Huzzah! VS Code should now boot up when you run code-oss in your terminal. The first boot will take a minute or two. Every subsequent boot of VS Code should be much faster. VS Code is probably loading up a thousand npm modules or whatever wizardry is required to get Electron apps to do their magic.
Enjoy! It's actually more performant than I expected an Electron app to be. Not a bad coding experience.
INSTALLING PIROLOCITO'S CHROMIUM
NOTICE: These steps are no longer necessary on Ayufan's newer builds, starting with 0.5.2, as chromium-browser comes preinstalled and does not need the --disable-seccomp-filter-sandbox flag.
While I'm at it, here's how you add Pirolocito's awesome Chromium build. It's the most recent chromium, and runs much faster and smoother than the Pinebook's default Firefox. If you're running ayufan's latest Linux build, you're in for a delightful web browsing experience.
Code:
sudo add-apt-repository ppa:osomon/chromium-next
sudo apt-get update
sudo apt-get install chromium-browser
It requires the --disable-seccomp-filter-sandbox flag, so let's write an alias to save our poor human brain from having to remember and type that every time.
Code:
echo "alias chrome=\"chromium-browser --disable-seccomp-filter-sandbox\"" >> ~/.bash_aliases
All subsequent terminal sessions will now be able to start chromium with its required flag by just running "chrome".
Now add a script/ad blocking extension! For your sanity's sake, and to speed up chromium.
SPEEDING UP CHROMIUM
We've got some new flags to set that should speed up Chromium considerably! All thanks go to Lukasz and longsleep for fiddling with this.
If you're running longsleep's build, then it should already be using these following flags by default.
Run the following with root privileges:
(05-14-2017, 04:59 AM)longsleep Wrote: cat > "/etc/chromium-browser/default" <<EOF
# Default settings for chromium-browser. This file is sourced by /bin/sh from
# /usr/bin/chromium-browser
# Options to pass to chromium-browser
CHROMIUM_FLAGS="\
--disable-smooth-scrolling \
--disable-low-res-tiling \
--enable-low-end-device-mode \
--num-raster-threads=4 \
--profiler-timing=0 \
--disable-composited-antialiasing \
"
EOF
Here are the flags Lukasz would like for us to test as well. I stripped out the ones already specified in longsleep's code:
(05-13-2017, 07:53 AM)Luke Wrote: These settings considerably improve chromium performance- please test them out and offer feedback.
In chromium searchbar type: Chrome://flags
Set the following:
Experimental canvas features - enable
Memory ablation experiment - enable (or 100mb - try both)
And as longsleep notes, it's also worthwhile to install the "No MouseWheel Zoom" extension to stop accidentally activating the Pinebook's two finger zooming.
Some with certainty insist no certainty exists.