Trouble Connecting to Wi-Fi Via GUI


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Trouble Connecting to Wi-Fi Via GUI
# 1  
Old 10-04-2019
Trouble Connecting to Wi-Fi Via GUI

Note: I originally posted this question on unix.stackexchange.com. But as my question was down-voted within an hour of asking, I came to the conclusion that perhaps I need to quit attempting to get help on StackExchange or that my inquiry is simply moronic. If anyone feels that my question is not reasonable, please give me some feedback so I understand why.

Original question:

I am having a small issue with my Wi-Fi adapter. It seems that the GUI interface is struggling to connect, so it does not automatically connect when I start the system. In order to connect, I have to open a command-line shell & execute the following command:

Code:
$ sudo iw dev <device_name> connect <SSID>

So the credentials have been stored correctly. It just seems the GUI network manager is having some issues.

I am running a 2007 MacBook Pro with Ubuntu MATE 19.04 x86_64. This is a fresh install.

Code:
$ lspci
...
0b:00.0 Network controller: Qualcomm Atheros AR5418 Wireless Network Adapter [AR5008E 802.11(a)bgn] (PCI-Express) (rev 01)
...

$ lsmod | grep -i ath
ath9k                 151552  0
ath9k_common           36864  1 ath9k
ath9k_hw              475136  2 ath9k_common,ath9k
ath                    36864  3 ath9k_common,ath9k,ath9k_hw
mac80211              806912  1 ath9k
cfg80211              671744  4 ath9k_common,ath9k,ath,mac80211

# 2  
Old 10-05-2019
Quote:
Originally Posted by AntumDeluge
Note: I originally posted this question on unix.stackexchange.com. But as my question was down-voted within an hour of asking, I came to the conclusion that perhaps I need to quit attempting to get help on StackExchange or that my inquiry is simply moronic. If anyone feels that my question is not reasonable, please give me some feedback so I understand why.

.....
This is precisely why I have not written any code here to support a "voting system" for questions and answers.

In computing, questions and answers are not so simple to be "the best" or "the worst" because computer systems are deployed in different environments with different risk management profiles and the tech support teams and system admins all have different backgrounds and skill sets.

It is better, in my view, build skills in troubleshooting and debugging, versus a model of "ask for an answer and get it" which does not really help people learn to think on their own.

Having said that.

Can you easily get your MBA running Ubuntu to connect to WIFI from the command line (not using any GUI)?
This User Gave Thanks to Neo For This Post:
# 3  
Old 10-05-2019
Quote:
Originally Posted by Neo
Can you easily get your MBA running Ubuntu to connect to WIFI from the command line (not using any GUI)?

Yes, executing iw dev wls4 connect <SSID> seems to work every time.


Edit: Not sure if it is an important detail, but I have to run the above iw command as super user.
# 4  
Old 10-05-2019
Your GUI process is running as root?

Sounds like it is not running as root; so in that case how do you plan to get a non-root GUI process to execute a command which requires root privs?
# 5  
Old 10-05-2019
No. Network Manager GUI does not run as root, & is usually not required to connect to a wifi network. I don't know why the iw command requires root.


Not sure if it matters, but my user is in group "netdev". I'm assuming that is the "network device" group.


Edit: I don't know what command the Network Manager GUI is trying to execute in the background.
# 6  
Old 10-05-2019
Quote:
Originally Posted by AntumDeluge
Edit: I don't know what command the Network Manager GUI is trying to execute in the background.
Maybe you should find out?

Find out what is the username and userid of the GUI process running and then go find out what groups that user id is in.

This would be the logical next step when troubleshooting a process which works from the command line as root but not from a user's GUI.
# 7  
Old 10-05-2019
sudo does not forward/auth the X11display.
Perhaps su does it?
Code:
su -c "iw dev wls4 connect <SSID>"

Do you get any error message?
Is there any error in the /var/log/messages file or the system journal?
Code:
tail -100 /var/log/messages
journalctl | tail -100

This User Gave Thanks to MadeInGermany For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Python gui or C++ gui or java gui?

python gui or c++ gui or java gui? and when to use etch one? (1 Reply)
Discussion started by: kaja
1 Replies

2. HP-UX

When connecting to HPUX gui console it is grey screen?

My screen is grey when i connect to gui console (2 Replies)
Discussion started by: kenshinhimura
2 Replies

3. Programming

Trouble with C

Hey, i am having a problem First, i know java well and i have used C++ on occasion so i thought i would be able to deal with a class where they program in C. unfortunately i have hit some speed bumps that i am having problems. Here is my problem: I have a structure cache_t in the sample... (0 Replies)
Discussion started by: zephoid
0 Replies

4. UNIX for Advanced & Expert Users

Trouble connecting to FTP proxy server

Hi Guys, I have trouble connecting to ftp server. My task is to connect to the proxy server and get the latest file to the local machine. It works fine when i do the same steps manually. I've been trying to do it in multiple ways but im just not able to connect. When i check the log, this is what... (4 Replies)
Discussion started by: stunnerz_84
4 Replies

5. Shell Programming and Scripting

Running a GUI without GUI

I was wondering if it is possible to run a GUI window (say Firefox) without actually showing up the window on the desktop but still make it do its own regular stuff (like maybe do something via the command line). Sorry if its a dumb question. Thanks (3 Replies)
Discussion started by: Legend986
3 Replies

6. Linux

Trouble connecting to internet

I am having trouble connecting to the internet. Details: OpenSuse 11.1, Cable Modem, connected to Linksys Wireless N Router, hard line from router to ethernet port on my computer. I checked network settings in YAST2, my ethernet is showing not connected. I have it set to start at boot, and... (4 Replies)
Discussion started by: stringzz
4 Replies

7. AIX

Connecting to DB

Is it possible to connect to two databases in a single query with different username and passwords? provide an example pls (1 Reply)
Discussion started by: rollthecoin
1 Replies

8. UNIX for Dummies Questions & Answers

The trouble about SU ...

Hi all, having read lots of posts about SU I don't quiet understand this : I'm doing regular backups of my database (u betta do) and therefore use su - username -c "sqlscript special data_base" in a unixscript which is even using cron. (yep!) Now I need some other script, still with this... (4 Replies)
Discussion started by: nulnul7
4 Replies

9. UNIX for Dummies Questions & Answers

If a is windows gui ( client), b is a unix gui ( Server for a) and c is a shell scrip

Hello all, 1) I want to have a GUI application that will call Unix shell scripts, 2) that GUI application should be able to reside on windows ( if possible) and then call Unix shell script either directly or through a server residing on unix. That is for example. If a is windows gui (... (1 Reply)
Discussion started by: hchivukula
1 Replies

10. Solaris

trouble auto connecting ssh 3.6.1 (Solaris 8) to ssh 3.0.1 (Solaris 6)

I am currently setting up rdiff-backup to use ssh to connect and remotely backup and retrieve data. I am doing so by creating rsa keys for each server and copying the relevant key to the /.ssh folder on the relevant server. All seems to work well when severs running solaris 8 with ssh 3.6.1 are... (6 Replies)
Discussion started by: falklandtim
6 Replies
Login or Register to Ask a Question