Update 'README.md'

This commit is contained in:
Gyorgy Berenyi
2023-06-14 10:36:00 +00:00
parent beda8f0408
commit abd02229a6

View File

@@ -5,37 +5,56 @@ You can execute the install.sh script under Windows 10 or 11 also, but need to p
It is executable via command line for example Powershell or Terminal also. It is executable via command line for example Powershell or Terminal also.
You need to start the wsl service at first: You need to start the wsl service at first:
```
'# wsl.exe --install Debian' '# wsl.exe --install Debian'
```
Then enter it by user root at first. Then enter it by user root at first.
```
'# wsl -u root -d Debian' '# wsl -u root -d Debian'
```
After successfuly entered, prepare the linux system, add a new user via usermod command: After successfuly entered, prepare the linux system, add a new user via usermod command:
```
'# usermod -aG sudo <user>' '# usermod -aG sudo <user>'
```
Not important, but it is needed any command line editor for example vim. Not important, but it is needed any command line editor for example vim.
```
'# apt-get install vim' '# apt-get install vim'
```
Then edit the wsl.conf file: Then edit the wsl.conf file:
```
'# vim /etc/wsl.conf' '# vim /etc/wsl.conf'
```
Please add this lines: Please add this lines:
```
"[boot]" "[boot]"
"systemd=true" "systemd=true"
```
Then type logout and restart the wsl system by command: Then type logout and restart the wsl system by command:
```
'# wsl --shutdown Debian' '# wsl --shutdown Debian'
```
Once you created the new linux user, it is seems under Windows Explorer via folder. You need to download the install.sh and the installer.pub key file and place it to the user's folder. Once you created the new linux user, it is seems under Windows Explorer via folder. You need to download the install.sh and the installer.pub key file and place it to the user's folder.
When it was successfuly you can restart it with a new user you added before. When it was successfuly you can restart it with a new user you added before.
```
'# wsl -u <user> -d Debian' '# wsl -u <user> -d Debian'
```
And change the install scrip attribute for executable: And change the install scrip attribute for executable:
```
'# chmod a+x install.sh' '# chmod a+x install.sh'
```
And execute it: And execute it:
```
'# ./install.sh' '# ./install.sh'
```