Life on Life and Shell https://lifeandshell.com/tags/life/ Recent content in Life on Life and Shell Hugo -- gohugo.io en-us Mattias Hemmingssion mattias@lifeandshell.com Sun, 13 Apr 2025 08:56:12 +0000 Running Wazuh Agents in Docker – From Traditional HIDS to Ingest Agents https://lifeandshell.com/posts/wa/ Sun, 13 Apr 2025 08:56:12 +0000 https://lifeandshell.com/posts/wa/ Wazuh Wazuh is a powerful open-source security platform built to monitor systems for threats, intrusions, and anomalies. Traditionally, the Wazuh agent is installed on physical or virtual Linux servers to perform host-based intrusion detection (HIDS). It passively monitors the system and reports any suspicious changes or activity to the Wazuh manager. This works well in environments where systems are treated as immutable infrastructure — where servers are expected to remain unchanged. Device Tracker using Dhpcd server and bash https://lifeandshell.com/posts/device-tracker-using-dhpcd-server-and-bash/ Wed, 21 Dec 2022 14:07:01 +0000 https://lifeandshell.com/posts/device-tracker-using-dhpcd-server-and-bash/ I have used Home Assistance for some time. And have always used the device tracker to set different actions based if I’m home or not. But when my pfsense died and a install a clean Linux box as my fw and DHCP server I lost all my tracking for devices. But I did found out that the dhcpd server can run a command every time it hands out a dhcpds leese. Vault EKS / AWS to pod The complete guide https://lifeandshell.com/posts/vault-eks-aws-to-pod-the-complete-guide/ Thu, 29 Oct 2020 09:17:42 +0000 https://lifeandshell.com/posts/vault-eks-aws-to-pod-the-complete-guide/ I have bean working some time with vault and to deploy it to our EKS cluster and then to get the secrets into our pods. After many hours of searching i have found out that using kube-vault and vault-env. This gude uses tarraform to setup the resources you need in AWS. Then deploy the kubevault with ui into to cluster that will use a s3 bucket and backend and autoseal it self during boot Running Counter-strike 1.6 and CSGO in kubernetes ! https://lifeandshell.com/posts/running-counter-strike-1-6-and-csgo-in-kubernetes/ Wed, 29 Apr 2020 14:09:45 +0000 https://lifeandshell.com/posts/running-counter-strike-1-6-and-csgo-in-kubernetes/ Yee so it was a long time ago when I spend days playing counter strike 1.6. And now when i got some more power full servers and some time I was thinking of setting up a some counter-strike server for me and some friends so we can play. I have a nice kubernetes cluster in my garage and a run all my stuff inside kubernetes so it was natural to make them into a kubernetes deploy. Raspberry pi And Tellusd https://lifeandshell.com/posts/raspberry-pi-and-tellusd/ Mon, 20 Apr 2015 09:24:02 +0000 https://lifeandshell.com/posts/raspberry-pi-and-tellusd/ Im using tellus to get info from my sensors like huminity and temp. And to get to work am using my rasp pi to recive and send siganls. Here is a quick guide to install and setup tellusd on you raspberry.   1. Verify that tellus is there pi@raspberrypi ~ $ lsusb Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. Recover you python files from rm -rf * https://lifeandshell.com/posts/recover-you-python-files-from-rm-rf/ Thu, 03 Apr 2014 14:49:50 +0000 https://lifeandshell.com/posts/recover-you-python-files-from-rm-rf/ So after cleaning up my work i run rm -rf * in the woring folder. Deleting all my work!. After fighting holding back some tears I set down and start see if i could recover my lost work. First recover you file from the filesystem and my laptop is an ubuntu desktop sudo apt-get install extundelete Then its time to recover the files i run this command to get my lost folder back Installing Plex Mediaserver Centos 6 https://lifeandshell.com/posts/installing-plex-mediaserver-centos-6/ Sun, 16 Feb 2014 11:34:53 +0000 https://lifeandshell.com/posts/installing-plex-mediaserver-centos-6/ So I use plex for my media and i have a small server running with my plex server on it. and here is how I install plex server on my home centos server. This guide will work on several Linux dist 1. Grab latest plex server go to https://plex.tv/downloads and choose the one best match for you system I got wget http://downloads.plexapp.com/plex-media-server/0.9.8.18.290-11b7fdd/plexmediaserver-0.9.8.18.290-11b7fdd.x86_64.rpm Install the package rpm -i plexmediaserver-0.9.8.18.290-11b7fdd.x86_64.rpm Start the plex server Mining Litecoins and Feathercoin https://lifeandshell.com/posts/mining-litecoins-and-feathercoin/ Mon, 23 Dec 2013 11:05:37 +0000 https://lifeandshell.com/posts/mining-litecoins-and-feathercoin/ Start mining some coins right now. First you need to sign up to some mining pools. I use for Litecoins http://pool-x.eu and for Feathercoin https://ftc.d2.cc. You can have differnt mining task running on you GPU ore on you CPU. I at the moment only using my CPU but it i get the GPU runing as well i will update the blog. This is and great blog on how to get started with minerd Install Diaspora one Centos 6.4 with Apache https://lifeandshell.com/posts/install-diaspora-one-centos-6-4-with-apache/ Sun, 24 Nov 2013 21:25:42 +0000 https://lifeandshell.com/posts/install-diaspora-one-centos-6-4-with-apache/ So Im going to test diaspora on one of my virtual server with run centos 6.4. Setup Centos Setup Repos wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm" Install packages yum install tar make automake gcc gcc-c++ git net-tools libcurl-devel libxml2-devel libffi-devel libxslt-devel tcl redis ImageMagick npm mysql-server mysql-devel httpd mod_ssl libyaml libyaml-devel patch readline-devel libtool bison Start services chkconfig --level 3 httpd on chkconfig --level 3 mysqld on chkconfig --level 3 redis on   Rolling back Andrioid on your Nexus 4 after Ubuntu https://lifeandshell.com/posts/rolling-back-andrioid-on-your-nexus-4-after-ubuntu/ Mon, 04 Nov 2013 16:58:16 +0000 https://lifeandshell.com/posts/rolling-back-andrioid-on-your-nexus-4-after-ubuntu/ So i had to roll back to andriod. ubunut is not realy ready for my phone. So this is how you do. 1. download you andriod images from here https://developers.google.com/android/nexus/images#nakasi Download and untar in nice folder. 2. Connect with USB to phone and power it on (Booting to ubuntu is ok) run adb reboot-bootloader This will make the phone go into boot image.   3. Install andriod in the folder that the downloadin andriod image is in run Ubuntu Phone First Week https://lifeandshell.com/posts/ubuntu-phone-first-week/ Sat, 26 Oct 2013 19:47:46 +0000 https://lifeandshell.com/posts/ubuntu-phone-first-week/     So my first week has gone since i rooted my Nexus 4 and installed the new Ubuntu phone. It was realy easy to root and install the phone the hole process was done in 30 min including backup. It has bean I hard week but now at the end life with the phone is better. So the ONLY things that really work in the phone is. Make and receives calls Send and receives SMS With i browser surf (Only from wifi ) That about it so my connections to the world when Im on the road is dead. Install Bitsync on Raspberry Pi https://lifeandshell.com/posts/install-bitsync-on-raspberry-pi/ Fri, 13 Sep 2013 19:50:03 +0000 https://lifeandshell.com/posts/install-bitsync-on-raspberry-pi/ So today im using dropbox to sync all my stuff between devices. But now there are so much there so my free space is almost full. So now its time for me to move to bitsync an then sync all my devices. Install bitsync Go to folder /opt cd /opt Download bitsync wget "http://btsync.s3-website-us-east-1.amazonaws.com/btsync_arm.tar.gz" unpack it chmod 700 btsync_arm.tar.gz tarr zxvf btsync_arm.tar.gz Start it cd bitsync ./bitsync go to the webbpage