Persistent network tunnel with autossh

Purpose an explanation: This guide will help setup a reverse tunnel from one host behind a firewall, where you can not open a port to. With a little help from autossh connection will be persistant, even if connection breaks, autossh will make sure tunnel is reconnected.You will be able to connect to the normally unreachable …

Continue reading ‘Persistent network tunnel with autossh’ »

Ubuntu – Select Primary network interface

Sometimes you want to have a default primary interface or network configured. Most modern Linux distributions, like ubuntu today uses Network-Manager. You can control that from the terminal using either nmcli og nm-tui To display current connections configured, with priority: nmcli -f NAME,UUID,AUTOCONNECT,AUTOCONNECT-PRIORITY c To display the primary route to the internet route -n You …

Continue reading ‘Ubuntu – Select Primary network interface’ »

Powershell – Get members of AD Group

Sometimes you will need a fast and easy way to list who is a member of a AD group.  Start Powershell and enter either of the following commands: Get-ADGroupMember -Identity “TestGroup” | Select samAccountName,Name,@{Name=”DisplayName”;Expression={(Get-ADUser $_.distinguishedName -Properties displayname).Displayname}},@{Name=”Title”;Expression={(Get-ADUser $_.distinguishedName -Properties Title).title}} Get-ADGroupMember -Identity “TestGroup” | Select samAccountName,Name Get-ADGroupMember -Identity “TestGroup” | Select samAccountName Sometimes you will …

Continue reading ‘Powershell – Get members of AD Group’ »

Windows 10 – Select Primary network interface

When running Windows 10, sometimes you have more than one network connection, and you want to select which NIC is the primary. In my case, I wanted to segment my network away from the network in house. I am connected wireless to house router, including my own router, which is performing as with multiple services …

Continue reading ‘Windows 10 – Select Primary network interface’ »

Google Stream drive

If you install the google stream drive, you can run into some problem regarding drive lettes, it will shift randomly after a reboot, or it will use a drive letter you have reserved for network drive. You can mitigate this by adding this registry key. Save as a gdrive.reg and doubleclick. Remember to edit DefaultMountPoint, according …

Continue reading ‘Google Stream drive’ »

Ansible Windows client + chocolatey

set-executionpolicy remotesigned winrm enumerate winrm/config/listener @powershell -NoProfile -ExecutionPolicy Bypass -Command “iex ((new-object net.webclient).DownloadString(‘https://github.com/ansible/ansible/raw/devel/examples/scripts/ConfigureRemotingForAnsible.ps1’))” @”%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe” -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command “iex ((New-Object System.Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1’))” && SET “PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin” @”%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe” -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command “iex ((New-Object System.Net.WebClient).DownloadString(‘http://darkrouter/prepwin.ps1’))”   Suggest packages: teamviewer skype picasa adobereader libreoffice firefox javaruntime spotify vlc 7zip k-litecodecpackfull wget malwarebytes thunderbird itunes windirstat

Adding launcher/menu shortcut to Linux

Sometimes you want a shortcut in/on the desktop launcher of your DE. This is pretty simple, create a .desktop file with entry as shown below. Remember, you must have the [Desktop Entry], Name, Exec, Type. If it is a script with some kind of interaction, select Terminal=True. It can also be a good idea to …

Continue reading ‘Adding launcher/menu shortcut to Linux’ »

Convert files to Lightworks from Gnome Files

So working in lightworks can be a pain, if you use the wrong file format as inputfiles. Lightworks has a transcoding tool to import files, but this sometimes fails. To eliviate this problem, I have made a script, where you can right click on a media file, and it converts the file to more Lightworks digestable …

Continue reading ‘Convert files to Lightworks from Gnome Files’ »