8000 GitHub - AngryTurf/wsl-autostart: Support for starting linux services in Windows Subsystem for Linux (WSL) on Windows startup.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support for starting linux services in Windows Subsystem for Linux (WSL) on Windows startup.

License

Notifications You must be signed in to change notification settings

AngryTurf/wsl-autostart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSL Autostart

Support for starting linux services in Windows Subsystem for Linux (WSL) on Windows startup.

README | 中文文档

Table of Contents

Installation

  • Use git clone to any directory (e.g C:\wsl-autostart)
git clone https://github.com/troytse/wsl-autostart
  • Add a startup item to the registry. run-regedit

  • Add a string item under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run (e.g WSLAutostart) regedit-new-item

  • Set the path to the script (e.g C:\wsl-autostart\start.vbs) regedit-set-path

Usage

  • Modify the /etc/sudoers file in WSL, Specified the service commands calling without password for the require auto starting. e.g:
%sudo ALL=NOPASSWD: /etc/init.d/cron
%sudo ALL=NOPASSWD: /etc/init.d/ssh
%sudo ALL=NOPASSWD: /etc/init.d/mysql
%sudo ALL=NOPASSWD: /etc/init.d/apache2
  • Modify the commands.txt file to specify the service commands. e.g:
/etc/init.d/cron
/etc/init.d/ssh
/etc/init.d/mysql
/etc/init.d/apache2

About

Support for starting linux services in Windows Subsystem for Linux (WSL) on Windows startup.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Batchfile 66.7%
  • Visual Basic .NET 33.3%
0