tags: linux, gnome, networkManager, pkcs12, p12
reference: askubuntu
This article intends to be reference when importing a openvpn file to NetworkManager on linux
- Save the files in a folder;
- Import the
.ovpnfile with the following command:
| ### reference: https://askubuntu.com/a/576507 | |
| on=/usr/share/icons/Adwaita/48x48/status/microphone-sensitivity-high-symbolic.symbolic.png | |
| off=/usr/share/icons/Adwaita/48x48/status/microphone-disabled-symbolic.symbolic.png | |
| amixer set Capture toggle \ | |
| && amixer get Capture | grep '\[off\]' \ | |
| && notify-send "Mic switched OFF" "Mic capture was disabled!" --icon=$off \ | |
| || notify-send "Mic switched ON" "Mic capture was enabled!" --icon=$on |
tags: linux, gnome, networkManager, pkcs12, p12
reference: askubuntu
This article intends to be reference when importing a openvpn file to NetworkManager on linux
.ovpn file with the following command:| cmdkey /list | ForEach-Object{if($_ -like "*Destino:*"){ cmdkey /del:($_ -replace " ","" -replace "Destino:","")}} | |
| cmdkey /list | ForEach-Object{if($_ -like "*Target:*"){ cmdkey /del:($_ -replace " ","" -replace "Target:","")}} |
| @echo off | |
| SET FILE=%~dp0%~n0%.ps1 | |
| ::run powershell script with same name of this file | |
| %systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& '%FILE%' %*" |
| [CmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory = $true, Position = 0)][string]$exeFileName, | |
| [Parameter(Mandatory = $true, Position = 1)][string]$credentialName | |
| ) | |
| $wshell = New-Object -ComObject Wscript.Shell -ErrorAction Stop | |
| function CheckIfFileExists { |
To install the OpenSSH on the Windows machine, follow these tutorials: