Coding on a Chromebook using Python and PyGame

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] to be able to code on a Chromebook we first need to install Linux on a Chromebook Chromebooks can now install Linux in a container within the Chrome OS itself without the need for reinstalling the complete operating system on the device in order to install Linux we should first go to the time option right here click on the gear icon to open the settings and once the settings page opens click on the three lines next to the world settings and go all the way to the bottom and click about Chrome OS this is going to open a page where we can check if our Chrome OS is on the latest version if you find your Chrome OS is not on the latest version then you need to update the Chrome OS the first we are going to check for updates and our Chrome OS is already on the latest version if it wasn't it would ask us to upgrade it and we should upgrade it then we can go back to our settings and if we look down we will notice that we have an option called Linux beta this allows us to install a Linux container within the chrome operating system itself there is a possibility that even after upgrading the chrome Chrome OS to the latest version you may not have the Linux beta option it is because there are only some Chromebooks that support this project of Google called crostini in order to find out if your particular computer is supported by crostini you can go to this link and find out if your computer is one of these one of the ones that uses these boards to find out which particular defy device uses any of these boards you can go to the device list and look look for the board in this column right here and this is the particular device that you may be using all the other devices that may or may not be supported so now that you have found out that your particular one does give the Linux beta option to install Linux all we got to do is click on the Linux beta so to turn on Linux we have to click on the turn on button right here and click on install for it to start the process of installation at this point our Linux installation is complete it opens up the Linux terminal because that's how we usually interact with the Linux computer so at this point we are going to close the terminal so that we can see how we can launch the terminal again in case we closed it so now that our terminal is closed so we are going to look for the terminal so that we can launch it again if we need to so to do that we'll click on the launcher right here and we'll look for the terminal by searching for it so we did find the terminal you're on to put it make it available and put it on the Shelf all we do is right click on it and say pin to shelf that way we always have the terminal available just and then just when we need to launch it and whenever we need to launch it what we're going to do is click on the terminal we and we can launch it so now that we have Lynn's Linux installed on our computer now we can install Linux software Linux programs using Linux commands so we're going to use primarily an apt-get package manager to install the software that we want to install here the first thing we need to make sure is we upgrade our apt-get package manager to the latest version so we upgrade the packages that there are there so in order to do that we do sudo apt - get update so that's going to update all the packages so that whenever we try to install something that package is going to be available or if it's already available it's going to be latest one available so now that our apt-get package manager has been updated now we are going to use the apt-get package manager to install say our Python program so the problem that we are going to install to run our Python programs is going to be idle idle three is the one that we are going to install Idol is an integrated development environment for Python so we're to install Idol we are going to use sudo apt - get install Idol 3 so this is going to install Idol and at this point it's going to ask us if it's ok for this installation to take some of the disk space on the computer we're going to say yes it's gonna start the installation we're gonna wait for it to finish at this point our integrated development environment for Python is already installed so let's see if we can launch it let's close the terminal right here so we do not have it on our shelf yet so we're gonna go back to the launcher search for it and we do see it's available all we got to do is right click pin to shelf so that way we have it available for the use and anytime we click on the icon on the shelf it's gonna launch our Idol so that's way let's see if this Python shell works a 2 + + - it seems to work so that's how we installed Python on a Chromebook if we wanted to take it one step further by also installing PI game on this Chromebook so that we are not only able to write Python programs but you are also able to build games using this computer to install PI game we are going to use a package manager called pip so so far we used apt-get so but now we are going to use pip so in order to do that we will first need to install tip on this so first we will use apt-get to install pip and then we will use pip to install pygame so the command to install tip will be sudo apt install Python 3 cache ERP it again asking if it's okay for it to use some disk space to continue they don't say yes just like how apt-get allows us to install Linux software on a Linux computer whip is another package management tool which allows us to install software packages written in Python at this point pip is installed so now we are going to use the PIP package manager to install PI gain so the command for installing PI game will be sudo pip3 install PI game so pygame is successfully installed in order to check if the pi game was successfully set up in your python ide so you can open your Python shell and say import by game and if you do not get any errors that means by game is successfully installed so it says PI game 196 hello from Piegan community so seems like we're all good so our Python is installed and we have an icon on our on our shelf for it and PI game is also installed that's how you set up your Chromebook for writing programs and also building games you can also use Chromebook to learn to scratch in order to use Chromebook for scratch all you have to do is open your Chrome browser and go to scratch.mit.edu if you already have an account log in using your account if you do not have an account you can join scratch create an account and login using that and even if you don't want to create an account and you want to start working on it right away you can just click on this start creating button and start using scratch so scratch is a great way to learn the foundational concepts of computer science whether it be sequencing branching looping variables or more so you can start off with that and get a very good understanding and build critical thinking you
Info
Channel: YoungWonks
Views: 63,071
Rating: undefined out of 5
Keywords: coding, on, chromebook, google, chrome, book, linux, crostini, how, to, tutorial, steps, programming, engineering, youngwonks, young, wonks, kids, teens, online, classes, python, scratch, pygame, idle, stem, steam, robotics, chromium, os
Id: pPHW3ax7Ojc
Channel Id: undefined
Length: 10min 1sec (601 seconds)
Published: Thu May 09 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.