Compilador automatizado de kernel Linux (para BSRSoft ServerUX II, Debian, Ubuntu e Debians-like)
Publicado por Andre Santos (última atualização em 25/06/2011)
[ Hits: 5.274 ]
Homepage: andreconsultancy.eu.org
Download serverux-kernel-compiler
Script automatizador de compilação de Kernel Linux para sistemas Debian-like, inclusive BSRSoft ServerUX II.
Baixa atualmente a versão RC4 do kernel source 2.6.39, prepara o sistema, pede as configurações desejadas do administrador, compila os fontes e instala o Kernel.
Entradas no GRUB são geradas automaticamente ao final.
Basta "rebootar" o sistema ao final do processo e escolher o Kernel 2.6.39-rc4-bsrsoftserverux em seu GRUB.
O script é estável e é utilizado em produção e também em ambiente de testes sem problemas.
Utiliza duas threads para aproveitar melhor processadores de 2 ou mais núcleos durante a compilação, para assim, diminuir o tempo total de execução.
Liberado sob a GPL2 ou quaisquer outras GPL posteriores.
Copyright BSRSoft LTDA - www.bsrsoft.com.br
#!/bin/bash # serverux-kernel-compiler v. 0.2 # # Copyright 2011 BSRSoft LTDA <infraestrutura@bsrsoft.com.br> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. # Aplicando patch ao kernel: #cd /usr/src/linux-2.6.bla #bzip2 -dc /path/to/patch.tar.bzip2 | sudo patch -p1 KERNEL=linux-2.6.39-rc4.tar.bz2 # http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.39-rc4.tar.bz2 echo "Compilador de kernel 2.6.39 do BSRSoft ServerUX II................." sleep 3 echo "Garantindo que os pacotes essenciais para compilação estejam presentes no BSRSoft ServerUX II" sleep 5 apt-get update apt-get update apt-get install build-essential kernel-package libncurses-dev cd /usr/src echo "Baixando sources do novo kernel" sleep 3 #wget -c http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.37.3.tar.bz2 # wget -c http://www.kernel.org/pub/linux/kernel/v2.6/testing/$KERNEL wget -c http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.39-rc4.tar.bz2 echo "Desacompactando sources em /usr/src" sleep 3 tar -jxvf $KERNEL rm -rf $KERNEL mv linux-2.6.39-rc4 linux-2.6.39-rc4-serverux cd linux-2.6.39-rc4-serverux #cp /boot/config-'uname -r' ./.config make menuconfig echo "Compilando o novo kernel" sleep 3 export CONCURRENCY_LEVEL=2 make-kpkg --append_to_version -bsrsoftserverux --revision 2.5 --us --uc --initrd binary cd .. echo Instalando o novo kernel. Após o término da tarefa um reboot será necessário sleep 5 dpkg -i linux-headers-2.6.39-rc4-bsrsoftserverux_2.5_amd64.deb dpkg -i linux-image-2.6.39-rc4-bsrsoftserverux_2.5_amd64.deb
Script de instalação para Firefox e Thunderbird - new release
Script - muda conteúdo de arquivos texto de iso-8859-1 para utf8 recursivamente
PINGS - Ping para diversos hosts em varios consoles
LazyDocker – Interface de Usuário em Tempo Real para o Docker
Instalando COSMIC no Linux Mint
Turbinando o Linux Mint: o poder das Nemo Actions
Inteligência Artificial no desenvolvimento de software: quando começar a usar?
O widget do Plasma 6 Área de Notificação
[Resolvido] Algo deu errado ao abrir seu perfil
Quando vocês pararam de testar distros? (14)
Problema com som no laptop (3)
Não estou conseguindo fazer funcionar meu Postfix na versão 2.4 no Deb... (2)









