Trouble Connecting to Wi-Fi Via GUI


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
# 1  
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  
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  
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  
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  
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  
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  
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 for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

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. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. UNIX Desktop Questions & Answers

trouble

Hello, The system reboots in single user mode what command to use to bring the system up regularly?? I get INIT: cannot create /var/adm/utmpx Type control -d to proceede with a normal startup or give root passwd for system maintaince. either way i don't have a change and ... (1 Reply)
Discussion started by: awk
1 Replies

Featured Tech Videos