![]() ![]() ![]() There are many pros and cons to this model, but fortunately for me, a browser and an SSH terminal is pretty much all I need. I have a Chrome extension installed that handles the SSH and then I have a RStudio Server on my Linux server. I use this a lot as it’s great for editing all sorts of files, not just R and it also has a terminal and file manager so I can be extremely productive with it. Recently however, Google introduced beta support for running Linux on top of Chrome OS. Chrome OS itself is actually based on Linux, but it’s not really exposed to the user. It’s only a beta at the minute, but it seems to work really well. So well in fact, that I thought I’d see if I could install the desktop version of RStudio on it, just for fun. We’ll go through how to install it in a moment, but I just wanted to start by saying that there are no real tricks in any of this. It’s all just a description of a beta feature of Chrome OS and some Linux commands, but the results are still pretty cool. Enabling Linux on Chrome OSįirstly, we need to establish if you have a Chromebook capable of running Linux. Have a look on the menu on the right hand side for ‘Linux (Beta)’ Open the main settings menu by clicking on the time in the bottom right then clicking the cog wheel icon. If you don’t have that option you’re out of luck. Support for this feature is expanded to new hardware quite regularly. If you have that option, click it - you should have the option to turn on the Linux feature.įollow the on-screen prompts to set up Linux on your Chromebook. ![]() That process can easily take 10 minutes or so, depending on the speed of your internet connection as it downloads. Once it’s complete though, it will launch a terminal session. As you can see from the prompt the hostname for the Linux session is “penguin”. Now at this point it’s a good idea to understand what we have in front of us. The command lsb_release -a tells us a little about what version of Linux we’re looking at. Installing Rĭebian Linux has a version of R in its standard repositories, and has done since 1997 apparently! Let’s see which version is available at the moment: sudo apt search r-base | grep ^r-base This information will be useful later on. ![]() Nothing wrong with R 3.3.3 but it’s a bit long in the tooth now and I’d prefer a newer version.įortunately, CRAN has information about installing a newer version and the rest of this section just covers the important parts of that process. Install gnupg2 and then use it to import the key for the repo: sudo apt install -y gnupg2 We’re going to configure an additional Debian package repository on our Linux system as that has a newer version of R available in it. We need to add this line to the end of the file: deb stretch-cran35 Now add the repository to the system configuration: sudo vi /etc/apt/sources.list The repos are cryptographically ‘signed’ by the package publisher to prove their provenance, so this is an important part of maintaining the security of your system. (You can edit this line to reflect your preferred CRAN mirror if you’d like. Paste the repo config line with ‘ctrl+shift+v’.press ‘o’ to add a new line underneath and to switch to insert mode.press ‘shift+g’ to go to the last line of the file.The ‘vi’ editor can be intimidating if you’re not familiar with how it works, but we just need to add a single line at the end of the file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |