BYU logo Computer Science

Enable Linux on Chromebook

See a TA while following these instructions

Give Linux access to your Downloads Folder

  • Open My Files
  • Click Give Linux Access

Miniconda:

Download Pycharm

  • https://www.jetbrains.com/pycharm/download/?section=linux
  • Download the tar.gz for Linux version of the Community edition (You have to scroll down a bit)
    • Maybe try the AMD version, it might avoid the JRE error described below.
    • Additionally apparently a command line version of the installation exist and that might also be better.
  • Unpack the pycharm folder to the Linux Files Folder (You can just double click tar.gz and copy the folder over)
  • Run cd ./pycharm-community-2023.3.2/bin/ or whatever version of pycharm was installed
  • Then bash ./pycharm.sh

If you have the no JRE found error

Run sudo apt-get install openjdk-17-jdk

Make a bash script called start_pycharm.sh with these lines. Edit them for your pycharm version and username.

#! /usr/bin/bash
cd /home/username/pycharm-community-2023.3.2/bin
PYCHARM_JDK=/usr/lib/jvm/java-17-openjdk-amd64 bash pycharm.sh

Then you can run pycharm with:

bash start_pycharm.sh

You can just type bash st and then tab.

  • Once PyCharm has started there are a couple of different things you need to do:
    • When creating the new project be sure to set the project location to be within the Linux Files
      • i.e. the path should begin with ~/usr
    • Set the environment to a local virtual environment
    • Open a terminal and run sudo apt-get python3-tk
    • Then run pip install matplotlib pytest byubit byu_pytest_utils
      • After a moment you will be asked to confirm if you want to install the packages. Type y and press enter.