Installing bc (calculator programming language) in Crostini (Linux container) on a Chromebook

toddogasawara
Aug 4 · 1 min read

The Debian Linux container that comes with and runs in Crostini on Chromebooks comes with a lot of Linux tools. However, one favorite of my does not: bc — An arbitrary precision calculator language. bc stands for Basic Calculator. But, it is far more than that. It is a full programming language that be embedded in shell scripts or used from an interactive command line.

Here’s how you install it in a Crostini terminal window:

sudo apt install bc

That’s it! As installed, sudo did not need or ask for a password to be passed to it before running the installation.

And, here’s how you run it from inside of the Terminal window:

bc -l

The -l flag brings in the standard math library.

You can find the GNU man page for bc here:

OgasaWalrus

Focus on Open Source, free or low cost software and web products

toddogasawara

Written by

Editor MobileViews. ExtremeTech 2015–2016. BYTE 2011–2013. Windows Phone MVP 2000-2011. ThinkMobile/SocialTimes Mobile blogger 2008-2011

OgasaWalrus

Focus on Open Source, free or low cost software and web products

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade