Ubuntu
Veja:
DebianLinux
Instalando o Edgy de um hd (hard disk) ou via rede
ter uma particao sobrando
pegar arquivos daqui(i386) :
http://ftp.sjtu.edu.cn/ubuntu/dists/edgy/main/installer-i386/current/images/hd-media/
ou
http://archive.ubuntu.com/ubuntu/dists/edgy/main/installer-i386/current/images/hd-media/
#!/bin/sh
# AMD-64
# mount /dev/sda5 /mnt
cd /mnt
mkdir netboot
mkdir hd-image
cd netboot
wget http://ftp.sjtu.edu.cn/ubuntu/dists/edgy/main/installer-amd64/current/images/netboot/{boot.img.gz,mini.iso,netboot.tar.gz}
cd ../hd-image
wget http://ftp.sjtu.edu.cn/ubuntu/dists/edgy/main/installer-amd64/current/images/hd-media/{initrd.gz,vmlinuz,boot.img.gz}
LILO
# Partition 4: ubuntu install
image = /boot/xubuntu/vmlinuz
label = xubuntu
initrd = /boot/xubuntu/initrd.gz
root = /dev/ram0
append = "devfs=mount, dall ramdisk_size=16000"
GRUB
title Install Ubuntu
kernel (hd0,0)/ubuntu/install/vmlinuz root=/dev/ram0 devfs=mount,dall ramdisk_size=17000
initrd (hd0,0)/ubuntu/install/initrd.gz
Problemas com extensões do firefox
Altera a versão do firefox:
MozillaFirefox
Driver snd-intel8x0 nao funciona
Drivers alsa nao funcionam, drivers OSS funcionam.
- OSS
i810_audio
- ALSA
snd-intel8x0
Trocar para o driver alsa, incluir i810_audio em /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
i810_audio
ide-cd
ide-disk
ide-generic
lp
mousedev
psmouse
Desabilitar o suporte a alsa na inicialização, para isto usar
rcconf e remover alsa.
Instalar
aumix para mexer no mixer do sistema
#!/bin/sh
apt-get install aumix
Repositórios
o Ubuntu tem três repositórios:
main,
restricted,
universe e
multiverse
main
Pacotes livres e oficialmente suportados (recebem atualizações): gnome, openoffice.org, ...
restricted
Pacotes não totalmente livres e suportados: nvida-glx (driver nvdia), xorg-driver-fglrx (drive ati), ,,,
universe
Pacotes livres e não suportados (podem não receber atualizações críticas e de segurança): kde, abiword, bittorrent-gui, bochs, qemu,
qt3-assistant, zope, asterisk, ethereal, mozilla, mono ...
multiverse
pacotes não totalmente livres e não suportados: mplayer, snes9x
Maiores detalhes em:
http://www.ubuntulinux.org/ubuntu/components/document_view
backports
http://backports.ubuntuforums.org/
Lista do apt-get (sources.list)
# /etc/apt/sources.list
# BR main/restricted/universe/multiverse
deb http://br.archive.ubuntu.com/ubuntu hoary main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu hoary main restricted universe multiverse
# BR updates main/restricted/universe/multiverse
deb http://br.archive.ubuntu.com/ubuntu hoary-updates main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu hoary-updates main restricted universe multiverse
# Security
deb http://security.ubuntu.com/ubuntu hoary-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted universe multiverse
## Backports
deb http://ubuntu-backports.mirrormax.net/ hoary-backports main universe multiverse restricted
deb http://ubuntu-backports.mirrormax.net/ hoary-extras main universe multiverse restricted
Pegar lista de pacotes de um repositório
#!/bin/sh
grep '^Package: ' /var/lib/apt/lists/br.archive.ubuntu.com_ubuntu_dists_hoary_universe_binary-i386_Packages | cut -d' ' -f 2-
Ubuntu Edgy amd64
http://www.debianadmin.com/ubuntu-edgy-eft-complete-sourceslist-repository-list-file.html
#!/usr/bin/sudo -s -H
# ajeitar apt-get
cat << ENDsources >/etc/apt/sources.list
deb http://br.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse
deb http://br.archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ edgy main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted universe multiverse
# nda para amd64
#deb http://seveas.imbrandon.com edgy-seveas extras
#deb-src http://seveas.imbrandon.com edgy-seveas extras
# multimedia
deb http://medibuntu.sos-sts.com/repo/ edgy free non-free
deb-src http://medibuntu.sos-sts.com/repo/ edgy free non-free
# comercial
deb http://archive.canonical.com/ubuntu edgy-commercial main
ENDsources
wget -q http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg -O- | sudo apt-key add -
wget -q http://seveas.imbrandon.com/1135D466.gpg -O- | sudo apt-key add -
apt-get update
apt-get -y -u dist-upgrade
# instalar o vim
apt-get -y -u install vim
# instalar network manager
apt-get -y -u install network-manager-gnome
# apt-build (amd64)
apt-get -y -u install apt-build build-essential
# instalar mplayer w32codecs libdvdcss2
#apt-get -y -u install mplayer w32codecs libdvdcss2
#instalar java da sun
#apt-get install sun-java5-jre sun-java5-fonts
# pacotes de desenvolvimento (Meus)
# apt-get -y install anjuta libgtk2.0-dev libgtkmm2.0-dev libgnome2-dev libgnomemm-dev glade-gnome-2 cvs automake autoconf autogen indent devhelp gnome-devel libtool ctags vim-full meld subversion sun-java5-jdk eclipse-cdt eclipse-pydev
# libs de desenvolvimento (meus)
#apt-get install libdirectfb-dev libdvdcss2-dev libavcodec-dev
#tilda
apt-get install tilda
# ptbr
apt-get install openoffice.org-l10n-pt-br myspell-pt-br aspell-pt-br mozilla-firefox-locale-pt-br
dash divertion
ao executar .sh
erro:
==: unexpected operator
sudo mv /bin/sh /bin/sh.dash
sudo dpkg-divert --package dash --rename --remove /bin/sh
w
locales
#!/bin/sh
sudo apt-get install language-support-pt language-pack-pt language-pack-pt language-pack-gnome-pt
--
IuriDiniz - 20 Jul 2005