Computing.Net > Forums > Linux > Mandrake10.0 problems

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Mandrake10.0 problems

Reply to Message Icon

Name: roeeko
Date: January 3, 2007 at 23:34:01 Pacific
OS: linux mandrake 10.0
CPU/Ram: p4 3.0 ghz 768mb
Product: hp
Comment:

I just installed linux mandrake 10.0, in the konsole.. no command is working.. for example when i write "lspci" or "ifconfig" i get command not found.. other then that i'm trying to get internet connection but without these commands i can't tell whats wrong. as you can guess i'm very new to linux so any help apreciated..
thanx



Sponsored Link
Ads by Google

Response Number 1
Name: ernie
Date: January 4, 2007 at 06:43:36 Pacific
Reply:

It sounds as if you do not have the software
installed (lspci or ifconfig). These
are 'external' commands, which means that
they are not built into bash (the cli
command interpreter).

If you enter at the command prompt:

urpmf lspci

you will get a list of associated package
names - the first line should be:

pciutils:/usr/bin/lspci

This tells you that lspci is included in the
pciutils package. To install this package
enter at the command prompt:

urpmi pciutils

urpmi is the command line package
installation tool included with Mandrake /
Mandriva. It will ask to install any additional packages required by the package you request. Answer yes (or y) when asked and the listed packages will be installed for you.

To learn more about the package management tools provided with Mandrake use the man (for manual) utility. At the command line enter:

man urpmi

to get a brief page about using urpmi. At the bottom of the man page (reached most easily with the [END] key) will be a list of associated programs (including urpmf, urpme, etc.).

If you run urpmf ifconfig, you should get a list including:

net-tools:/sbin/ifconfig

so the package for ifconfig is net-tools.

I use Mandriva 2007 here, so the package names may differ slightly from what was used in Mandrake 10.0, but urpmi and company should be installed as part of the default system.

Ernie Registered Linux User 247790
ICQ 41060744


0

Response Number 2
Name: 3Dave
Date: January 4, 2007 at 06:47:48 Pacific
Reply:

...or you may just be logged on as a regular user and both ifconfig and lspci normally reside in /sbin and /usr/sbin which are only in root's path. Try passing the whole path in the command like "/sbin/ifconfig" or use sudo or su to log on as root.


0

Response Number 3
Name: roeeko
Date: January 10, 2007 at 00:45:01 Pacific
Reply:

Tanks for the info..
I typed "urpmf net-tools", I got lines starting with "net-tools:/bin/dnsdomainname", some of the lines included lspci and ifconfig. Does that mean it's installed? (the commands still don't work) I typed also "urpmf lspci" and ifconfig but still don't work. netstat however does work.
I'm I on the right track?
Thanx


0

Response Number 4
Name: 3Dave
Date: January 10, 2007 at 00:49:34 Pacific
Reply:

"...the commands still don't work..."
So you are saying that if you type /sbin/ifconfig you get "command not found"?!? I find that quite hard to believe....


0

Response Number 5
Name: roeeko
Date: January 10, 2007 at 01:06:49 Pacific
Reply:

it does work!!!

as you can probably understand i very new to linux...

i'm connected to a switch that is connected to the internet and i'm supposed to get ip from dhcp.. can you tell me how am i supposed to get connected? (ifconfig says i have 127.0.0.1 for an ip..)

Thanx again


0

Related Posts

See More



Response Number 6
Name: 3Dave
Date: January 10, 2007 at 01:36:42 Pacific
Reply:

The easiest way would be graphically using mcc (Mandrake Control Centre) or the mandrake network config tool which I think is called draknet (sorry, I haven't used mandrake for ages!). Fingers crossed it should bring up a nice GUI where you can set your network card (eth0) to DHCP.

Saying that, learning to use ifconfig and other similar commands means that if you change distro you can still configure it without distro-specific tools, eg yast for suse, pkgtool for slackware etc.

You should have one of two programs installed called either dhclient or dhcpcd. To set your nic to DHCP:

Switch user to root (note the - at the end of the command)
$ su -
(enter root's password)
Your prompt should change from a $ to a #. Now try to obtain a DHCP lease
# dhcpcd eth0
Sit back for a little bit as it can sometimes take a while. If you get a "command not found" try "dhclient eth0" instead. With any luck you should receive no error and be returned to a root prompt. You can now log out as root, I use Ctrl&D, and your prompt should change back to a $.

To check your settings such as IP address
$ /sbin/ifconfig eth0
Your default gateway
$ /sbin/route
and your DNS servers
$ cat /etc/resolv.conf

You can also use the ifconfig and route commands to set your nic up manually, eg:
# ifconfig eth0 192.168.0.10 broadcast 192.168.0.255 netmask 255.255.255.0
# route add -net default gw 192.168.0.1 netmask 0.0.0.0 metric 1

Hope you could follow some of that!


0

Response Number 7
Name: roeeko
Date: January 10, 2007 at 01:48:18 Pacific
Reply:

Thanks very much... have a nice day


0

Sponsored Link
Ads by Google
Reply to Message Icon

Fedora upgrade gone bad Linux download



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Mandrake10.0 problems

Help with Mandrake 10.0 Install www.computing.net/answers/linux/help-with-mandrake-100-install/25653.html

Red Hat 9.0 Problem www.computing.net/answers/linux/red-hat-90-problem/24491.html

SuSE 8.0 problem recognizing eth0 card www.computing.net/answers/linux/suse-80-problem-recognizing-eth0-card/11382.html