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.117 ]
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
BusqueM3P! - Download de músicas pelo shell
Deixe sua internet plug and play com Pumpconfig
Listar e desconectar usuarios conectados no DB Progress 9.1c/d
Servidor de Backup com Ubuntu Server 24.04 LTS, RAID e Duplicati (Dell PowerEdge T420)
Visualizar câmeras IP ONVIF no Linux sem necessidade de instalar aplicativos
Atualizar Debian Online de uma Versão para outra
Instalar driver Nvidia no Debian 13
Redimensionando, espelhando, convertendo e rotacionando imagens com script
Debian 13 Trixie para Iniciantes
Convertendo pacotes DEB que usam ZSTD (Padrão Novo) para XZ (Padrão Antigo)
baschrc customizado pegeui vários. (3)
Rust é o "C da nossa geração"? (8)