Posts By: jonny

Cropping / Masking a Video for Kdenlive

I was helping a friend with creating a video and we need to mask out the distracting content around the video subject. If I had this problem with a static image I would use Gimp and the ‘Crop’ tool but I couldn’t find anything in Kdenlive to allow me to crop out a small square… Read more »

Managing RDP Remote Desktop Sessions/Users

RDP Session Manager

It took me a little digging to re-discover the name of this tool that allows remotely logging RDP users off from other servers so I thought I would write it down in case I need a reminder. The command to run is: tsadmin.msc Or it can be added directly from the MMC.

Laravel Quick Start

Quick reminder of steps to setup a Laravel project on Ubuntu/Linux Mint and similar. First install composer: sudo apt install composer Install PHP dependencies: sudo apt install php-cli-prompt php-common php-composer-semver php-composer-spdx-licenses php-fpm php-json-schema php-mysql php-symfony-console php-symfony-filesystem php-symfony-finder php-symfony-process php7.0-cli php7.0-common php7.0-fpm php7.0-gd php7.0-json php7.0-mbstring php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-readline php7.0-xml php7.0-zip php7.0-gd php7.0-mbstring php7.0-mcrypt php7.0-mysql   Use composer to create your Laravel project: composer create-project –prefer-dist laravel/laravel myprojectname Install composer.json packages: composer install Generate a key for your new project into the .env file: php artisan key:generate Amend the .env file with database details and anything else you want to customise. You may want to install mysql with sudo apt install mysql-server Auth Scaffolding… Read more »

Resetting Root Password in Single User Mode

Using Red Hat  / CentOS etc one method of resetting the root user password is to boot into single user mode. To do so, interrupt the booting process if necessary so that you see the Grub boot menu: Press the ‘e‘ keyboard button to edit the boot parameters. You will see a menu with the… Read more »

Password-less Login to the MySQL Command Line

The goal here was to be able to log in to the MySQL command prompt be simply typing mysql rather than: mysql -u root -p This is particularly useful for automation of routine backups etc. mysql_config_editor The command mysql_config_editor has several options (e.g. add, remove, print) for managing encrypted passwords. To create a new login… Read more »

Connecting in to Docker MySQL Instance

Just recording a few of these steps for future reference. Pull the MySQL image from the hub: docker pull mysql/mysql-server:latest Run an instance: docker run -it -d -p 33060:3306 –name mysql-for-jonny -e MYSQL_ROOT_PASSWORD=opensesame -d mysql/mysql-server:latest Run a shell on the instance: docker exec -it mysql-for-jonny /bin/bash Once inside the instance use the MySQL client: mysql… Read more »

Gitlab Bulk Update can_create_group

I had been allowing normal users to create groups within Gitlab but subsequently discovered some confusion among users between groups and projects. Some users had been creating a group with a single project when a project with multiple members was more suitable. A decided to update the Gitlab CE database to amend the users table… Read more »

sssd ldap: No Group Members shown

Openldap group

With several machines configured to use OpenLdap for user and group authentication/permissions I was having the problem that the getent and id commands were not returning all the group information. My groups exist in the Ldap directory with members listed under ‘memberuid’ but when entering: id testuser I was getting: uid=15052(testuser) gid=10000(testgroup) groups=10000(testgroup) when I… Read more »

Minecraft Overviewer

Minecraft Overviewer

Just some instructions to remind myself how I got the Minecraft Overviewer working on CentOS. wget http://overviewer.org/builds/el6-64/7/overviewer-0.12.109.rpm yum install overviewer-0.12.109.rpm VERSION=1.9 wget https://s3.amazonaws.com/Minecraft.Download/versions/${VERSION}/${VERSION}.jar -P ~/.minecraft/versions/${VERSION}/ Now create a config file to tell Overviewer where the assets (texture images etc) are: vi overviewer_config texturepath = “/home/jonny/.minecraft/versions/1.9/1.9.jar” Then run Overviewer telling it the location of your config… Read more »

Gitlab API Command Line Access

There appears to be a few methods for managing a Gitlab installation from the command line. I liked python-gitlab and I installed it onto Linux Mint/Ubuntu as follows: apt-get install python-pip pip install python-gitlab After installation I created a config file: ~/.python-gitlab.cfg With the content as below but the private_token would need changed for your… Read more »