Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
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.
Hi there, I am currently trying to find a way of telling what machine is running. I have tried lspci and dmesg but these dont give me anything to identify the machine.
I need to do this to create a script to install the right software depending on whether the server/machine it is being run on is a Dell or not.
Does anyone have any suggestions on how I can go about this?
I don't believe there is a common way. lspci and dmesg offer quite much information from which you can deduce the thing used, but in the end they mainly tell you the chipsets and such, and don't know about packagers (a lot others than just Dell use chipsets or hardware that Dell also uses, so knowing the devices isn't knowing the packager -- but maybe you mean here just the single pieces of hardware, their chipsets etc.)
/proc offers some knowledge too, as a "look-in-the-kernel" hole, but not sure if it's as informative as you want. One method is to collect information from many places (dmesg, lspci, ...) and then programmatically compare that information against some known values and try to figure out if a certain piece of hardware is something or something else.
Hi there, I am currently trying to find a way of telling what machine is running. I have tried lspci and dmesg but these dont give me anything to identify the machine.
I need to do this to create a script to install the right software depending on whether the server/machine it is being run on is a Dell or not.
Does anyone have any suggestions on how I can go about this?
Any help would be greatly appreciated.
You might want to see if lshw will work, if Dell puts their name in the Vendor sting on the motherboard then you should be good to go.
Hi there, I found a solution from someone which seems to work... I thought I would share it with the rest of the community incase it helps anyone else: The solution was to use dmidecode to find the right piece of information eg.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.