<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Software Archives | AI After Work</title>
	<atom:link href="https://www.aiafterwork.com/category/software/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.aiafterwork.com/category/software/</link>
	<description></description>
	<lastBuildDate>Fri, 27 Mar 2020 02:58:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Installing Nvidia Drivers on Ubuntu Server 18.04</title>
		<link>https://www.aiafterwork.com/installing-nvidia-drivers-on-ubuntu-server-18-04/</link>
					<comments>https://www.aiafterwork.com/installing-nvidia-drivers-on-ubuntu-server-18-04/#respond</comments>
		
		<dc:creator><![CDATA[Aravind]]></dc:creator>
		<pubDate>Sun, 08 Dec 2019 10:40:00 +0000</pubDate>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[how-to]]></category>
		<guid isPermaLink="false">https://www.aiafterwork.com/?p=216</guid>

					<description><![CDATA[<p>A quick walkthrough on installing the Nvidia drivers for your Nvidia graphics card. Once this is done you can proceed with using your graphics card to accelerate your data science projects.</p>
<p>The post <a href="https://www.aiafterwork.com/installing-nvidia-drivers-on-ubuntu-server-18-04/">Installing Nvidia Drivers on Ubuntu Server 18.04</a> appeared first on <a href="https://www.aiafterwork.com">AI After Work</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="et_pb_section et_pb_section_0 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_0">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_0  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_0  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><!-- divi:tadv/classic-paragraph -->
<p>Installing the Nvidia Proprietary Drivers for your Ubuntu Server 18.04 are necessary for proper GPU accelerated processing and CUDA. The following instructions will show how to install the latest drivers.</p>
<p>1: Add the repository for the Nvidia drivers</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">sudo add-apt-repository ppa:graphics-drivers/ppa</pre>
<p>2. Update to read the packages available</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">sudo apt update</pre>
<p>3. You can also run the following commands to make sure that whenever the kernel is updated dkms rebuilds the Nvidia driver for the new kernel too.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">sudo apt install dkms build-essential</pre>
<p>4. Install the driver. At the time of writing 430 was the latest. One thing to note is that this will install a GUI for the server. But if you have it set up as a headless server, it will still function the same way and you will be able to connect through ssh.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">sudo apt install nvidia-driver-430</pre>
<p>5. Reboot your system</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">sudo reboot</pre>
<p>6. Once your system has rebooted, then run the following command to check if everything is working.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">nvidia-smi</pre>
<p>7. You should get the following output: I have a <a href="https://www.aiafterwork.com/analytics-machine-learning-system-less-than-1350/" target="_blank" rel="noopener noreferrer">GTX 1070</a> and that&#8217;s what shows below. Yours may be different.</p>
<p><img fetchpriority="high" decoding="async" class="size-full wp-image-330 aligncenter" src="https://www.aiafterwork.com/wp-content/uploads/2018/04/nvidia-smi.jpg" alt="nvidia-smi output" width="801" height="321" srcset="https://www.aiafterwork.com/wp-content/uploads/2018/04/nvidia-smi.jpg 801w, https://www.aiafterwork.com/wp-content/uploads/2018/04/nvidia-smi-480x192.jpg 480w" sizes="(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) 801px, 100vw" /></p>
<p>And that should be it. Your driver is now installed and ready to go.</p>
<p> </p>
<!-- /divi:tadv/classic-paragraph -->

<!-- divi:tadv/classic-paragraph /--></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div>
<p>The post <a href="https://www.aiafterwork.com/installing-nvidia-drivers-on-ubuntu-server-18-04/">Installing Nvidia Drivers on Ubuntu Server 18.04</a> appeared first on <a href="https://www.aiafterwork.com">AI After Work</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiafterwork.com/installing-nvidia-drivers-on-ubuntu-server-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Installing Python, PostgreSQL and JupyterLab</title>
		<link>https://www.aiafterwork.com/installing-python-postgresql-jupyterlab/</link>
					<comments>https://www.aiafterwork.com/installing-python-postgresql-jupyterlab/#respond</comments>
		
		<dc:creator><![CDATA[Aravind]]></dc:creator>
		<pubDate>Sun, 11 Nov 2018 05:30:00 +0000</pubDate>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[jupyterlab]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[python]]></category>
		<guid isPermaLink="false">https://www.aiafterwork.com/?p=275</guid>

					<description><![CDATA[<p>Data science needs a good toolkit. This post will walk you through instructions how how to install Python, Postgresql database and the Jupyterlab IDE</p>
<p>The post <a href="https://www.aiafterwork.com/installing-python-postgresql-jupyterlab/">Installing Python, PostgreSQL and JupyterLab</a> appeared first on <a href="https://www.aiafterwork.com">AI After Work</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><div class="et_pb_section et_pb_section_1 et_section_regular" >
				
				
				
				
				
				
				<div class="et_pb_row et_pb_row_1">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_1  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_1  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><h3>Installing Python</h3>
<p>The easiest way to get not only Python but all the python libraries needed for data science work is to download the Anaconda distribution.<br />Detailed instructions are available at <a href="https://docs.anaconda.com/anaconda/install/linux/">https://docs.anaconda.com/anaconda/install/linux/</a>. I prefer to use Python version 3 but the instructions show you how to download Python 2 too.</p>
<p>There is also a choice between anaconda and miniconda. Miniconda as the name suggests, is a mini version of Anaconda that only contains the conda package manager and it&#8217;s dependencies. If you prefer to have conda plus over 720 open source packages, install Anaconda.</p></div>
			</div><div class="et_pb_module et_pb_text et_pb_text_2  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><h3>Installing PostgresSQL</h3>
<p>You will definitely need a database for your data science projects. At some point working on really large datasets is more efficient within a database. I chose to go with PostgreSQL 12.</p>
<p>Installation instructions can be found here: <a href="https://www.postgresql.org/download/linux/ubuntu/">https://www.postgresql.org/download/linux/ubuntu/</a> but I&#8217;ve also copied the instructions for Ubuntu 18.04 LTS.</p>
<ol>
<li>Create the file <code>/etc/apt/sources.list.d/pgdg.list</code> and add a line for the repository
<pre class="EnlighterJSRAW" data-enlighter-language="shell">deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main</pre>
</li>
<li>Import the repository signing key, and update the package lists
<pre class="EnlighterJSRAW" data-enlighter-language="shell">wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key addsudo apt update</pre>
</li>
<li>Finally install the application
<pre class="EnlighterJSRAW" data-enlighter-language="shell">sudo apt install postgresql-12</pre>
</li>
</ol>
<h3>Changing the location of the database to your SSD</h3>
<p>If you remember how I built my <a href="https://www.aiafterwork.com/analytics-machine-learning-system-less-than-1350/">Ubuntu Analytics server,</a> I added in both an SSD (Solid state drive) and HDD (Hard Disk Drive) for storage. The idea was that my database and any other application that needed fast data read/write capabilities would sit on the SSD. Since Postgresql would be handlong a lot of data it became an ideal candidate to move to the SSD. There is good news that the it has a parameter called data_directory that just needs the folder path to your SSD<br />Digitalocean has a great <a href="https://www.digitalocean.com/community/tutorials/how-to-move-a-postgresql-data-directory-to-a-new-location-on-ubuntu-18-04">tutorial on just that</a>.</p>
<p>Once that&#8217;s done your database should be very fast.</p></div>
			</div><div class="et_pb_module et_pb_text et_pb_text_3  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><h3>Install JupyterLab</h3>
<p>I found a good set of instructions on this website <a href="https://agent-jay.github.io/2018/03/jupyterserver/">https://agent-jay.github.io/2018/03/jupyterserver/</a></p>
<p>I did make one change to the instruction. To use jupyterlab at localhost:ipaddress you will have to create an ssh tunnel. That&#8217;s what the last set of instructions was doing</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">ssh -N -f -L 8888:localhost:9999 user@domain.com #Change the specifics as required</pre>
<p>Instead I started jupyterlab with the ip address of my server itself so i could reach it directly without using localhost. So if your headless Ubuntu server was at 192.168.1.2 on your LAN then you can use the command as follows:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="shell">jupyter lab --no-browser --ip=192.168.1.2 --port=12345</pre>
<p>You can now access Jupyterlab at https://192.168.1.2:12345 without opening an ssh tunnel to the server.</p>
<p>Another thing to do if you&#8217;re getting a 403 error when you try to open a notebook could be because of folder restrictions. So make sure to change the default notebook directory location in the config file to a location you have write access to.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="null">c.NotebookApp.notebook_dir = '/absolute/path/to/folder'</pre>
<p>&nbsp;</p></div>
			</div>
			</div>
				
				
				
				
			</div><div class="et_pb_row et_pb_row_2">
				<div class="et_pb_column et_pb_column_4_4 et_pb_column_2  et_pb_css_mix_blend_mode_passthrough et-last-child">
				
				
				
				
				<div class="et_pb_module et_pb_text et_pb_text_4  et_pb_text_align_left et_pb_bg_layout_light">
				
				
				
				
				<div class="et_pb_text_inner"><p>Updated: Mar 26, 2020</p></div>
			</div>
			</div>
				
				
				
				
			</div>
				
				
			</div></p>
<p>The post <a href="https://www.aiafterwork.com/installing-python-postgresql-jupyterlab/">Installing Python, PostgreSQL and JupyterLab</a> appeared first on <a href="https://www.aiafterwork.com">AI After Work</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiafterwork.com/installing-python-postgresql-jupyterlab/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
