How to execute a shellscript when I plug-in a USB-device

linux – How to execute a shellscript when I plug-in a USB-device – Unix & Linux Stack Exchange

https://unix.stackexchange.com/questions/65891/how-to-execute-a-shellscript-when-i-plug-in-a-usb-device

https://askubuntu.com/questions/1414404/how-to-change-keyboard-layout-when-usb-keyboard-connected/1414424#1414424

https://askubuntu.com/questions/508236/how-can-i-run-code-whenever-a-usb-device-is-unplugged-without-requiring-root/516336#516336

https://superuser.com/questions/582723/can-udev-somehow-trigger-zenity-for-a-logged-in-user-in-a-session

https://unix.stackexchange.com/questions/65891/how-to-execute-a-shellscript-when-i-plug-in-a-usb-device

Things to do with Linuxes

Since discovering Oracle Cloud’s free tier, I’ve been looking to do more things with it.

Here are a few ideas.

https://linuxhandbook.com/things-to-do-after-installing-linux-server/

https://linuxopsys.com/topics/cool-things-to-do-with-linux

Raspberry Pi Temperature Sensor Tutorial

So back to this project – using Pi’s to monitor temperature.

Since Initialstate is no longer offering free dashboards, it’s time to redo all of this… how nice. not.

Thingsboard looks to be a way forward. They offer a hosted solution as well as a full backend that you can host yourself.

https://thingsboard.io/docs/getting-started-guides/helloworld/

https://thingsboard.io/docs/samples/raspberry/temperature/

And […]

Install Joomla 3 and GLPI 10 on Ubuntu 22 LTS

Right, so I’m looking to deploy a intranet server, allowing for some modern tools across our departments. Ubuntu 22 LTS is a fair choice, there have been some complaints regarding the desktop, but I think 22 server is pretty solid. We are going to be installing LAMP, Joomla and GLPI.

Get yourself a Ubuntu 22 […]

Linux Update Cheatsheet

DistroWatch offers a very nice cheatsheet on what basic commands the different flavors of linux use.  We’re talking the apt-get/yum/zypper stuff.

Source: DistroWatch.com: Put the fun back into computing. Use Linux, BSD.

[…]

Network Monitoring

Mill Yard Computing used to offer these tips for network monitoring. They have taken this down, so here it is for you:

iftop

On CentOS it is in the EPEL repo.

It shows a list of network connections and the data transferred over the past 2 sec, 10 sec & 40 sec (a bit like […]

Mounting drives (physical & image) on VirtualBox

To mount a physical hard disk onto a VirtualBox guest, we need to first create a VMDK configuration file which points to the physical disk, and then attach this VMDK file to the VirtualBox guest.

VirtualBox running on Linux:

VBoxManage internalcommands createrawvmdk -filename ~/sdd.vmdk -rawdisk /dev/sdd

Now attach ~/sdd.vmdk to your guest as normal

[…]

Use dd to image a disk

“dd” is the linux command for taking byte by byte copies of files. Since a hard disk behaves sort of like a big file in linux, we can use “dd” to take a copy or image.

It is a good idea to zero all free space on the original disk before taking the image. […]