LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Newbie question here (https://www.linuxquestions.org/questions/linux-newbie-8/newbie-question-here-70833/)

pearl_zildjian 07-08-2003 06:40 PM

nothing happens when i type that

MasterC 07-08-2003 06:53 PM

What Tinkster trying to ask you to do is login as root, to do this, all you have to do is open up a terminal and type:
su -
Then enter root's password, and then on the following line type:
ifconfig

And post what you get from that. If it doesn't work, go ahead and post up the error message you get, error messages are VERY important when troubleshooting.

:)

Also, when you said "I tried going to the Mandrake Control Center but it didn't work" what exactly happened? What did you try, and what didn't work?

Cool

pearl_zildjian 07-08-2003 07:21 PM

sorry Tinkster but im new at this so, ya.... well i guess i did something wrong or mistypped something and it did telle me something when i typed ifconfig:

eth0 Link encap:Ethernet HWaddr 00:10:4B:30:B7:5B
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2419 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:145578 (142.1 Kb) TX bytes:0 (0.0 b)
Interrupt:9 Base address:0x3440

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:50 errors:0 dropped:0 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3296 (3.2 Kb) TX bytes:3296 (3.2 Kb)

Tinkster 07-08-2003 07:26 PM

Rrrright ... so, for some reason, it doesn't
get an IP-address assigned which would
explain why it doesn't work :} ...

Please, as root, do:
Code:

cd /var/log
grep dhcp *

and post the output (if any)

If you knew the IP that you get
in windows you could try to
"hardwire" that one ...

Cheers,
Tink

pearl_zildjian 07-08-2003 08:39 PM

here's what it says:

[root@localhost root]# cd /var/log
[root@localhost log]# grep dhcp *
messages:Jul 7 14:48:55 localhost drakconnect[2025]: running: /bin/rpm > /dev/null -q dhcp-client
messages:Jul 7 14:48:55 localhost drakconnect[2025]: running: /bin/rpm > /dev/null -q dhcp-client
messages:Jul 7 14:49:24 localhost drakconnect[2001]: running: /bin/rpm > /dev/null -q dhcp-client
messages:Jul 7 14:49:30 localhost drakconnect[2001]: running: /bin/rpm > /dev/null -q dhcp-client
messages:Jul 7 14:51:11 localhost drakconnect[3332]: running: /bin/rpm > /dev/null -q dhcp-client
messages:Jul 7 14:52:05 localhost drakconnect[3332]: running: /bin/rpm > /dev/null -q dhcp-client
messages:Jul 8 16:27:43 localhost drakconnect[2732]: running: /bin/rpm > /dev/null -q dhcp-client
messages:Jul 8 16:33:12 localhost drakconnect[2977]: running: /bin/rpm > /dev/null -q dhcp-client
messages:Jul 8 16:55:30 localhost drakconnect[1831]: running: /bin/rpm > /dev/null -q dhcp-client
messages:Jul 8 16:55:45 localhost drakconnect[1831]: running: /bin/rpm > /dev/null -q dhcp-client
syslog:Jul 7 14:48:55 localhost drakconnect[2025]: running: /bin/rpm > /dev/null -q dhcp-client
syslog:Jul 7 14:48:55 localhost drakconnect[2025]: running: /bin/rpm > /dev/null -q dhcp-client
syslog:Jul 7 14:49:24 localhost drakconnect[2001]: running: /bin/rpm > /dev/null -q dhcp-client
syslog:Jul 7 14:49:30 localhost drakconnect[2001]: running: /bin/rpm > /dev/null -q dhcp-client
syslog:Jul 7 14:51:11 localhost drakconnect[3332]: running: /bin/rpm > /dev/null -q dhcp-client
syslog:Jul 7 14:52:05 localhost drakconnect[3332]: running: /bin/rpm > /dev/null -q dhcp-client
syslog:Jul 8 16:27:43 localhost drakconnect[2732]: running: /bin/rpm > /dev/null -q dhcp-client
syslog:Jul 8 16:33:12 localhost drakconnect[2977]: running: /bin/rpm > /dev/null -q dhcp-client
syslog:Jul 8 16:55:30 localhost drakconnect[1831]: running: /bin/rpm > /dev/null -q dhcp-client
syslog:Jul 8 16:55:45 localhost drakconnect[1831]: running: /bin/rpm > /dev/null -q dhcp-client
user.log:Jul 7 14:48:55 localhost drakconnect[2025]: running: /bin/rpm > /dev/null -q dhcp-client
user.log:Jul 7 14:48:55 localhost drakconnect[2025]: running: /bin/rpm > /dev/null -q dhcp-client
user.log:Jul 7 14:49:24 localhost drakconnect[2001]: running: /bin/rpm > /dev/null -q dhcp-client
user.log:Jul 7 14:49:30 localhost drakconnect[2001]: running: /bin/rpm > /dev/null -q dhcp-client
user.log:Jul 7 14:51:11 localhost drakconnect[3332]: running: /bin/rpm > /dev/null -q dhcp-client
user.log:Jul 7 14:52:05 localhost drakconnect[3332]: running: /bin/rpm > /dev/null -q dhcp-client
user.log:Jul 8 16:27:43 localhost drakconnect[2732]: running: /bin/rpm > /dev/null -q dhcp-client
user.log:Jul 8 16:33:12 localhost drakconnect[2977]: running: /bin/rpm > /dev/null -q dhcp-client
user.log:Jul 8 16:55:30 localhost drakconnect[1831]: running: /bin/rpm > /dev/null -q dhcp-client
user.log:Jul 8 16:55:45 localhost drakconnect[1831]: running: /bin/rpm > /dev/null -q dhcp-client
[root@localhost log]#

