LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 02-11-2005, 10:07 AM   #1
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Rep: Reputation: 15
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
 
Old 02-11-2005, 12:51 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
lspci should show your pci details, you can find hard disk details with "hdparm -i /dev/hda".
 
Old 02-11-2005, 01:25 PM   #3
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Original Poster
Rep: Reputation: 15



how can i find out the make and model of pc from command line?

ie

compaq n610c

thanks

BoX
 
Old 02-11-2005, 01:26 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I doubt you will be able to find that without looking at the box itself.
 
Old 02-11-2005, 01:46 PM   #5
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
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.
 
Old 02-12-2005, 04:51 PM   #6
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Original Poster
Rep: Reputation: 15
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
 
Old 02-12-2005, 11:51 PM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Maybe you would be interested in dmidecode and related commands....
http://www.nongnu.org/dmidecode/
 
Old 02-13-2005, 01:34 PM   #8
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Original Poster
Rep: Reputation: 15
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 03:56 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find command line barbra Linux - Newbie 3 12-28-2004 02:17 PM
Can't find edit grub.conf when im in command line. izac5 Linux - Newbie 7 11-16-2004 04:24 PM
find and replace in files from command line dexter_modem Linux - General 4 06-10-2003 11:27 AM
how to find a looooooooong command line acid_kewpie Linux - General 6 11-20-2002 01:37 PM
How to find the command line to launch app ScreeminChikin Linux - General 2 09-18-2002 11:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration