Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Terminal command- sudo lshw, not working.
Terminal command- sudo lshw, not working.
Hello guys, what I did yesterday was to install fresh Debian 9.0 on my Windows 10 Laptop- Lenovo V310, which didn't went that smoothly as I am a total newb to Linux OSs. What happened during installation was that my network wireless adapter wasn't recognized so it didn't installed. I've tried to solve the problem with some Googling, but didn't went too far. What I was supposed to do was to run the terminal and then utilize this command: sudo lshw, which worked charm the first time I did it. It displayed my wireless adapter so I googled for drivers of some sort, however I had to abort the search as I had some work to do. So after few hours I restarted the system and did the same command- sudo lshw, which led to nothing... Now the terminal says: bash: sudo: command not found. Can someone help me out as I am getting really frustrated here as I am so new to the system. Thanks.
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
Re: Terminal command- sudo lshw, not working.
Debian doesn't use sudo by default, though you can add it if you want.
To become Root input
lshw should be run as Root
To become Root input
Code: Select all
su
Re: Terminal command- sudo lshw, not working.
Yeah i know I am frustrated a lot too it kind of gets easier to accept after a little while.l000p wrote: ...I am getting really frustrated here as I am so new to the system.
lshw is ok if it is included in your install, people like inxi too. But there are other ways to ID your hardware....my network wireless adapter wasn't recognized so it didn't install...
try this https://wiki.debian.org/WiFi it shows how to use really simple tools to ID different devices. Follow the links
https://wiki.debian.org/HowToIdentifyADevice/PCI
https://wiki.debian.org/HowToIdentifyADevice/USB
resigned by AI ChatGPT
Re: Terminal command- sudo lshw, not working.
I did that too + apt-get install lshw, which led to unrecognised command. Root input doesn't help eighter.arochester wrote:Debian doesn't use sudo by default, though you can add it if you want.
To become Root inputlshw should be run as RootCode: Select all
su
Re: Terminal command- sudo lshw, not working.
You don't need to run lshw to find your wireless card.
As a non root user run
It will show something like this, with more lines
The line with wireless or wifi is the one you want, so you can grep for that, but showing the whole output of the pci devices is useful.
There are non-free drivers for each type of wireless card, so you can have the driver on another USB disk and install that driver during the installation.
As I have an Intel wireless card, I check for a non-free Intel Wireless driver.
I find firmware-iwlwifi and can install that if I want to. (I haven't as I don't use wireless.)
Your wireless card maybe realtek, broadcom or something else.
As a non root user run
Code: Select all
lspci
Code: Select all
02:00.0 Network controller: Intel Corporation Wireless 3165 (rev 81)
03:00.0 Ethernet controller: Qualcomm Atheros Killer E2400 Gigabit Ethernet Controller (rev 10)
04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a804
There are non-free drivers for each type of wireless card, so you can have the driver on another USB disk and install that driver during the installation.
As I have an Intel wireless card, I check for a non-free Intel Wireless driver.
I find firmware-iwlwifi and can install that if I want to. (I haven't as I don't use wireless.)
Your wireless card maybe realtek, broadcom or something else.
-
- Emeritus
- Posts: 2435
- Joined: 2010-12-07 19:55
- Has thanked: 14 times
- Been thanked: 54 times
Re: Terminal command- sudo lshw, not working.
Run this command in a Terminal
Code: Select all
lspci | grep Network
Re: Terminal command- sudo lshw, not working.
Thanks for the help! The lspci command worked fine, I got: Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31).
Now I have to figure out how to install the driver for it, I've opened a new thread, if you can give me a hand on the topic please do, thanks again !
Now I have to figure out how to install the driver for it, I've opened a new thread, if you can give me a hand on the topic please do, thanks again !
Re: Terminal command- sudo lshw, not working.
Code: Select all
aptitude search atheros
p firmware-atheros - Binary firmware for Atheros wireless cards
Code: Select all
aptitude show firmware-atheros | grep 9377
* Qualcomm Atheros QCA9377 rev 1.0 board configuration, version 1 (ath10k/QCA9377/hw1.0/board.bin)
* Qualcomm Atheros QCA9377 rev 1.0 board configuration, version 2 (ath10k/QCA9377/hw1.0/board-2.bin)
* Qualcomm Atheros QCA9377 rev 1.0 firmware, version WLAN.TF.1.0-00267-1 (ath10k/QCA9377/hw1.0/firmware-5.bin)
Code: Select all
apt-get install firmware-atheros
-
- Posts: 1394
- Joined: 2007-03-04 21:10
- Location: U.S.A. - WI.
Re: Terminal command- sudo lshw, not working.
arochester wrote:Debian doesn't use sudo by default, though you can add it if you want.
To become Root inputlshw should be run as RootCode: Select all
su
Does the installer not let you do a rootless install anymore? If the rootless install is checked / enabled in the installer the user is supposed to be set up with sudo installed and configured to use the users password for root authentications.
I haven't had to use the installer for quite some time, so I'm asking if that option was removed...
fortune -o
Your love life will be... interesting.
How did it know?
The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches
Your love life will be... interesting.
How did it know?
The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches