Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: network diagnostic< Next Oldest | Next Newest >
kreon28 Offline





Group: Members
Posts: 48
Joined: Oct. 2006
Posted: May 01 2007,17:33 QUOTE

Hi,

I used the wiki way to save my static IP and it worked.
But since couple of days, my network is dead.
Everything looks fine, I mean dhcp is disabled and when I start netcardconfig evertything is ok, I just have to click ok.
But..I have to do it every boot. So I wonder where can I find some diagnostic log why I have to config my net everytime I reboot my box.

p,s.
My bootlocal.sh
Code Sample

#!/bin/bash
# put other system startup command here
/sbin/syslogd
loadkeys pl
xmodmap /usr/share/xmodmap/xmodmap.pl
ifconfing eth0 192.168.0.2
route add default gw 192.168.0.255
echo nameserver 194.204.159.1 > /etc/resolv.comf
ifup eth0


after rebooting - I tried to run bootlocal,sh in the terminal
Code Sample

#/opt/bootlocal.sh
syslogd: Could not connect to socket /dev/log: Address already in use
Loading /usr/share/keymaps/i386/qwerty/pl/kmap.gz
Keymap 0: Permission denied
Keymap 1: Permission denied
Keymap 2: Permission denied
Keymap 3: Permission denied
Keymap 4: Permission denied
KDSKBENT: Operation not permitted
loadkeys: could not deallocate keymap 5
/opt/bootlocal.sh: line 6: ifconfig: command not found
SIOCADDRT: Operation not permitted
/opt/bootlocal.sh: line 8 /etc/resolv.conf: Permission deniad
ifup: failed to open statefile /etc/network/ifstate: Permission denied
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: May 03 2007,14:39 QUOTE

All of those errors are caused by you not being root... Sudo won't work, 'cause it doesn't make your $PATH what it is when you're really root...

What kind of install do you use?


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
kreon28 Offline





Group: Members
Posts: 48
Joined: Oct. 2006
Posted: May 03 2007,15:44 QUOTE

Well, it's A HD install /DSL 3.1/
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: May 03 2007,16:05 QUOTE

Change your bootlocal.sh to this:

Quote
#!/bin/ash
# put other system startup command here
/sbin/syslogd
loadkeys pl
xmodmap /usr/share/xmodmap/xmodmap.pl
ifconfig eth0 192.168.0.2 up
route add default gw 192.168.0.255


ash is there 'cause it's a lot faster than bash, echo is not needed as you have a hd-install (everything is permanent)

I think this'll let your net work automatically...


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
kreon28 Offline





Group: Members
Posts: 48
Joined: Oct. 2006
Posted: May 04 2007,15:06 QUOTE

Quote (curaga @ May 03 2007,12:05)
ash is there 'cause it's a lot faster than bash, echo is not needed as you have a hd-install (everything is permanent)

I think this'll let your net work automatically...

Unfortunately, nothing changes :(
During boot, I got an error:
Code Sample
SIOCADDRT: Network is unreachable

Ifconfig works fine and eth0 is seen as 192.168.0.2, but ping and internet don't work.

P.S. Command I pasted into bootlocal.sh
Code Sample
xmodmap /usr/share/xmodmap/xmodmap.pl

doesn't work either and I have to run it every boot
Back to top
Profile PM 
6 replies since May 01 2007,17:33 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: network diagnostic

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code