quarta-feira, 28 de abril de 2021

quarta-feira, 21 de abril de 2021

Java no Ubuntu 18.04 Instalar o SDK do .NET ou o tempo de execução do .NET

 wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

sudo dpkg -i packages-microsoft-prod.deb

sudo apt-get update; \ sudo apt-get install -y apt-transport-https && \ sudo apt-get update && \ sudo apt-get install -y dotnet-sdk-5.0

domingo, 4 de abril de 2021

Samba Windows 10

01.  Como  ativar  o SMB no Windows

 <Digite aqui para pesquisa> Ativar ou desativar recursos do Windows

** Ferramenta “Ativar ou desativar recursos do Windows” <pesquisar>

2. <Digite aqui para pesquisa> , digite PowerShell e execute como administrador.


3. Digite o seguinte comando:
Set - ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters” SMB1 - Value 0 -Force



ERRO:
Set-Variable : Não é possível localizar um parâmetro que coincida com o nome de parâmetro 'Path'.
No linha:1 caractere:20
+ Set - ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Lan ...
+                    ~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-Variable], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.SetVariableCommand

SMB v1 no servidor SMB
Desativar:
Set-SmbServerConfiguration -EnableSMB1Protocol $false
SMB v2 / v3 no servidor SMB

Detectar:

Get-SmbServerConfiguration | Select EnableSMB2Protocol
Permitir:
Set-SmbServerConfiguration -EnableSMB2Protocol $true
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB2 -Type DWORD -Value 1 -Force

Registry entry: SMB2
REG_DWORD: 0 = Disabled
REG_DWORD: 1 = Enabled
Default: 1 = Enabled (No registry key is created)