Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-11-2005, 11:07 AM
|
#1
|
Member
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85
Rep:
|
find out make and model of pc from command line?
how can i find out the make and model of pc from command line?
i have tried
dmesg
this works on my laptop but onl cos it is using acpi, my pc does not. well the stripped distro i use does not.
uname -a
/proc/cpuinfo
what else is there?
TIA
BoX
|
|
|
02-11-2005, 01:51 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
lspci should show your pci details, you can find hard disk details with "hdparm -i /dev/hda".
|
|
|
02-11-2005, 02:25 PM
|
#3
|
Member
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85
Original Poster
Rep:
|
how can i find out the make and model of pc from command line?
ie
compaq n610c
thanks
BoX
|
|
|
02-11-2005, 02:26 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
I doubt you will be able to find that without looking at the box itself.
|
|
|
02-11-2005, 02:46 PM
|
#5
|
Senior Member
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246
Rep:
|
The operating system has no idea, and why should it? You can just as easily install the OS on a computer that you built yourself and therefore wouldn't have a make and model. If the OS depended on that information it would be pretty lame.
|
|
|
02-12-2005, 05:51 PM
|
#6
|
Member
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85
Original Poster
Rep:
|
ok
i need to make myself clearer.
i dont expect the os to know i just want to be able to access BIOS details, such as motherboard id etc. to add to the image name of an image i will be sending to a server.
on my laptop i can find the make and model with dmesg, but only because the ACPI module happens to be looking at a compaq power unit.
i know i can get things like processor and memory from /proc/cpuinfo and so on.
but i would really like to be able to add the make and model of pc/mobo
i know it can be done because i can see it in yast for instance.
maybe i need to rethink.
thanks for you comments,
BoX
|
|
|
02-13-2005, 12:51 AM
|
#7
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
Maybe you would be interested in dmidecode and related commands....
http://www.nongnu.org/dmidecode/
|
|
|
02-13-2005, 02:34 PM
|
#8
|
Member
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85
Original Poster
Rep:
|
looks like just what i need,
thank-you indeed.
BoX
edit: its exactly what i wanted thanks again!!
Last edited by box_l; 02-14-2005 at 04:56 AM.
|
|
|
All times are GMT -5. The time now is 01:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|