<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Cristhian Ferrufino</title>
    <description>The latest articles on DEV Community by Cristhian Ferrufino (@lithqube).</description>
    <link>https://dev.to/lithqube</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F294094%2Fa47f004d-1ae2-4e93-8044-0861488196c2.jpeg</url>
      <title>DEV Community: Cristhian Ferrufino</title>
      <link>https://dev.to/lithqube</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lithqube"/>
    <language>en</language>
    <item>
      <title>Switching to Ubuntu from Mac</title>
      <dc:creator>Cristhian Ferrufino</dc:creator>
      <pubDate>Fri, 24 Jul 2020 10:50:56 +0000</pubDate>
      <link>https://dev.to/lithqube/switching-to-ubuntu-from-mac-46kd</link>
      <guid>https://dev.to/lithqube/switching-to-ubuntu-from-mac-46kd</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;As frontends, It’s time for us to move on into something better… bye-bye, macOS!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  Why on earth would you do this?
&lt;/h1&gt;

&lt;p&gt;Well, let’s start with I used to have a MacBook Pro (15-inch, 2017) at work, not the greatest piece of hardware ever produced by Apple, but at some point, I was “&lt;a href="https://www.macworld.com/article/3385043/apple-apology-macbook-keyboard-butterfly-fail.html"&gt;ok&lt;/a&gt;” for me to work with it only when I purchase a Magic Keyboard and Mouse.&lt;/p&gt;

&lt;p&gt;Then during the lock-down period here in Berlin, meanwhile I was on “Home Office”. During zoom meeting all of a sudden, my webcam turn off and a burned pixel line appeared on the display, dividing it into two parts; which of course was really annoying to look. A couple of hours later on that day, the screen just stopped to work and only had a black screen.&lt;/p&gt;

&lt;p&gt;And just like that, I was another victim of the “&lt;a href="https://www.macrumors.com/guide/flexgate-macbook-pro-display-issue/"&gt;Flexgate&lt;/a&gt;”, but with a micro-crack alongside on the display (which I found out some days later, during a careful inspection at an “Apple Autorisierter Händler” here in Berlin) took all hope of getting this mac repair free of charge. Instead, I got an estimation of the repair cost of more than 1.500€.&lt;/p&gt;

&lt;p&gt;Long story short, I got a brand new &lt;a href="https://www.dell.com/de-de/work/shop/dell-notebooks/xps-13/spd/xps-13-7390-laptop/bnx73925"&gt;Dell XPS13 i7–10510u&lt;/a&gt; with Ubuntu 18.04. So at first, this reminds me of my good old days at the university, when we used to use &lt;a href="https://getfedora.org/"&gt;Fedora&lt;/a&gt;; not completely unfamiliar with a Linux distribution but still. Some research was needed.&lt;/p&gt;

&lt;p&gt;As a result of all that, I gather around some info which I’ve tried to summarize it, into these 3 simple steps:&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1 —Get down to the basics
&lt;/h2&gt;

&lt;p&gt;"&lt;a href="https://www.omgubuntu.co.uk/2020/04/how-to-upgrade-to-ubuntu-20-04"&gt;Upgrade to Ubuntu 20.04 LTS&lt;/a&gt;", then after that.&lt;/p&gt;

&lt;p&gt;Open your command line, if you want to improve your command line skills I can recommend you this article “&lt;a href="https://medium.com/better-programming/15-essential-linux-command-line-tips-and-tricks-95e2bfa2890f"&gt;15 Essential Linux Command Line Tips and Tricks&lt;/a&gt;” &lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For the ones that are not familiar. Snap as is defined on their documentation is a software deployment and package management system. The canonical way for Mac’s app store.&lt;/p&gt;

&lt;p&gt;Besides all the &lt;a href="https://thenewstack.io/canonicals-snap-great-good-bad-ugly/"&gt;controversy&lt;/a&gt; that Snap is generating, I still believe is a great way to manage packages, especially for its self-contained structure, which gives a convenient way to install and manage complex packages dependencies.&lt;/p&gt;

&lt;p&gt;Here is how we can install it:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt install snap&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;From my short experience on the subject I can suggest installing the following:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt install curl build-essential git postgresql postgresql-contrib&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2 — Here comes NVM
&lt;/h2&gt;

&lt;p&gt;The tricky and funny part related with Snap is something I found while using it at work with my current projects when you install &lt;a href="https://snapcraft.io/node"&gt;node with Snap&lt;/a&gt;, it generates found out that by using it on a container I will generate some problems related with&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm WARN lifecycle The node binary used for scripts is /snap/bin/node but npm is using /snap/node/2494/bin/node itself. Use the --scripts-prepend-node-path option to include the path for the node binary npm was executed with
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I found that the best solution to have a stable node installation is to first &lt;a href="https://github.com/nvm-sh/nvm#installing-and-updating"&gt;use NVM&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;After installation, just close the terminal and open a new one and try to verify again the installation.&lt;/p&gt;

&lt;p&gt;To install node you can check on NVM:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;nvm list-remote&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;and install the version of your choice, on my case the current version (14.5.0)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;nvm install v14.5.0&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3 — Just snap of a finger
&lt;/h2&gt;

&lt;p&gt;After you install all your favourite global dependencies, We can go back to be friends with Snap and proceed by installing your most beloved apps.&lt;/p&gt;

&lt;p&gt;On my case:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo snap install gitkraken go multipass kotlin postman vscode intellij-idea-ultimate --classic&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;also to be considered some personal favorites:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo snap install altair termius-app beekeeper-studio nordpass gifex standard-notes vlc&lt;/code&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;That’s it! some weeks of full immersion in the Ubuntu world. &lt;/p&gt;

&lt;p&gt;I believe there’s no going back for me, especially because I got this feeling of full control of my Developer Environment; not that I didn’t have it with macOS, but lately especially after I upgraded to Mojave, I was having many issues with my configurations on Proxy, filesystem and so on... But enough of my shenanigans.&lt;/p&gt;

&lt;p&gt;Hope you like my first ever article here; soon more to come! please if you have any suggestions, critics or questions just leave your comments below. I’m pretty sure this content can be useful for many; so your feedback will be much appreciated.&lt;/p&gt;

&lt;p&gt;:)&lt;/p&gt;

&lt;h2&gt;
  
  
  Happy Coding!
&lt;/h2&gt;

</description>
      <category>ubuntu</category>
    </item>
  </channel>
</rss>
