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: 4.872 ]
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 para monitoramento de processos em execução no sistema
Montar pasta remota NFS em Zenity
theme2background - Extrair arquivos themepack e mover para o diretório backgrounds
BackUp Mensal de Relatórios Diários
Download automático da 'Imagem do Dia' da NASA
Atualizar o macOS no Mac - Opencore Legacy Patcher
Crie alias para as tarefas que possuam longas linhas de comando - bash e zsh
Criando um gateway de internet com o Debian
Configuração básica do Conky para mostrar informações sobre a sua máquina no Desktop
Aprenda a criar músicas com Inteligência Artificial usando Suno AI
Instalando Zoom Client no Ubuntu 24.04 LTS
Instalando Zoom Client no Fedora 40
Instalando Navegador Firefox no Debian 12
Bloqueando propagandas no Youtube e outros sites com o uBlocker Origin
Configurando static ipv6 em placa de rede eth0[DUVIDA] (1)
Sistema da Coréia do Norte - Red Star OS (59)
Comando interno CD não funciona (16)
Dificuldade em ler binário (12)
Em que pasta/arquivo ficam as configurações das janelas em derivados d... (2)