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.020 ]
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
Eu vejo gente morta. Descubra se alguém já morreu!
Descobre e bloqueia o IP de quem mais tem conexão no servidor
Criar pacote Debian o firefox de br.mozdev.org
Instalar e Configurar o Slackware Linux em 2025
Como configurar os repositórios do apt no Debian 12 em 2025
Passkeys: A Evolução da Autenticação Digital
Instalação de distro Linux em computadores, netbooks, etc, em rede com o Clonezilla
Como colorir os logs do terminal com ccze
Instalação Microsoft Edge no Linux Mint 22
Como configurar posicionamento e movimento de janelas no Lubuntu (Openbox) com atalhos de teclado
Máquinas Virtuais com IP estático acessando Internet no Virtualbox
Criar entrada no GRUB para uma ISO Linux (7)
Open Suse não abre wi-fi automaticamente (3)
Ruído no Microfone (ALC287 - AMD Ryzen 5 7535HS) no Debian 12.9 (15)