16 February 2022

how to increase HD size of Linux running on VMware

https://stackoverflow.com/questions/26471342/how-to-increase-hd-size-of-linux-running-on-vmware


  1. Select the virtual machine from the Inventory.(but do not play it yet)
  2. Click Edit Virtual Machine Settings.
  3. Click Hard Disk.
  4. Click Utilities > Expand, enter the new size, then click Expand
then follow -

https://www.blogger.com/blog/post/edit/1465409931044501400/3855944897293597264

Size viewed with GParted and that with df are different

https://askubuntu.com/questions/401503/resized-partition-with-gparted-size-with-df-h

 

Try running

 lvextend -L +1G /dev/mapper/kvg-root

the +1G is however much space you are adding. Try doing +9G.

then do

 sudo resize2fs /dev/mapper/kvg-root

05 February 2022

How to convert a .rst file into a .html file?

If docutils is not installed, install it with the following command -

#python -m pip install docutils

===================================================

Method 1 (better than Method 2)

https://docutils.sourceforge.io/docs/user/tools.html#rst2html5-py

# rst2html5.py --help

# rst2html5.py <source_rst_file_name.rst> <output.html>



===================================================

Method 2

https://www.geeksforgeeks.org/restructuredtext-rst-file-to-html-file-using-python-for-documentations/

The following python script will convert 'restructured.rst' into 'output.html'


import docutils.core

docutils.core.publish_file(
    source_path ="restructured.rst",
    destination_path ="Output.html",
    writer_name ="html")