Installing Netbeans on a Chromebook

Prereq: Install Java 8

Download and install Netbeans 8.2
wget -c

Once downloaded, run the download:

During installation, make sure you point the JDK for Netbeans IDE and glassfish to the Java 8 directory.

Installing Java and Eclipse IDE on a Chromebook

Install the prerequesites … java and wget
apt install default-jdk default-jre wget

Download the Eclipse IDE source code
sudo wget

Once downloaded, extract to the /opt/ dir
tar xzf eclipse-java-2018-12-R-linux-gtk-x86_64.tar.gz -C /opt/

To start the Eclipse IDE run:

Installing Calibre on a Chromebook / ebook management on a chromebook

Installing Calibre on a Chromebook is a simple, one-step process!

With Linux enabled on your Chromebook, open up a teminal window, and copy/paste the following:

sudo wget -nv -O- | sudo sh /dev/stdin

Calibre will install, and when the installation is finished, go ahead and run Calibre!

Installing Flatpaks on a Chromebook

To install the Flatpak system package. Run this command in terminal:

sudo apt-get install flatpak

Next, add the Flathub repository (there is only a space between ‘flathub’ and the URL, not a new line):

sudo flatpak remote-add --if-not-exists flathub

Finally, you have to restart your Chromebook. Now you can download any app found on Flathub. Most of these apps are available through the Software Center or as a .deb file, but there are a few exclusives.

Flatpaks are only installable through the terminal on a Chromebook. Every app on Flathub has command line instructions at the bottom of the page. For example, this is the command to install the Slack desktop app:

flatpak install flathub com.slack.Slack
However, you have to add “sudo” to the beginning, or it will fail in terminal. So what you actually have to run is this:

sudo flatpak install flathub com.slack.Slack

After everything is downloaded and installed, the app should appear in the Chrome OS app drawer.

Installing Gnome Software Center on a Chromebook

To install the Gnome Software Center, open up a terminal window, and type the following command:
sudo apt-get install gnome-software gnome-packagekit

When the Terminal asks if you want to continue, press the ‘Y’ key on your keyboard, then ‘Enter’ again. This command installs two packages – the software center, and the tool that allows the software center to communicate with the Debian system.

Once it’s done downloading and installing everything, you should see a ‘Software’ app in the app drawer. Click on it to open the Gnome Software Center. If the Gnome Software Center App is empty or blank, you may have to restart your Chromebook ~10 times to get it to fully load… at least that’s an issue I initially ran into.

Installing Libre Office on a Chromebook

Libre Office 5
Simply type the below in terminal:
sudo apt-get install libreoffice

Libre Office 6
1. Download the latest version from . Best to download to a temporary folder, so everything can be deleted easily after installation.
2. tar zxvf LibreOffice_$version_Linux_x86-deb.tar.gz (replace your version number with version you downloaded. For example, I downloaded LibreOffice_6.1.4_Linux_x86-64_deb.tar.gz so I would type in “tar zxvf LibreOffice_6.1.4_Linux_x86-64_deb.tar.gz”)
3. Go to the untar’d folder directory: cd LibreOffice_$version_Linux_x86-deb/ (Going with the previous example, I would put in “cd LibreOffice_6.1.4_Linux_x86-64_deb/”)
4. Now go to the DEBS folder. cd DEBS/
5. And now run the installation sudo dpkg -i *.deb

And if you need java, then just “sudo apt-get install openjdk-8-jre”

Alternative for LibreOffice 6
1. Add stretch backports to your sources.list file
echo "deb stretch-backports main" | sudo tee -a /etc/apt/sources.list
2. Run sudo apt-get update
3. Install libreoffice 6 from the stretch backports
sudo apt-get -t stretch-backports install libreoffice

4. For some reason the shortcut icons created won’t run the LibreOffice6 apps, but if you launch them from terminal, they work fine.

Writer: /usr/bin/libreoffice –writer
Calc: /usr/bin/libreoffice –calc
Draw: /usr/bin/libreoffice –draw
Impress: /usr/bin/libreoffice –impress
Math: /usr/bin/libreoffice –math

Steam Errors and Fixes

Steam Errors and Fixes

Crostini users may run into some Steam errors along the way — here are some common errors, their fixes, and a brief explanation of what’s going on.

Steam for Linux Errors:

