
{"id":9571,"date":"2019-11-26T13:24:58","date_gmt":"2019-11-26T13:24:58","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=9571"},"modified":"2024-04-24T10:01:03","modified_gmt":"2024-04-24T10:01:03","slug":"speep-up-downloading-snap-app","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2019\/11\/speep-up-downloading-snap-app\/","title":{"rendered":"[Quick Tip] Speed Up Installing (Downloading) Snap App in Ubuntu"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-9572\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/snapcraft-icon.png\" alt=\"\" width=\"245\" height=\"250\" \/><\/p>\n<p>This simple tutorial shows how to <b>speed up the downloading process of snap application package<\/b> by associating IP address with the snapcraft server in Ubuntu.<\/p>\n<p>Snap is a containerized package format, that makes many great applications (e.g., Spotify, Skype, the latest Blender, and more) easy to install in Ubuntu 18.04 and higher.<\/p>\n<p>However snap is LARGE in file size. Due to slow international network speed, downloading a snap in 20MB even take more than half an hour in my case.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-9573\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/snap-install-gimp2-600x133.jpg\" alt=\"\" width=\"600\" height=\"133\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/snap-install-gimp2-600x133.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/snap-install-gimp2-450x99.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/snap-install-gimp2.jpg 688w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>1.)<\/b> Open <u>terminal<\/u> either via Ctrl+Alt+T keyboard shortcut or by searching for &#8216;terminal&#8217; from application menu. When terminal opens, run command:<\/p>\n<pre style=\"border: none;\">dig fastly.cdn.snapcraft.io<\/pre>\n<p>In the terminal output, copy the <b>IP address<\/b> under &#8216;ANSWER SECTION&#8217;:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-9574\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/dig-snapcraft-600x329.jpg\" alt=\"\" width=\"600\" height=\"329\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/dig-snapcraft-600x329.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/dig-snapcraft-450x246.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/dig-snapcraft.jpg 765w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>2.)<\/b> Then run commands to edit the hosts file:<\/p>\n<pre style=\"border: none;\">sudo gedit \/etc\/hosts<\/pre>\n<p>Type user password (no asterisk) when it prompts and hit Enter.<\/p>\n<p>When the files opens in gedit text editor, paste following line:<\/p>\n<pre style=\"background: none;\">151.101.42.217 fastly.cdn.snapcraft.io<\/pre>\n<p><b>Replace the IP address<\/b> with which you got in step 1, and finally save the file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-9575\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/hosts-bestsnap-600x304.jpg\" alt=\"\" width=\"600\" height=\"304\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/hosts-bestsnap-600x304.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/hosts-bestsnap-450x228.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/hosts-bestsnap-768x388.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2019\/11\/hosts-bestsnap.jpg 769w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>That&#8217;s it. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>This simple tutorial shows how to speed up the downloading process of snap application package by associating IP address with the snapcraft server in Ubuntu. Snap is a containerized package format, that makes many great applications (e.g., Spotify, Skype, the latest Blender, and more) easy to install in Ubuntu 18.04 and higher. However snap is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1839],"class_list":["post-9571","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-speed-up-snap-downloading"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/9571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=9571"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/9571\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=9571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=9571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=9571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}