LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2016, 12:10 AM   #1
jaisevj77@gmail.com
LQ Newbie
 
Registered: May 2016
Posts: 2

Rep: Reputation: Disabled
wifi not working after installing ubuntu16.04


Hi,

I am a new one to linux. I installed ubuntu 16.04 in my laptop. Everything working fine, but my wifi not working. It is showing wifi option in the network setup along with wired connection and vpn. But it is impossible to turn wifi ON. In terminal I typed

# iwconfig
It showing wlp12s0

Also I checked softwares and updates >> additional drivers and it is showing a wifi driver.

Anyone please help me to fix it?
 
Old 05-19-2016, 01:57 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
It would help a lot if you told us the make and model of your wifi card. The fact that you have a device name for it is a good sign; it means that, whatever it is, the kernel has recognised it and loaded the correct driver. But some cards need additional firmware to actually work.
 
Old 05-19-2016, 03:09 AM   #3
jaisevj77@gmail.com
LQ Newbie
 
Registered: May 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,

First of all thank you for your reply. Could you please help me to find those details, means to find all details you want. Which commands I have to type in terminal to find those details? Please tell me. I will send you the results

Thank you,
Jaise
 
Old 05-19-2016, 04:57 AM   #4
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by jaisevj77@gmail.com View Post
Hi,

First of all thank you for your reply. Could you please help me to find those details, means to find all details you want. Which commands I have to type in terminal to find those details? Please tell me. I will send you the results

Thank you,
Jaise
Hi!

Try to issue this command and we'll start from there:
Code:
lspci | grep -i network
Then paste the output on the forum (preferably inside code tags).

Also, the fact that you cannot turn WiFi on could be due to the fact that it is blocked. To get around this you may have to use rfkill. But, one thing at a time. Start with the output from the command above.

Best regards,
HMW

Last edited by HMW; 05-19-2016 at 04:59 AM.
 
Old 05-19-2016, 05:13 AM   #5
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
First of all thank you for your reply. Could you please help me to find those details, means to find all details you want. Which commands I have to type in terminal to find those details?
Hi...

Welcome to the forum

In case HMW's code does not work, please copy and paste the following codes into the terminal and post back the entire results...

Code:
lspci -nnk | grep -i net -A2
Code:
lsmod
Code:
iwconfig
Code:
rfkill list
Also, just as a suggestion, you might want to change your username using the instructions at the top of the page here, lest your email inbox ends up with a boatload of SPAM in the very near future.

Regards...
 
Old 05-19-2016, 09:38 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,

advark71, you need to be sure that the user understands that 'root' privileges allow the use of the commands suggested. Most newbies do not realize the need to use 'su-' or 'sudo'. In other threads you have failed to provide this information. Just a helpful reminder!

Hope this helps.
Have fun & enjoy!
 
Old 05-19-2016, 10:04 AM   #7
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by onebuck View Post
advark71, you need to be sure that the user understands that 'root' privileges allow the use of the commands suggested. Most newbies do not realize the need to use 'su-' or 'sudo'. In other threads you have failed to provide this information. Just a helpful reminder!
Hi...

The commands I've listed above have never required root privileges (or "su" or "sudo") nor has any member whom I've requested this information from reported an issue with this.

Regards...
 
Old 05-19-2016, 10:48 AM   #8
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
At least on Debian, all except lsmod are in /sbin and /usr/sbin respectively and thus require root (sudo) privileges, maybe on *buntu this is different?

Best regards,
HMW

Last edited by HMW; 05-19-2016 at 10:59 AM. Reason: Fixed some errors
 
Old 05-19-2016, 11:21 AM   #9
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by HMW View Post
At least on Debian, all except lsmod are in /sbin and /usr/sbin respectively and thus require root (sudo) privileges, maybe on *buntu this is different?
Hi...

In my experience, it is. As an example...

Code:
aaron@aaron:~$ lspci -nnk | grep -i net -A2
00:07.0 Bridge [0680]: NVIDIA Corporation MCP61 Ethernet [10de:03ef] (rev a2)
	Subsystem: Dell Inspiron 531 [1028:020e]
	Kernel driver in use: forcedeth
