Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Helper Script to allow non-DistroLauncher distros to initialize a new user.

License

NotificationsYou must be signed in to change notification settings

sr229/wslinit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Based on how DistroLauncher-based distros does their thing, you can now painlessly add a first time user without using DistroLauncher for that purpose.

How does it work?

DistroLauncher-based distros always execute on the following sequence:

  • Ask you for your first time username and password
  • If already initiated, just run using that user.

However, we don't have that liberty if we use standardwsl --import, so here's a little sample!

Using

First of all, put the shell script in the appropriate place, somewhere in/usr/bin/ or similar, then simply add it on$HOME/.bashrc on theroot user.

You will have to figure out how to prevent re-executing the script yourself. A good way to do this is to comment out the line where this script is getting initialized after the successful invocation of this script first time.

A sample version of this would befirstrun.sh located in this repository.

Copyright

Copyright 2020 © Ayane Satomi. Licensed under MIT.

About

Helper Script to allow non-DistroLauncher distros to initialize a new user.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp