Kategoriarkiv: Linux

Faking time on Debian 12

Sometimes you need to test stuff that only happens once a day, that can be tiresome to wait around for, so playing a bit of Deloran-style-prank on you Linux systems can be handy. Start by disabling ntp: And then you … Læs resten

Udgivet i Linux | Skriv en kommentar

Automating USBIP server

In a prior post we installed USBIP and used it manually, in this post I will set it up “the correct Debian(systemd) way”. But first, for completeness sake, we will go through installation progress again, first install the package: Load … Læs resten

Udgivet i Linux | Skriv en kommentar

USBIP on Debian 12 – USB Device Sharing over IP network

In a world were virtualization is slowly creeping in everywhere the demand for virtual USB cables are growing, luckily the USBIP protocol are implemented in the Linux kernel – and the userland tools are partly implemented in Debian, at least … Læs resten

Udgivet i Linux, Uncategorized | Skriv en kommentar

Logging output of cronjobs

If you wish to send output of cronjobs to syslog instead of email use the following: If you want live-updates in the log file it can be necessary to unbuffer it, install the “expect” package and modify the command like … Læs resten

Udgivet i Linux | Skriv en kommentar

Tunneling HP ILO5 through SSH

Creates a tunnel to the ilo port, which in this example is 10.0.0.201 through the jumphost, after this you can connect to ILO by typing in https://locahost and accept the security warning, refreshing and logging in with your credentials.

Udgivet i Linux, SSH | Skriv en kommentar

Unmounting an NFS Share that has gone away

On Linux when an NFS share disappears it is not handled very well, to say it nicely, and in order to get a functioning machine again you need to drop that mount, but a simple umount command states that the … Læs resten

Udgivet i Linux | Skriv en kommentar

Fail2ban crash course

Just install fail2ban and the default settings will keep you protected just fine, after five failed login attempts the ip address of the offending login will be blocked for 10 minutes using iptables. If you wish to keep tap on … Læs resten

Udgivet i Linux, Security | Skriv en kommentar

Check TLS Certificate with openssl

Udgivet i Linux | Skriv en kommentar

Distributing SSH Keys with Ansible

This method is designed to fully take over the distribution of SSH Keys, meaning if you use this method you, or individual users, can no longer manually add their own keys to the systems. ./roles/ssh-keys/tasks/main.yml: ./roles/ssh-keys/tasks/authorized_keys And finally ./roles/ssh-keys/vars/main.yaml This … Læs resten

Udgivet i Ansible, Linux | Skriv en kommentar

Adding a secondary qemu2 disk to a kvm using virsh

First create the image: Then attach it to the virtual machine: Enter VM and format disk, you don’t need to restart.

Udgivet i KVM, Linux | Skriv en kommentar