Categories
Development Linux

Debugging a missing monitor in Xrandr?

I’m running Gentoo Linux with a 4.19.97 kernel and the nouveau drivers on a laptop with an NVIDIA GeForce GTX 960M rev a2 (according to lspci). There’s an HDMI output port which I usually plug into an external monitor, and it was working this morning, but I just tried it now and it isn’t working. […]

Categories
Development Linux

How to make nftables duplicate multiple interfaces to one interface

My home router has 2 internal interfaces on different subnets, and one external interface plugged into the comcast modem. I’d like to duplicate every packet that enters each interface out to a single virtual interface, at which I can direct Zeek. I think this should help me get full introspection of network traffic without duplicate […]

Categories
Development Linux

Barely any commands work, no module named ‘apt_pkg’

I don’t know what I’ve done but basic commands like “ls” and “sudo” no longer work and now throw me this error message. File “/usr/lib/command-not-found”, line 28, in <module> from CommandNotFound import CommandNotFound File “/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py”, line 19, in <module> from CommandNotFound.db.db import SqliteDatabase File “/usr/lib/python3/dist-packages/CommandNotFound/db/db.py”, line 5, in <module> import apt_pkg ModuleNotFoundError: No module named […]

Categories
Development Linux

Use Mutt with Google Organization with Active Directory login

I’d like to try to connect my mutt email client to my Google account. However, this account is managed (G Suite) and we login via what looks like Active Directory. I’d like to connect mutt to this account, but I suspect it is failing because of one of two things (or both): Login fails because […]

Categories
Development Linux

xrandr –left-of brake display settings

I have monitor connected to my notebook. Resolution of monitor is 1920×1080 and display of my laptop is 1366×768. When i try to position monitor on the left of my laptop display it screw up seems resolution??? To be honest I have no idea what happened but for me it looks like laptop display and […]

Categories
Development System & Network

GCP SSH Host Bastion

I’m trying to setup a SSH Host Bastion for GCP with a Public IP. I generate SSH Key and I’m able to ssh all my VM using my private key because the public key is also added in the GCP Metadata. But, when I use my SSH Bastion VM with option allow agent forwarding in […]

Categories
Development System & Network

How do I map a drive letter to a network share for all RDP users on a Windows Server 2016

I want to map a new drive letter F: for all users that login to my application server on Azure so they can edit files that are on a separate network share \FileServer\StorageDrive. How can I do that?

Categories
Development System & Network

Alter Nginx reverse proxy cache header from Public to Private

I have an Nginx cache server getting content from an origin server, the origin server sets Cache-Control to Public so my Nginx cache server can cache the content and make less requests to origin. But when serving to users, I don’t want it to send the cache as Public anymore, but set it to Private […]

Categories
Development System & Network

Isolate virtual machines from each other and from the internet (VLAN, Mikrotik SwOS)

There is a virtualization server where some of them VMs are assigned a different VLAN ID. There is a switch running Mikrotik SwOS and the virtualization server is connected via one single Ethernet cable into one of the ports of the switch. Is it possible to achieve that: the VMs with VLAN ID assigned can […]

Categories
Development System & Network

Using PowerShell, what is the command to get the MD5 hash of a file?

It’s been a while since I’ve worked with windows and I don’t remember the command line to get the MD5 hash of a file.