{"id":1499,"date":"2018-03-25T08:00:04","date_gmt":"2018-03-25T07:00:04","guid":{"rendered":"http:\/\/slave24.local\/wordpress\/?p=1499"},"modified":"2018-03-25T08:00:04","modified_gmt":"2018-03-25T07:00:04","slug":"setting-up-a-new-ubuntu-machine","status":"publish","type":"post","link":"https:\/\/andy.teknostatik.co.uk\/kb\/2018\/03\/25\/setting-up-a-new-ubuntu-machine\/","title":{"rendered":"Setting up a new Ubuntu machine"},"content":{"rendered":"<p>I&#8217;ve had to set up a few Ubuntu desktop machines recently, and I thought it was worth documenting what I install on each one, and how I automate those installations as much as possible. I wrote about this <a href=\"http:\/\/teknostatik.co.uk\/2016\/05\/08\/setting-up-new-ubuntu-machines\/\">a few years ago<\/a> but so much has changed with my setup that I thought it was worth revisiting these instructions.<\/p>\n<p>Generally, I&#8217;ll always install from USB, and from the latest desktop version. I make my installer in Ubuntu, using <code>Disk Image Writer<\/code> and boot the computer from that. From 18.04 onwards I sometimes use the minimal installation feature (which I love), but for now assume that I just go with the defaults for everything.<\/p>\n<p>Once it has finished installing, I&#8217;ll go through the process of getting everything I want on to the machine.<\/p>\n<h3>Install dropbox<\/h3>\n<p>I download the latest version from <a href=\"https:\/\/www.dropbox.com\/install?os=lnx\">https:\/\/www.dropbox.com\/install?os=lnx<\/a> and then type:<\/p>\n<pre><code>sudo dpkg -i dropbox &lt;hit the tab key&gt;\n<\/code><\/pre>\n<p>I have a lot of files on Dropbox, so I let this sync while I&#8217;m doing the rest.<\/p>\n<h3>Add some software from the Ubuntu repositories<\/h3>\n<pre><code>sudo apt update\nsudo apt install byobu gimp vlc ubuntu-restricted-extras build-essential hexchat openssh-server gnome-tweak-tool tilix testdrive tasksel gnome-session libdvd-pkg adobe-flashplugin browser-plugin-freshplayer-pepperflash chromium-browser youtube-dl\nsudo dpkg-reconfigure libdvd-pkg\nsudo snap install --classic atom\nsudo snap install spotify\n<\/code><\/pre>\n<h3>Add a script to make updating software easier<\/h3>\n<p>Create a new file called <code>updateall<\/code><\/p>\n<pre><code>#!\/bin\/bash\necho \"updateall v.1.2 for Ubuntu\"\n#Run this as a normal user. Your admin password will be asked for if required.\nsudo apt update\nsudo apt upgrade -y\nsudo apt full-upgrade -y\nsudo apt autoremove -y\nsudo purge-old-kernels -y\necho \"The script has now finished running.\"\n<\/code><\/pre>\n<p>I move it to <code>\/usr\/local\/bin\/<\/code> then make it executable with <code>sudo chmod -X update all<\/code>.<\/p>\n<h3>Install tails-installer<\/h3>\n<pre><code>sudo add-apt-repository ppa:tails-team\/tails-installer\nsudo apt update\nsudo apt install tails-installer   \n<\/code><\/pre>\n<h3>Install pandoc<\/h3>\n<pre><code>wget https:\/\/github.com\/jgm\/pandoc\/releases\/download\/2.2.1\/pandoc-2.2.1-1-amd64.deb\nsudo dpkg -i pandoc-2.2.1-1-amd64.deb\nsudo apt install texlive texlive-latex-extra\n<\/code><\/pre>\n<p>See <a href=\"http:\/\/teknostatik.co.uk\/2015\/08\/19\/converting-documents-using-pandoc\/\">here<\/a> for more on how I configure and use Pandoc.<\/p>\n<h3>Cosmetic tweaks<\/h3>\n<ul>\n<li>Change desktop wallpaper<\/li>\n<li>Log out, log back in, and select a vanilla Gnome desktop.<\/li>\n<li>Go to <code>Settings --&gt; Security and Privacy<\/code> and turn off all &#8220;phone home&#8221; functionality.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve had to set up a few Ubuntu desktop machines recently, and I thought it was worth documenting what I install on each one, and how I automate those installations as much as possible. I wrote about this a few years ago but so much has changed with my setup that I thought it was &#8230; <a title=\"Setting up a new Ubuntu machine\" class=\"read-more\" href=\"https:\/\/andy.teknostatik.co.uk\/kb\/2018\/03\/25\/setting-up-a-new-ubuntu-machine\/\" aria-label=\"Read more about Setting up a new Ubuntu machine\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","_share_on_mastodon":"0"},"categories":[5,8],"tags":[],"class_list":["post-1499","post","type-post","status-publish","format-standard","hentry","category-linux","category-ubuntu"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts\/1499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/comments?post=1499"}],"version-history":[{"count":0,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/posts\/1499\/revisions"}],"wp:attachment":[{"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/media?parent=1499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/categories?post=1499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andy.teknostatik.co.uk\/kb\/wp-json\/wp\/v2\/tags?post=1499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}