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.089 ]
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 captura de campos de formulário com conversão URL encode.
sincleg: sincronizador de legendas (srt)
Desligando seu PC com controle total e aviso sonoro
Aprenda a Gerenciar Permissões de Arquivos no Linux
Como transformar um áudio em vídeo com efeito de forma de onda (wave form)
Como aprovar Pull Requests em seu repositório Github via linha de comando
Visualizar arquivos em formato markdown (ex.: README.md) pelo terminal
Dando - teoricamente - um gás no Gnome-Shell do Arch Linux
Como instalar o Google Cloud CLI no Ubuntu/Debian
Mantenha seu Sistema Leve e Rápido com a Limpeza do APT!
Procurando vídeos de YouTube pelo terminal e assistindo via mpv (2025)
O que você está ouvindo agora? [2] (183)
Gestão de Ambiente em uma rede Linux (2)
Ajuda Pra Melhoria do NFTABLES. (7)
Zorin OS - Virtual Box não consigo abrir maquinas virtuais (4)