Ubuntu + Windows + .dotfiles
Tags: howto, shellbash, windows, windows10
Published: 2021-10-17 13:44:58

---
title: Ubuntu + Windows + .dotfiles
published: true
date: 2017-04-05 20:51:09 UTC
tags: HowTo,ShellBash,Windows,Windows10
canonical_url: http://suckup.de/2017/04/ubuntu-windows-dotfiles/?pk_campaign=feed&pk_kwd=ubuntu-windows-dotfiles&utm_source=rss&utm_medium=rss&utm_campaign=ubuntu-windows-dotfiles
---

[Ubuntu + Windows + .dotfiles](http://suckup.de/2017/04/ubuntu-windows-dotfiles/?pk_campaign=feed&pk_kwd=ubuntu-windows-dotfiles)

**1.** Open “Update & Security” > “For Developers” > activate the “Developer Mode”.

[![](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_3-300x159.png)](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_3.png)

**2.** Under “Programs” > “Programs and Features”, click “Turn Windows Features On or Off”.

[![](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_1-1-300x226.png)](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_1-1.png)

**3.**  Enable the “Windows Subsystem for Linux (Beta)” option in the list and click “OK”.

[![](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_2-300x266.png)](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_2.png)

**4.** After an “reboot”, you open the command line (cmd) and type “bash” and press [Enter].

[![](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_4-300x178.png)](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_4.png)

**5.** Enter a “Username” and a “Password. (you need the password for “sudo”-commands)

[![](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_5-300x178.png)](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_5.png)

**6.** Now you can open “Bash on Ubuntu on Windows”.

[![](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_6-190x300.png)](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_6.png)

**7.** Install “git” via:

```
sudo apt-get install git
```

[![](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_7-300x121.png)](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_7.png)

**8.** Get the “.dotfiles” via:

```
cd ~ ; git clone https://github.com/voku/dotfiles.git; cd dotfiles
```

[![](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_8-300x102.png)](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_8.png)

**9.** Install dependencies via:

```
./firstInstallDebianBased.sh
```

[![](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_9-300x102.png)](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_9.png)

**10.** Install zsh (optional, but recommended).

[![](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_10-300x159.png)](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_10.png)

**11.** Use the “.dotfiles” via:

```
./bootstrap.sh
```

[![](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_11-300x66.png)](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_11.png)

**12.** Download, install and configure “ConEmu” …

… a alternative “Command Line GUI” for Windows. Instead of the default GUI we have UTF-8 support with “ConEmu”, so we can use chars like “✓”.

-> [http://conemu.github.io](http://conemu.github.io)

After you have installed it, we can force “bash” to “zsh” in the configuration.

[![](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_12-300x188.png)](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_12.png)

**13.** Add some “symlinks” for easier navigation via: e.g.

```
sudo ln -s /mnt/c /c

sudo ln -s /mnt/d /d
```

[![](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_13-300x176.png)](https://suckup.de/wp-content/uploads//2017/04/windows_ubuntu_13.png)

**14.** Add the current “hostname” into the “/etc/hosts”-file.

```
sudo su

echo "127.0.0.1 $(hostname)" >> /etc/hosts

exit
```

* * *

Now you can edit your “.dotfiles”-settings and tweak your configuration.

Here is my example-config: [https://github.com/voku/dotfiles#add-custom-commands-without-creating-a-new-fork](https://github.com/voku/dotfiles#add-custom-commands-without-creating-a-new-fork)

  ![](https://suckup.de/piwik/piwik.php?idsite=1&rec=1&url=http%3A%2F%2Fsuckup.de%2F2017%2F04%2Fubuntu-windows-dotfiles%2F%3Fpk_campaign%3Dfeed%26pk_kwd%3Dubuntu-windows-dotfiles&action_name=Ubuntu+%2B+Windows+%2B+.dotfiles&urlref=http%3A%2F%2Fsuckup.de%2Ffeed%2F)

[![](http://feeds.feedburner.com/~ff/suckup?i=R5cAjP-UgIk:-z2FH--WEpY:NOtau7UU-s0)](http://feeds.feedburner.com/~ff/suckup?a=R5cAjP-UgIk:-z2FH--WEpY:NOtau7UU-s0) [![](http://feeds.feedburner.com/~ff/suckup?d=yIl2AUoC8zA)](http://feeds.feedburner.com/~ff/suckup?a=R5cAjP-UgIk:-z2FH--WEpY:yIl2AUoC8zA) [![](http://feeds.feedburner.com/~ff/suckup?d=qj6IDK7rITs)](http://feeds.feedburner.com/~ff/suckup?a=R5cAjP-UgIk:-z2FH--WEpY:qj6IDK7rITs) [![](http://feeds.feedburner.com/~ff/suckup?d=I9og5sOYxJI)](http://feeds.feedburner.com/~ff/suckup?a=R5cAjP-UgIk:-z2FH--WEpY:I9og5sOYxJI) [![](http://feeds.feedburner.com/~ff/suckup?i=R5cAjP-UgIk:-z2FH--WEpY:-BTjWOF_DHI)](http://feeds.feedburner.com/~ff/suckup?a=R5cAjP-UgIk:-z2FH--WEpY:-BTjWOF_DHI)
 ![](http://feeds.feedburner.com/~r/suckup/~4/R5cAjP-UgIk)