Tinkster 07-08-2003 08:55 PM

Ummmph ... not very informative, is it? :/

K, next attempt: can you post the contents of
/etc/sysconfig/network-scripts/draknet_conf
please?

Cheers,
Tink

pearl_zildjian 07-08-2003 09:27 PM

maybe i did something wrong.... im thinking i probably am not supposed to type that in a console... heres what it did:

[root@localhost root]# /etc/sysconfig/network-scripts/draknet_conf
-bash: /etc/sysconfig/network-scripts/draknet_conf: No such file or directory

v00d00101 07-08-2003 09:49 PM

try opening it with emacs.

emacs /etc/sysconfig/network-scripts/draknet_conf

or if its executable

./etc/sysconfig/network-scripts/draknet_conf

pearl_zildjian 07-08-2003 09:51 PM

whats emacs? and if it is executable do i type ./etc/sysconfig/network-scripts/draknet_conf in a console?

Tinkster 07-08-2003 10:48 PM

Quote:

Originally posted by pearl_zildjian
maybe i did something wrong.... im thinking i probably am not supposed to type that in a console... heres what it did:

[root@localhost root]# /etc/sysconfig/network-scripts/draknet_conf
-bash: /etc/sysconfig/network-scripts/draknet_conf: No such file or directory

contents of = "use a tool like less to display it"

Ummm ...
ls -l /etc/sysconfig/network-scripts/

If it shows a file called draknet<sumptn> (not
the default, though...)

less /etc/sysconfig/network-scripts/draknet<sumptn>

Cheers,
Tink

pearl_zildjian 07-08-2003 11:43 PM

here's what happened:


