<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pierre Carrier on Medium]]></title>
        <description><![CDATA[Stories by Pierre Carrier on Medium]]></description>
        <link>https://medium.com/@pcarrier?source=rss-d8dfe87c1be7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*3CO1CKsW61CR8KV_.jpeg</url>
            <title>Stories by Pierre Carrier on Medium</title>
            <link>https://medium.com/@pcarrier?source=rss-d8dfe87c1be7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:58:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pcarrier/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Chromebook for devs]]></title>
            <link>https://medium.com/@pcarrier/developer-chromebook-101-435e76d55d88?source=rss-d8dfe87c1be7------2</link>
            <guid isPermaLink="false">https://medium.com/p/435e76d55d88</guid>
            <dc:creator><![CDATA[Pierre Carrier]]></dc:creator>
            <pubDate>Thu, 19 Mar 2015 20:28:35 GMT</pubDate>
            <atom:updated>2015-03-31T07:44:32.377Z</atom:updated>
            <content:encoded><![CDATA[<p>Those notes assume the reader is <strong>very</strong> familiar with Unix environments. Get out whilst you can.</p><p>Put your Chromebook in developer mode. <a href="https://www.chromium.org/chromium-os/poking-around-your-chrome-os-device#TOC-Putting-your-Chrome-OS-Device-into-Developer-Mode">Read carefully about the procedure and its implications</a>. Be ready to wipe your Chromebook again if things go South.</p><p>Use <a href="https://chrome.google.com/webstore/detail/crosh-window/nhbmpbdladcchdhkemlojfjdknjadhmh">Crosh Window</a> so keyboard shortcuts won’t get swallowed.</p><h3>Install Ubuntu</h3><p>Install <a href="https://github.com/dnschneid/crouton">Crouton</a>, get a chroot up and running:</p><pre>crosh&gt; shell<br>chronos@localhost ~ $ sudo sh -e ~/Downloads/crouton -r trusty -t xiwi -e</pre><h3>Convenience launchers</h3><h4>/usr/local/bin/s</h4><p>Useful to quickly open a shell or run a command in the chroot.</p><pre>crosh&gt; shell<br>chronos@localhost ~ $ sudo tee /usr/local/bin/s &lt;&lt;EOF<br>#!/bin/sh<br>exec sudo enter-chroot -l &quot;\$@&quot;<br>EOF<br>chronos@localhost ~ $ sudo chmod a+x /usr/local/bin/s</pre><h4>/usr/local/bin/x</h4><p>Starts your X environment.</p><pre>crosh&gt; shell<br>chronos@localhost ~ $ sudo tee /usr/local/bin/x &lt;&lt;EOF<br>#!/bin/sh<br>exec sudo enter-chroot xinit<br>EOF<br>chronos@localhost ~ $ sudo chmod a+x /usr/local/bin/x</pre><h3>Configure apt</h3><p>Make those changes before installing anything.</p><h4>/etc/apt/apt.conf.d/90noextras</h4><p>Not much room on your average Chromebook, so let’s minimize disk utilization.</p><pre>APT::Install-Recommends “false”;<br>APT::AutoRemove::RecommendsImportant “false”;<br>APT::AutoRemove::SuggestsImportant “false”;<br>Acquire::Languages “none”;</pre><h4>/etc/apt/preferences.d/backports</h4><p>Backports are a no-brainer for zsh users, as our favourite shell won’t have manpages otherwise. We enable them for all packages here.</p><pre>Package: *<br>Pin: release a=trusty-backports<br>Pin-Priority: 500</pre><h4>/etc/apt/sources.list</h4><p>Pick and choose, I doubt you want them all…</p><pre>deb <a href="http://us.archive.ubuntu.com/ubuntu/">http://us.archive.ubuntu.com/ubuntu/</a> trusty main restricted universe multiverse<br>deb <a href="http://us.archive.ubuntu.com/ubuntu/">http://us.archive.ubuntu.com/ubuntu/</a> trusty-updates main restricted universe multiverse<br>deb <a href="http://us.archive.ubuntu.com/ubuntu/">http://us.archive.ubuntu.com/ubuntu/</a> trusty-backports main restricted universe multiverse<br>deb <a href="http://security.ubuntu.com/ubuntu">http://security.ubuntu.com/ubuntu</a> trusty-security main restricted universe multiverse<br>deb <a href="http://extras.ubuntu.com/ubuntu">http://extras.ubuntu.com/ubuntu</a> trusty main<br>deb <a href="http://us.archive.canonical.com/ubuntu/">http://archive.canonical.com/ubuntu/</a> trusty partner<br>deb <a href="http://repos.azulsystems.com/ubuntu">http://repos.azulsystems.com/ubuntu</a> stable main<br>deb <a href="http://dl.google.com/linux/chrome/deb/">http://dl.google.com/linux/chrome/deb/</a> stable main<br>deb http://dl.google.com/linux/chrome-remote-desktop/deb/ stable main<br>deb <a href="http://linux.dropbox.com/ubuntu">http://linux.dropbox.com/ubuntu</a> trusty main<br>deb <a href="http://downloads.hipchat.com/linux/apt">http://downloads.hipchat.com/linux/apt</a> stable main<br>deb <a href="http://repository.spotify.com/">http://repository.spotify.com</a> stable non-free<br>deb <a href="http://archive.getdeb.net/ubuntu">http://archive.getdeb.net/ubuntu</a> trusty-getdeb apps games<br>deb <a href="https://get.docker.io/ubuntu">https://get.docker.io/ubuntu</a> docker main<br>deb <a href="http://debian.sur5r.net/i3/">http://debian.sur5r.net/i3/</a> trusty universe<br>deb <a href="http://winswitch.org/">http://winswitch.org/</a> trusty main<br>deb http://debrepos.franzoni.eu/atom squeeze main<br>deb <a href="http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu">http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu</a> trusty main<br>deb <a href="http://ppa.launchpad.net/git-core/ppa/ubuntu">http://ppa.launchpad.net/git-core/ppa/ubuntu</a> trusty main<br>deb <a href="http://ppa.launchpad.net/nowrep/qupzilla/ubuntu">http://ppa.launchpad.net/nowrep/qupzilla/ubuntu</a> trusty main <br>deb <a href="http://ppa.launchpad.net/noobslab/indicators/ubuntu">http://ppa.launchpad.net/noobslab/indicators/ubuntu</a> trusty main<br>deb <a href="http://ppa.launchpad.net/mc3man/trusty-media/ubuntu">http://ppa.launchpad.net/mc3man/trusty-media/ubuntu</a> trusty main <br>deb <a href="http://ppa.launchpad.net/hugegreenbug/cmt2/ubuntu">http://ppa.launchpad.net/hugegreenbug/cmt2/ubuntu</a> trusty main <br>deb <a href="http://ppa.launchpad.net/modriscoll/nzbget/ubuntu">http://ppa.launchpad.net/modriscoll/nzbget/ubuntu</a> trusty main</pre><h4>First apt-get update</h4><p>apt-get update will complain about missing keys. To import them, use something like:</p><pre>% sudo apt-key adv --keyserver pgp.mit.edu --recv<br>1234567890ABCDEF FEDCBA0987654321</pre><p>You should be verifying those PGP keys. [insert thought-through security blah blah everybody will ignore]</p><h3>Configure the X session</h3><p>As i3 maps quite a lot under its modifier, I use Mod4 (presented by i3 as “win” during the configuration assistant) but make it Right Alt instead of the Search key to avoid any conflicts. Sorry to users of non-US keyboards.</p><h4>~/.xinitrc</h4><pre>#!/bin/sh -e<br>xrdb -merge ~/.Xresources<br>xmodmap ~/.Xmodmap<br>exec zsh -lc &#39;exec i3&#39;</pre><h4>~/.Xmodmap</h4><pre>remove mod1 = Alt_R<br>add mod4 = Alt_R</pre><h4>~/.Xresources</h4><p>Really a matter of taste…</p><pre>URxvt*foreground: white<br>URxvt*background: black<br>URxvt*cursorColor: red</pre><h3>Running VPNs</h3><p>Make sure the resolvconf package isn’t installed so /etc/hosts will be correctly written, both in the crouton chroot and on the host (as crouton ties them together).</p><p>TUN devices get automatically destroyed by the network manager, shill, which will break OpenConnect, vpnc and OpenVPN. To disable this behaviour until the next boot:</p><pre>crosh&gt; shell<br>chronos@localhost / $ sudo initctl stop shill &amp;&amp; sudo shill --device-black-list=tun0,tun1</pre><h3>What’s next?</h3><p>I kept most of my personal configuration out of this document, but I’d be happy to explore more in future articles. Let me know what you’d like to see covered <a href="https://twitter.com/pcarrier">on Twitter</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=435e76d55d88" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>