How to verify or generate file checksums
You can verify the checksum of a file with the built-in features of the operating systems On Macintosh and Linux Open the terminal window and execute the commands SHA-256 shasum -a 256 FILE_NAME On Windows CRC32, CRC64, SHA256, SHA1, BLAKE2sp Right-click…
Upgrade TeamCity to version 10
Upgrade TeamCity to version 10 Create a backup of the database and the server before the upgrade Disable the Chef-Client scheduled task and Chef-Client service to make sure Chef does not alter the server during the upgrade. Disable the authorized agents…
Set up the Artifactory repository authentication
To secure Artifactory repositories follow the steps below Log into Artifactory as an administrator On the left select Admin Add users In the Security menu select Users In the upper right select New Create users for admin, writer, and reader. Make sure…
The User Profile Service failed the sign-in. User profile cannot be loaded.
When you try to start a remote desktop connection to a Windows computer on the domain you may get the error message: The User Profile Service failed the sign-in. User profile cannot be loaded. To enable the User Profile update Remote into the computer…
Add SSH key to a Jenkins Git step
To access a Git repository Jenkins can use an SSH key. To add the SSH key to the Jenkins server use the following Chef script Store the SSH key in an encrypted data bag called “keys”. { "id": "ci_private_keys", "ci_github_key": "-----BEGIN…
Obfuscated passwords in TeamCity
Obfuscate the password in the TeamCity UI When a TeamCity build step needs to use a password, there is a way to obfuscate it. In the TeamCity web interface navigate to the project, On the project page open the Parameters page, Click the Add new parameter…
Manage Windows Backups
To manage the Microsoft Windows Backups you can use a command line tool. Open a command prompt as administrator Show the existing backup versions Wbadmin get versions Clean up the backup disk To keep a number of latest backups and delete the rest Wbadmin…
Generate a GUID in Chef with Ruby
When you need a unique string to name a resource in your Chef scrip, generate a GUID with SecureRandom.uuid To make sure the resource always gets a unique name: log "#{SecureRandom.uuid}" do message 'My message' level :info end
Chef custom resource is using the same property name as the called resource
When you create a Chef custom resource, you can call other resources including custom resources you have created. For ease of use it can be convenient to use the same property name as the called resource use. property :delay_mins, Fixnum,…
Bluetooth: Not Available in Sierra on the Macintosh
After software update in Sierra on my Macintosh, my Bluetooth mouse usually stops working. The toolbar displays the Bluetooth not available icon: When I click it, the “Bluetooth: Not Available” message is displayed. There are two recommended…