Windows 10: How to set /etc/hosts in ubuntu WSL

Discus and support How to set /etc/hosts in ubuntu WSL in Windows 10 Software and Apps to solve the problem; I do not think this is a useful post.Only I hope it will be a temporary remedy for someone.Please use this with caution because I'm a... Discussion in 'Windows 10 Software and Apps' started by noellapin, Oct 20, 2021.

  1. noellapin Win User

    How to set /etc/hosts in ubuntu WSL


    I do not think this is a useful post.Only I hope it will be a temporary remedy for someone.Please use this with caution because I'm a layperson.Objective: Easily setting "MyWin" as a hostname of the Windows in WSL Windows Subsystem for Linux.Environment: Windows 10 Home 21H2, ubuntu focal, WSL2.Exceptional settings: Enabled Hyper-V, installed BlueStacks ver.4 for Hyper-V.Usage: Run "winip" script without an argument in bash command line."winip" uses a filter script "w2l", windows to linux.winip:#!/bin/bashf=$HOME/tmp/winip_0#echo "--- ipconfig.exe"/mnt/c/Windows/System32/ipconfig.exe w2l &

    :)
     
    noellapin, Oct 20, 2021
    #1
Thema:

How to set /etc/hosts in ubuntu WSL

Loading...
  1. How to set /etc/hosts in ubuntu WSL - Similar Threads - set etc hosts

  2. Install Ubuntu on WSL

    in Windows 10 Gaming
    Install Ubuntu on WSL: Hi, I am trying to install Unbuntu via WSL. I have installed Windows Subsytem for Linux. When I run "wsl --list --online" this i what I get: "The following is a list of valid distributions that can be installed. Install using 'wsl --install -d <Distro>'. NAME FRIENDLY NAME...
  3. Install Ubuntu on WSL

    in Windows 10 Software and Apps
    Install Ubuntu on WSL: Hi, I am trying to install Unbuntu via WSL. I have installed Windows Subsytem for Linux. When I run "wsl --list --online" this i what I get: "The following is a list of valid distributions that can be installed. Install using 'wsl --install -d <Distro>'. NAME FRIENDLY NAME...
  4. Wsl Not installing ubuntu

    in Windows 10 Gaming
    Wsl Not installing ubuntu: one year ago i installed ubuntu and deleted is now i needed to install ubuntu wsl is not installing I have tried all the methods and deleted and reinstalled it many time but nothing happen I have reinstalled windows in new partition and tried to get wsl files and ext4.vdhx...
  5. Wsl Not installing ubuntu

    in Windows 10 Software and Apps
    Wsl Not installing ubuntu: one year ago i installed ubuntu and deleted is now i needed to install ubuntu wsl is not installing I have tried all the methods and deleted and reinstalled it many time but nothing happen I have reinstalled windows in new partition and tried to get wsl files and ext4.vdhx...
  6. How to set /etc/hosts in ubuntu WSL

    in Windows 10 Gaming
    How to set /etc/hosts in ubuntu WSL: I do not think this is a useful post.Only I hope it will be a temporary remedy for someone.Please use this with caution because I'm a layperson.Objective: Easily setting "MyWin" as a hostname of the Windows in WSL Windows Subsystem for Linux.Environment: Windows 10 Home 21H2,...
  7. How to set /etc/hosts in ubuntu WSL

    in Windows 10 Customization
    How to set /etc/hosts in ubuntu WSL: I do not think this is a useful post.Only I hope it will be a temporary remedy for someone.Please use this with caution because I'm a layperson.Objective: Easily setting "MyWin" as a hostname of the Windows in WSL Windows Subsystem for Linux.Environment: Windows 10 Home 21H2,...
  8. WSL 2 Ubuntu

    in Windows 10 Customization
    WSL 2 Ubuntu: Hello Sir/Ma'am, I'm using Windows Subsystem for linux version 2 to use Ubuntu and recently I've found out that my Ubuntu terminal is not giving any output when I type "Who" command. Can anybody help me? Thank you....
  9. How to ssh into WSL 2 Ubuntu?

    in Windows 10 Ask Insider
    How to ssh into WSL 2 Ubuntu?: Please would someone be so kind as to provide a clear and neat set up for ssh-ing from an external machine into WSL 2, and that doesn't need re-doing each time the machine is restarted. TL;DR Please do not point me to a blog article unless you are *certain* it worked for...
  10. WSL - Ubuntu - How do you use it?

    in Windows 10 Support
    WSL - Ubuntu - How do you use it?: Hello, I've installed WSL Ubuntu on Windows 10. How on earth do you use it? I've got a Laravel project that I was running using Laragon and running NPM on Windows is not the best, npm run watch takes forever - I have Elementary OS installed as a partition and use Laravel...