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.
- Download Ubuntu Desktop
- Create a bootable USB disk with Rufus
- Start from USB disk and choose “Try Linux from bootable media”
- 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]
- 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!!!
- Now you have to make the destination disk bootable again:
>> mount /dev/sdb1 /mnt
>> grub-install --root-directory=mnt /dev/sdb
- If all worked correctly you can optionally open gparted and resize the cloned partation to your needings.
I was always looking for something like that and now found it by accident: build Visual C++ applications for Windows without the overhead of downloading and installing Visual Studio. Personally I prefer Qt Creator as IDE, so here is the link.
Here is a small installation manual for GDAL and Python:
- Install GDAL core
- Install Python 3.3 and add the Python main path to the environment variable ‘path’ of your System
- Add GDAL_DATA to your environment variables
- 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!
- See if you have the latest bios update
- Download and install the latest Intel Rapid Storage driver provided by your mainboard manufacturer
- Go to the OCZ Homepage and download the RD400 driver
- Open the Windows ‘Device Manager’, go to ‘Storage Controllers’
- 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’.
- 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’
- 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!
- Download or use the Google search: xg4 dell firmware
- Double click the executeable
- Select the checkbox next to your XG4 from the HDD list
- 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:
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:
- Download and install Microsoft Visual Studio Community 2015
- Download and install Qt
- Download the full package Windows 10 SDK
- After download execute the setup and select only ‘Debugging Tools for Windows’ for installation
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.
- Open the Diskstation Web Application
- Go to “Control Panel – Shared Folder”
- Open “NFS-Access”
- Create a new one
Root squash: default
- Write down the mount path from the bottom of this pop-up, in my case it was “/volume1/Backup”
- 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
- 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
To build the Qt sources by your own you have to do the following steps:
- Download and install Visual Studio 2015. I took the Community edition.
- Download and install Qt. I took the Visual Studio 2015 Desktop version.
- Download and install Python. It has to be installed to compile QML.
- Open the Visual Studio ‘Developer Command Prompt for VS2015’: Windows Start – Visual Studio 2015 – Developer Command Prompt for VS2015
- 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.
Now lay back and drink a coffee. It will at least last a hour...
- 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)
- Congratulations! Now you can start with QML and OpenGL!