aaron@aaron:~$ iwconfig
^[[6~ra0       Ralink STA  ESSID:"(deleted)"  Nickname:"MT7601STA"
          Mode:Managed  Frequency=2.412 GHz  Access Point: 00:23:A3:7C:DD:C0   
          Bit Rate=18 Mb/s   
          RTS thr:off   Fragment thr:off
          Link Quality=97/100  Signal level:-57 dBm  Noise level:-77 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

lo        no wireless extensions.

eth0      no wireless extensions.
Regards...

Last edited by ardvark71; 05-19-2016 at 11:24 AM. Reason: Deleted information.
 
1 members found this post helpful.
Old 05-19-2016, 01:03 PM   #10
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Huh!? There you go, thanks for sharing this, had no idea!

Best regards,
HMW
 
Old 05-19-2016, 03:32 PM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,
Quote:
Originally Posted by ardvark71 View Post
Hi...

The commands I've listed above have never required root privileges (or "su" or "sudo") nor has any member whom I've requested this information from reported an issue with this.

Regards...
By your execution of a command to list information then it is possible. But if you attempt to make a configuration change by usage of those commands then you possibly have correct/changed paths for your user. Normally a user does not have access to admin commands (root) for security reasons on most Gnu/Linux. You can grant permissions or change groups but that too is something the super user/root would need to do. You can use absolute paths to get to some commands but that to can bite your system. Even with absolute paths a normal user will not have permissions for certain system configuration commands, such as;
Code:
~$ /sbin/fdisk /dev/sda
Welcome to fdisk (util-linux 2.21.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

fdisk: unable to open /dev/sda: Permission denied
Thankfully a user cannot do a 'fdisk' without root privileges. You can list some information but you cannot change system configurations without permissions.

For a normal user on most Gnu/Linux to use your commands for;
Code:
lspci -nnk | grep -i net -A2


The path would be to list information; :~$ /usr/sbin/rfkill list
Maybe it is so for some bash commands for Ubuntu's but I'm sure you cannot modify system configurations as a normal user without 'su-' or 'sudo' via changes via the file /etc/sudoers.

Open access for a normal user to the bash system configuration commands is very dangerous. I've seen to many issues when someone has been given root privileges, especially when one does not know admin and what can happen when someone issues the command with wrong arguments or options. Example of using the 'dd if=/dev/sda2 of=/dev/sda1' and then wonder why the system has issues if the system files are on '/dev/sda1'.

Even Ubuntu it seems cautions root usage;
Quote:
From https://help.ubuntu.com/community/RootSudo
Background Information In Linux (and Unix in general), there is a SuperUser named root. The Windows equivalent of root is the Administrators group. The SuperUser can do anything and everything, and thus doing daily work as the SuperUser can be dangerous. You could type a command incorrectly and destroy the system. Ideally, you run as a user that has only the privileges needed for the task at hand. In some cases, this is necessarily root, but most of the time it is a regular user.
By default, the root account password is locked in Ubuntu. This means that you cannot login as root directly or use the su command to become the root user. However, since the root account physically exists it is still possible to run programs with root-level privileges. This is where sudo comes in - it allows authorized users (normally "Administrative" users; for further information please refer to AddUsersHowto) to run certain programs as root without having to know the root password.
This means that in the terminal you should use sudo for commands that require root privileges; simply prepend sudo to all the commands you need to run as root. For more extensive usage examples, please see below. Similarly, when you run GUI programs that require root privileges (e.g. the network configuration applet), use graphical sudo and you will also be prompted for a password (more below). Just remember, when sudo asks for a password, it needs YOUR USER password, and not the root account password.
Please keep in mind, a substantial number of Ubuntu users are new to Linux. There is a learning curve associated with any OS and many new users try to take shortcuts by enabling the root account, logging in as root, and changing ownership of system files.
Example: Broken system via (ab)use of root by a new user
Please note: At the time of the post, this was the users' first post on the Ubuntu forums. While some might call this a "learning experience", learning by breaking your system is frustrating and can result in data loss.
When giving advice on the Ubuntu Forums and IRC, please take the time to teach "the basics" such as ownership, permissions, and how to use sudo / gksu / kdesudo in such a way that new users do not break systems
The above does state that a Ubuntu user cannot become root via 'su' command. I do not use Ubuntu nor think I ever will.
Good admin habits are something everyone who wishes to maintain a system should learn and use with caution and understanding.

I am sure you cannot do a 'ifconfig eth0 192.168.10.10' as a normal user;
Code:
$ /sbin/ifconfig eth0 192.168.10.10
SIOCSIFADDR: Operation not permitted
SIOCSIFFLAGS: Operation not permitted

But you could do;
~$ /sbin/ifconfig eth0
eth0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 84:8f:69:c4:6a:e2  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
But you could list more information as a normal user;
Code:
:~$ /sbin/ifconfig -a                
eth0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 84:8f:69:c4:6a:e2  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 0  (Local Loopback)
        RX packets 463  bytes 27732 (27.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 463  bytes 27732 (27.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.254.14  netmask 255.255.255.0  broadcast 192.168.254.255
        ether 00:db:df:3d:dd:a3  txqueuelen 1000  (Ethernet)
        RX packets 17935924  bytes 22588019463 (21.0 GiB)
        RX errors 0  dropped 593115  overruns 0  frame 0
        TX packets 9091733  bytes 1082543119 (1.0 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Hope this helps everyone.
Have fun & enjoy!
 
Old 05-19-2016, 10:18 PM   #12
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hi onebuck...

Thank you for trying to help me but to to be honest, I don't really understand what you are saying. If I'm requesting information that does not require root or super user access nor does the user have those permissions in executing the commands, then how am I endangering the user's OS? I also don't understand what you mean by changing "paths" or "absolute paths." At this point, I'm not understanding what you feel I'm doing wrong.

Regards...

Last edited by ardvark71; 05-19-2016 at 10:21 PM. Reason: Added wordage.
 
Old 05-19-2016, 10:19 PM   #13
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by HMW View Post
Huh!? There you go, thanks for sharing this, had no idea!
You're welcome.

Regards...

Last edited by ardvark71; 05-19-2016 at 10:21 PM. Reason: Forgot to add punctuation.
 
Old 05-20-2016, 08:03 AM   #14
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,
Quote:
Originally Posted by ardvark71 View Post
Hi onebuck...

Thank you for trying to help me but to to be honest, I don't really understand what you are saying. If I'm requesting information that does not require root or super user access nor does the user have those permissions in executing the commands, then how am I endangering the user's OS? I also don't understand what you mean by changing "paths" or "absolute paths." At this point, I'm not understanding what you feel I'm doing wrong.

Regards...
I am not stating you are doing something wrong, just clarifying that usage of some system commands improperly by a normal user can be catastrophic. There are reasons for security for system commands from that user so as not to do any damage. Most Gnu/Linux do provide the means to prevent actions or at least limit permissions so that users do no damage. Just clarifying that everyone should be aware of the potential hazards done by the unknowing users.
I hope this helps to clarify what I have said. If you have been offended by my expansion of the usage then 'my apologies to you'.

Have fun & enjoy!
 
Old 05-20-2016, 10:05 AM   #15
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 616
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Alright, back to the OP:
Quote:
Originally Posted by jaisevj77@gmail.com View Post
Hi,

I am a new one to linux. I installed ubuntu 16.04 in my laptop. Everything working fine, but my wifi not working. It is showing wifi option in the network setup along with wired connection and vpn. But it is impossible to turn wifi ON. In terminal I typed

# iwconfig
It showing wlp12s0

Also I checked softwares and updates >> additional drivers and it is showing a wifi driver.

Anyone please help me to fix it?
If ardvark71's commands don't work, try this method.
 
  


Reply



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
Windows7 games on Ubuntu16.04 Raybrite Linux - Software 6 05-23-2016 01:12 PM
Ubuntu16.04 freezing on purple screen when booting up N3wb33 Linux - Newbie 6 05-10-2016 10:17 PM
Static WiFi problem in Dual Booted System. Dynamic WiFi working Shahbaz E Linux - Newbie 3 01-22-2016 09:21 PM
Wifi Broadcom 4312 not working in Ubuntu after installing another system beggycev Linux - Wireless Networking 3 08-10-2011 07:48 PM
after installing ubuntu 10.04 on Eeepc 1000HE netbook, wifi isn't working.what to do? MAROMAR Linux - Wireless Networking 3 08-08-2011 02:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:43 PM.

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