{"id":22586,"date":"2015-11-28T19:18:28","date_gmt":"2015-11-28T19:18:28","guid":{"rendered":"http:\/\/www.inacreditavel.pt\/?p=22586"},"modified":"2015-11-28T19:20:22","modified_gmt":"2015-11-28T19:20:22","slug":"kernel-4-1-13","status":"publish","type":"post","link":"http:\/\/www.inacreditavel.pt\/?p=22586","title":{"rendered":"Kernel 4.1.13"},"content":{"rendered":"<p>Mais uma atualiza\u00e7\u00e3o das m\u00e1quinas. Desta vez para o kernel 4.1.13.<\/p>\n<p><a href=\"http:\/\/www.inacreditavel.pt\/wp-content\/uploads\/sites\/17\/2015\/11\/upgrades.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.inacreditavel.pt\/wp-content\/uploads\/sites\/17\/2015\/11\/upgrades.jpg\" alt=\"upgrades\" width=\"753\" height=\"479\" class=\"aligncenter size-full wp-image-22588\" srcset=\"http:\/\/www.inacreditavel.pt\/wp-content\/uploads\/sites\/17\/2015\/11\/upgrades.jpg 753w, http:\/\/www.inacreditavel.pt\/wp-content\/uploads\/sites\/17\/2015\/11\/upgrades-300x191.jpg 300w\" sizes=\"(max-width: 753px) 100vw, 753px\" \/><\/a><\/p>\n<p>N\u00e3o esquecer que a nova configura\u00e7\u00e3o do SSHD n\u00e3o permite o acesso de clientes \u00e0 conta &#8220;root&#8221;. Para permitir, \u00e9 necess\u00e1rio, antes do \u00faltimo reboot, colocar a linha seguinte no ficheiro \/etc\/ssh\/sshd_config: <strong>PermitRootLogin yes<\/strong><br \/>\nOu ent\u00e3o apagar o ficheiro <strong>\/etc\/ssh\/sshd_config.new<\/strong> antes de fazer o upgrade.<br \/>\nOu, sempre que o SSHD \u00e9 atualizado, n\u00e3o fazer o <em>overwrite<\/em> desse ficheiro.<\/p>\n<p>No fim vou ter que reiniciar os hosts das m\u00e1quinas virtuais com os comandos que usei das \u00faltimas vezes. Estes comandos s\u00e3o necess\u00e1rios para recompilar o VirtualBox para a nova vers\u00e3o do Kernel do Linux.<\/p>\n<pre>cd \/root\r\nbat\/vboxes stop\r\ncd \/usr\/local\/\r\nVBoxManage extpack uninstall \"Oracle VM VirtualBox Extension Pack\"\r\nreboot\r\nexit\r\ncd \/usr\/local\/\r\nchmod +x .\/VirtualBox-5.0.10-104061-Linux_amd64.run\r\n.\/VirtualBox-5.0.10-104061-Linux_amd64.run\r\nVBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.0.10-104061.vbox-extpack\r\ncd -\r\nbat\/vboxes start<\/pre>\n<p>O ficheiro <strong>bat\/vboxes<\/strong> \u00e9 um ficheiro de comandos que <a href=\"http:\/\/www.inacreditavel.pt\/?p=20537\">criei<\/a> para gerir as m\u00e1quinas virtuais do VirtualBox.<\/p>\n<p>Entretanto, se alguma das m\u00e1quinas falhar, posso recuper\u00e1-la da mesma forma que j\u00e1 aqui foi documentada antes.<\/p>\n<p>Reiniciar a m\u00e1quina virtual, ligando ao leitor de CD um ISO com a <strong>\u00faltima vers\u00e3o do sistema operativo<\/strong>. Depois de arrancar e escolher o layout do teclado, executar os comandos seguintes.<\/p>\n<pre>mount \/dev\/sda2 \/mnt\r\nmount -t proc proc \/mnt\/proc (this was the magic step)\r\nchroot \/mnt\r\ncd \/boot\r\nmkinitrd -c -k 4.1.13 -m ext3\r\n# No ficheiro \/etc\/lilo.conf colocar a linha\r\ninitrd = \/boot\/initrd.gz\r\n# no fim do ficheiro, logo ap\u00f3s a linha\r\nroot = \/dev\/sda2\r\n# depois, executar os comandos:\r\nlilo\r\nreboot <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Mais uma atualiza\u00e7\u00e3o das m\u00e1quinas. Desta vez para o kernel 4.1.13. N\u00e3o esquecer que a nova configura\u00e7\u00e3o do SSHD n\u00e3o permite o acesso de clientes \u00e0 conta &#8220;root&#8221;. Para permitir, \u00e9 necess\u00e1rio, antes do \u00faltimo reboot, colocar a linha seguinte no ficheiro \/etc\/ssh\/sshd_config: PermitRootLogin yes Ou ent\u00e3o apagar o ficheiro \/etc\/ssh\/sshd_config.new antes de fazer o [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts\/22586"}],"collection":[{"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22586"}],"version-history":[{"count":3,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts\/22586\/revisions"}],"predecessor-version":[{"id":22590,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts\/22586\/revisions\/22590"}],"wp:attachment":[{"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22586"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}