In addition to the normal pam_mkhomedir.so I wanted to create a directory for each user on an alternative disk. To do so I edited: vi /etc/pam.d/password-auth added the line below (just above the line: session optional pam_mkhomedir.so) session optional pam_exec.so /usr/local/bin/create_dir.sh Then created the create_dir.sh file: vi /usr/local/bin/create_dir.sh and added the following: #!/bin/bash if [… Read more »
Posts By: jonny
Gitlab Omnibus – Change the Nginx Port
Ignore original text below. The correct method is to amend the /etc/gitlab/gitlab.rb file with the port e.g.: external_url “https://gitlab.domain.co.uk:8443” nginx[‘ssl_certificate’] = “/etc/pki/tls/certs/pubkey.pem” nginx[‘ssl_certificate_key’] = “/etc/pki/tls/private/privkey.pem” Then run: gitlab-ctl reconfigure Doing a ps -ef | grep nginx allowed me to track down the configuration file: /var/opt/gitlab/nginx/etc/gitlab-http.conf That file specified the port number (see below) and… Read more »
Rebuild Win 2008R2 Domain Controller with Same Name

We recently needed to rebuild a Windows 2008R2 Domain Controller from scratch using the same name as it previously used. So we first needed to remove the existing server details from the Directory using ntdsutil as follows (copied from MS site): 1. Click Start, point to Programs, point to Accessories, and then click Command Prompt…. Read more »
Linux Voice Magazine with my name in it!

Linux Voice magazine Issue Number 1 arrived today: and my name as a ‘Founder’ from the IndieGogo campaign appears on page 111. Apparently I’m awesome.
Run Windows MMC as a different user

While logged in to a Windows Desktop as a normal domain user (jonny) I wanted to be able to run the Active Directory Users and Computers snap-in as a Domain Admin user (adm-jonny) to do so requires using the ‘runas’ command. When I had first tried using the ‘runas’ command I had problems related to… Read more »
Entangle Canon 60D Tethered Shooting on Ubuntu

I wanted to test tethered shooting with my Canon EOS 60D. Tethered shooting is useful when you want to see a large view of your captured images while shooting. I had connected the camera to the computer via USB cable – I had to try a few cables before I got the appropriate one –… Read more »
Vuze IP Address Filters

Vuze has built-in ability to exclude IP addresses under Options > IP Filters iBlockList.com have many of these lists and the bluetack level 1 list address is: http://list.iblocklist.com/?list=bt_level1&fileformat=p2p&archiveformat=gz This URL should be entered into the space labelled: IP Filter file to autoload This will restrict sharing with any of the listed IP addresses.
Named: libcrypto.so.10: no version information available

We had a problem today on CentOS release 6.4 when restarting the bind / named service. We had been receiving the error message: /usr/sbin/named: /usr/lib64/libcrypto.so.10: no version information available (required by /usr/lib64/libdns.so.100) This problem may have come about from using the CentAlt version of Bind. We are using 40:9.9.4-1.P2.el6 and we had been using openssl-1.0.0-27.el6_4.2.x86_64 … Read more »
Disk Space Usage on Linux

An example of narrowing down disk space usage issues on Linux. Starting with the following command: df -h We see that the root volume has 16% space left. Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 129G 103G 20G 84% / cd / We need to run the du command but I wanted to exclude… Read more »
Nagios Check for Windows Updates

My colleagues have been getting a little frustrated by the “Plugin Timeout” messages in Nagios resulting from the length of time it takes to check for Windows Updates. I had been using Jules Check for Windows Updates that essentially boils down to calling: $updateSession = new-object -com “Microsoft.Update.Session” $updates=$updateSession.CreateupdateSearcher().Search((“IsInstalled=0 and Type=’Software'”)).Updates So I took Jules’… Read more »