GNU Linux/Useful Commands

From Personal Wiki
Revision as of 04:10, 19 December 2024 by Root (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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