<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8339733306630510315</id><updated>2024-09-10T06:08:05.203-07:00</updated><category term="ubuntu"/><category term="android"/><category term="bugzilla"/><category term="emulator"/><category term="imei"/><category term="mysql"/><category term="mysql-workbench"/><category term="pdf generation"/><category term="qt4"/><category term="rails"/><category term="ruby"/><category term="table size"/><category term="ubuntu 12.04"/><category term="wkhtmltopdf"/><title type='text'>wkhtmltopdf with QT on Ubuntu 11.10</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8339733306630510315/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ankit</name><uri>http://www.blogger.com/profile/13307696864789183298</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8339733306630510315.post-3857669746341469259</id><published>2022-09-16T02:27:00.000-07:00</published><updated>2022-09-16T02:27:26.270-07:00</updated><title type='text'>Heapdump of Apache Flink in yarn mode</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
It happens some times when the apache flink yarn instance got crashed because of memory crash. Like:&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;pre style=&quot;background-color: white; border-width: 0px; font-size: 16px;&quot;&gt;&lt;span style=&quot;color: #222222;&quot;&gt;2017-02-08 16:04:53,272 INFO  org.apache.flink.yarn.YarnJobManager                          - Container container_e38_1486041380317_0381_01_000002 is completed with diagnostics: Container [pid=31161,containerID=container_e38_1486041380317_0381_01_000002] is running beyond physical memory limits. Current usage: 2.8 GB of 2 GB physical memory used; 4.3 GB of 4.2 GB virtual memory used. Killing container.
Dump of the process-tree for container_e38_1486041380317_0381_01_000002 :
    |- PID PPID PGRPID SESSID CMD_NAME USER_MODE_TIME(MILLIS) SYSTEM_TIME(MILLIS) VMEM_USAGE(BYTES) RSSMEM_USAGE(PAGES) FULL_CMD_LINE
        |- 31235 31161 31161 31161 (java) 1697 274 4501712896 729895 /usr/share/java/jdk1.7.0_67/bin/java -Xms1448m -Xmx1448m -XX:MaxDirectMemorySize=1448m -Dlog.file=/hadoop/yarn/log/application_1486041380317_0381/container_e38_1486041380317_0381_01_000002/taskmanager.log -Dlogback.configurationFile=file:logback.xml -Dlog4j.configuration=file:log4j.properties org.apache.flink.yarn.YarnTaskManagerRunner --configDir . 
    |- 31161 31159 31161 31161 (bash) 1 1 108654592 308 /bin/bash -c /usr/share/java/jdk1.7.0_67/bin/java -Xms1448m -Xmx1448m -XX:MaxDirectMemorySize=1448m  -Dlog.file=/hadoop/yarn/log/application_1486041380317_0381/container_e38_1486041380317_0381_01_000002/taskmanager.log -Dlogback.configurationFile=file:logback.xml -Dlog4j.configuration=file:log4j.properties org.apache.flink.yarn.YarnTaskManagerRunner --configDir . 1&amp;gt; /hadoop/yarn/log/application_1486041380317_0381/container_e38_1486041380317_0381_01_000002/taskmanager.out 2&amp;gt; /hadoop/yarn/log/application_1486041380317_0381/container_e38_1486041380317_0381_01_000002/taskmanager.err 

