Installing VS Code (& Chromium)
#1
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)
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.


Messages In This Thread
Installing VS Code (& Chromium) - by Prophesi - 04-30-2017, 01:44 PM
RE: Installing VS Code (& Chromium) - by pfeerick - 04-30-2017, 06:42 PM
RE: Installing VS Code (&amp; Chromium) - by Luke - 05-09-2017, 01:11 PM
RE: Installing VS Code (& Chromium) - by ayufan - 05-09-2017, 03:12 PM
RE: Installing VS Code (& Chromium) - by pfeerick - 05-10-2017, 06:47 PM
RE: Installing VS Code (& Chromium) - by ayufan - 05-11-2017, 02:13 AM
RE: Installing VS Code (& Chromium) - by pfeerick - 05-11-2017, 06:37 PM
RE: Installing VS Code (& Chromium) - by ayufan - 05-12-2017, 11:23 AM
RE: Installing VS Code (& Chromium) - by Luke - 05-13-2017, 07:53 AM
RE: Installing VS Code (& Chromium) - by pfeerick - 05-13-2017, 07:48 PM
RE: Installing VS Code (& Chromium) - by xalius - 06-20-2017, 05:08 PM
RE: Installing VS Code (& Chromium) - by pfeerick - 06-21-2017, 02:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Installing software cmh2010 5 7,285 05-30-2019, 02:54 AM
Last Post: markcuban56
  Chromium OS? Devilotx 4 8,771 01-31-2019, 03:19 AM
Last Post: soupbowl
Music Problems using Spotify Web version because DRM (Firefox & Chromium) Ekkaia 6 10,120 09-07-2018, 02:23 AM
Last Post: JerrySmith1021
  Disable pinch-to-zoom in chromium angry_elf 15 20,728 08-31-2017, 06:00 AM
Last Post: combs
  Chromium for Q4OS q4osteam 0 2,803 06-21-2017, 08:09 AM
Last Post: q4osteam

Forum Jump:


Users browsing this thread: 2 Guest(s)