GNU Linux/Useful Commands: Difference between revisions

From Personal Wiki
Created page with "== File Conversion == === Batch Convert Man Pages into HTML files === Requires the mandoc program to be installed. <code>mkdir html && for x in .; do mandoc -Thtml -O man=./html/%N.%S.html,toc $x > html/$x.html; done</code> == Virtual Machines == I've found this to be more useful than guestmount (provided by the libguestfs-tools package for Ubuntu), because it does not require superuser privileges to execute, and is easy to unmount afterwards. Based on the answer prov..."
 
mNo edit summary
Line 1: Line 1:
[[Category:GNU Linux]]
== File Conversion ==
== File Conversion ==



Revision as of 04:19, 19 December 2024


File Conversion

Batch Convert Man Pages into HTML files

Requires the mandoc program to be installed.

mkdir html && for x in .; do mandoc -Thtml -O man=./html/%N.%S.html,toc $x > html/$x.html; done

Virtual Machines

I've found this to be more useful than guestmount (provided by the libguestfs-tools package for Ubuntu), because it does not require superuser privileges to execute, and is easy to unmount afterwards. Based on the answer provided on Super User: https://superuser.com/a/1548983.

mkdir -p ~/tmp/windows10-vm
nbdfuse ~/tmp/windows10-vm [ qemu-nbd path_to_disk_image ] &
fusermount -u ~/tmp/windows10-vm