Container killed on request. Exit code is 143
Container exited with a non-zero exit code 143​&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;And its very much difficult to find anything from the log even after enabling the debugging logs.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
So it can be solved from the heapdump if yarn jobs.&lt;br /&gt;
&lt;br /&gt;
First enable the heapdump in flink-conf.yaml. Add the following line as:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;menlo&amp;quot; , &amp;quot;lucida console&amp;quot; , monospace; font-size: 12.6px;&quot;&gt;env.java.opts:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;monaco&amp;quot; , &amp;quot;bitstream vera sans mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;terminal&amp;quot;; font-size: 12px;&quot;&gt;-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=&amp;lt;LOG_DIR&amp;gt;/flink_heap_dump.hprof&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;monaco&amp;quot; , &amp;quot;bitstream vera sans mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;terminal&amp;quot;; font-size: 12px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt; &lt;span style=&quot;color: #333333; font-family: &amp;quot;monaco&amp;quot; , &amp;quot;bitstream vera sans mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;terminal&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;Once the apache flink yarn job got crashed collect the yarn job log that have the heapdump also as:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;monaco&amp;quot; , &amp;quot;bitstream vera sans mono&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;terminal&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;pre style=&quot;background: rgb(248, 248, 248); border-radius: 5px; border: 1px solid rgb(229, 229, 229); color: #333333; font-family: Monaco, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Lucida Console&amp;quot;, Terminal; font-size: 12px; margin-bottom: 20px; overflow-x: auto; padding: 8px 15px;&quot;&gt;&lt;code class=&quot;bash&quot; style=&quot;font-family: Monaco, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Lucida Console&amp;quot;, Terminal;&quot;&gt;yarn logs -applicationId application_1391047358335_0041 &amp;gt; &lt;/code&gt;application_1391047358335_0041.log&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/feeds/3857669746341469259/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/2017/02/heapdump-of-apache-flink-in-yarn-mode.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8339733306630510315/posts/default/3857669746341469259'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8339733306630510315/posts/default/3857669746341469259'/><link rel='alternate' type='text/html' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/2017/02/heapdump-of-apache-flink-in-yarn-mode.html' title='Heapdump of Apache Flink in yarn mode'/><author><name>ankit</name><uri>http://www.blogger.com/profile/13307696864789183298</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8339733306630510315.post-7268366889141424246</id><published>2014-08-27T08:40:00.003-07:00</published><updated>2020-09-02T08:18:14.471-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="android"/><category scheme="http://www.blogger.com/atom/ns#" term="emulator"/><category scheme="http://www.blogger.com/atom/ns#" term="imei"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Changing IMEI in emulator on Ubuntu</title><content type='html'>&lt;script data-ad-client=&quot;ca-pub-5061740284777650&quot; async src=&quot;https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js&quot;&gt;&lt;/script&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
It happens many time that you need to change the imei within android emulator on Ubuntu. So the following steps will guide you to do the same. The files that requires modification for imei are as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;emulator64-arm&lt;/li&gt;
&lt;li&gt;emulator64-mips&lt;/li&gt;
&lt;li&gt;emulator64-x86&lt;/li&gt;
&lt;li&gt;emulator-arm&lt;/li&gt;
&lt;li&gt;emulator-mips&lt;/li&gt;
&lt;li&gt;emulator-x86&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
And the location for those files is &lt;b&gt;/sdk/tools&lt;/b&gt; within android sdk.&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Download or install android sdk.&lt;/li&gt;
&lt;li&gt;Install &lt;b&gt;bless &lt;/b&gt;hex editor.&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sudo apt-get install bless&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Open one by one the above mentioned files in bless editor. For ex:&lt;br /&gt;
&lt;div&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-eqCNJZ0kiIM/U_35Vb1BXEI/AAAAAAAAIs4/pM2H5dQWR0g/s1600/Screenshot%2Bfrom%2B2014-08-27%2B20%3A55%3A34.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-eqCNJZ0kiIM/U_35Vb1BXEI/AAAAAAAAIs4/pM2H5dQWR0g/s1600/Screenshot%2Bfrom%2B2014-08-27%2B20%3A55%3A34.png&quot; height=&quot;360&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Enable search mode using &lt;b&gt;Ctrl&amp;nbsp;+ F &lt;/b&gt;and change &lt;b&gt;Hexadecimal &lt;/b&gt;to &lt;b&gt;Text&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Search content &lt;b&gt;&quot;CGSN&quot;. &lt;/b&gt;The content next to the CGSN is the IMEI in the left pane.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For ex:&amp;nbsp;&lt;b&gt;+CGSN.000000000000000.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Now change the 15 digit to the value as per your choice. For ex: 123456789123456&lt;/li&gt;
&lt;li&gt;Save the file. And perform this operation with each file.&lt;/li&gt;
&lt;li&gt;Create a device in emulator and check the imei.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
That&#39;s it.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Good Luck !!!!!&lt;/div&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/feeds/7268366889141424246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/2014/08/changing-imei-in-emulator-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8339733306630510315/posts/default/7268366889141424246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8339733306630510315/posts/default/7268366889141424246'/><link rel='alternate' type='text/html' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/2014/08/changing-imei-in-emulator-on-ubuntu.html' title='Changing IMEI in emulator on Ubuntu'/><author><name>ankit</name><uri>http://www.blogger.com/profile/13307696864789183298</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-eqCNJZ0kiIM/U_35Vb1BXEI/AAAAAAAAIs4/pM2H5dQWR0g/s72-c/Screenshot%2Bfrom%2B2014-08-27%2B20%3A55%3A34.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8339733306630510315.post-5290370233093489403</id><published>2014-05-08T11:25:00.000-07:00</published><updated>2020-09-02T08:12:15.585-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bugzilla"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu 12.04"/><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 class=&quot;post-title entry-title&quot;&gt;
&amp;nbsp;Installing Bugzilla 4.0 on Ubuntu 12.04 and above with MySQL
&lt;/h3&gt;
&lt;div class=&quot;post-header&quot;&gt;
&lt;div class=&quot;post-header-line-1&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;post-body entry-content&quot;&gt;
These are quick steps to install Bugzilla 4.0 on Ubuntu 12.04 and above, you can refer to &lt;i&gt;&lt;a href=&quot;http://www.bugzilla.org/docs/&quot; style=&quot;color: #0b5394;&quot;&gt;The Official Bugzilla Docs&lt;/a&gt;&lt;/i&gt; for detailed steps if needed.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;b&gt;Install Perl&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;Check the version of Perl you have installed on your machine.&lt;/span&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;
&amp;nbsp; &lt;br /&gt;
&lt;div style=&quot;color: #38761d;&quot;&gt;
&lt;code&gt;$ perl -v&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
Bugzilla runs with Perl 5.8.1 or higher. If you don&#39;t have Perl installed on your machine, install it.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #38761d;&quot;&gt;
&lt;code&gt;$ sudo apt-get install perl&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;code&gt;&lt;b style=&quot;color: #3d85c6;&quot;&gt;Install MySQL&lt;/b&gt; &lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Check the version of MySQL you have installed on your machine.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #38761d;&quot;&gt;
&lt;code&gt;$ mysql --version&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
Bugzilla runs with MySQL 4.1.2 or higher. If you don&#39;t have MySQL installed on your machine, install it.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #38761d;&quot;&gt;
&lt;code&gt;$ sudo apt-get install mysql-admin mysql-client mysql-server&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;b&gt;Install Apache&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Check if Apache web server is already installed.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #38761d;&quot;&gt;
&lt;code&gt;$ apache2 -v&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
If you don&#39;t have Apache installed already, install it.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #38761d;&quot;&gt;
&lt;code&gt;$ sudo apt-get install apache2&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b style=&quot;color: #3d85c6;&quot;&gt;Download Bugzilla Tarball&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Download the latest 4.0 tarball from the Bugzilla site into your download directory.&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;$ cd ~/Downloads&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; $ wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.0.tar.gz&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; $ sudo tar -xvf bugzilla-4.0.tar.gz&lt;/span&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Move the Bugzilla directory to the default web server directory.&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;$ cd /var/www/&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; $ sudo mv /home/build03/Downloads/bugzilla-4.0 bugzilla&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot;&gt;
&lt;code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;div class=&quot;post-body entry-content&quot; style=&quot;font-family: &#39;Times New Roman&#39;;&quot;&gt;
&lt;code&gt;Change the permission and ownership of the bugzilla folder.&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;br /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;$ sudo chown -R www-data:www-data bugzilla&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;$ sudo chmod -R 755 bugzilla&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;
&lt;code&gt;
&lt;/code&gt;
&lt;div&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;/div&gt;
&lt;code&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;b&gt;Install Perl modules needed for Bugzilla&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Check if you have all the Perl modules required for Bugzilla. It is a 
good idea to install all the required as well as the optional modules.&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;$ cd /var/www/bugzilla/&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; $ sudo ./checksetup.pl --check-modules&lt;/span&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
A lot of the Perl modules might be missing, first try to install all of them in one command&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;$ sudo /usr/bin/perl install-module.pl --all&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt; &lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Run the check setup script again to see which modules still need to be installed.&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;$ sudo ./checksetup.pl --check-modules&lt;/span&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Install &lt;code&gt;mod_perl &amp;amp; Apache2::SizeLimit&lt;/code&gt; modules if they did not get installed.&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;$ sudo apt-get install libapache2-mod-perl2 libapache2-mod-perl2-dev libapache2-mod-perl2-doc&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; $ sudo /usr/bin/perl install-module.pl Apache2::SizeLimit&lt;/span&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Once all the Perl modules have been installed, run checksetup.pl again, 
this time without the --check-modules switch, this will create a file 
called &quot;localconfig&quot;.&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;$ sudo ./checksetup.pl&lt;/span&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;$ sudo gedit localconfig&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;Change the following properties to &lt;br /&gt;
&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;$db_pass = &#39;your password for bugs@localhost&#39;;&lt;/span&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;b&gt;Create a User for Bugzilla for MySQL Access&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Add the new user bugs@localhost with the same password that you entered in the localconfig file above.&lt;br /&gt;
&lt;br /&gt;
Enable apache modules for perl and cgi:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;$sudo a2enmod&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
and type perl and cgi one by one.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;$ sudo useradd -d /home/bugs -m bugs&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; $ sudo passwd bugs&lt;/span&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;b&gt;Create the bugs database&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
The bugs database will be used by the 4.0 installation of Bugzilla.&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
$ sudo mysql -u root -p&lt;br /&gt;
mysql&amp;gt; show databases;&lt;br /&gt;
+--------------------+&lt;br /&gt;
| Database&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;           |&lt;br /&gt;
+--------------------+&lt;br /&gt;
| information_schema |&lt;br /&gt;
| bugzilla3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;          |&lt;br /&gt;
| mysql &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;             |&lt;br /&gt;
+--------------------+&lt;br /&gt;
3 rows in set (0.02 sec)&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; create database bugs;&lt;br /&gt;
Query OK, 1 row affected (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; show databases;&lt;br /&gt;
+--------------------+&lt;br /&gt;
| Database&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;           |&lt;br /&gt;
+--------------------+&lt;br /&gt;
| information_schema |&lt;br /&gt;
| bugs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;               |&lt;br /&gt;
| bugzilla3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;         |&lt;br /&gt;
| mysql &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;             |&lt;br /&gt;
+--------------------+&lt;br /&gt;
4 rows in set (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, 
LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO 
bugs@localhost IDENTIFIED BY &#39;your password for bugs@localhost&#39;;&lt;br /&gt;
Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; FLUSH PRIVILEGES;&lt;br /&gt;
Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; quit&lt;br /&gt;
Bye&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;b&gt;Setup the Administrative User for Bugzilla&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Rerun &lt;code&gt;checksetup.pl&lt;/code&gt;. It reconfirms that all the modules are
 present, and notices the altered localconfig file, which it assumes you
 have edited to your satisfaction. It compiles the UI templates, 
connects to the database using the &#39;bugs&#39; user you created and the 
password you defined, and creates the &#39;bugs&#39; database and the tables 
therein.&lt;br /&gt;
&lt;br /&gt;
If all goes well, it will ask you for an email for the Bugzilla Administrator account and the password for that account.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #3d85c6;&quot;&gt;
&lt;b&gt;Configure Apache to server Bugzilla&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Navigate to the Apache directory and edit the httpd.conf file&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;$ cd /etc/apache2/sites-available&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; $ sudo gedit default&lt;/span&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Add the following to the default&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;lt;Directory &quot;/var/www/bugzilla&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; AddHandler cgi-script cgi&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; DirectoryIndex index.cgi&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; Options +Indexes +ExecCGI -MultiViews +SymLinksIfOwnerMatch +FollowSymLinks&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; AllowOverride None&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; Order allow,deny&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; Allow from all&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; &amp;lt;/Directory&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache web server.&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;$ sudo service apache2 stop&lt;/span&gt;&lt;br style=&quot;color: #38761d;&quot; /&gt;&lt;span style=&quot;color: #38761d;&quot;&gt; $ sudo service apache2 start&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Kindly let me any of your issues you are facing as per the above content.&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;post-body entry-content&quot;&gt;
&lt;code&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;Best of luck !!!!!&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/feeds/5290370233093489403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/2014/05/bugzilla-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8339733306630510315/posts/default/5290370233093489403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8339733306630510315/posts/default/5290370233093489403'/><link rel='alternate' type='text/html' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/2014/05/bugzilla-4.html' title=''/><author><name>ankit</name><uri>http://www.blogger.com/profile/13307696864789183298</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8339733306630510315.post-6262096956033432680</id><published>2013-07-29T21:34:00.000-07:00</published><updated>2020-09-02T08:12:26.025-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="rails"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Switching between various versions of ruby on Ubuntu machine</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Initially I feel very difficult to switch various ruby version installed on Ubuntu machine. But after collecting the following information it become easy. So the steps to change the ruby version is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Open the terminal window&lt;/li&gt;
&lt;li&gt;Then type the following command:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;update-alternatives --config ruby&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;This will list all the installed versions of ruby. Like :&lt;br /&gt;
&lt;br /&gt;&lt;b&gt;
There are 2 choices for the alternative ruby (providing /usr/bin/ruby).&lt;br /&gt;
&amp;nbsp; Selection &amp;nbsp; &amp;nbsp;Path &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority &amp;nbsp; Status&lt;br /&gt;
------------------------------------------------------------&lt;br /&gt;
* 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/usr/bin/ruby1.8 &amp;nbsp; &amp;nbsp; 50 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;auto mode&lt;br /&gt;
&amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/usr/bin/ruby1.8 &amp;nbsp; &amp;nbsp; 50 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;manual mode&lt;br /&gt;
&amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/usr/bin/ruby1.9.1 &amp;nbsp; 10 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;manual mode&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;And the console will wait for user input. Like: &lt;br /&gt;
&lt;br /&gt;&lt;b&gt;
Press enter to keep the current choice[*], or type selection number:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Choose your desired ruby version and press enter.&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
So now you are ready to use various version of ruby without using rvm.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Enjoy!!&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/feeds/6262096956033432680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/2013/07/switching-between-various-versions-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8339733306630510315/posts/default/6262096956033432680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8339733306630510315/posts/default/6262096956033432680'/><link rel='alternate' type='text/html' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/2013/07/switching-between-various-versions-of.html' title='Switching between various versions of ruby on Ubuntu machine'/><author><name>ankit</name><uri>http://www.blogger.com/profile/13307696864789183298</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8339733306630510315.post-16592158819635339</id><published>2012-11-01T19:04:00.000-07:00</published><updated>2013-07-29T21:36:33.161-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql-workbench"/><category scheme="http://www.blogger.com/atom/ns#" term="table size"/><title type='text'>How to find table size in MySql using workbench?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
If you want to calculate memeory usage of all yout tables in your database as we did in mysql admintrator tool then simply the following query:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SELECT table_name &quot;Tables&quot;,&lt;br /&gt;
( data_length + index_length ) / 1024 /&lt;br /&gt;
1024 &quot;Table Size in MB&quot;,&lt;br /&gt;
( data_free )/ 1024 / 1024 &quot;Free Space in MB&quot;&lt;br /&gt;
FROM information_schema.TABLES&lt;br /&gt;
where table_schema=&quot;&lt;b&gt;YOUR SCHEMA NAME&lt;/b&gt;&quot;&lt;br /&gt;
&lt;br /&gt;
You need to change only the SCHEMA NAME only.&lt;br /&gt;
&lt;br /&gt;
Try it and let me know your feedback.&lt;br /&gt;
&lt;br /&gt;
Enjoy!!!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/feeds/16592158819635339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/2012/11/how-to-find-table-size-in-mysql-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8339733306630510315/posts/default/16592158819635339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8339733306630510315/posts/default/16592158819635339'/><link rel='alternate' type='text/html' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/2012/11/how-to-find-table-size-in-mysql-using.html' title='How to find table size in MySql using workbench?'/><author><name>ankit</name><uri>http://www.blogger.com/profile/13307696864789183298</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8339733306630510315.post-2453898941381459307</id><published>2012-03-29T22:13:00.001-07:00</published><updated>2012-03-29T22:14:08.169-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="pdf generation"/><category scheme="http://www.blogger.com/atom/ns#" term="qt4"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="wkhtmltopdf"/><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
If you want to generate pdf from HTML on Ubuntu and try to search the tool for the same, you will find lots of tools for it. But wkhtmltopdf is the best one among them.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
So please follow these steps to install wkhtmltopdf along with qt4 that can convert rich javascript graphs into pdf.&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&lt;b&gt;Step 1&lt;/b&gt;: First install the dependencies&lt;/div&gt;
&lt;div style=&quot;font-family: inherit;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;span class=&quot;pln&quot;&gt;sudo apt-get install openssl build&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;essential xorg libssl&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;dev libxrender&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;dev&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span class=&quot;pln&quot;&gt;                         libqt4&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;dev qt4&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;dev&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;tools&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;pre class=&quot;prettyprint&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span class=&quot;pln&quot;&gt;Step 2: &lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;pln&quot;&gt;Install wkhtmltopdf&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;    &lt;b&gt;sudo apt-get install wkhtmltopdf&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;b&gt;Step 3&lt;/b&gt;: Test the installation&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&amp;nbsp;    &lt;b&gt; wkhtmltopdf http://www.highcharts.com/demo test.pdf&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;b&gt;&amp;nbsp; &lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;If you are using highchart and facing issue related to segmentation fault then try after disabling animation as mentioned&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;span class=&quot;pln&quot;&gt;in the follwoing code:&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;color: #339933;&quot;&gt;&amp;lt;&lt;/span&gt;script type&lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #3366cc;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt; charset&lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #3366cc;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;&amp;gt;&lt;/span&gt;
&amp;nbsp;
  &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; chart &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;new&lt;/span&gt; Highcharts.&lt;span style=&quot;color: #660066;&quot;&gt;Chart&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt;
      chart&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt; renderTo&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #3366cc;&quot;&gt;&#39;container&#39;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
&amp;nbsp;
      &lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// These make it work nicely with wkhtmltopdf&lt;/span&gt;
      plotOptions&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt; series&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt; enableMouseTracking&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; shadow&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; animation&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
&amp;nbsp;
      xAxis&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt; categories&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #3366cc;&quot;&gt;&#39;Jan&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366cc;&quot;&gt;&#39;Feb&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366cc;&quot;&gt;&#39;Mar&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366cc;&quot;&gt;&#39;Apr&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366cc;&quot;&gt;&#39;May&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366cc;&quot;&gt;&#39;Jun&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366cc;&quot;&gt;&#39;Jul&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366cc;&quot;&gt;&#39;Aug&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366cc;&quot;&gt;&#39;Sep&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366cc;&quot;&gt;&#39;Oct&#39;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #3366cc;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #3366cc;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;
      series&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;{&lt;/span&gt; data&lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;29.9&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc0000;&quot;&gt;71.5&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc0000;&quot;&gt;106.4&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc0000;&quot;&gt;129.2&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc0000;&quot;&gt;144.0&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc0000;&quot;&gt;176.0&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc0000;&quot;&gt;135.6&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc0000;&quot;&gt;148.5&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc0000;&quot;&gt;216.4&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc0000;&quot;&gt;194.1&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;]&lt;/span&gt;
&amp;nbsp;
  &lt;span style=&quot;color: #009900;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #339933;&quot;&gt;&amp;lt;/&lt;/span&gt;script&lt;span style=&quot;color: #339933;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;color: #339933;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;prettyprint&quot;&gt;&lt;span style=&quot;color: #339933;&quot;&gt;Have fun with wkthltopdf !!!!&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;pln&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/feeds/2453898941381459307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/2012/03/if-you-want-to-generate-pdf-from-html.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8339733306630510315/posts/default/2453898941381459307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8339733306630510315/posts/default/2453898941381459307'/><link rel='alternate' type='text/html' href='http://wkhtmltopdfwithqtubuntuoneric.blogspot.com/2012/03/if-you-want-to-generate-pdf-from-html.html' title=''/><author><name>ankit</name><uri>http://www.blogger.com/profile/13307696864789183298</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>