Ubuntu

From Alessandro's Wiki
Jump to: navigation, search

apt mi da un errore

Scaricato 9646B in 8s (1130B/s)
Lettura della lista dei pacchetti in corso... Fatto
W: GPG error: http://packages.freecontrib.org dapper Release: Le seguenti firme non sono state verificate perché la chiave pubblica non è disponibile: NO_PUBKEY F120156012B83718
W: è consigliabile eseguire apt-get update per correggere questi problemi
  • Mi manca una GPG, la importo
# wget http://packages.freecontrib.org/ubuntu/plf/12B83718.gpg -O- | apt-key add -

OK, è andata

root@h4p0:~# apt-get  update 
[...]
Scaricato 194B in 8s (23B/s)
Lettura della lista dei pacchetti in corso... Fatto

Kernel Modules

Per installare un modulo del kernel su k/ubuntu. (da http://wiki.ubuntu-it.org/Hardware/Webcam/DriverGspca )

  • Esempio con driver webcam gspca
apt-get install module-assistant

Dunque, per installare il pacchetto gspca-source, contenente i sorgenti dei driver, digitare da terminale il seguente comando:

sudo apt-get install gspca-source

Installazione

Per compilare e installare il modulo dei driver, è necessario digitare i seguenti comandi:

sudo m-a prepare
sudo m-a a-i gspca

Infine non resta che verificare il corretto funzionamento del driver:

sudo modprobe gspca


releases:

  • old releases: http://old-releases.ubuntu.com/releases/
    • Ubuntu 4.10 (Warty Warthog)
    • Ubuntu 5.04 (Hoary Hedgehog)
    • Ubuntu 5.10 (Breezy Badger)
    • Ubuntu 6.06.0 (Dapper Drake)
    • Ubuntu 6.06.1 (Dapper Drake)
    • Ubuntu 6.06.2 (Dapper Drake)
    • Ubuntu 6.10 (Edgy Eft)
    • Ubuntu 7.04 (Feisty Fawn)
    • Ubuntu 7.10 (Gutsy Gibbon)
    • Ubuntu 8.10 (Intrepid Ibex)
    • Ubuntu 9.04 (Jaunty Jackalope)
    • Ubuntu 9.10 (Karmic Koala)
    • Ubuntu 8.04.0 (Hardy Heron)
    • Ubuntu 8.04.1 (Hardy Heron)
    • Ubuntu 8.04.2 (Hardy Heron)
    • Ubuntu 8.04.3 (Hardy Heron)
    • Ubuntu 10.04.0 (Lucid Lynx)
    • Ubuntu 10.04.1 (Lucid Lynx)
    • Ubuntu 10.04.2 (Lucid Lynx)

sources.list

  • when a distribution gets outdated, you can use the old-releases repositories:
    • karmic:
## EOL upgrade sources.list
# Required
deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse

# Optional
#deb http://old-releases.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
#deb http://old-releases.ubuntu.com/ubuntu/ karmic-proposed main restricted universe multiverse
    • jaunty
## EOL upgrade sources.list
# Required
deb http://old-releases.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse

# Optional
#deb http://old-releases.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
#deb http://old-releases.ubuntu.com/ubuntu/ jaunty-proposed main restricted universe multiverse


distribution upgrade:

  • if too updated (apt gives errors while synchronizing repos) take the step above first.
  • install the tool:
sudo apt-get install update-manager-core update-manage
  • finally do release update:
sudo do-release-upgrade


  • dirty way: (adjust karmic with actual installed and lucid with target release:
sudo sed -i 's/karmic/lucid/g' /etc/apt/sources.list && sudo aptitude update && sudo aptitude dist-upgrade


network settings

  • set a route at startup:
 post-up route add -net 192.168.100.0/24 gw 192.168.1.1
 post-down route del -net 192.168.100.0/24 gw 192.168.1.1