

Reference types default to null to indicate that they are not referencing any object. Reference variables in c# and JavaScript are similar in concept to pointers in C and C++. The run-time will tell you that you are trying to access an object, when the variable is null by issuing a NullReferenceException. If a reference variable isn’t referencing an object, then it’ll be treated as null. Note: This script will not work for ARM-powered Chromebooks.A NullReferenceException happens when you try to access a reference variable that isn’t referencing any object. Still, if you want to play games like Portal or Half-Life, this will do the trick on most Intel Core Chromebooks. I was able to play Source like Day of Defeat just fine but it’s clearly not as smooth as running Steam on Windows or straight Linux. Running Steam in the default Linux container works but the gaming experience is far from perfect. Keep in mind, Borealis is still a work in progress and I’m sure that developers are working to get the experience running very well before it makes its debut. Once the installation is done, you should find the Steam icon in your app launcher. usr/bin/curl -L "" | /usr/bin/base64 -d > /tmp/crostini-steam-setup.sh /bin/chmod a+x /tmp/crostini-steam-setup.sh /usr/bin/sudo /tmp/crostini-steam-setup.sh Hit enter and sit back while the process completes. To paste it into the terminal, right-click(2-finger click) anywhere inside the terminal and it will paste the code. To do this, highlight the entire code, right-click, and click copy. You can find it in your Chrome OS app launcher under the name “Terminal.” Paste the following commands into the terminal. To download and run the installer, open the Linux terminal. Installing this script will install Steam as well as all of the libraries and dependencies needed to make it run properly in the Debian container on Chrome OS. Restart the browser and now we can install Steam. Drop this URL in your browser and enable the flag. Without it, you will find yourself unable to turn further than 90 degrees left or right. This will allow your cursor to lock to the bounds of the display when you’re in-game. Now that you’re done with that, you’ll probably want to enable the pointer lock flag for Linux.

You can learn all about getting started with Linux on Chrome OS in this article from our Command Line series. To get started, you’ll need to make sure your Chromebook is up to date and ready for Linux apps.
