Update 'README.md'

This commit is contained in:
Gyorgy Berenyi
2023-06-14 10:37:21 +00:00
parent abd02229a6
commit 40b4568cbf

View File

@@ -6,55 +6,55 @@ It is executable via command line for example Powershell or Terminal also.
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.
```
'# wsl -u root -d Debian'
wsl -u root -d Debian
```
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.
```
'# apt-get install vim'
apt-get install vim
```
Then edit the wsl.conf file:
```
'# vim /etc/wsl.conf'
vim /etc/wsl.conf
```
Please add this lines:
```
"[boot]"
"systemd=true"
[boot]
systemd=true
```
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.
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:
```
'# chmod a+x install.sh'
chmod a+x install.sh
```
And execute it:
```
'# ./install.sh'
./install.sh
```