This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.
Step 1 - Enable NBD on the Host
modprobe nbd max_part=8
| #!/bin/bash | |
| ## List all manually installed packages on a debian/ubuntu system | |
| ## manually installed means: | |
| ## 1. not pre-installed with the system | |
| ## 2. not marked auto-installed by apt (not dependencies of other | |
| ## packages) | |
| ## Note: pre-installed packages that got updated still needs to be | |
| ## filtered out. |
| get_window_name() | |
| returns a string containing the name of the current window. | |
| get_application_name() | |
| returns the application name of the current window. | |
| set_window_position(xpos, ypos) | |
| Sets the position of a window. | |
| set_window_size(xsize, ysize) |
| /* | |
| * Copyright (C) 2017 Alberts Muktupāvels | |
| * | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| You want to use a live wallpaper in x11? | |
| Great!!...but It come as a cost. | |
| I did experiment with .gif backend and non hardware accelerate backend, It sucks. | |
| CPU usage was so high (40% up just for idle), unacceptable for my laptop. | |
| Running with those backend for such a really long time will slowly turn your laptop into the hot potato. | |
| But don't be upset, we can reduce those cost. | |
| Using the video player with hardware video decoding support can reduce the cost. |
| ${alignc}${font Dejavu Sans Mono:size=8}GPU ${exec cat /sys/class/drm/card0/device/gpu_busy_percent}%${font} | |
| ${color3}${execgraph "cat /sys/class/drm/card0/device/gpu_busy_percent" 3fa5ff 3fa5ff} | |
| ${color1}Temp${color} ${hwmon 2 temp 1} | |
| ${color1}GPU clk${color} ${exec grep -Po '\d+:\s\K(\d+)(?=.*\*$)' /sys/class/drm/card0/device/pp_dpm_sclk} | |
| ${color1}Mem clk${color} ${exec grep -Po '\d+:\s\K(\d+)(?=.*\*$)' /sys/class/drm/card0/device/pp_dpm_mclk} | |
| ${color1}Mem${color} ${exec numfmt --to=iec < /sys/class/drm/card0/device/mem_info_vram_used} | |
| ${color1}Fan${color} ${hwmon 2 fan 1} |
| /* | |
| [configuration] | |
| [OptionRangeFloat] | |
| GUIName = Blur Area | |
| OptionName = BLUR_SIZE | |
| MinValue = 0.0 | |
| MaxValue = 10.0 | |
| StepAmount = 0.1 | |
| DefaultValue = 1.6 |