Pages - Menu

標籤

AWS (1) bash (1) Boost (2) C (2) CMake (2) Concurrency_Programming (3) CPP (37) Database (2) DNS (1) Docker (4) Docker-Compose (1) ELK (1) emacs (4) gcp (1) gdrive (1) git (1) gitbash (2) gitlab (1) kvm (4) Linux (5) MT4 (4) MT5 (4) Multicast (2) MySQL (2) Nijatrader8 (1) OpenCV (1) Python (4) QT5 (1) R (1) rdp (3) screenshot (1) ssh (3) Tabnine (1) TCP (1) TensorFlow (1) Tools (12) Ubuntu_1904 (11) Ubuntu_20_04 (5) UDP (1) VS2010 (1) VS2015 (1) VS2019 (1) WebServer (1) Win10 (1) winmerge (1) WSL (1) xrdp (1)

搜尋此網誌

2018年6月7日星期四

Windows Subsystem for Linux, Linux GUI application

Aim

  • This article talks about 
    • How to activate Window Subsystem for Linux(WSL).
    • How to use linux gui application

Activate WSL

  • Control panel > Programs and Features > Turn Windows features on or off > Windows Subsystem for Linux
  • Restart
  • Install linux distribution from Windows store
  • Launch and wait for installation finished
  • After that you can use it as a normal linux as soon as you find any problem XD
  • Reference

Use Linux gui applicaion - WSL2

  • You need X server for those linux gui application
  • If the font size is too small, you can add flag --dpi 108 -ac
    • -ac : disable the access control


  • Install application that have gui for demo
  • sudo apt-get install git gitk git-core vim-gtk
    
  • Point to X server
  • export DISPLAY=<IP to your windows host, example:192.168.1.10>:0
    
  • Run demo application
    • gvim

Use Linux gui applicaion - WSL

  • You need X server for those linux gui application
  • If the font size is too small, you can add flag --dpi 88


  • Install application that have gui for demo
  • sudo apt-get install git gitk git-core vim-gtk
    
  • Point to X server
  • export DISPLAY=:0
    
  • Run demo application
    • gvim

  • Reference

Mount drive on WSL

  • Mount usb drive
  • mkdir /mnt/d
    sudo mount -t drvfs d: /mnt/d
    
  • Mount network drive
  • mkdir /mnt/share
    sudo mount -t drvfs '\\192.168.0.101' /mnt/share
    
  • Reference

Speed up WSL


沒有留言:

發佈留言