Skip to content

Instantly share code, notes, and snippets.

@Exlog42
Forked from alyleite/wsl.md
Created January 3, 2022 11:59
Show Gist options
  • Select an option

  • Save Exlog42/24fc1a74e506f5ab3e14322d4e92d201 to your computer and use it in GitHub Desktop.

Select an option

Save Exlog42/24fc1a74e506f5ab3e14322d4e92d201 to your computer and use it in GitHub Desktop.

Revisions

  1. @alyleite alyleite revised this gist Jun 18, 2021. No changes.
  2. @alyleite alyleite revised this gist Jun 18, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions wsl.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,9 @@ Failed to connect to bus: Host is down
    just try:

    `sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig`

    `sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target`

    `exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME`

    `snap version`
  3. @alyleite alyleite revised this gist Jun 18, 2021. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions wsl.md
    Original file line number Diff line number Diff line change
    @@ -5,9 +5,9 @@ Failed to connect to bus: Host is down

    just try:

    ```sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig
    sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
    exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME
    `sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig`
    `sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target`
    `exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME`

    snap version
    `snap version`

  4. @alyleite alyleite revised this gist Jun 18, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions wsl.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ just try:

    ```sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig
    sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
    exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME```
    exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME
    `snap version`
    snap version
  5. @alyleite alyleite revised this gist Jun 18, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions wsl.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    » `sudo systemctl daemon-reload`

    System has not been booted with systemd as init system (PID 1). Can't operate.
    Failed to connect to bus: Host is down

  6. @alyleite alyleite created this gist Jun 18, 2021.
    12 changes: 12 additions & 0 deletions wsl.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    » `sudo systemctl daemon-reload`
    System has not been booted with systemd as init system (PID 1). Can't operate.
    Failed to connect to bus: Host is down

    just try:

    ```sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig
    sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
    exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME```
    `snap version`