I want to convert Linux kernel rst files to html document.
Please provide clear steps to install the required packages and commands to generate rst file to html.
I have installed sphinx with below command
sudo apt-get install sphinxsearch
Facing an error when I run 'make htmldocs'
The Sphinx 'sphinx_rtd_theme' HTML theme was not found
If possible, could you please help me with right packages to install?
It looks like tricky and I have tried enough.
I just have figured it out that there is a document in the Linux kernel which explains the required information to use 'make pdfdocs':
Reference: Documentation/doc-guide/sphinx.rst
#sudo apt-get install sphinxsearch
#sudo apt-get install python-sphinx-rtd-theme
#sudo apt-get install texlive-latex-recommended
#sudo apt-get install texlive-base
#sudo apt-get install graphviz
#sudo apt-get install imagemagick
Run below commands from kernel root directory
#/usr/bin/virtualenv ~/sphinx_1.4
#. ~/sphinx_1.4/bin/activate
#pip install -r Documentation/sphinx/requirements.txt
#make htmldocs
Generated html documents are located at Documents/output
Related
I am running a phantomJS command which converts HTML to a PDF buffer on Docker containing Cent OS. The PDF renders fine, but the font/font format is rendering
The available fonts on the system are:
/usr/share/fonts/lyx/eufm10.ttf: eufm10:style=LyX
/usr/share/fonts/lyx/cmsy10.ttf: cmsy10:style=LyX
/usr/share/fonts/lyx/msam10.ttf: msam10:style=LyX
/usr/share/fonts/lyx/cmmi10.ttf: cmmi10:style=LyX
/usr/share/fonts/lyx/wasy10.ttf: wasy10:style=LyX
/usr/share/fonts/lyx/esint10.ttf: esint10:style=LyX
/usr/share/fonts/lyx/rsfs10.ttf: rsfs10:style=LyX
/usr/share/fonts/lyx/stmary10.ttf: stmary10:style=LyX
/usr/share/fonts/lyx/cmex10.ttf: cmex10:style=LyX
/usr/share/fonts/lyx/msbm10.ttf: msbm10:style=LyX
/usr/share/fonts/lyx/cmr10.ttf: cmr10:style=LyX
How do I fix this to use a readable font?
I can enforce an inline style font family but what would I set it to in order for it to be readable?
Perhaps I should be installing fonts in my Docker file.
Thanks!
Forgot to follow up on this but basically found some libs to fill this void and fix the font issue. Hope it will be useful if anyone runs into this issue.. In my Dockerfile, I run the following:
RUN yum install libXext -y
RUN yum install libXrender -y
RUN yum install xorg-x11-fonts-Type1 -y
RUN yum install xorg-x11-fonts-75dpi -y
RUN yum install xorg-x11-fonts-100dpi -y
I have Ubuntu 14.04 on DigitalOcean, I tried to install ImageMagick
I have found and followed this instruction
I have updated my installation with this command
sudo apt-get update
Then I tried following
wget http://mirror.checkdomain.de/imagemagick/ImageMagick-6.9.2-10.tar.gz
tar -xvzf ImageMagick-6.9.2-10.tar.gz
cd ImageMagick-6.9.2-10
./configure
sudo make
sudo make install
But while it sudo make process, it returns error as you can see in the screen shot.
What I am doing wrong and how can I install it correctly?
First all it is a good practice to have things updated:
sudo apt-get update
Next, you should install imagemagick and php5-imagick from the repository:
sudo apt-get install imagemagick php5-imagick
And finally reload your web server.
I'm trying to install ggmap library in my Rstudio but I get the following error:
ERROR: dependency ‘rjson’ is not available for package ‘ggmap’.
Is there any other way of installing it, I tried via menu Tools - Install packages or via console with command install.packages("ggmap").
How can I make it work?
Wild guess (for missing dependency):
sudo apt-get install r-base r-base-dev
sudo apt-get install r-cran-rjson
Filelist of r-cran-rjson package
or installation from Launchpad:
sudo add-apt-repository ppa:opencpu/rstudio
sudo apt-get update
sudo apt-get install rstudio-server
Please see this reference for details
first install rjson library using command prompt
install.packages("rjson",depend =TRUE)
Now install ggmap library
1.install.packages("rjson",depend =TRUE)
OR
2.Download and unzip
http://cran.r-project.org/web/packages/ggmap/index.html
If it doesn't work do
update.packages(repos="http://cran.revolutionanalytics.com")
Best Way is to open synaptic :
tap rjson
right-click ( select for installation )
apply
close synaptic
and in R session install.packages("ggmap")
I have tried to install Gnome in by using this below code
apt-get install aptitude tasksel
tasksel install gnome-desktop --new-install
When Instaling packages it get failed:
tasksel apt-get failed(100)
Problem #1 - Held packages
It could be because you have some packages which are held and cause conflicts with new version of Gnome you are trying to install. please run following command
# apt-get install gnome-desktop-environment
if it tells you something about such conflicts feel free to run the following command
# aptitude
and press g and that will list the packages to be removed press g once more to perform the removal.
now try again the following
# tasksel gnome-desktop
Problem #2 Low disk space
You might be having low disk space in your partition mounted as / (root) run the following to check
# df -h
if the available space is too less, you can manually free some space if possible. Also run the following to free up some more space
# apt-get clean
# apt-get autoremove
and then retry tasksel gnome-desktop
Hope that helps.
Before downloading anything, you should update your package database with:
# apt-get update
Then try to
# apt-get install gnome-desktop-environment
Remember that you should run all apt-get commands as root.
You can follow this article http://namhuy.net/1085/install-gui-on-debian-7-wheezy.html to install Gnome in Debian
Aptitude is an Ncurses based FrontEnd to Apt, the debian package manager.
Tasksel is a tool that installs multiple related packages as a co-ordinated “task” onto your system.
# apt-get install aptitude tasksel
Install gnome on debian
# tasksel install gnome-desktop --new-install
I'm trying to write a rather trivial program using open gl on linux, but at a compile time it says:
Compile thumb : egl <= cuberenderer.c
In file included from
/path/include/egl.h:36,
from /path/cuberenderer.c:7:
/path/include/eglplatform.h:89:22:
error: X11/Xlib.h: No such file or
directory
/path/include/eglplatform.h:90:23:
error: X11/Xutil.h: No such file or
directory
I'm totally new to GL and have no idea what's wrong.
A quick search using...
apt search Xlib.h
Turns up the package libx11-dev but you shouldn't need this for pure OpenGL programming. What tutorial are you using?
You can add Xlib.h to your system by running the following...
sudo apt install libx11-dev
Presume he's using the tutorial from http://www.arcsynthesis.org/gltut/ along with premake4.3 :-)
sudo apt-get install libx11-dev ................. for X11/Xlib.h
sudo apt-get install mesa-common-dev........ for GL/glx.h
sudo apt-get install libglu1-mesa-dev ..... for GL/glu.h
sudo apt-get install libxrandr-dev ........... for X11/extensions/Xrandr.h
sudo apt-get install libxi-dev ................... for X11/extensions/XInput.h
After which I could build glsdk_0.4.4 and examples without further issue.
Why not try find /usr/include/X11 -name Xlib.h
If there is a hit, you have Xlib.h
If not install it using sudo apt-get install libx11-dev
and you are good to go :)