GitLab SSH Key Windows

Prerequisites:

  1. Download git-scm
  2. GitLab server
  3. Open the C:/user/your-user/.ssh/ and create the SSH key via git-bash:
    >> ssh-keygen.exe -t rsa -b 4096
  4. Add the public key to your GitLab account
    4.1 Enter your GitLab website
    4.2 Click on your profile, then ‘Setting’ and after that select ‘SSH-Keys’
    4.3 Follow the instructions of GitLab for adding a new key
  5. Create a ‘config‘ file (without extension) in C:/user/your-user/.ssh/ and add the following content:
    Host sample_1
        user git
        hostname git.domain.com
        port 22
        identityfile ~/.ssh/generated-private-key-file_1
    
    # For multiple ssh-key you can add more than one host
    Host sample_2
        user git
        hostname git.domain.com
        port 22
        identityfile ~/.ssh/generated-private-key-file_2
  6. Test it with the git-bash console:
    git clone git@sample:project.git
  7. [Optional] If the key could not be found try to add the following argument to your environment variables:
    Name:  HOME
    Value: %USERPROFILE%

Cloning Bootable Linux Disk

I got a new and bigger HDD for my webserver and so I decided to clone my existing one (128GB) to the new one (512GB). The best thing was that I didn’t need to install and configure all my applications again, so here is a short manual that worked in my case.

  1. Download Ubuntu Desktop
  2. Create a bootable USB disk with Rufus
  3. Start from USB disk and choose “Try Linux from bootable media”
  4. After Linux has started open a terminal and enter the following commands to copy the disk layout:
    >> sudo bash [go to superuser mode]
    >> fdisk /dev/sda [source disk]
    >> o [dump disk layout to file]
    >> q [quit]
    >> fdisk /dev/sdb [destination disk]
    >> d [delete]
    >> I [load disk layout from currently saved sda layout]
    >> w [write layout]
  5. Now clone all data from the source disk to the destination disk by following this command:
    >> dd if=/dev/sda1 of=/dev/sdb1 bs=64K conv=noerror,sync [blocksize 64K, don't stop on error and keep syncing] Don't mix up input and output disk!!!
  6. Now you have to make the destination disk bootable again:
    >> mount /dev/sdb1 /mnt
    >> grub-install --root-directory=mnt /dev/sdb
  7. If all worked correctly you can optionally open gparted and resize the cloned partation to your needings.

 

GDAL Python gdal_retile.py

Here is a small installation manual for GDAL and Python:

  1. Install GDAL core
  2. Install Python 3.3 and add the Python main path to the environment variable ‘path’ of your System
  3. Add GDAL_DATA to your environment variables
  4. Install GDAL Python bindings

If all there were no errors during installation GDAL Python scripts should work. Please be aware that all software parts are x64 and do have the same Python Version!

XG4 Toshiba NVME SSD Configuration Windows 10

  1. See if you have the latest bios update
  2. Download and install the latest Intel Rapid Storage driver provided by your mainboard manufacturer
  3. Go to the OCZ Homepage and download the RD400 driver
  4. Open the Windows ‘Device Manager’, go to ‘Storage Controllers’
  5. Right click the ‘Standard NVM Express Controller’ and choose ‘Update Driver Software’, then ‘Browse my computer for driver software (locate and install driver software manually)’
    Choose the ‘Let me pick from a list of device drivers on my computer’.
  6. Uncheck the ‘Show compatible hardware’ box to show the manufacturer list.
    From the manufacturer list you need choose ‘Toshiba’ and from the models select ‘RD400’
  7. Click the ‘Next’ button, close the window and restart your computer.

Optionally you can update the firmware of the XG4:

Consider that it is not my fault if you are loosing any data or if you are destroying your SSD drive!

  1. Download or use the Google search: xg4 dell firmware
  2. Double click the executeable
  3. Select the checkbox next to your XG4 from the HDD list
  4. Update and restart your Computer

The SSD Utility of OCZ is also working with that driver. Here is a link to download it.

Here are my test results:

Qt Creator Debugging Tools for Windows

After a fresh installation of Qt and Visual Studio 2015 I had some problems in configuring developing kits in the Qt Creator application. The main problem was that it could not find any debugger, so here is a small guide where you can save a little bit more time to setup all correctly:

  1. Download and install Microsoft Visual Studio Community 2015
  2. Download and install Qt
  3. Download the full package Windows 10 SDK
  4. After download execute the setup and select only ‘Debugging Tools for Windows’ for installation

Connect Synology Diskstation with Ubuntu Server

Here is a small manual for setting up a connection between an Ubuntu server and a Synology Diskstation. Prerequesites are that you created a shared folder and configured your Diskstation successfully. After that you can start sharing that content to your Ubuntu server.

  1. Open the Diskstation Web Application
  2. Go to “Control Panel – Shared Folder”
  3. Open “NFS-Access”
  4. Create a new one
    Client: *
    Privilegde: Read/Write
    Root squash: default
    Asynchronous: Yes
  5. Write down the mount path from the bottom of this pop-up, in my case it was “/volume1/Backup”
  6. Open a shell on your Ubuntu server
    sudo apt-get install nfs-common
    sudo mkdir /mnt/diskstation
    sudo mkdir /mnt/backup
    sudo mount -t nfs 192.168.0.X:/volume1/Backup /mnt/backup
  7. Congratulations! You just added a Synology Diskstation to your Ubuntu server.

What now? Perhaps you want to sync your data (like I did):

rsync -rvz /mnt/diskstation /mnt/backup
-r ... include subdirectories
-v ... verbose mode, display output
-z ... compress content for lesser network traffic

Qt QML Compile Sources for OpenGL Visual Studio 2015

To build the Qt sources by your own you have to do the following steps:

  1. Download and install Visual Studio 2015. I took the Community edition.
  2. Download and install Qt. I took the Visual Studio 2015 Desktop version.
  3. Download and install Python. It has to be installed to compile QML.
  4. Open the Visual Studio ‘Developer Command Prompt for VS2015’: Windows Start – Visual Studio 2015 – Developer Command Prompt for VS2015
  5. Than run the following command chain
    >> cd "Path/to/the/Qt/source/folder/" (in my case C:\Qt\5.7\Src)
    
    Follow this link to get more information about the configuration parameters. In my case I recompile the source code to use OpenGL.
    
    >> configure -opengl -desktop -platform win32-msvc2015
    
    The supported platform parameter could be found in this directory: 'C:\Qt\5.7\msvc2015_64\mkspecs'. The parameter title is the directory name.
    
    >> nmake
    
    Now lay back and drink a coffee. It will at least last a hour...
  6. For using OpenGL insert the following to your pro file
    QT += qml quick opengl
    LIBS += 'C:/Program Files (x86)/Windows Kits/10/Lib/10.0.14393.0/um/x64/OpenGL32.Lib' (in my case, just search for the OpenGL32.Lib)
  7. Congratulations! Now you can start with QML and OpenGL!