Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cambiare le informazioni del dns
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Noitulove
n00b
n00b


Joined: 22 Sep 2004
Posts: 10
Location: Padova

PostPosted: Fri Sep 24, 2004 1:25 pm    Post subject: Cambiare le informazioni del dns Reply with quote

Salve a tutti, quando cerco di cambiare le informazioni del dns con questa strina:
Quote:
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf


mi da il seguente errore:

[QUOTE]cp: cannot create regular file '/mnt/gentoo/etc/resolv.con': No such file or directory.

Come mai questo errore?
Grazie.
Ciao.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31467
Location: here

PostPosted: Fri Sep 24, 2004 1:36 pm    Post subject: Reply with quote

prova a dare solo
Code:
cp  /etc/resolv.conf /mnt/gentoo/etc/resolv.conf

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Noitulove
n00b
n00b


Joined: 22 Sep 2004
Posts: 10
Location: Padova

PostPosted: Fri Sep 24, 2004 1:39 pm    Post subject: Reply with quote

Sempre stesso errore
Back to top
View user's profile Send private message
DaVe&OpenMOsix
Apprentice
Apprentice


Joined: 30 Dec 2003
Posts: 213

PostPosted: Fri Sep 24, 2004 1:39 pm    Post subject: Re: Cambiare le informazioni del dns Reply with quote

Ciao
Quote:
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf

Perchè usi l'opzione -L?
serve per seguire i link simbolici, o cose così.
basta solo
Code:
 cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf

oppure
Code:
 cat /etc/resolv.conf /mnt/gentoo/etc/resolv.conf

oppure se ancora non va, apri nano e scrivi a mano le due righe.
ciao
DV
_________________
-- Siccome sono un informatico ho votato PCI convinto di aumentare gli slot di espansione della società --
-^v^v^v^v^v^v^v^v^v^-
DaVe the WaVe
http://dave.ccni.it
http://www.davethewave.it
-^v^v^v^v^v^v^v^v^v^-
Back to top
View user's profile Send private message
Noitulove
n00b
n00b


Joined: 22 Sep 2004
Posts: 10
Location: Padova

PostPosted: Fri Sep 24, 2004 1:46 pm    Post subject: Reply with quote

Scusa l' ignoranza ma per le due righe intendi quelle sopra citate oppure i dns?
Scusami.
Ciao
Back to top
View user's profile Send private message
DaVe&OpenMOsix
Apprentice
Apprentice


Joined: 30 Dec 2003
Posts: 213

PostPosted: Fri Sep 24, 2004 2:05 pm    Post subject: Reply with quote

Quote:
Scusa l' ignoranza ma per le due righe intendi quelle sopra citate oppure i dns

si, scusa, non sono stato chiaro.
in resolv.conf ci stanno gli indirizzi del dns.
quindi li puoi leggere da /etc/resolv.conf, ad esempio con cat.
li scrivi da qualche parte (carta e penna non sono molto tecnologici ma funzionano), apri
Code:
nano /mnt/gentoo/etc/resolv.conf
e scrivili lì dentro.
per uscire da nano premi CTRL+X, ti chiede se vuoi salvare, digli Y.
è il metodo meno informatico del mondo, ma non dovrebbe avere problemi di bug :lol:
ciao!
DV
_________________
-- Siccome sono un informatico ho votato PCI convinto di aumentare gli slot di espansione della società --
-^v^v^v^v^v^v^v^v^v^-
DaVe the WaVe
http://dave.ccni.it
http://www.davethewave.it
-^v^v^v^v^v^v^v^v^v^-
Back to top
View user's profile Send private message
Noitulove
n00b
n00b


Joined: 22 Sep 2004
Posts: 10
Location: Padova

PostPosted: Fri Sep 24, 2004 2:38 pm    Post subject: Reply with quote

Ok, scrivo i dns e poi gli do salva, ma quando vado per salvare il file mi dice:
Code:
Could not open file for writing: Not a directory
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31467
Location: here

PostPosted: Fri Sep 24, 2004 2:41 pm    Post subject: Reply with quote

Posto qua dei messaggio scritti sul thread duplicato

Noitulove wrote:
Parlando in chat con fedeiallalinea per risolvere alcuni problemi è spuntato questo.

Code:
/mnt/gentoo/etc

è un file mentre dovrebbe essere una cartella, che devo fare?
Grazie
Ciao


DaVe&OpenMOsix wrote:
Cosa significa?
sei sicuro di avere montato correttamente l'hd su cui vuoi installare gentoo?
hai scompattato gli stage correttamente?
ciao