Error: Unable to determine CPU Frequency. Try defining CPU_MHZ.
Fix: export CPU_MHZ= Example: 1.5GHz owners would enter: export CPU_MHZ=1500.000
Explanation: Error occurs when clock calibration fails on boot and cpu MHz output of /proc/cpuinfo is 0.000. This can be confirmed by dmesg | grep -i tsc. Steam doesn’t like when the /proc/cpuinfo MHZ output is 0.000 and errors out but fortunately allows us to, instead, define the CPU_MHZ value. Seems this lack of cpu MHz output in /proc/cpuinfo is due to a race condition. At this time it is unknown if there is a way to force the clock calibration to try again, this would be ideal as it would correct the 0.000 cpu MHz output in /proc/cpuinfo and truly fix the issue rather than working around it by defining a superficial CPU_MHZ value just to make Steam happy.

Error: Assertion Failed: Could not open connection to X
Error: Assertion Failed: failed to initialize update status ui, or create initial window
Fix: sudo ln -s /opt/google/cros-containers/bin/sommelier.elf /usr/bin/; systemctl --user restart sommelier*service --all; export DISPLAY=:0
Explanation: Errors occur when sommelier services have failed which stops X from working. The services sometimes fail due to the sommelier.elf symlink not being created yet so making sure the symlink is set is always the first step before restarting the services. Credit to u/bzub for documenting the issue here.

Error: find: ‘/home//.steam/ubuntu12_32/steam-runtime’: No such file or directory error
Fix: mkdir ~/.steam/ubuntu12_32/steam-runtime
Explanation: Error occurs when the steam-runtime directory doesn’t exist in the Steam default location so you can simply create one.

Installing Anaconda on a Chromebook (No dev, beta, or crouton needed)

Installing Anaconda

The best way to install Anaconda is to download the latest Anaconda installer bash script, verify it, and then run it.

Find the latest version of Anaconda for Python 3 at the Downloads page accessible via the Anaconda home page. At the time of writing, the latest version is 5.2, but you should use a later stable version if it is available.

Next, change to the /tmp directory on your server. This is a good directory to download ephemeral items, like the Anaconda bash script, which we won’t need after running it.

>cd /tmp

We’ll use the curl command-line tool to download the script. Install curl:

sudo apt install curl

Now, use curl to download the link that you copied from the Anaconda website:

curl -O

Now we can run the script:


You’ll receive the following output:

Welcome to Anaconda3 5.2.0

In order to continue the installation process, please review the license
Please, press ENTER to continue

Press ENTER to continue and then press ENTER to read through the license. Once you’re done reading the license, you’ll be prompted to approve the license terms:

Do you approve the license terms? [yes|no]

As long as you agree, type yes.

At this point, you’ll be prompted to choose the location of the installation. You can press ENTER to accept the default location, or specify a different location to modify it.

Anaconda3 will now be installed into this location:

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/home/YourName/anaconda3] >>> 

The installation process will continue. Note that it may take some time.

Once installation is complete, you’ll receive the following output:

installation finished.
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /home/sammy/.bashrc ? [yes|no]
[no] >>> 

Type yes so that you can use the conda command. You’ll receive the following output next:

Appending source /home/YourName/anaconda3/bin/activate to /home/YourName/.bashrc
A backup will be made to: /home/YourName/.bashrc-anaconda3.bak

Finally, you’ll receive the following prompt regarding whether or not you would like to download Visual Studio Code (or VSCode), a free and open-source editor for code developed by Microsoft that can run on Linux. You can learn more about the editor on the official Visual Studio Code website.

At this point, you can decide whether or not to download the editor now by typing yes or no.

Anaconda is partnered with Microsoft! Microsoft VSCode is a streamlined
code editor with support for development operations like debugging, task
running and version control.

To install Visual Studio Code, you will need:
  - Administrator Privileges
  - Internet connectivity

Visual Studio Code License:

Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]

In order to activate the installation, close the Terminal window, and reopen a new one.

Install Python 3.7 on Chromebook through Terminal (no dev mode, beta channel, crouton needed)

Step 1 – Prerequisites

Use the following command to install prerequisites for Python before installing it.

sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev \
    libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

Step 2 – Download Python 3.7

Download Python using following command from python official site. You can also download latest version in place of specified below.

cd /usr/src
sudo wget

Now extract the downloaded package.

sudo tar xzf Python-3.7.0.tgz

Step 3 – Compile Python Source

Use below set of commands to compile python source code on your system using altinstall.

cd Python-3.7.0
sudo ./configure --enable-optimizations
sudo make altinstall

make altinstall is used to prevent replacing the default python binary file /usr/bin/python.

Step 4 – Check Python Version

Check the latest version installed of python using below command

python3.7 -V