{"id":1422,"date":"2017-09-23T09:49:32","date_gmt":"2017-09-22T21:49:32","guid":{"rendered":"http:\/\/p-s.co.nz\/wordpress\/?p=1422"},"modified":"2017-11-12T06:46:05","modified_gmt":"2017-11-11T18:46:05","slug":"shifting-laptops-in-ubuntu","status":"publish","type":"post","link":"https:\/\/p-s.co.nz\/wordpress\/shifting-laptops-in-ubuntu\/","title":{"rendered":"Shifting laptops in Ubuntu"},"content":{"rendered":"<p>My laptop HDD was failing and getting worse. Time to get a new machine and shift. Here is the highly simplified, sanitised version of how I got everything working.<\/p>\n<p>Install latest Ubuntu (finally shifted from 32 to 64 bit). Use <a href=\"https:\/\/etcher.io\/\" rel=\"noopener\" target=\"_blank\">https:\/\/etcher.io\/<\/a> to make live USB &#8211; it Just Works\u2122. Was given the option of retaining Windows 10 so gave it 84GB\/2TB and kept rolling.<\/p>\n<p>Sorted out Nvidia as per <a href=\"https:\/\/askubuntu.com\/questions\/764142\/ubuntu-16-04lts-extended-display-not-working\" rel=\"noopener\" target=\"_blank\">Ubuntu 16.04LTS extended display not working<\/a> (see also <a href=\"https:\/\/www.youtube.com\/watch?v=_36yNWw_07g\" rel=\"noopener\" target=\"_blank\">https:\/\/www.youtube.com\/watch?v=_36yNWw_07g<\/a>)<\/p>\n<ol>\n<li>Run sudo apt-get purge nvidia-*<\/li>\n<li>Run sudo add-apt-repository ppa:graphics-drivers\/ppa<\/li>\n<li>Run sudo apt-get update<\/li>\n<li>Run sudo apt-get install nvidia-364 (Check what&#8217;s the latest version&#8230; in my case nvidia-375 was the latest in the repos)<\/li>\n<\/ol>\n<p>Reboot. Success?<\/p>\n<p>Set up launcher etc so not sticky and icons the right size. Remove unneeded ones etc.<\/p>\n<p><code>sudo apt install chromium-browser dh-make gftp gimp git idle3 imagemagick inkscape keepass2 mysql-server openjdk-9-jdk python3-matplotlib python3-nose python3-numpy python3-requests python-pil python-wxgtk3.0 python-wxversion p7zip-full scribus shotwell shutter sqlitebrowser synaptic thunderbird vim virtualbox virtualbox-guest-additions-iso vlc wine64-development hardinfo<\/code><\/p>\n<p>I got SQLYog working. It was fun finding the icon. Run using wine sqlyog.exe etc rather than trying to double click exes.<\/p>\n<p>For MySQL I copied everything over and sorted out permissions. The innodb tables wouldn&#8217;t run (tables apparently did not exist) but I didn&#8217;t actually need them given they were local copies of remote tables. So I just transferred databases over using SQLYog.<\/p>\n<p>For my cron jobs I ran crontab -e on source laptop and stored results then ran same command on new machine and pasted them. How cool is that :-).<\/p>\n<p>Installed newest version of eclipse. As always, some faffing around to get desktop file sorted out etc. E.g.<\/p>\n<p><code>sudo ln -s \/home\/g\/eclipse\/java-oxygen\/eclipse\/eclipse \/usr\/bin\/eclipse<\/code><\/p>\n<p>Install pydev.<\/p>\n<p>Brought across lots of documents of course, and .gftp, .idlerc, .matplotlib, .openshot, .shh. Plus Music, Videos, Pictures (including photos)<\/p>\n<p>Added thunderbird and firefox to startup.<\/p>\n<p>Changed LibreOffice icon style to Galaxy under Tools>Options>LibreOffice>View>Icon style.<\/p>\n<p>Then run some backups.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My laptop HDD was failing and getting worse. Time to get a new machine and shift. Here is the highly simplified, sanitised version of how I got everything working. Install latest Ubuntu (finally shifted from 32 to 64 bit). Use &hellip; <a href=\"https:\/\/p-s.co.nz\/wordpress\/shifting-laptops-in-ubuntu\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,6],"tags":[],"class_list":["post-1422","post","type-post","status-publish","format-standard","hentry","category-mysql","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/1422"}],"collection":[{"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/comments?post=1422"}],"version-history":[{"count":9,"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/1422\/revisions"}],"predecessor-version":[{"id":1435,"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/posts\/1422\/revisions\/1435"}],"wp:attachment":[{"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/media?parent=1422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/categories?post=1422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-s.co.nz\/wordpress\/wp-json\/wp\/v2\/tags?post=1422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}