Howto / Ubuntu
Ubuntu - Installare e configurare un server LAMP con Samba e FTP
Author: Tafaz
Visits: 7105
Date: 30.03.2007
prima di aggiornare il sistema andiamo a modificare il file /etc/apt/sources.list eliminando il cdrom come source e abilitando qualche altro repository
vi /etc/apt/sources.list
ora dobbiamo renderlo simile a questo
#
# deb cdrom:[Ubuntu-Server 6.06 _Dapper Drake_ - Release i386 (20060531)]/ dapper main restricted
#deb cdrom:[Ubuntu-Server 6.06 _Dapper Drake_ - Release i386 (20060531)]/ dapper main restricted
deb http://it.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://it.archive.ubuntu.com/ubuntu/ dapper main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://it.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://it.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://it.archive.ubuntu.com/ubuntu/ dapper universe
deb-src http://it.archive.ubuntu.com/ubuntu/ dapper universe
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://it.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src http://it.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe
ed ora aggiornamo il sistema con
apt-get update
apt-get upgrade
ora scarichiamo il pacchetto ntp-simple che è un demone che tiene sincronizzato l'orologio di sistema con i server ntp (network time protocol)
apt-get install ntp-simple
quindi editiamo /etc/ntp.conf aggiungendo i server di nostro interesse e commentando server ntp.ubuntu.com
vi /etc/ntp.conf
#server ntp.ubuntu.com
server ntp1.ien.it
server ntp2.ien.it
e riavviamo il servizio
/etc/init.d/ntp-server restart
Author: Tafaz
Visits: 7105
Date: 30.03.2007
prima di aggiornare il sistema andiamo a modificare il file /etc/apt/sources.list eliminando il cdrom come source e abilitando qualche altro repository
vi /etc/apt/sources.list
ora dobbiamo renderlo simile a questo
#
# deb cdrom:[Ubuntu-Server 6.06 _Dapper Drake_ - Release i386 (20060531)]/ dapper main restricted
#deb cdrom:[Ubuntu-Server 6.06 _Dapper Drake_ - Release i386 (20060531)]/ dapper main restricted
deb http://it.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://it.archive.ubuntu.com/ubuntu/ dapper main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://it.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://it.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://it.archive.ubuntu.com/ubuntu/ dapper universe
deb-src http://it.archive.ubuntu.com/ubuntu/ dapper universe
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://it.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src http://it.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe
ed ora aggiornamo il sistema con
apt-get update
apt-get upgrade
ora scarichiamo il pacchetto ntp-simple che è un demone che tiene sincronizzato l'orologio di sistema con i server ntp (network time protocol)
apt-get install ntp-simple
quindi editiamo /etc/ntp.conf aggiungendo i server di nostro interesse e commentando server ntp.ubuntu.com
vi /etc/ntp.conf
#server ntp.ubuntu.com
server ntp1.ien.it
server ntp2.ien.it
e riavviamo il servizio
/etc/init.d/ntp-server restart
Se vuoi discutere con noi su questo articolo o comunque vuoi porci delle domande usa il nostro Forum

