avatar

Underkube

Lock & unlock GNOME session using CLI

Jun 19, 2019
I personally use those commands with the gsconnect GNOME extension and KDE Connect on my Android phone: Lock 🔗gdbus call --session --dest org.gnome.ScreenSaver --object-path /org/gnome/ScreenSaver --method org.gnome.ScreenSaver.Lock Unlock 🔗loginctl unlock-session && xset dpms force on

Bash tips & tricks

Jun 18, 2019
Bash variable with the content of a file 🔗NTPFILECONTENT=$(cat /etc/chrony.conf) This will store the ‘\n’ characters as well. Display bash variable with the content of a file 🔗echo "${NTPFILECONTENT}" Beware the quotes Append content to a bash variable with a new line 🔗NTPFILECONTENT="${NTPFILECONTENT}"$'\n'"pool ${ntp} iburst" Create files with heredocs 🔗cat << EOF > /your/file mycontent even with spaces EOF Some details: You can use EOF or whatever you want. The EOF needs to be as it is, no whitespace before it.

Firewalld tips & tricks

Jun 18, 2019
Show all rules 🔗sudo firewall-cmd --list-all Redirect ports 🔗sudo firewall-cmd --zone="$(firewall-cmd --get-default-zone)" \ --add-forward-port=port=443:proto=tcp:toport=8443 --permanent sudo firewall-cmd --zone="$(firewall-cmd --get-default-zone)" \ --add-forward-port=port=80:proto=tcp:toport=8080 --permanent

Ignition tips & tricks

Jun 18, 2019
Ignition configuration explained 🔗https://coreos.com/ignition/docs/latest/configuration-v2_2.html Notes: file mode is decimal!!! file append = false to overwrite (otherwise it will be appended…)

OCP4 tips & tricks

Jun 18, 2019
I’ve migrated the content of this post to openshift.tips

First Post using Hugo and gitlab pages

Jan 3, 2019
2019 new year resolutions include to try to keep a blog updated… so far, I’ve: tweaked the config to use the basics theme imported the old ghost based blog posts using ghostToHugo let’s see how it goes :)

Using a PS3 wheel in PS4 with Gimx

Apr 17, 2016
I had a Driving Force GT wheel which is not supported and it doesn’t work in PS4, so it was basically covering in dust… but the community is awesome and there exists a project called gimx that enables support for old wheels in new systems like PS4, so I decided to give it a try, and after a few hours understanding what I needed and getting my hands dirty, it is working perfect with the DIY adapter (using a Chinese atmega32u4 + CP2102 converter) and a Raspberry PI 2.

Dockerize your tv shows download and streaming to your TV

Aug 21, 2015
I’m going to explain my setup of how do I watch my favourites tv shows using containers. Requisites 🔗 TV WiFi ChromeCast Plex for Android ShowRSS feed . You need to create an account and setup it with your favourites tv shows, so you’ll end up with some rss feed like http://showrss.info/rss.php?user_id=XXXXX&hd=1&proper=1 CentOS 7 (or any distro docker capable) with docker daemon installed and running Non root user to run all the commands (this is a personal preference, feel free to do it with root user if you want…) Shared folders to store your multimedia, flexget config & plex config.

OpenLDAP basic installation for OpenStack

May 14, 2015
Install openldap yum install -y openldap-servers openldap-clients Start the service systemctl start slapd Add the cosine and inetorgperson schemas: ldapadd -H ldapi:/// -Y EXTERNAL -f /etc/openldap/schema/cosine.ldif ldapadd -H ldapi:/// -Y EXTERNAL -f /etc/openldap/schema/inetorgperson.ldif Create a temporary config directory where the files will be placed: mkdir -p /root/ldapconf && cd /root/ldapconf Create the memberof overlay file: cat >./memberof.ldif<<EOF dn: cn={0}module,cn=config objectClass: olcModuleList cn: {0}module olcModulePath: /usr/lib64/openldap olcModuleLoad: {0}memberof.

Huawei E303 3G dongle in OpenWRT BarrierBreaker

Mar 15, 2015
This is a not detailed howto about to make Huawei E303 dongle work with OpenWRT BarrierBreaker. The first step is to follow the official guide to install all the packages needed, etc. Then, create the following files to add support for the 3G dongle: /etc/config/usb-mode-3g-e303.json { "messages" : [ "55534243000000000000000000000611060000000000000000000000000000", ], "devices" : { "12d1:14fe": { "*": { "t_vendor": 4817, "t_product": [ 5374 ], "msg": [ 0 ] } }, } } /etc/hotplug.