[root@localhost root]# ls -l /etc/sysconfig/network-scripts/
total 192
-rw------- 1 root root 0 Jul 8 19:09 drakconnect_conf
-rw------- 1 root root 0 Jul 8 19:09 drakconnect_conf.default
-rwxrwxr-x 1 root root 38 Jul 8 19:09 ifcfg-eth0*
lrwxrwxrwx 1 root root 22 Jul 7 09:53 ifcfg-lo -> ../networking/ifcfg-lo
lrwxrwxrwx 1 root root 20 Jul 7 09:53 ifdown -> ../../../sbin/ifdown*
-rwxr-xr-x 1 root root 1026 Jan 23 2001 ifdown-aliases*
drwxr-xr-x 2 root root 4096 Mar 12 15:37 ifdown.d/
-rwxr-xr-x 1 root root 4133 Mar 12 15:37 ifdown-ipv6*
-rwxr-xr-x 1 root root 1296 Mar 12 15:37 ifdown-post*
-rwxr-xr-x 1 root root 1092 Mar 12 15:37 ifdown-ppp*
-rwxr-xr-x 1 root root 1863 Mar 12 15:37 ifdown-sit*
-rwxr-xr-x 1 root root 902 Jun 26 2002 ifdown-sl*
lrwxrwxrwx 1 root root 18 Jul 7 09:53 ifup -> ../../../sbin/ifup*
-rwxr-xr-x 1 root root 13129 Jan 31 15:49 ifup-aliases*
drwxr-xr-x 2 root root 4096 Mar 12 15:37 ifup.d/
-rwxr-xr-x 1 root root 9667 Mar 12 15:37 ifup-ipv6*
-rwxr-xr-x 1 root root 821 Jun 26 2002 ifup-ipx*
-rwxr-xr-x 1 root root 689 Jun 26 2002 ifup-plip*
-rwxr-xr-x 1 root root 926 Jun 26 2002 ifup-plusb*
-rwxr-xr-x 1 root root 2737 Mar 12 15:37 ifup-post*
-rwxr-xr-x 1 root root 3918 Jan 13 22:46 ifup-ppp*
-rwxr-xr-x 1 root root 868 Nov 12 2002 ifup-routes*
-rwxr-xr-x 1 root root 3545 Mar 12 15:37 ifup-sit*
-rwxr-xr-x 1 root root 1646 Jun 26 2002 ifup-sl*
-rwxr-xr-x 1 root root 2821 Jun 27 2002 ifup-wireless*
-rwxr-xr-x 1 root root 5512 Mar 12 15:37 init.ipv6-global*
-rwxr-xr-x 1 root root 103 Jul 8 19:08 net_cnx_down*
-rwxr-xr-x 1 root root 122 Jul 8 19:08 net_cnx_pg*
-rwxr-xr-x 1 root root 92 Jul 8 19:08 net_cnx_up*
-rwxr-xr-x 1 root root 103 Jul 8 19:09 net_down.default*
-rwxr-xr-x 1 root root 122 Jul 8 19:09 net_prog.default*
-rwxr-xr-x 1 root root 38 Jul 8 19:09 net_resolv.default*
-rwxr-xr-x 1 root root 92 Jul 8 19:09 net_up.default*
-rw-r--r-- 1 root root 4756 Mar 12 15:37 network-functions
-rw-r--r-- 1 root root 42053 Mar 12 15:37 network-functions-ipv6
[root@localhost root]# less /etc/sysconfig/network-scripts/draknet
/etc/sysconfig/network-scripts/draknet: No such file or directory
[root@localhost root]# less /etc/sysconfig/network-scripts/draknet<sumptn
-bash: sumptn: No such file or directory
[root@localhost root]# less /etc/sysconfig/network-scripts/draknet<sumptn>
-bash: syntax error near unexpected token `newline'
[root@localhost root]# less /etc/sysconfig/network-scripts/draknet<sumptn>
-bash: syntax error near unexpected token `newline'
[root@localhost root]# less /etc/sysconfig/network-scripts/draknet<sumptn>
-bash: syntax error near unexpected token `newline'
[root@localhost root]#

MasterC 07-09-2003 01:23 AM

So then:
less /etc/sysconfig/network-scripts/draknet_conf
And post up the contents displayed.

Less is a text reader, works great when all you want to do is view the text, and not edit anything.

Cool

pearl_zildjian 07-09-2003 11:04 AM

I am thinking maybe the file is corupt or soemthing.... but then again i am a :newbie: so here's what it gave me:

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
/etc/sysconfig/network-scripts/drakconnect_conf lines ?-?/? (END)

Tinkster 07-09-2003 02:48 PM

Looks like Mandy changed the name of
the file with the most recent major release
jump ... how microsoftish of them ... :D

less /etc/sysconfig/network-scripts/drakconnect_conf

Cheers,
Tink

pearl_zildjian 07-09-2003 03:37 PM

so tinkster.... do i type

less /etc/sysconfig/network-scripts/drakconnect_conf

in the console? because that looks to me like its exactly the same as what i typed b4 :)


All times are GMT -5. The time now is 08:50 PM.