{"id":339,"date":"2014-10-29T18:50:21","date_gmt":"2014-10-29T18:50:21","guid":{"rendered":"http:\/\/installingcats.com\/?p=339"},"modified":"2014-10-29T18:50:21","modified_gmt":"2014-10-29T18:50:21","slug":"linux-do-release-upgrade-checklist-broken-pipe","status":"publish","type":"post","link":"https:\/\/installingcats.com\/2014\/10\/29\/linux-do-release-upgrade-checklist-broken-pipe\/","title":{"rendered":"Linux do-release-upgrade Checklist Recover from Broken Pipe"},"content":{"rendered":"
Before a do-release-upgrade in Ubuntu Linux, here’s a quick checklist of todo’s:<\/p>\n
<\/p>\n
The Linux server will continue to run while upgrade is downloading necessary packages.<\/p>\n
First question will be: Disable SSH password authentication for root? \u00a0If you’re using public\/private key logins for SSH, go ahead and disable interactive typed password authentication for SSH. \u00a0This is safer.<\/p>\n
Second question: Restart services during package upgrade without asking? \u00a0Sure. \u00a0Unless you like to watch terminal windows for unknown lengths of time and clicking Yes over and over again.<\/p>\n
Next the Linux server will download, unpack, and update packages, restart services as necessary, one-by-one until all Linux packages are at the latest version available.<\/p>\n
You may be asked to replace some configuration files such as \/etc\/default\/rcS. \u00a0Since I have no recollection of changing that in paritcular, I’ll go with replacing it with the package maintainer (new) version. \u00a0(The only change was to assume BIOS clock is\u00a0set to\u00a0time based on UTC). \u00a0In other cases, such as jail.conf for fail2ban, I’d keep my own configuration file, since it’s full of my customizations to jails that I’d much prefer to keep.<\/p>\n
For \/boot\/grub\/menu.lst, I chose to “Install the Package Maintainer’s version” to replace my version with the new version. \u00a0Nothing exploded. \u00a0Or melted.<\/p>\n
During the ultra-long upgrade process you\u00a0may\u00a0get a Broken Pipe due to spotty Internet connection or accidentally closing your Terminal connection. \u00a0At the beginning of the process do-release-upgrade noted an alternate SSH port where you can reconnect (usually port 1022). \u00a0To reconnect to the active screen (here’s where the chmod 777 \/var\/run\/screen comes in handy) first change the \/var\/run\/screen permissions to 775 (chmod 775 \/var\/run\/screen), then reconnect by\u00a0executing the command screen -d -r<\/strong>. \u00a0This will reconnect you to the running upgrade.<\/p>\n","protected":false},"excerpt":{"rendered":" Before a do-release-upgrade in Ubuntu Linux, here’s a quick checklist of todo’s: Backup important files (apache sites \/ log files \/ conf files, PHP .ini files, databases, cron scripts, .bash_aliases, .profile, upstart scripts) Clear up enough space for upgrading (usually around 1GB) Open up a secondary SSH window and alternate port for firewall\u00a0if you get […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[229],"_links":{"self":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/339"}],"collection":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/comments?post=339"}],"version-history":[{"count":0,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/339\/revisions"}],"wp:attachment":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/media?parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/categories?post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/tags?post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}