Creating a Python Development Environment on a School Chromebook

힘센캥거루
2025년 10월 8일(수정됨)
3
29

This time, I decided to try Python Selenium and physical computing with the kids.

VSCode supports Unicode variables, so it seemed perfect for teaching coding in Korean.

However, the kids wanted to code on the Chromebooks distributed by the school.

So, I did a lot of Googling to set up the development environment on the Chromebooks and decided to document it.

Creating a Python Development Environment on a School Chromebook-1

1. Disabling the Linux Virtual Machine Restriction

Chromebooks used at school generally have developer mode and Linux virtual machine mode disabled.

Due to the strong control features of Chrome OS, the only option is to ask the school teacher to disable it.

You can disable Linux mode under Admin Console-Device-Chrome-Settings-User & Browser-Linux Virtual Machine (Beta).

Creating a Python Development Environment on a School Chromebook-2

2. Setting Up the Linux Virtual Machine

Press the button on the left, as shown in the image below, to enter the Chromebook's settings.

Then click Advanced-Developers-Use the Linux Development Environment.

Creating a Python Development Environment on a School Chromebook-3Creating a Python Development Environment on a School Chromebook-4

The following setup is easy. Just blindly clicking “Next” completes the Linux installation.

The virtual machine's default capacity is 10Gb, but it can be easily adjusted later.

Creating a Python Development Environment on a School Chromebook-5Creating a Python Development Environment on a School Chromebook-6Creating a Python Development Environment on a School Chromebook-7

After a short wait, the Linux terminal opens as shown below.

Now, the Linux setup is complete.

Creating a Python Development Environment on a School Chromebook-8

3. Installing VS Code

First, update Linux using the following command.

The “&&” between commands means executing the next command after the previous one completes.

sudo apt update && sudo apt upgrade
Creating a Python Development Environment on a School Chromebook-9

Then, use the dpkg command to check the architecture of the CPU.

dpkg --print-architecture
Creating a Python Development Environment on a School Chromebook-10

If it shows amd64, it means a typical 64-bit program can be installed.

Go to the Visual Studio homepage and download the Linux distribution file, the “deb” file.

Creating a Python Development Environment on a School Chromebook-11

You can download by clicking [.deb] on the left.

Alternatively, you can check other distributions by clicking [Download] at the top-right corner.

Creating a Python Development Environment on a School Chromebook-12

Now double-click the downloaded file to install it.

If you're good at Linux, you can install using wget and dpkg commands or apt.

Note that Linux distributions downloaded via apt cannot use Korean.

Creating a Python Development Environment on a School Chromebook-13Creating a Python Development Environment on a School Chromebook-14

In a short while, you can find VS Code on the Chromebook start page.

Click to open the folder and verify execution.

Allow all if a trust window appears.

Creating a Python Development Environment on a School Chromebook-15Creating a Python Development Environment on a School Chromebook-16

4. Installing Python and pip

Install Extensions in VS Code.

When searching, install anything related to Python to execute Python files.

Install Python, Python Extension, and anything else you want.

Creating a Python Development Environment on a School Chromebook-17

Then enter the following command in Terminal to install pip.

sudo apt install python3-pip
Creating a Python Development Environment on a School Chromebook-18

Finally, in VS Code, as always, enter print("hello world") to check the output.

Aside from the major issue of “unable to use Korean,” there shouldn't be any other differences.

Creating a Python Development Environment on a School Chromebook-19

5. Setting Up Korean Use on Linux

Now I plan to install four modules including fcitx and Korean fonts.

You can install multiple modules at once by separating them with a space after install as shown below.

sudo apt install fcitx fcitx-hangul fcitx-lib* fonts-nanum*
Creating a Python Development Environment on a School Chromebook-20Creating a Python Development Environment on a School Chromebook-21Creating a Python Development Environment on a School Chromebook-22

Enter im-config in the Terminal to initiate settings.

Press ok for all, and choose default midway through.

im-config
Creating a Python Development Environment on a School Chromebook-23Creating a Python Development Environment on a School Chromebook-24Creating a Python Development Environment on a School Chromebook-25

Enter the following command to see the language settings window.

It's about executing it with autostart and running configtool.

If no language appears here, update apt, and try again; it should display correctly.

sudo fcitx-autostart && sudo fcitx-configtool
Creating a Python Development Environment on a School Chromebook-26Creating a Python Development Environment on a School Chromebook-27

Press the (+) button at the bottom to add a language.

By unchecking the checkbox before [ ] Only Show ~, you can find Korean.

Creating a Python Development Environment on a School Chromebook-28Creating a Python Development Environment on a School Chromebook-29

Next, enter Global config and change the Korean/English switch key.

It's initially set to Ctrl+Space, which conflicts with other shortcuts in VS Code, so it's better to change it.

To change, click the method and press the key you want to use for Korean/English switching.

Creating a Python Development Environment on a School Chromebook-30

6. Registering Commands in Linux Startup Programs

Using fcitx allows input of Korean in VS Code, but every time you turn the Chromebook on and off, you must execute fcitx-autostart to run the module.

To avoid this, register the command using vi, a Linux editor.

sudo vi ~/.sommelierrc
Creating a Python Development Environment on a School Chromebook-31

Then, enter /usr/bin/fcitx-autostart, press ESC, then :wq and Enter.

This saves the file and exits the vi editor.

This way, fcitx will run whenever Linux starts, allowing Korean input.

7. Final Verification

Verify Korean input in VS Code.

Then, turn the Chromebook off and on and re-run VS Code to check if Korean input works properly.

If everything's set, now it's time to demonstrate this method to the kids and start coding together.

Creating a Python Development Environment on a School Chromebook-32

관련 글

Automating School Work – Using AI to Check Subject-Specific Remarks in Student Records
Automating School Work – Using AI to Check Subject-Specific Remarks in Student Records
If I had to pick the most meaningless, exhausting, and boring task at school, I would choose checking student records.In middle school, the student re...
Book Review and Challenge Review of Chapter 7 of *Building an LLM from Scratch*
Book Review and Challenge Review of Chapter 7 of *Building an LLM from Scratch*
Chapter 7 covers the process of fine-tuning a model to follow instructions.In other words, making it give the desired response to a given question.As...
Review of Chapter 6 of *Build an LLM from Scratch*
Review of Chapter 6 of *Build an LLM from Scratch*
Chapter 6 is about fine-tuning for classification.The example used is building a spam classifier.A spam classifier determines whether something is spa...
Review of Chapter 5 of *Building an LLM from Scratch*
Review of Chapter 5 of *Building an LLM from Scratch*
Today is December 14.The challenge period actually ended two weeks ago, but I couldn’t just give up on writing a review.Because these TILs I leave lik...
Impressions After Reading Chapter 4 of “LLM From Scratch”
Impressions After Reading Chapter 4 of “LLM From Scratch”
Today is November 26, so if I finish one chapter a day, I’ll complete the challenge.I’m not sure if I can do it with my first and second kids constant...
Review of Chapter 3 of Learning LLM from Scratch
Review of Chapter 3 of Learning LLM from Scratch
After spilling a bucket of water on my MacBook, I was in shock and wasted about 3-4 days. In retrospect, since my MacBook was already damaged, I should have thought of it as being sent for repair and done something. Anyway, although it's a bit late, I am determined to see it through and leave a review of Chapter 3. 1. Attention Mechanism Chapter 3...

댓글을 불러오는 중...