Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCP non auto-"runna"
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
bld
l33t
l33t


Joined: 26 Mar 2003
Posts: 759
Location: Outter Space

PostPosted: Tue Apr 01, 2003 3:18 am    Post subject: DHCP non auto-"runna" Reply with quote

Salve a tutti! Dopo aver avuto una bruttissima esperienza con hdparm, eccomi qua! :P

Questa volta dal momento che ho installato linux, "dhcpcd" lo devo dare
come comando subbito dopo il boot. Cosa praticamente fastidiosa.. per qualcuno
che non lo ha mai fatto! Ma non caspisco perche eth0 va sopra benissimo
o almeno e' quello che vedo, e a conferma di questo appena mi da il prompt
facio dhcpcd e via, la rete e' "up" (io ho fastweb come provider, come credo tanti di voi
perche gentoo senza banda e' frustrante..). Ora il problema e' che tra un po andro a casa
e lascio il computer apperto, per accedere anche da casa mia (qui, in italia.. sto studiando) ora se questo non parte da solo non potro mai farcela! voglio dire dopo il primo reboot "ciao". .. Ho provato a fare uno scriptino su /etc/init.d/ con 3 linee
che lo "pasto" qui:
------------------------------------------------------
#/bin/bash
exec /root/security/anti-ptrace
exec /sbin/dhcpcd
exec /sbin/hdparm -d1 -A1 -m16 -u1 -a64 /dev/hd
--------------------------------------------------------------
[*Il primo lo consiglio a tutti quelli che non hanno applicato la patch per il
ptrace exploit, e per qualche ragione non ricompilano il kernel.
E' di sacrine@netric il sorgente lo trovate su packetstorm.
Basta rendere il txt "chmod +x" e via la patch :) ]

A questo punto mentre hdparm e anti-ptrace vengono eseguiti con successo
hdcpcd no! Ma dopo il login basta sempre digitare hdcpcd per
trovarsi on line!

Avete qualche idea? Ho cercato di configurare /etc/conf.d/net pero
ho rischiato anche li di fare un disatro.

Tsiouz!
_________________
A happy GNU/Linux user!!
Back to top
View user's profile Send private message
bld
l33t
l33t


Joined: 26 Mar 2003
Posts: 759
Location: Outter Space

PostPosted: Tue Apr 01, 2003 3:56 am    Post subject: Reply with quote

qui vi posto l'evento cosi capite meglio cosa succede.
------------------------------------------------------------------
Bringing eth0 up... [ ok ] *
Mounting network filesystems... [ ok ] *
Starting postfix... [ ok ] *
Starting sshd... [ ok ] *
Starting local... [ ok ]
[+] making anti-ptrace.c: OK
[+] compiling the script: OK
[+] loading the module : OK

b00-b0x.fasteweb.net login: root
Password:
Last login: Tue Apr 1 06:38:38 on 1
b00-b0x root # ping www.google.com
ping: unknown host www.google.com
b00-b0x root # dhcpcd
b00-b0x root # ping www.google.com
PING www.google.com (216.239.39.104): 56 octets data
64 octets from 216.239.39.104: icmp_seq=0 ttl=50 time=114.5 ms
64 octets from 216.239.39.104: icmp_seq=2 ttl=50 time=122.3 ms

--- www.google.com ping statistics ---
3 packets transmitted, 2 packets received, 33% packet loss
round-trip min/avg/max = 114.5/118.4/122.3 ms
b00-b0x root #
------------------------------------------------------------------------------------------
boh!
_________________
A happy GNU/Linux user!!
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Tue Apr 01, 2003 5:51 am    Post subject: Reply with quote

Configura il file /etc/conf.d/net.
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
Montag[SGU]
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2003
Posts: 95

PostPosted: Tue Apr 01, 2003 7:25 am    Post subject: Reply with quote

Devi un-commentare :P questa riga in /etc/conf.d/net:
Code:
#iface_eth0="dhcp"

Ovviamente dovresti avere dato anche un:
Code:
rc-update add net.eth0 boot

almeno una volta nella vita.


Last edited by Montag[SGU] on Tue Apr 01, 2003 7:26 am; edited 1 time in total
Back to top
View user's profile Send private message
malteo
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2003
Posts: 101
Location: Pescara, Italy

PostPosted: Tue Apr 01, 2003 4:09 pm    Post subject: Reply with quote

... e per hdparm esiste
Code:
/etc/conf.d/hdparm

e il successivo
Code:
rc-update add hdparm default


P.S.: secondo voi è meglio "boot" che "default"?
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Tue Apr 01, 2003 6:30 pm    Post subject: Reply with quote

Montag[SGU] wrote:

Ovviamente dovresti avere dato anche un:
Code:
rc-update add net.eth0 boot

almeno una volta nella vita.

Perché non
Code:
# rc-update add net.eth0 default

?
_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
Montag[SGU]
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2003
Posts: 95

PostPosted: Wed Apr 02, 2003 12:53 pm    Post subject: Reply with quote

In effetti volevo scrivere "default", ma a furia di giocherellare con i driver alsa mi e' scappato "boot" (non che per l'ethernet cambi molto la situazione)

--
S+E
[ Perche' tanto odio? ]
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