fedeliallalinea wrote:
@DaVe&OpenMOsix: si in qualche modo ha sovrascritto la etc con il contenuto del resolv.conf

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
DaVe&OpenMOsix
Apprentice
Apprentice


Joined: 30 Dec 2003
Posts: 213

PostPosted: Fri Sep 24, 2004 2:49 pm    Post subject: Reply with quote

forse ha messo uno spazio tra /mnt/gentoo/etcQUI/resolv.conf
mi sembra strano (anzi, impossibile) che una directory sia scrivibile come un file...
resto dell'idea che non ha untarrato bene lo stage, o montato bene l'hd.
quindi il mio consiglio è di ripartire con
Code:

umount /dev/PARTIZIONEDIROOT
mkfs.FILESYSTEMCHEVUOI /dev/PARTIZIONEDIROOT
mount /dev/PARTIZIONEDIROOT /mnt/gentoo
cd /mnt/gentoo
tar xjvpf /mnt/cdrom/stages/stageCHEVUOI

eccetera, seguendo la guida.
ciao
DV
_________________
-- Siccome sono un informatico ho votato PCI convinto di aumentare gli slot di espansione della società --
-^v^v^v^v^v^v^v^v^v^-
DaVe the WaVe
http://dave.ccni.it
http://www.davethewave.it
-^v^v^v^v^v^v^v^v^v^-
Back to top
View user's profile Send private message
Noitulove
n00b
n00b


Joined: 22 Sep 2004
Posts: 10
Location: Padova

PostPosted: Fri Sep 24, 2004 4:46 pm    Post subject: Reply with quote

Ok, questo è risolto avevi ragione DaVe&OpenMOsix, però ora insorge un nuovo problema.
Quando cerco di installare i sorgenti e do quindi
Code:
emerge --usepkg gentoo-dev-sources

mi appare un errore e mi dice:
Code:
!!!ARCH is not set... Are you missing /etc/make.profile symlink?
!!! Is the symlink correct? Is your portage tree complete?

Che fare.
Scusatemi.
Grazie
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31467
Location: here

PostPosted: Fri Sep 24, 2004 4:53 pm    Post subject: Reply with quote

Se e' un x86 allora dai il comando
Code:
# ln -s /usr/portage/profiles/default-x86-2004.2 /etc/make.profile

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Noitulove
n00b
n00b


Joined: 22 Sep 2004
Posts: 10
Location: Padova

PostPosted: Sat Sep 25, 2004 2:17 pm    Post subject: Reply with quote

Volevo farvi una domanda, ma perchè quando vado in

Code:
nano -w /mnt/gentoo/etc/make.conf


lo trovo vuoto?
Scusatemi.
Ciao.
_________________
La grandezza dell'uomo si misura in base a quel che cerca e all'insistenza con cui egli resta alla ricerca.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31467
Location: here

PostPosted: Sat Sep 25, 2004 2:19 pm    Post subject: Reply with quote

Perche' hai fatto qualcosa di non giusto nell'installazione. Anche l'errore di prima non e' normale
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Noitulove
n00b
n00b


Joined: 22 Sep 2004
Posts: 10
Location: Padova

PostPosted: Sun Sep 26, 2004 2:07 pm    Post subject: Reply with quote

Insorge un nuovo problema, quando faccio

Code:
emerge -k gentoo-sorces


mi viene un errore come questo

Code:
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure: error: /bin/sh './configure' failed for autoconf-lib-link

!!! ERROR: sys-devel/gettext-0.12.1 failed.
!!! Function econf, Line 362, Exitcode 1
!!!Econf failed


Che fare, grazie.
Ciao.
_________________
La grandezza dell'uomo si misura in base a quel che cerca e all'insistenza con cui egli resta alla ricerca.
Back to top
View user's profile Send private message
DaVe&OpenMOsix
Apprentice
Apprentice


Joined: 30 Dec 2003
Posts: 213

PostPosted: Sun Sep 26, 2004 2:40 pm    Post subject: Reply with quote

Code:
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure: error: /bin/sh './configure' failed for autoconf-lib-link

continuano a non essere errori "normali" per quanto un errore lo possa essere.
ma perchè non fai
Code:
emerge gentoo-sources
senza il "-k"?
non credo che esista il pacchetto precompilato del kernel...
dopo dovrei compilarlo a manina.
PS: sei sicuro di seguire bene la guida all'installazione?
ciao
DV
_________________
-- Siccome sono un informatico ho votato PCI convinto di aumentare gli slot di espansione della società --
-^v^v^v^v^v^v^v^v^v^-
DaVe the WaVe
http://dave.ccni.it
http://www.davethewave.it
-^v^v^v^v^v^v^v^v^v^-
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum