Posts

wireshark ssh remote connect on linux server

Image
First, install the optional component from Tools  section of Wireshark installer Then, select config gear of the SSH remote capture  from the welcome screen Configure the following information:           Server ip/hostname and port     Remote user name and private rsa key in OpenSSH format (use puttygen > conversions > export openssh key)  (user and password should work too) You shouldn't have to change anything in Capture tab If you get an error linked to Kex algos: Error by extcap pipe:  ** (sshdump.exe:8216): WARNING **: Error creating connection. ** (sshdump.exe:8216): WARNING **: Connection error: kex error : no match for method kex algos: server [curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256], client [diffie-hellman-group14-sha1,diffie-hellman-group1-sha1] You have to add the requested al

ubuntu 20.04 / netplan / change mac address and static ip

I wasn't able to set together a virtual mac address and a static IP using netplan: either the mac address didn't change, or IP was not set. I finally got the trick using a fake nic definition that matches the new virtual mac address I've set.    network:   renderer: networkd   ethernets:     ens160:       match:         macaddress: 00:0c:29:5a:69:00       macaddress: 00:50:56:0c:de:a6     ens160_2:       match:         macaddress: 00:50:56:0c:de:a6        addresses: [ 139.99.5.72/32 ]       nameservers:         addresses: [ 8.8.8.8 ]       routes:       - to: 0.0.0.0/0         via: 139.99.5.254         on-link: true     ens192:       addresses: [192.168.103.14/24]       #dhcp4: true   version: 2

rpi ubuntu 18.04 arm64 - fix bluetooth not working

apt install bluez hciattach /dev/ttyAMA0 bcm43xx 921600 systemctl restart bluetooth #1

Run AspNet Core 2.2 on Raspberry PI 64bits (ubuntu 18.04 arm64)

As Ubuntu does officially support Raspberry PI 3 (arm64 and armhf) starting with 18.04.2 , I gave a try to the 64 bit version to be able using dotnet core with MongoDB as the later is discontinued in 32 bits architecture. I've downloaded and extracted the 32bits version of  aspnet core as the arm64 is not yet supported. But I've quickly found myself ending with an issue when trying to run the armhf dotnet app: -bash: /opt/dotnet/dotnet: No such file or directory Even if all the dotnet prerequisites were met. A few Googling hours later, I've figured out that, by default, no 32 bits (armhf) libraries are installed. Thought that can be done simply. First allow the armhf repository to be used in addition of arm64: dpkg --add-architecture armhf apt update Then add the armhf flavor of the dotnet prerequisites: apt install libunwind8:armhf gettext:armhf libc6:armhf libssl1.0-dev:armhf You can now enjoy running aspnet core 2.2 apps on a arm64 ubuntu 18.04 :-)

Install node.js and java package on raspbian (raspberry pi)

apt install openjdk-8-jdk apt install nodejs ln -s /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/client/libjvm.so

Fix broken LibreElec on Raspberry Pi after auto-update (could not mount /flash/SYSTEM)

Mount the SD card on Windows or Linux. Grab the latest LibreElec image file from https://libreelec.tv/downloads/ Extract the kernel.img and the SYSTEM files from the downloaded file. Replace the existing  kernel.img  and SYSTEM  files on the SD card with those two files. Put back the SD card in the RPi and all should be fine. #1

Zabbix : use external ip in simple checks

Image
In Zabbix, simple checks are done by the Zabbix Server or Proxy on the default agent IP address, usually the internal one. If you would like to monitor some services like SSH or SMTP using the external IP address, simply add another Agent Interface with the external IP. Then choose the external interface in the item configuration: