Building Deb package

In you build directory: ~/build/[Project] Directory structure: ~/build/PROJECT_1.0-1 ~/build/PROJECT_1.0-1/DEBIAN ~/build/PROJECT_1.0-1/usr/local/bin/ ~/build/PROJECT_1.0-1/etc/sudoers.d/ ~/build/PROJECT_1.0-1/usr/local/man Add the files you need The deb-build file ~/build/PROJECT_1.0-1/DEBIAN/control Package: PROJECTVersion: 1.0-1Section: utilsPriority: optionalArchitecture: amd64Depends: libc6 (>= 2.15), libext2fs2 (>= 1.37)Suggests: Recommends:Provides: Maintainer: Thor Grotle thor@itso.dkDescription: Descriptions of project Build deb file with the command: dpkg-deb –build ~/build/PROJECT_1.0-1

PipeWire on Ubuntu, PopOS, ElementaryOS 6

What is is PipeWire, and what can it do for me? PipeWire is a new multimedia framework that aims for a better audio/video management in Linux. This can be compared to how audio/video devices and multimedia files and devices is handled in MacOS, as this just works, and is stable. So what can it do …

Continue reading ‘PipeWire on Ubuntu, PopOS, ElementaryOS 6’ »

Virtualization with GPU Passthrough

Reasons why Technologies UEFI BIos settings Hardware Grub VFIO settings Creating VM Kernel module fix for RX5700XT Fixing issues and mitigation Automatic start of power control VM from sleep, cold boot. Enabling hotkeys for VM start, Display toggle. Configs files Reasons: As a Linux enthusiast, I want to run Linux, Period! But I also want …

Continue reading ‘Virtualization with GPU Passthrough’ »

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

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