$ sudo apt install aptitude
# clear out minion-nc and associated packages $ sudo aptitude purge minion-nc # clear out existing configuration files $ sudo aptitude purge 'minknow ~c' 'minion ~c' 'guppy ~c' # remove the minknow installation directory $ sudo rm -rf /opt/ont/minknow # remove guppy service files $ sudo rm -i /lib/systemd/system/guppyd.service
$ sudo aptitude install minion-nc
$ guppy_basecaller -v
$ mkdir -p /opt/ont/guppy/ont-guppy_6.2.11 $ tar -C /opt/ont/guppy/ont-guppy_6.2.11 -xf ont-guppy_6.2.11_linux64.tar.gz
$ cd /opt/ont/guppy/ $ ln -s ont-guppy_6.2.11 ont-guppy_current
$ export installDir="/opt/ont/guppy/ont-guppy_current"
$ mkdir -p ~/ont_conf_backups $ sudo cp /opt/ont/minknow/conf/app_conf ~/ont_conf_backups/app_conf.$(date +%Y-%b-%d) $ sudo cp /etc/systemd/system/guppyd.service ~/ont_conf_backups/guppyd.service.$(date +%Y-%b-%d)If the `guppyd.service` file doesn't exist, it can be copied from the `guppyd-cpu.service` file in `/lib/systemd/system`.
$ sudo cp /lib/systemd/system/guppyd-cpu.service /etc/systemd/system/guppyd.service $ sudo cp /etc/systemd/system/guppyd.service ~/ont_conf_backups/guppyd.service.$(date +%Y-%b-%d)Now your new service name is "guppyd.service", I continued, as stated before, with "guppyd-cpu.service"!
$ sudo service minknow stop $ sudo service guppyd-cpu stopI usually use "htop" to check if a program is running. In htop press F4 to filter for a specific keyword.
($ export installDir="/opt/ont/guppy/ont-guppy_current") <-- optional here as already defined before $ sudo /opt/ont/minknow/bin/config_editor --conf application \ --filename /opt/ont/minknow/conf/app_conf \ --set guppy.server_config.server_executable="${installDir}/bin/guppy_basecall_server" \ --set guppy.client_executable="${installDir}/bin/guppy_basecall_client" \ --set guppy.barcoding_executable="${installDir}/bin/guppy_barcoder" \ --set guppy.alignment_executable="${installDir}/bin/guppy_aligner" \ --set guppy.minimap_executable="${installDir}/bin/minimap2" \ --set guppy.connection.use_tcp=1 \ --set guppy.server_config.gpu_calling=1
$ sudo apt install tildeOpen the service configuraton file and change the line starting with "ExecStart".
$ sudo systemctl edit guppyd-cpu.service --fullAdd to the line starting with "ExecStart":
"Error binding server to port: /tmp/.guppy/5555. Aborting."when trying to start the guppy service.
$ sudo rm -f /etc/systemd/system/guppyd-cpu.service.d/override.confReload systemctl to register the configuration file changes you made, then restart the guppyd-cpu and minknow services:
$ sudo systemctl daemon-reload $ sudo service guppyd-cpu start $ sudo service minknow startWhen now running:
$ nvidia-smiit should report the guppy process "guppy_basecall_server" running on you GPU.
+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 1312 G /usr/lib/xorg/Xorg 259MiB | | 0 N/A N/A 1678 G xfwm4 3MiB | | 0 N/A N/A 2289 G /usr/lib/firefox/firefox 180MiB | | 0 N/A N/A 4807 C ...bin/guppy_basecall_server 2492MiB | | 0 N/A N/A 5041 G ...AAAAAAAAA= --shared-files 21MiB | +-----------------------------------------------------------------------------+To have a GUI-view on the activity of the GPU-basecalling I like the use the Phyton script nvidia-smi-gui which is available at Github https://github.com/imkzh/nvidia-smi-gui
$ sudo service minknow stop $ sudo service guppyd-cpu stop
Hopefully everything is now working. :)
The End.