Ubuntu 18.04 umask, shared folder on ZFS

This guide, helps setting up umask for users and help setting correct permissions for files in shared directory. This also mitigate a know Gnome bug, that ignores umask and enforces umask 022 Create the user group and assign the group to the user: sudo addgroup groupsudo usermod user +aG group Fix the broken umask in …

Continue reading ‘Ubuntu 18.04 umask, shared folder on ZFS’ »

Router project: Dallaley

I have launched my routerproject on github. I have named it: Dallaley What is it? It is a ansible playbooks that works under a Ubuntu, this will setup all your needs for a homerouter solution. It sports presetup of IPv4, DHCP, DNS, NTP, iptables, and a web interface via Cockpit. Upcomming features are: Traffic shaping …

Continue reading ‘Router project: Dallaley’ »

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’ »