タグ

wslに関するstealthinuのブックマーク (8)

  • WSLg Configuration Options for Debugging

    Various debugging options for WSLg can be configured by editing the file c:\ProgramData\Microsoft\WSL\.wslgconfig (for inbox WSL), or c:\Users\[your user name]\.wslgconfig (for WSL installed from Store). This config file is read during WSLg launch, so any change require WSLg to be restarted for the changes to take effect (wsl --shutdown). [system-distro-env] ; ;enable weston-debug for live debug v

    WSLg Configuration Options for Debugging
    stealthinu
    stealthinu 2024/01/10
    WSL2からXを使えるWSLgのオプション設定について。LIBGL_ALWAYS_SOFTWARE=1 でGPUのハードウェアアクセラレーションを切れる。
  • DockerがErrorで起動しない(Ports are not available: listen ~An attempt was made to access a socket in a way forbidden by its access permissions.) - Qiita


    DockerError(Ports are not available: listen An attempt was made to access a socket in a way forbidden by its access permissions.)WindowsDockerdocker-compose  Docker使 使 "Error response from daemon: Ports are not available: listen tcp 0.0.0.0:3306: bind: An attempt was made to access a socket in a way forbidden by its access permissions." 使 windows(WSL
    DockerがErrorで起動しない(Ports are not available: listen ~An attempt was made to access a socket in a way forbidden by its access permissions.) - Qiita
    stealthinu
    stealthinu 2022/09/28
    これ最後に書いてあるwinnatの再起動で解決した。なぜPC自体の再起動で復旧しないのかがよくわからんが。
  • WSL2によるホストのメモリ枯渇を防ぐための暫定対処 - Qiita


    5/27Windows 10 2004 UpdateWSL2Windows Insider Preview使 WSL2使Vmmem使Windows NOTE: WindowsVmmemWSL2Hypver-VCPUOK microsoft/WSLIssue1OpenMicrosoft  (2023/07/04) 
    WSL2によるホストのメモリ枯渇を防ぐための暫定対処 - Qiita
    stealthinu
    stealthinu 2022/08/29
    wsl2が大量にメモリ食って遅くなるのの対策。.wslconfigファイル作ってメモリ上限を指定してやればよいと。
  • WSL2環境をDドライブに移動する。 - programwiz.org


    WindowsWSL C WindowsWSL2Ubuntu18.04 C7GBD WSL2Ubuntu-18.04D:\WSL\Ubuntu-18.04  wsl PowerShell wsl wsl --help   --list, -l []  : --verbose, -v
    WSL2環境をDドライブに移動する。 - programwiz.org
    stealthinu
    stealthinu 2022/08/24
    WSL2は標準でCドライブに作られてしまうのでDドライブに移すにはimport/export処理をしないといけない。結構時間かかる。/exportは半日かかってできたがimportが2日かかっても終わらなくてあきらめた…
  • WSL1/WSL2 を再起動する方法 - 備忘録

    Ⅰ. はじめに Ⅱ. やり方(全て再起動する場合) Ⅲ. やり方(ディストリビューションを指定する場合) 参考 Ⅰ. はじめに タイトルの通り「WSL1/WSL2 を再起動する方法」です。 WSL1/WSL2 では shutdown や reboot コマンドが実行できません。 $ sudo shutdown Failed to connect to bus: No such file or directory Failed to talk to init daemon.$ sudo reboot Failed to connect to bus: No such file or directory Failed to talk to init daemon. Ⅱ. やり方(全て再起動する場合) 1. コマンドプロンプトを起動する 2. 以下コマンドを実行する wsl.exe --shut

    WSL1/WSL2 を再起動する方法 - 備忘録
    stealthinu
    stealthinu 2022/06/10
    WSLを再起動させたかったのだけど普通にshutdown -r nowとかはできない。なんとコマンドプロンプトからwsl.exe --shutdownしないとリブートできないとのこと。
  • WSL2で開発中のWebアプリを同じLANのスマホで動作確認する方法


    WSL2Web PCWifi http://<PCIP>:<Web>  PC使 WSL2 WSL2 PowerShell 1ps1 PowerShell1  $ports = @(3000, 8000) # Web使
    WSL2で開発中のWebアプリを同じLANのスマホで動作確認する方法
    stealthinu
    stealthinu 2022/06/06
    WSL上で作ることが多いのだけど外から確認するのがめんどくてどうするのが楽なのかと思ってたらこれは… まとめられててもめんどくささが。まあバッチにしとけばいいだけなのだろうけども。
  • TortoiseGitで「fatal: unsafe repository」なエラー - Qiita

    git.exe checkout master -- fatal: unsafe repository ('//wsl.localhost/Ubuntu/home/user1/my-project' is owned by someone else) To add an exception for this directory, call: git config --global --add safe.directory '%(prefix)///wsl.localhost/Ubuntu/home/user1/my-project' gitは正常に終了しませんでした (終了コード 128) (281 ms @ 2022/04/20 22:30:48) Gitを最新版にアップデートしたところ、TortoiseGitでコミットやブランチ切り替えをしようとするとexit status 128エラ

    TortoiseGitで「fatal: unsafe repository」なエラー - Qiita
    stealthinu
    stealthinu 2022/05/09
    Windowsのgit(SourceTree)使ってて「fatal: unsafe repository」が出るようになって困ってたが例のWindowsのgitでディレクトリトラバーザル脆弱性関連が理由と。safe directoryの設定追加で回避されるらしいがうまくいかん…
  • WSL2で起動したサーバーに外部の端末からアクセスする


    3wsl httpport:30004OSwslip OS http://wslip:3000  wslWSL5OSipwsl powershell  > netsh.exe interface portproxy add v4tov4 listenaddress=OSiplistenport=3000 connectaddress
    stealthinu
    stealthinu 2022/01/28
    ホストのWinからWSL内のサーバへアクセスできるようにするためのプロクシ設定方法
  • 1