{"id":2040,"date":"2018-06-30T16:34:50","date_gmt":"2018-06-30T21:34:50","guid":{"rendered":"http:\/\/www.wildow.com\/blog\/?p=2040"},"modified":"2018-06-30T16:34:50","modified_gmt":"2018-06-30T21:34:50","slug":"2040","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=2040","title":{"rendered":""},"content":{"rendered":"<p><a href=\"https:\/\/blog.drewolson.org\/so-you-bought-a-pixelbook\/\">So You Bought a Pixelbook<\/a><br \/>\nInitial Setup<br \/>\nFirst, follow the Quickstart instructions here.<\/p>\n<p>You now have two things set up &#8212; a VM called termina and a container inside of that VM called penguin. This VM and container are &#8220;special&#8221; &#8212; files within penguin are accessible via the Files app and any GUI applications installed inside of penguin will be accessible via the launcher. Other than that, penguin is just a regular debian stretch LXC container.<\/p>\n<p>To access a shell inside of pengiun (which is inside of termina), simply launch the Terminal program. This starts the termina VM (if not already started), starts the penguin container (if not already started) and drops you in a shell.<\/p>\n<p>Configure Terminal<br \/>\nAnnoyingly, the terminal bell is enabled by default. From within the Terminal program, press ctrl + shift + p. Here you can disable the bell, change your font size, etc.<\/p>\n<p>Set Up Crosh<br \/>\nTo create new VMs and containers you use crosh (Chrome Shell). You can launch it from inside of Chrome with ctrl + alt + t. Launching crosh in a Chrome tab isn&#8217;t ideal, though, because you can&#8217;t do things like switch windows in vim (e.g. ctrl + w + l) without accidentially closing the tab in Chrome. To solve this, install two extensions:<\/p>\n<p>Secure Shell App<br \/>\nCrosh Window<br \/>\nThis will give you a launchable program called Crosh Window that runs crosh in its own window. From inside Crosh Window, you&#8217;ll want to press ctrl + shift + p again to disable the bell and configure it to your liking.<\/p>\n<p>Fix Some penguin Issues<br \/>\nThe penguin container is where you want to do most of your work because it is tied into the rest of Chrome OS. That said, there&#8217;s one particular oddity it has &#8212; your user does not, by default, have a known password. This is a problem if you want to change your shell (among other things). To fix this we&#8217;ll connect to the container from crosh as root.<\/p>\n<p>First, launch Crosh Window and connect to the termina VM.<\/p>\n<p>vmc start termina<br \/>\nOnce connected to termina, connect to penguin as the root user using the provided run_container.sh script.<\/p>\n<p>run_container.sh &#8211;container_name penguin &#8211;user root &#8211;shell<br \/>\nNow, you can change your user&#8217;s password<\/p>\n<p>passwd<br \/>\nBack in the terminal app, you should be able to change your shell.<\/p>\n<p>sudo apt-get update<br \/>\nsudo apt-get install zsh<br \/>\nchsh -s \/bin\/zsh<br \/>\nGet a Working tmux<br \/>\nGoogle has done some special things to the Terminal app and penguin to keep the text sent to the shell secure. Unfortunately this doesn&#8217;t play nicely with the provided version of tmux in debian stretch. To solve this we need to install the backports apt repo and install the newer version of tmux.<\/p>\n<p>Add the following line to your \/etc\/apt\/sources.list file:<\/p>\n<p>deb http:\/\/ftp.debian.org\/debian stretch-backports main<br \/>\nNow install tmux from the backports repo.<\/p>\n<p>sudo apt-get update<br \/>\nsudo apt-get install -t stretch-backports tmux<br \/>\nInstall a GUI linux app<br \/>\nFrom inside of penguin, run:<\/p>\n<p>sudo apt-get install libreoffice<br \/>\nNow you can launch Libre Office directly from your launcher, no extra work required. Note that you can move files back and forth between Chrome OS and the linux container via the Files app (you&#8217;ll see a special Linux Files section on the left).<\/p>\n<p>Other resources<br \/>\nCrostini subreddit<br \/>\nCrostini subreddit wiki<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So You Bought a Pixelbook Initial Setup First, follow the Quickstart instructions here. You now have two things set up &#8212; a VM called termina and a container inside of that VM called penguin. This VM and container are &#8220;special&#8221; &#8230; <a class=\"more-link\" href=\"http:\/\/www.wildow.com\/blog\/?p=2040\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2040","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2040"}],"version-history":[{"count":1,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2040\/revisions"}],"predecessor-version":[{"id":2041,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2040\/revisions\/2041"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2040"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}