avatar

Underkube

Using a PS3 wheel in PS4 with Gimx

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

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

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

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.

Sync rpm & yum databases

If you install some rpm without yum (rpm -Uvh), you should see the following error: ... Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : whatever.x86_64 ... This is because the yum database (/var/lib/yum/*) is out of sync with the rpm database (/var/lib/rpm/*), and to fix it you can execute: yum history new You can also wait to install another package, then yum will resync the databases

Install cockpit in CentOS7

NOTE: Slightly stolen from https://jreypo.wordpress.com/2015/01/09/how-to-install-cockpit-on-centos-7/ Download the virt7-testing repo from the cockpit github wget -O /etc/yum.repos.d/virt7-testing.repo https://github.com/baude/sig-atomic-buildscripts/raw/master/virt7-testing.repo Install cockpit yum install -y cockpit Enable cockpit (notice it’s not a service but a socket) systemct enable cockpit.socket Add cockpit service to firewalld allowed services firewall-cmd --permanent --add-service=cockpit Reload the firewall to enable the previous step firewall-cmd reload Create a custom systemd configuration file for cockpit service to workaround this issue cat > /etc/systemd/system/cockpit.

Custom tuned profile in RHEL7

Tuned has been improved from RHEL6 and the process to create a custom tuned profile has changed. The syntax is now “ini"fied and the process to create a custom profile (i.e.- my-virtual-host) is slightly different. In this example, I’ll modify the virtual-host profile and add some script to customize it: Install tuned (if it’s not installed yet) yum install -y tuned Create a directory inside /etc/tuned named “my-virtual-host” mkdir -p /etc/tuned/my-virtual-host/ Create a custom profile and include the virtual-host one: cat > /etc/tuned/my-virtual-host/tuned.

En busca del drone perdido:

Tras probar el vuelo interior del Hubsan x4 y ver que no tenía muchas protecciones, decidimos salir a probar el drone fuera. El sitio elegído era la Dehesa de Navalcarbón (Las Rozas), un sitio con muchos árboles, pero teníamos localizada una zona donde había pocos y no molestábamos a nadie. Hacía un poco de viento pero… bah, venga, por probarlo… Antes de salir, hice un pedido a banggood de varias baterías extra y un protector del drone para poder volarlo en interiores.

spacecmd issues and cache

When using spacecmd, it caches stuff like systems and packages. If you are doing operations like register and delete systems, maybe it’s useful to delete the cache if there are messages like: ERROR: redstone.xmlrpc.XmlRpcFault: No such system - sid = 1000010740 To clear cache, use: spacecmd clear_caches

Set file as executable in svn

chmod doesn’t do the trick, so you need to set the proper flag in svn with: svn propset svn:executable ON <filename>