Skip to content

Instantly share code, notes, and snippets.

@payne
Forked from cassiozen/pixelbook-dev-setup.md
Created April 13, 2021 00:16
Show Gist options
  • Save payne/b46d5ebe461b9321e63c510177de6fc8 to your computer and use it in GitHub Desktop.
Save payne/b46d5ebe461b9321e63c510177de6fc8 to your computer and use it in GitHub Desktop.

Revisions

  1. @cassiozen cassiozen revised this gist Nov 2, 2018. 1 changed file with 6 additions and 7 deletions.
    13 changes: 6 additions & 7 deletions pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -32,13 +32,6 @@ Pixelbook's power button has a built-in 2fa/2sv key (think YubiKey), but it's di
    u2f_flags u2f
    ```

    ## Enable File Sharing between Chrome OS and Linux

    1. Go to chrome://flags and turn on 'crostini-files'.
    1. Right-click on folders in FilesApp and select 'Share with Linux'
    1. Folders will show up in /ChromeOS/Downloads/ inside linux.


    # Linux Setup

    ## Enable Linux Apps
    @@ -76,6 +69,12 @@ fc-cache -vf ~/.local/share/fonts
    fc-list | grep [your font name] # To verify
    ```

    ## Enable File Sharing between Chrome OS and Linux

    1. Go to chrome://flags and turn on 'crostini-files'.
    1. Right-click on folders in FilesApp and select 'Share with Linux'
    1. Folders will show up in /ChromeOS/Downloads/ inside linux.

    ## Applications

    Crostini (the Linux container on Chrome OS) understands Debian installation packages (`.deb`) - You can just download any installer, drag to the "Linux files" folder using the file manager and double-click it.
  2. @cassiozen cassiozen revised this gist Oct 29, 2018. 1 changed file with 24 additions and 8 deletions.
    32 changes: 24 additions & 8 deletions pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -32,6 +32,13 @@ Pixelbook's power button has a built-in 2fa/2sv key (think YubiKey), but it's di
    u2f_flags u2f
    ```

    ## Enable File Sharing between Chrome OS and Linux

    1. Go to chrome://flags and turn on 'crostini-files'.
    1. Right-click on folders in FilesApp and select 'Share with Linux'
    1. Folders will show up in /ChromeOS/Downloads/ inside linux.


    # Linux Setup

    ## Enable Linux Apps
    @@ -69,13 +76,13 @@ fc-cache -vf ~/.local/share/fonts
    fc-list | grep [your font name] # To verify
    ```

    ## Enable File Sharing between Chrome OS and Linux
    ## Applications

    1. Go to chrome://flags and turn on 'crostini-files'.
    1. Right-click on folders in FilesApp and select 'Share with Linux'
    1. Folders will show up in /ChromeOS/Downloads/ inside linux.
    Crostini (the Linux container on Chrome OS) understands Debian installation packages (`.deb`) - You can just download any installer, drag to the "Linux files" folder using the file manager and double-click it.

    ## Applications
    And, being debian you also have `apt-get`.

    Here are some examples

    ### Tilix (Terminal alternative)

    @@ -102,10 +109,18 @@ sudo apt-get install ./code.deb
    ```


    By Default, VSCode opens with weird cursor sizes and scroll issues. This can be fixed by editing the `code.desktop` file and your user settings in VSCode:
    ## HiDPI & Sommelier

    The Pixelbook has a high-density display (HiDPI, roughly equivalent to the "Retina display" term if you're comming from a Mac), but not all Linux apps are prepared to appear correctly in HiDPI displays. They can appear small or have regular size with tiny cursor...

    The good news is that you can use ChromeOS's built-in tool `Sommelier` to customize zoom levels for linux applications.

    **`/usr/share/applications/code.desktop`**

    ### Example Sommelier setup (with Visual Studio Code)
    Many installed programs will generate a `.desktop` file in /usr/share/applications, it contains an app description as well as its icon and launch command.


    #### Example: `/usr/share/applications/code.desktop`

    Change `Exec` entries to specify Sommelier's DPI and zoom level:

    @@ -133,7 +148,8 @@ Icon=code
    ```

    **VSCode User settings**

    Specifically for VSCode, I would also suggest adding these to your user settings

    ```
    "window.titleBarStyle": "custom",
  3. @cassiozen cassiozen revised this gist Oct 29, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -29,7 +29,7 @@ You can then quick-switch between users with CTRL+ALT+, & CTRL+ALT+.
    Pixelbook's power button has a built-in 2fa/2sv key (think YubiKey), but it's disabled by default. If you use Two-Factor authentication on GitHub, Gmail etc, you can turn it on by entering this command on the Crosh shell (Ctrl+Alt+T):

    ```
    u2f_flags g2f
    u2f_flags u2f
    ```

    # Linux Setup
  4. @cassiozen cassiozen revised this gist Oct 27, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -107,7 +107,7 @@ By Default, VSCode opens with weird cursor sizes and scroll issues. This can be

    **`/usr/share/applications/code.desktop`**

    Change `Exec` entries to specify Sommelier's DPI and disable hardware acceleration (Not yet available on the linux container):
    Change `Exec` entries to specify Sommelier's DPI and zoom level:

    ```
    [Desktop Entry]
  5. @cassiozen cassiozen revised this gist Oct 27, 2018. 1 changed file with 5 additions and 4 deletions.
    9 changes: 5 additions & 4 deletions pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -98,7 +98,7 @@ fi

    ```sh
    curl -L https://go.microsoft.com/fwlink/?LinkID=760868 > code.deb
    sudo apt-get install libxss1 libasound2 ./code.deb
    sudo apt-get install ./code.deb
    ```


    @@ -114,7 +114,7 @@ Change `Exec` entries to specify Sommelier's DPI and disable hardware accelerati
    Name=Visual Studio Code
    Comment=Code Editing. Redefined.
    GenericName=Text Editor
    Exec=sommelier --dpi=235 -X /usr/share/code/code "--disable-gpu --unity-launch %F"
    Exec=sommelier -X --scale=0.7 --dpi=160 /usr/share/code/code "--unity-launch %F"
    Icon=code
    Type=Application
    StartupNotify=true
    @@ -128,14 +128,15 @@ X-Desktop-File-Install-Version=0.23
    [Desktop Action new-empty-window]
    Name=New Empty Window
    Exec=sommelier --dpi=235 -X /usr/share/code/code "--disable-gpu --new-window %F"
    Exec=sommelier -X --scale=0.7 --dpi=160 /usr/share/code/code "--new-window %F"
    Icon=code
    ```

    **VSCode User settings**

    ```
    "window.titleBarStyle": "custom",
    "window.zoomLevel": 3.5,
    "window.zoomLevel": 2,
    "editor.mouseWheelScrollSensitivity": 0.5
    ```
  6. @cassiozen cassiozen revised this gist Oct 26, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,8 @@ Some of the features mentioned in this document only work on the beta or Dev cha

    ## Fast User Switching

    If you have multiple accounts (Say, work and play), you can quickly sitch between them without logging out:

    1. Open the status area (the bottom-right menu)
    1. Click your account photo.
    1. Click Sign in another user.
  7. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -41,7 +41,7 @@ u2f_flags g2f
    ## Initial setup of container

    ```sh
    sudo apt-get update
    sudo apt-get update && sudo apt-get dist-upgrade
    ```

    ## Generate new SSH Key
  8. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    ## Change your channel

    Some of the features bellow only work on the beta or Dev channel:
    Some of the features mentioned in this document only work on the beta or Dev channel. To change your channel:

    1. chrome://help in a browser window
    1. Click Detailed Build Information
  9. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    ## Change your channel

    For some of these features, you will need to be on the beta (or Dev) channel:
    Some of the features bellow only work on the beta or Dev channel:

    1. chrome://help in a browser window
    1. Click Detailed Build Information
  10. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -2,12 +2,12 @@

    ## Change your channel

    For some of these features, you will need to be on the beta channel:
    For some of these features, you will need to be on the beta (or Dev) channel:

    1. chrome://help in a browser window
    1. Click Detailed Build Information
    1. Change Channel
    1. Select Beta
    1. Select Beta (Or Dev, if you're feeling adventurous)
    1. Wait for Chromebook to download an update then show icon in bottom left
    1. Restart when update is ready

    @@ -30,8 +30,6 @@ Pixelbook's power button has a built-in 2fa/2sv key (think YubiKey), but it's di
    u2f_flags g2f
    ```

    > You might need to be on "Dev" channel to enable this feature
    # Linux Setup

    ## Enable Linux Apps
  11. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -69,6 +69,12 @@ fc-cache -vf ~/.local/share/fonts
    fc-list | grep [your font name] # To verify
    ```

    ## Enable File Sharing between Chrome OS and Linux

    1. Go to chrome://flags and turn on 'crostini-files'.
    1. Right-click on folders in FilesApp and select 'Share with Linux'
    1. Folders will show up in /ChromeOS/Downloads/ inside linux.

    ## Applications

    ### Tilix (Terminal alternative)
  12. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ You can then quick-switch between users with CTRL+ALT+, & CTRL+ALT+.

    ## Enable Power Button as 2FA

    Pixelbook's power button has a built-in 2fa/2sv (Think YubiKey), but it's disabled by default. If you use Two-Factor authentication on GitHub, Gmail etc, you can turn it on by entering this command on the Crosh shell (Ctrl+Alt+T):
    Pixelbook's power button has a built-in 2fa/2sv key (think YubiKey), but it's disabled by default. If you use Two-Factor authentication on GitHub, Gmail etc, you can turn it on by entering this command on the Crosh shell (Ctrl+Alt+T):

    ```
    u2f_flags g2f
  13. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -30,6 +30,7 @@ Pixelbook's power button has a built-in 2fa/2sv (Think YubiKey), but it's disabl
    u2f_flags g2f
    ```

    > You might need to be on "Dev" channel to enable this feature
    # Linux Setup

  14. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 16 additions and 11 deletions.
    27 changes: 16 additions & 11 deletions pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,16 @@
    # Pixelbook Setup

    ## Change your channel

    For some of these features, you will need to be on the beta channel:

    1. chrome://help in a browser window
    1. Click Detailed Build Information
    1. Change Channel
    1. Select Beta
    1. Wait for Chromebook to download an update then show icon in bottom left
    1. Restart when update is ready

    ## Fast User Switching

    1. Open the status area (the bottom-right menu)
    @@ -22,17 +33,11 @@ u2f_flags g2f

    # Linux Setup

    - Switch to `dev` channel
    - `chrome://help` in a browser window
    - Click **Detailed Build Information**
    - Change Channel
    - Select **Developer - unstable**
    - Wait for Chromebook to download an update then show icon in bottom left
    - Restart when update is ready
    - Enable Linux Apps
    - Open drawer in bottom right and click gear icon
    - Scroll down to find **Linux Apps** or **Linux (Beta)** and select **TURN ON**
    - After the install runs, you should have an application in ChromeOS called `Terminal`
    ## Enable Linux Apps

    1. Open drawer in bottom right and click gear icon
    1. Scroll down to find **Linux Apps** or **Linux (Beta)** and select **TURN ON**
    1. After the install runs, you should have an application in ChromeOS called `Terminal`

    ## Initial setup of container

  15. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -65,7 +65,7 @@ fc-list | grep [your font name] # To verify

    ## Applications

    ### Install Tilix (Terminal alternative)
    ### Tilix (Terminal alternative)

    ```sh
    echo 'deb http://ftp.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list
    @@ -82,7 +82,7 @@ if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
    fi
    ```

    ### Install VSCode
    ### VSCode

    ```sh
    curl -L https://go.microsoft.com/fwlink/?LinkID=760868 > code.deb
  16. @cassiozen cassiozen renamed this gist Oct 25, 2018. 1 changed file with 23 additions and 9 deletions.
    32 changes: 23 additions & 9 deletions pixelbook-linux-setup.md → pixelbook-dev-setup.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,26 @@
    # Pixelbook Linux Setup
    # Pixelbook Setup

    ## Fast User Switching

    1. Open the status area (the bottom-right menu)
    1. Click your account photo.
    1. Click Sign in another user.
    1. You'll see a reminder to use the feature only with people you trust. Click OK.
    1. Pick a person, then enter their password. You can add up to 7 users.

    You can then quick-switch between users with CTRL+ALT+, & CTRL+ALT+.


    ## Enable Power Button as 2FA

    Pixelbook's power button has a built-in 2fa/2sv (Think YubiKey), but it's disabled by default. If you use Two-Factor authentication on GitHub, Gmail etc, you can turn it on by entering this command on the Crosh shell (Ctrl+Alt+T):

    ```
    u2f_flags g2f
    ```


    # Linux Setup

    - Switch to `dev` channel
    - `chrome://help` in a browser window
    @@ -32,14 +54,6 @@ cat .ssh/id_rsa.pub

    `sudo passwd root`

    ## Enable Power Button as 2FA

    Pixelbook's power button has a built-in 2fa/2sv (Think YubiKey), but it's disabled by default. If you use Two-Factor authentication on GitHub, Gmail etc, you can turn it on by entering this command on the Crosh shell (Ctrl+Alt+T):

    ```
    u2f_flags g2f
    ```

    ## Install Fonts

    - Copy .ttf file to ~/.local/share/fonts
  17. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -75,12 +75,11 @@ curl -L https://go.microsoft.com/fwlink/?LinkID=760868 > code.deb
    sudo apt-get install libxss1 libasound2 ./code.deb
    ```

    #### VS Code Hints

    By Default, VSCode opens with weird cursor sizes and scroll issues. This can be fixed by editing the `code.desktop` file and your user settings in VSCode:


    *`/usr/share/applications/code.desktop`*
    **`/usr/share/applications/code.desktop`**

    Change `Exec` entries to specify Sommelier's DPI and disable hardware acceleration (Not yet available on the linux container):

    @@ -107,7 +106,7 @@ Exec=sommelier --dpi=235 -X /usr/share/code/code "--disable-gpu --new-window %F"
    Icon=code
    ```

    *VSCode User settings*
    **VSCode User settings**

    ```
    "window.titleBarStyle": "custom",
  18. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 9 additions and 3 deletions.
    12 changes: 9 additions & 3 deletions pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -68,13 +68,19 @@ if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
    fi
    ```

    ### Install VSCode

    ### VS Code Hints
    ```sh
    curl -L https://go.microsoft.com/fwlink/?LinkID=760868 > code.deb
    sudo apt-get install libxss1 libasound2 ./code.deb
    ```

    #### VS Code Hints

    By Default, VSCode opens with weird cursor sizes and scroll issues. This can be fixed by editing the `code.desktop` file and your user settings in VSCode:


    #### `/usr/share/applications/code.desktop`
    *`/usr/share/applications/code.desktop`*

    Change `Exec` entries to specify Sommelier's DPI and disable hardware acceleration (Not yet available on the linux container):

    @@ -101,7 +107,7 @@ Exec=sommelier --dpi=235 -X /usr/share/code/code "--disable-gpu --new-window %F"
    Icon=code
    ```

    #### VSCode User settings
    *VSCode User settings*

    ```
    "window.titleBarStyle": "custom",
  19. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -101,7 +101,7 @@ Exec=sommelier --dpi=235 -X /usr/share/code/code "--disable-gpu --new-window %F"
    Icon=code
    ```

    #### User settings
    #### VSCode User settings

    ```
    "window.titleBarStyle": "custom",
  20. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -51,7 +51,7 @@ fc-list | grep [your font name] # To verify

    ## Applications

    ### Tilix (Terminal)
    ### Install Tilix (Terminal alternative)

    ```sh
    echo 'deb http://ftp.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list
  21. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -32,6 +32,14 @@ cat .ssh/id_rsa.pub

    `sudo passwd root`

    ## Enable Power Button as 2FA

    Pixelbook's power button has a built-in 2fa/2sv (Think YubiKey), but it's disabled by default. If you use Two-Factor authentication on GitHub, Gmail etc, you can turn it on by entering this command on the Crosh shell (Ctrl+Alt+T):

    ```
    u2f_flags g2f
    ```

    ## Install Fonts

    - Copy .ttf file to ~/.local/share/fonts
  22. @cassiozen cassiozen revised this gist Oct 25, 2018. 1 changed file with 31 additions and 82 deletions.
    113 changes: 31 additions & 82 deletions pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,5 @@
    # Pixelbook Linux Setup

    ## Chromebook Configuration [[LINK]](https://www.reddit.com/r/Crostini/wiki/getstarted/your-first-container)

    - Switch to `dev` channel
    - `chrome://help` in a browser window
    - Click **Detailed Build Information**
    @@ -17,7 +15,6 @@
    ## Initial setup of container

    ```sh
    vmc start dev
    sudo apt-get update
    ```

    @@ -31,53 +28,22 @@ cat .ssh/id_rsa.pub
    # Paste in GitHub/GitLab
    ```

    ## Clone dotfiles

    `git clone [email protected]:denolfe/dotfiles.git ~/.dotfiles --recursive`

    ## Clone pixelbook-provision ansible repo

    ```sh
    git clone [email protected]:denolfe/pixelbook-provision.git
    sudo apt-get install ansible -y
    sudo ansible-playbook main.yml
    ```

    ## Set Password

    `sudo passwd root`

    ## Change shell

    ```sh
    sudo chsh -s $(which zsh)
    sudo usermod -s `which zsh` `whoami`
    ```

    ## Fix Timezone

    `sudo dpkg-reconfigure tzdata` and select correct timezone

    ## Nerd Font

    [Liberation Mono Nerd Font](https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/LiberationMono/complete)
    ## Install Fonts

    - Copy .ttf file to ~/.local/share/fonts

    ```sh
    fc-cache -vf ~/.local/share/fonts
    fc-list | grep Nerd # To verify
    fc-list | grep [your font name] # To verify
    ```

    - Add `LiterationMono Nerd Font` to VS Code

    ## Applications

    ### Konsole

    `sudo apt-get install konsole -y`

    ### Tilix
    ### Tilix (Terminal)

    ```sh
    echo 'deb http://ftp.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list
    @@ -95,59 +61,42 @@ fi
    ```


    ### VS Code

    ```sh
    curl -L https://go.microsoft.com/fwlink/?LinkID=760868 > code.deb
    sudo apt-get install libxss1 libasound2 ./code.deb
    ```
    ### VS Code Hints

    ### Slack
    By Default, VSCode opens with weird cursor sizes and scroll issues. This can be fixed by editing the `code.desktop` file and your user settings in VSCode:

    - Download latest `.deb` from https://slack.com/downloads
    - `sudo dpkg -i slack-desktop-*-amd64.deb`
    - This step will fail
    - `sudo apt-get install -f` will succeed in installing slack
    - Slack icon will now be in drawer
    - *Slack timezone still not showing correctly despite the timezone being set in the app. Must investigate if this needs to be changed in debian to fix.*

    ### Docker
    #### `/usr/share/applications/code.desktop`

    - [Link](https://gist.github.com/upbeta01/3b968320b3a579c326ab6cd2a195b10d)
    Change `Exec` entries to specify Sommelier's DPI and disable hardware acceleration (Not yet available on the linux container):

    ```sh
    curl -L https://gist.github.com/upbeta01/3b968320b3a579c326ab6cd2a195b10d/raw/196eb33a6e4b5ef9abae98d9e221ebd62a61fd65/install-docker-deb9.sh | bash
    ```

    ### .NET Core

    - [Link](https://www.microsoft.com/net/download/linux-package-manager/debian9/sdk-2.1.300)

    ```sh
    wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
    sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
    wget -q https://packages.microsoft.com/config/debian/9/prod.list
    sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
    sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
    sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list

    sudo apt-get update
    sudo apt-get install dotnet-sdk-2.1
    [Desktop Entry]
    Name=Visual Studio Code
    Comment=Code Editing. Redefined.
    GenericName=Text Editor
    Exec=sommelier --dpi=235 -X /usr/share/code/code "--disable-gpu --unity-launch %F"
    Icon=code
    Type=Application
    StartupNotify=true
    StartupWMClass=Code
    Categories=Utility;TextEditor;Development;IDE;
    MimeType=text/plain;inode/directory;
    Actions=new-empty-window;
    Keywords=vscode;
    X-Desktop-File-Install-Version=0.23
    [Desktop Action new-empty-window]
    Name=New Empty Window
    Exec=sommelier --dpi=235 -X /usr/share/code/code "--disable-gpu --new-window %F"
    Icon=code
    ```

    ### Node.js
    #### User settings

    ```sh
    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
    nvm install node # Installs latest
    node -v # Ensure intended version
    ```

    ### MongoDB

    ```sh
    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
    echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
    sudo apt-get update
    sudo apt-get install -y mongodb-org
    "window.titleBarStyle": "custom",
    "window.zoomLevel": 3.5,
    "editor.mouseWheelScrollSensitivity": 0.5
    ```
  23. @denolfe denolfe revised this gist Jul 24, 2018. 1 changed file with 18 additions and 0 deletions.
    18 changes: 18 additions & 0 deletions pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -77,6 +77,24 @@ fc-list | grep Nerd # To verify

    `sudo apt-get install konsole -y`

    ### Tilix

    ```sh
    echo 'deb http://ftp.debian.org/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list
    sudo apt update
    sudo apt -y install tilix
    sudo ln -s /etc/profile.d/vte-2.91.sh /etc/profile.d/vte.sh
    ```

    Add to path

    ```sh
    if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
    source /etc/profile.d/vte.sh
    fi
    ```


    ### VS Code

    ```sh
  24. @denolfe denolfe revised this gist Jul 24, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -69,6 +69,8 @@ fc-cache -vf ~/.local/share/fonts
    fc-list | grep Nerd # To verify
    ```

    - Add `LiterationMono Nerd Font` to VS Code

    ## Applications

    ### Konsole
  25. @denolfe denolfe revised this gist Jul 23, 2018. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -58,6 +58,17 @@ sudo usermod -s `which zsh` `whoami`

    `sudo dpkg-reconfigure tzdata` and select correct timezone

    ## Nerd Font

    [Liberation Mono Nerd Font](https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/LiberationMono/complete)

    - Copy .ttf file to ~/.local/share/fonts

    ```sh
    fc-cache -vf ~/.local/share/fonts
    fc-list | grep Nerd # To verify
    ```

    ## Applications

    ### Konsole
  26. @denolfe denolfe revised this gist Jul 23, 2018. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -111,3 +111,12 @@ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | b
    nvm install node # Installs latest
    node -v # Ensure intended version
    ```

    ### MongoDB

    ```sh
    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
    echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
    sudo apt-get update
    sudo apt-get install -y mongodb-org
    ```
  27. @denolfe denolfe revised this gist Jul 23, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -51,7 +51,7 @@ sudo ansible-playbook main.yml

    ```sh
    sudo chsh -s $(which zsh)
    zsh
    sudo usermod -s `which zsh` `whoami`
    ```

    ## Fix Timezone
  28. @denolfe denolfe revised this gist Jul 23, 2018. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -49,7 +49,10 @@ sudo ansible-playbook main.yml

    ## Change shell

    `sudo chsh -s $(which zsh)`
    ```sh
    sudo chsh -s $(which zsh)
    zsh
    ```

    ## Fix Timezone

  29. @denolfe denolfe revised this gist Jul 23, 2018. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -31,6 +31,18 @@ cat .ssh/id_rsa.pub
    # Paste in GitHub/GitLab
    ```

    ## Clone dotfiles

    `git clone [email protected]:denolfe/dotfiles.git ~/.dotfiles --recursive`

    ## Clone pixelbook-provision ansible repo

    ```sh
    git clone [email protected]:denolfe/pixelbook-provision.git
    sudo apt-get install ansible -y
    sudo ansible-playbook main.yml
    ```

    ## Set Password

    `sudo passwd root`
  30. @denolfe denolfe revised this gist Jul 23, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions pixelbook-linux-setup.md
    Original file line number Diff line number Diff line change
    @@ -26,6 +26,7 @@ sudo apt-get update
    ```sh
    ssh-keygen -t rsa -b 4096 -C pixelbook
    eval "$(ssh-agent -s)"
    ssh-add ~/.ssh/id_rsa
    cat .ssh/id_rsa.pub
    # Paste in GitHub/GitLab
    ```