View previous topic :: View next topic |
Author |
Message |
bld l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Zelda/Zelda_-_Link.jpg)
Joined: 26 Mar 2003 Posts: 759 Location: Outter Space
|
Posted: Tue Apr 01, 2003 3:18 am Post subject: DHCP non auto-"runna" |
|
|
Salve a tutti! Dopo aver avuto una bruttissima esperienza con hdparm, eccomi qua!
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 |
|
![](templates/gentoo/images/spacer.gif) |
bld l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Zelda/Zelda_-_Link.jpg)
Joined: 26 Mar 2003 Posts: 759 Location: Outter Space
|
Posted: Tue Apr 01, 2003 3:56 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
cerri Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/7000506493e7cdb5c136c3.jpg)
Joined: 05 Mar 2003 Posts: 2957 Location: # init S
|
Posted: Tue Apr 01, 2003 5:51 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Montag[SGU] Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/19290208213e60833f4cd0a.jpg)
Joined: 24 Feb 2003 Posts: 95
|
Posted: Tue Apr 01, 2003 7:25 am Post subject: |
|
|
Devi un-commentare questa riga in /etc/conf.d/net:
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 |
|
![](templates/gentoo/images/spacer.gif) |
malteo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/12788610113fffd28e12616.gif)
Joined: 12 Mar 2003 Posts: 101 Location: Pescara, Italy
|
Posted: Tue Apr 01, 2003 4:09 pm Post subject: |
|
|
... e per hdparm esiste
e il successivo
Code: | rc-update add hdparm default |
P.S.: secondo voi è meglio "boot" che "default"? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bsolar Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/806967053f23f4aede2da.jpg)
Joined: 12 Jan 2003 Posts: 2764
|
Posted: Tue Apr 01, 2003 6:30 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Montag[SGU] Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/19290208213e60833f4cd0a.jpg)
Joined: 24 Feb 2003 Posts: 95
|
Posted: Wed Apr 02, 2003 12:53 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|