Enable Linux on Chromebook
See a TA while following these instructions
- See: https://support.google.com/chromebook/answer/9145439?hl=en
- Make sure they have admin access
- Then go to Settings>Advance>Date&Time>Enable Linux
- Once it’s installed terminal will open
Give Linux access to your Downloads Folder
- Open My Files
- Click Give Linux Access
Miniconda:
- Just use the Quick command line install instructions for Linux.
- Then
conda create -n cs110 matplotlib pytest
- Finally,
conda run -n cs110 python -m pip install -U byu_pytest_utils byubit
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
- i.e. the path should begin with
- 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.
- After a moment you will be asked to confirm if you want to install the packages. Type
- When creating the new project be sure to set the project location to be within the Linux Files