<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rishabh Priyadarshi on Medium]]></title>
        <description><![CDATA[Stories by Rishabh Priyadarshi on Medium]]></description>
        <link>https://medium.com/@rishabhpriyadarshi?source=rss-82eabe8e2cb0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Gjp8Sn3zO2eCroJADSLOcw.jpeg</url>
            <title>Stories by Rishabh Priyadarshi on Medium</title>
            <link>https://medium.com/@rishabhpriyadarshi?source=rss-82eabe8e2cb0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 07:27:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rishabhpriyadarshi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Web Scrapping with Puppeteer — Some basic examples]]></title>
            <link>https://medium.com/@rishabhpriyadarshi/web-scrapping-with-puppeteer-some-basic-examples-7b20524b6a93?source=rss-82eabe8e2cb0------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b20524b6a93</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[puppeteer]]></category>
            <category><![CDATA[scraping]]></category>
            <dc:creator><![CDATA[Rishabh Priyadarshi]]></dc:creator>
            <pubDate>Thu, 15 Nov 2018 19:05:44 GMT</pubDate>
            <atom:updated>2018-11-15T19:20:16.521Z</atom:updated>
            <content:encoded><![CDATA[<h3>Web Scrapping with Puppeteer — Some basic examples</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*kk8ovQKB-45FsZ8TZM-vjg.png" /></figure><h4>What is Puppeteer?</h4><p>Puppeteer is a node library which comes with an API to control headless Chromium or Chrome browser. A headless browser is basically a browser without any UI and is used to scrape or crawl over web pages.</p><p>Following are some of the interesting things you can do with Puppeteer :</p><ol><li>Generate PDFs and screenshots of web pages.</li><li>Automate tasks like filling a form and keyboard input.</li><li>Grab data from websites and save it.</li><li>Create automated testing environments.</li></ol><h4>Getting Started</h4><p>You’ll need <a href="https://nodejs.org/en/">NodeJS</a> installed, basic knowledge of the command line, JavaScript and the DOM.</p><p><strong>Installation</strong></p><p>To install puppeteer, run the following command in your terminal</p><pre>npm i puppeteer</pre><p>It also downloads the latest version of Chromium in order to run the API smoothly. You can use the following command to if you don’t want Chromium to be installed by default:</p><pre>npm i puppeteer-core</pre><p><strong>Project setup</strong></p><ol><li>Make a folder.</li><li>Open the folder in your terminal.</li><li>In your terminal run, npm inti -y to generate a package.json for managing project dependencies.</li></ol><h4>Samples</h4><p>I will be using <a href="http://scrapethissite.com/">scrapethissite.com</a> for all the examples. You can use any other site if you want as long as they allow you to scrape them. Search for their policy and try looking at site/robots.txt</p><p><strong>Saving a screenshot</strong></p><p>Create a file by the name of screenshot.js in the folder which you have created and type in the following code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*8Fxg9oVxZChg5IeBk9YW5A.png" /><figcaption>screenshot.js</figcaption></figure><p>Execute the command in the terminal</p><pre>node screenshot.js</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*GrzNdmdAdRRmK3I-fdHUEA.png" /><figcaption>Generated screenshot</figcaption></figure><p>Puppeteer sets and initial page size to 800px x 600px, which defines the screenshot size. The page size can be modified using <a href="https://github.com/GoogleChrome/puppeteer/blob/v1.10.0/docs/api.md#pagesetviewportviewport">Page.setViewport()</a> .</p><p><strong>Creating a PDF</strong></p><p>Create a file by the name of make_pdf.js and type in the following code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*kMi3qyUUnPnAx8uuXJFY3A.png" /><figcaption>make_pdf.js</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*Ji_YOYINa2YpfnH40Uq_tQ.png" /><figcaption>Generated PDF</figcaption></figure><p><strong>Scraping Data</strong></p><p>We will now scrape some data and save it in a file. We will use the data of NHL (National Hockey League) teams from 1990.</p><p>First we need to create some selectors. A selector is a path to the data. We will take the help of our browser’s developer tools to do this. Open them on the following page: <a href="https://scrapethissite.com/pages/forms/">https://scrapethissite.com/pages/forms/</a> by using Ctlr + Shift + I if you are using Chrome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3AfXcZJ6EIfzV0_NOHustg.png" /></figure><p>We will take only the team name, year, number of wins and number of losses.</p><p>Note the following things:</p><ul><li>The data is in a table.</li><li>The rows with team data have a class named team.</li><li>Inside tr.team are multiple td with the class names: name, year, wins, and losses.</li></ul><p>We will use the following selectors for this example:</p><ul><li>Team row: tr.team</li><li>Data: teamRow &gt; td.${dataName}</li></ul><p>We will save this data in JSON format with the help of following steps:</p><ol><li>Load the file system module.</li><li>Convert the data to JSON using JSON.stringify()</li><li>Write the file with fs.writeFile()</li></ol><p>Create a file grab_data.js and add the following code to it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j_SVP_vcI4QhOuCi9fBHEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*fwyarsAOQMeW7czM3SMnAg.png" /></figure><p>Note: page.evaluate() is used to run JS code in the browser and communicate back any data which we want.</p><p>You can see all the code samples on my github account:</p><p><a href="https://github.com/rishabhp99/puppeteer-basic-sample">rishabhp99/puppeteer-basic-sample</a></p><p>Well that’s it. I hope you had fun learning something new.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b20524b6a93" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginner’s Guide to Learning Python]]></title>
            <link>https://medium.com/@rishabhpriyadarshi/beginners-guide-to-learning-python-14a41736d94?source=rss-82eabe8e2cb0------2</link>
            <guid isPermaLink="false">https://medium.com/p/14a41736d94</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <dc:creator><![CDATA[Rishabh Priyadarshi]]></dc:creator>
            <pubDate>Wed, 28 Mar 2018 18:33:30 GMT</pubDate>
            <atom:updated>2018-04-08T15:19:20.659Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post I will talk about following points :</p><ul><li>Why you should learn Python ?</li><li>From where to learn the basics of Python ?</li><li>What to do after learning the basics ?</li></ul><h4>Why you should learn Python ?</h4><p>There are multiple reasons for learning Python, some being :</p><ul><li>It is easy for beginners</li><li>You can do some pretty cool things with it like web development, data science, build games etc.</li><li>A large developer community, which proves to be very helpful whenever you face problems</li><li>The industry uses it, a lot. Every other tech giant like Google, Facebook, IBM, Dropbox etc. uses it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*akV02yBh6y7zMOS2.png" /><figcaption>Image via StackOverflow</figcaption></figure><h4>From Where To Learn Basics of Python ?</h4><p>There are a ton of resources to learn Python. It may sound a good thing, but for a beginner, the plethora of choices creates a lot of confusion. Many people, try studying from multiple resources because of the fear of missing out. But in reality, studying from one or at maximum two good resources is enough to build your basics. While learning programming, writing code along with reading is very important.</p><p>Below is a list of some sources to learn Python. Check out all of them and then pick out one or two resources to learn and stick to them. In this way, you will understand the concepts more easily and quickly.</p><ul><li><a href="https://docs.python.org/3/">The official Python Documentation</a>: A very good source to know about anything related to Python. But it can lead to information overload also proceed with caution.</li><li><a href="https://automatetheboringstuff.com/">Automate The Boring Stuff With Python</a>: One of the best places to start learning Python. Al Sweigart very beautifully explains the nitty-gritty of Python along with showcasing Python’s use in the various interesting task like automating your downloads.</li><li><a href="https://www.codecademy.com/learn/learn-python">Learn Python | Codeacademy</a>: A good source, preferred by many people. It is a very interactive course where you learn by completing small chunks of programming tasks.</li><li><a href="http://greenteapress.com/wp/learning-with-python/">Learning with Python</a>: A theory intensive resource with good programming exercises. If you like going the traditional way of learning then this could prove good for you.</li><li><a href="https://python.swaroopch.com/">A Byte Of Python</a>: The best place to grasp the basics quickly in my opinion. It focuses on only the things which matter for a beginner and give very nice examples.</li></ul><p>Some Online Courses :</p><ul><li><a href="http://Introduction to Computer Science and Programming Using Python">Introduction To Computer Science Using Python — MIT</a></li><li><a href="https://www.coursera.org/learn/python?siteID=SAyYsTvLiGQ-HAxcMTNKAISztnJQ29CWSA&amp;utm_content=10&amp;utm_medium=partners&amp;utm_source=linkshare&amp;utm_campaign=SAyYsTvLiGQ">Getting Started With Python — University Of Michigan</a></li><li><a href="https://www.edx.org/course/introduction-computing-using-python-gtx-cs1301x?source=aw&amp;awc=6798_1522259937_61ea0aefc7e7c363bfa5d1aa38a90485&amp;utm_source=aw&amp;utm_medium=affiliate_partner&amp;utm_content=text-link&amp;utm_term=301045_https%3A%2F%2Fwww.class-central.com%2F">Introduction to Computing using Python — Georgia Institute Of Technology</a></li></ul><p>Bonus Tip: Use <a href="https://hackr.io/">hackr.io</a> and <a href="https://www.class-central.com/">Class Central</a> to find the perfect online course for you.</p><h4>What to do after learning Python :</h4><p>You can delve into a lot of things after learning the basics. The ideal path should be to try doing a mini project or solving some questions on websites like <a href="https://www.hackerrank.com/domains/python/py-introduction">HackerRank</a> or <a href="http://codeforces.com/problemset">Codeforces</a> before moving into different areas like web development, data science etc.</p><p>After doing this you can try different Python tracks. Let us see them one by one.</p><h4>Web Development :</h4><p>For web development, you can start learning about various Python frameworks like <a href="https://www.djangoproject.com/">Django</a> and <a href="http://flask.pocoo.org/">Flask</a>. Consider frameworks like already built parts which you can use to make a complete web application.</p><p>For learning Django, besides the <a href="https://www.djangoproject.com/">official site</a>, you can also use <a href="https://tutorial.djangogirls.org/en/">Django Girls Tutorial</a>. Don’t go by the name, it is perfectly fine for the boys to use it too!</p><h4>Scientific and Numeric Things :</h4><p>You can use</p><ul><li><a href="http://scipy.org/">SciPy</a> for mathematics, science and engineering.</li><li><a href="https://pandas.pydata.org/">Pandas</a> for data manipulation and analysis.</li></ul><p>Whenever you face a roadblock, feel free to use <a href="https://stackoverflow.com/">StackOverflow</a>. It will be your best friend in the whole learning process and beyond that. Always remember the two most important things : Keep writing code and keep asking questions.</p><p>Please give your thoughts about this article in the comments. Happy Learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14a41736d94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Mint 19 Release Date, Features and More]]></title>
            <link>https://medium.com/@rishabhpriyadarshi/linux-mint-19-release-date-features-and-more-5c0d190538b4?source=rss-82eabe8e2cb0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c0d190538b4</guid>
            <category><![CDATA[linux-mint]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Rishabh Priyadarshi]]></dc:creator>
            <pubDate>Sun, 07 Jan 2018 20:30:12 GMT</pubDate>
            <atom:updated>2018-01-07T20:30:12.840Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Release Date and Codename</strong></p><p>Linux Mint 19 series will be based on Ubuntu 18.04 LTS. Considering that Ubuntu 18.04 is coming in April 2018, you can <strong>expect Linux Mint 19 somewhere around May or June 2018</strong>. Linux Mint 19 series will be supported until 2023.</p><p>The first release of the upcoming Linux Mint 19 series will be called “Tara”. The codename is firmly in keeping with other Linux Mint releases, all of which use female forenames.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*plXiPEWN4YcL2sW2.jpg" /></figure><p><strong>What’s New</strong></p><p>Linux Mint 19.x series will use <strong>GTK 3.22</strong>. So you can now finally use modern GTK themes with the Cinnamon desktop, free of quirks or issues.</p><p>Plus, as GTK 3.22 is a stable release with a stable API, the update means a number of third-party apps will once again work on Mint.</p><p>There’ll be updated versions of the GTK-based Cinnamon desktop environment, and improvements to the default Mint-Y GTK and icon themes.</p><p>Linux Mint 19 will have better HiDPI support. <strong>HiDPI stands for High Dot Per Inch also known as Apple’s Retina Display.</strong></p><p>Previous versions of Linux Mint have introduced new apps, so it’s possible that we’ll see some more in this release.</p><p>There will be few other updates too like :</p><ol><li><em>Nemo</em> will have full-text search</li><li><em>Mint Welcome</em> app will have a new look</li><li><em>Mint Update</em> improvements</li></ol><p>Linux Mint 18.3 was the last release to have an official KDE version. <strong>KDE is being dropped from Linux Mint 19</strong>. But you can still install KDE on top of Linux Mint 19 (unofficially) and port Mint software to Kubuntu.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c0d190538b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic ls commands in Ubuntu]]></title>
            <link>https://medium.com/@rishabhpriyadarshi/basic-ls-commands-in-ubuntu-422018a22c13?source=rss-82eabe8e2cb0------2</link>
            <guid isPermaLink="false">https://medium.com/p/422018a22c13</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[terminal]]></category>
            <dc:creator><![CDATA[Rishabh Priyadarshi]]></dc:creator>
            <pubDate>Mon, 18 Dec 2017 19:39:08 GMT</pubDate>
            <atom:updated>2017-12-18T19:39:08.850Z</atom:updated>
            <content:encoded><![CDATA[<p>ls is one of the most frequently used command and also very useful. Its basic function is to display the list of files and directories.</p><p>In this post I will be showing you some ls commands with different parameters.</p><h4>1. List files and directories using ls with no parameters :</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*nywgahYhKZauFfl_-kX_lA.png" /></figure><p>Here you can see that writing simple ls gives you just the names of files and directories.</p><h4>2. List Files with l as parameter</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*AdG67qFqQRR58wfsAyiY3g.png" /></figure><p>Adding -l with ls gives you various information like permissions, owner of the file, size of the file or directory ( in bytes ) , date and time of modification.</p><h4>3. List files with a as parameter.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NaBR23OSz_eUlp2GJbAnSw.png" /></figure><p>Adding -a shows you the hidden files also. Hidden files are the files beginning with a dot(.)</p><h4>4. List files with version as parameter</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*NYR0FWpTP0yoSLMrwKDKtw.png" /></figure><p>This parameter gives you the version of the ls command. Here you can see that my version is 8.26</p><h4>5. List files with n as parameter</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*Rknpp8qIQHhzqQUy35c0eQ.png" /></figure><p>Using -n with ls gives you the UID ( User ID ) and GID ( Group ID ) of the files and directories.</p><h4>6. List files with help as parameter</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p4Al8BqMPPbRJWpUhVacHw.png" /></figure><p>Using this command will show you the help page of ls command similar to the shown above.</p><h4>7. List files with lh as parameter</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*IqcWUW-tBc8EL7PUIguBVg.png" /></figure><p>Using lh give the size of the files and directories in human readable form.</p><h4>8. List files with ls as parameter</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*5UW6OMvjBIaqqLfJxThF4w.png" /></figure><p>This command list the files according to their size in decreasing order.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=422018a22c13" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to switch from GNOME to Unity in Ubuntu 17.10]]></title>
            <link>https://medium.com/@rishabhpriyadarshi/how-to-switch-from-gnome-to-unity-in-ubuntu-17-10-b257cf03cbb6?source=rss-82eabe8e2cb0------2</link>
            <guid isPermaLink="false">https://medium.com/p/b257cf03cbb6</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Rishabh Priyadarshi]]></dc:creator>
            <pubDate>Fri, 24 Nov 2017 13:48:04 GMT</pubDate>
            <atom:updated>2017-11-24T13:55:23.106Z</atom:updated>
            <content:encoded><![CDATA[<p>If you have upgraded to Unity 17.10 and feel like using Unity instead of GNOME then this post is for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*F-RH4rrHANHlzJHaBgtrZw.png" /></figure><p>Ubuntu has done quite a good job in making Unity users feel at home with the customized GNOME desktop. But it is not necessary that you will like GNOME. Unity has been part of Ubuntu for last 6 years and over the time, it has its own share of admirers.</p><p>The one thing to keep in mind that the system may behave oddly when working on Unity. In that case you can easily switch back to GNOME.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*svH0Ob_sPd2jYTqy1eokRQ.png" /></figure><p>Installing Unity :</p><p>In your terminal type the following command:</p><pre>sudo apt install unity</pre><p>The total file size is around 150 MB. After the installation, restart the system. Now at your login screen, you will see a gear symbol. Click on it and you will see various options like this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*xRmUV-_7kbOxjh2z4GQH3A.png" /></figure><p>Select Unity and login. You will see familiar Unity desktop interface. The Unity version installed is Unity 7.</p><p>You can check the Unity version by writing the following command in your terminal</p><pre>unity --version</pre><p>Now if by any chance, you don’t need to continue with Unity, you can seaily remove it . Before doing so switch to GNOME by selecting Ubuntu or Ubuntu on Xorg before login.</p><p>After logging in, use the following command in your terminal :</p><pre>sudo apt remove unity</pre><pre>sudo apt autoremove</pre><p>I hope you found this quick tip useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b257cf03cbb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to find your Linux Kernel version]]></title>
            <link>https://medium.com/@rishabhpriyadarshi/how-to-find-your-linux-kernel-version-742b834ecb89?source=rss-82eabe8e2cb0------2</link>
            <guid isPermaLink="false">https://medium.com/p/742b834ecb89</guid>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Rishabh Priyadarshi]]></dc:creator>
            <pubDate>Mon, 20 Nov 2017 03:15:19 GMT</pubDate>
            <atom:updated>2017-11-20T03:20:30.631Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you new to Linux and don’t know what Linux kernel your system uses ? Here are some ways to find it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*QxLJhfnx-8Lx_FuuXVu5Uw.png" /></figure><h4>1. Using uname command :</h4><p>You can use the uname command to know your kernel version and also that whether you are using a 32 bit or 64 bit system. Open your terminal and run the following command</p><pre>uname -r</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njsu7ipQWrwTA6axtMk2bA.png" /></figure><p>You will get something like this</p><pre>4.13.0.16-generic</pre><p>This means you are running 4.13.0.16 or simply 4.13 version. But what does that whole thing means :</p><p>4 : Linux Kernel Version</p><p>13 : major version</p><p>0 : Minor version</p><p>16 : Bug fixes</p><p>generic : It simply means that I am using a desktop. For server edition, it is <em>server.</em></p><p>If you want to get more information, you can use the following command</p><pre>uname -a</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZbghDHVraWsLAPNYkObviQ.png" /></figure><p>Your output will be something like this</p><pre>Linux rishabh-Inspiron-7460 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux</pre><p>Now let us see what this about means :</p><p><strong>Linux</strong> : Kernel name</p><p><strong>rishabh-Inspiron-7460</strong> : hostname</p><p><strong>4.13.0.16-generic </strong>: Kernel release (which we saw above)</p><p><strong>#19-Ubuntu SMP Wed Oct 11 18:3 5: 14 UTC 2017</strong> : It means that Ubuntu compiled 4.13.0.16-generic 19 times. The time given is of the last compilation.</p><p><strong>x86_64</strong> : Machine architecture</p><p><strong>x86_64</strong> : Processor architecture</p><p><strong>x86_64</strong> : Operating system architecture (You can run a 32 bit OS on a 64-bit processor)</p><p><strong>GNU/Linux</strong> : Operating system ( it won’t show distribution name )</p><p>Well that was a bit too much information. If you didn’t get all of this, don’t worry. You don’t need to remember any of this. Now let us move to the other methods</p><p><strong>2. Using dmesg command</strong></p><p>dmesg command is pretty powerful command and gives you a lot of system information. As this command gives a lot of information, we will be grepping on Linux to find out the version easily. Grepping can be understood as highlighting in layman’s terms. Now type the following command in your terminal :</p><pre>dmesg | grep Linux</pre><p>The first few lines of the output will be like this:</p><pre>[    0.000000] random: get_random_bytes called from start_kernel+0x42/0x4e1 with crng_init=0<br>[    0.000000] Linux version 4.13.0-16-generic (buildd@lcy01-02) (gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu2)) #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 (Ubuntu 4.13.0-16.19-generic 4.13.4)<br>[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.13.0-16-generic.efi.signed root=UUID=1b5f4a26-7905-4354-b893-68360a76958f ro quiet splash vt.handoff=7<br>[    0.000000] KERNEL supported cpus:<br>[    0.000000]   Intel GenuineIntel<br>[    0.000000]   AMD AuthenticAMD<br>[    0.000000]   Centaur CentaurHauls</pre><p>Here you can easily identify the kernel version in the third line. Now let us look at the final method</p><p><strong>3.Using /proc/version file</strong></p><p>Just type this command in your terminal :</p><pre>cat /proc/version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qKn_AmmItG7DmqudQYzz0w.png" /></figure><p>Your output will be similar to this :</p><pre>Linux version 4.13.0-16-generic (buildd@lcy01-02) (gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu2)) #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017</pre><p>You can easily see the kernel version 4.13.0.16-generic in the first line.</p><p>Of all the methods, I prefer uname as it is quite simple and deliver only what we need.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=742b834ecb89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrading from Ubuntu 17.04 to Ubuntu 17.10]]></title>
            <link>https://medium.com/@rishabhpriyadarshi/upgrading-from-ubuntu-17-04-to-ubuntu-17-10-ff5eeb9c192a?source=rss-82eabe8e2cb0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff5eeb9c192a</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Rishabh Priyadarshi]]></dc:creator>
            <pubDate>Mon, 20 Nov 2017 02:12:10 GMT</pubDate>
            <atom:updated>2017-11-20T03:31:07.383Z</atom:updated>
            <content:encoded><![CDATA[<p>I dual booted Windows 10 with Ubuntu 17.04 a few days back and it has been a flawless experience so far. After tinkering with it for some time now, I decided to upgrade it to the latest version i.e Ubuntu 17.10</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*oJ3V4fv7zwO6my5U8kHmzw.jpeg" /></figure><p>This latest short term release version is full of major changes and new features which really compelled me to upgrade . It has a new Kernel, a new desktop, a new display server along with a new display manager..well everything is new.</p><h4>Prerequisites :</h4><ol><li>Make a backup of all the important files and folders. The chances of losing them in the process of updating is very low but it is better to be safe than sorry.</li><li>Make sure you have installed all the updates to your current version. It will make the update process faster and smoother.</li></ol><p>To check for the updates and to install them on our Ubuntu, you can either go to Software Updater tool or run this command in your terminal :</p><pre>sudo apt update &amp;&amp; sudo apt dist-update</pre><p>When you are all done with it, you can go on to upgrading to Ubuntu 17.10</p><h4>How to upgrade :</h4><p>There are two ways to upgrade to Ubuntu 17.10 :</p><ol><li>Using the software updater</li><li>Using the command line</li></ol><p>The route you want to take is entirely up on you. It will not make any difference in the end product you get.</p><p>Using Software Updater :</p><p>Go to Sotware Updater and it will automatically suggest you to update to 17.10. You will get something like this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*1XtviBuYsZBBgLOBvEn9xw.png" /></figure><p>If this doesn’t appear then you will have to wait for sometimes and re run the software updater. But if you want to upgrade it straightaway without any wait, you can try doing it with command line</p><p>Using command line :</p><p>All you have to do is to run the following command in your terminal :</p><pre>sudo update-manager</pre><p>This will open the update manager and notify you that a new release is available. If somehow this doesn’t work, you can try the following command :</p><pre>sudo-do-release-upgrade</pre><p>Wait for sometime after running this command. After that you will get something like this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0c0t8JUxdJkW_RpJKyYTNA.png" /></figure><p>Please read all the information shown in the terminal at this point. If you are okay with what you see then press ‘y’ followed by ‘Enter’.</p><p>Wait for everything to download, unpack and install. It will take some time. Be patient. After everything is done, you will be prompted to do a restart. Restart the system and you will have a brand new desktop and a set of new cool features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YKH25-A7G4M7Mc8APUq3wg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff5eeb9c192a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Logic Behind Codename and Versioning Of Ubuntu Releases]]></title>
            <link>https://medium.com/@rishabhpriyadarshi/logic-behind-codename-and-versioning-of-ubuntu-releases-72944fbe9592?source=rss-82eabe8e2cb0------2</link>
            <guid isPermaLink="false">https://medium.com/p/72944fbe9592</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Rishabh Priyadarshi]]></dc:creator>
            <pubDate>Sun, 19 Nov 2017 10:57:38 GMT</pubDate>
            <atom:updated>2017-11-19T14:04:37.840Z</atom:updated>
            <content:encoded><![CDATA[<p>Ubuntu is one of the most popular Linux distribution and it follows a biannual release cycle with one coming in April and other in October.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*DpjpeCwWgef3w5Mib1rJ4A.jpeg" /></figure><p>The month and year of release play an important role in the version number of an Ubuntu release. An Ubuntu release’s version number is of the format <strong>AA.BB</strong> . The <strong>AA is the year of the release</strong> and <strong>BB is the month of the release</strong>.</p><p>So, we get Ubuntu 17.04 in the fourth month ( April ) of the year 2017. Ubuntu 17.10 was released last month i.e 10th month ( October ) of 2017.</p><p>The only exception to this rule was Ubuntu 6.04 which was delayed by two months and due to this it was named Ubuntu 6.06.</p><p>Now coming to the codenaming part. Ubuntu releases are codenamed with two words, both starting with the same letter. The first word is generally an adjective and the second word is either the name of an endangered species or a mythological character. The codenames are incremental.</p><p>Ubuntu 17.10 was codenamed Artful Aardvark and Ubuntu 18.04 which will be a LTS distribution was recently codenamed Bionic Beaver, announcement of which was made by Ubuntu founder Mark Shuttleworth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*YNpCfGyphMONQtfNF48jJA.jpeg" /></figure><p>I hope you all enjoyed this small but interesting bit of information. Stay tuned for many more fun and informative articles and news about the Linux World.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72944fbe9592" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>