LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-18-2017, 05:06 PM   #16
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242

Quote:
Originally Posted by TBotNik View Post
He he!

What part of "not connected" didn't you understand? Therefore install impossible, but remembered I had installed this before and good install would have wpa.conf in either the
Code:
~/user/.wpa
Or
~/user
directories, but I only find a wpa_suuplicant.config file and not where it should be!
each distro is different ot can be in where files go.
Quote:
How do I download the code to another machine so I can copy to flash then install?
hahahahhaha and HA HA!


I'd back them up by using mv to get them out of the way, and still have them if you need them.

got a different PC Library with a USB Port and usb stick?
the house next to yours -- start knocking on doors.
Quote:
Will I need to purge all old copies first?

Cheers!

TBNK
I've been here before too. stuck with having to figure out how to download wifi packages I need without wifi.


can you give just give that other then wap stuff a try -- normally that too is install default on a good distro
Code:
#!/bin/bash
#device name
sudo ifconfig wlo1 up
#list providers
#sudo  iwlist wlan0 scan
#set a provider to the device
sudo iwconfig wlo1 essid "Google Starbucks" key "off"
that is what I use when I needed it without any kind of network manager.

run
Code:
#list providers
sudo  iwlist wlan0 scan
to get your provicer and key if you do not already know it, then replace yours with what I have for mine.
Code:
sudo iwconfig wlo1 essid "Google Starbucks" key "off"
then just run them two commands.
Code:
#YOUR device name
sudo ifconfig wlo1 up

sudo iwconfig wlo1 essid "Your Service Provider" key "There key if it has one, or off as it will say off it off"
I'd try and say more but my brain is on a different issue at the moment.

Last edited by BW-userx; 08-18-2017 at 05:10 PM.
 
Old 08-21-2017, 05:52 PM   #17
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Got a hardwire connect to my laptop, so then tried the:

Code:
apt-get install wpa_supplicant
And it answered unable to locate package wpa_supplicant.

So I then ran:

Code:
apt-get update && apt-get dist-upgrade
That usually take 2-4 hours, so waiting on it now!

Let you know if it can or cannot find the package after that!

Cheers!

TBNK
 
Old 08-21-2017, 05:56 PM   #18
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by TBotNik View Post
All,

Got a hardwire connect to my laptop, so then tried the:

Code:
apt-get install wpa_supplicant
And it answered unable to locate package wpa_supplicant.

So I then ran:

Code:
apt-get update && apt-get dist-upgrade
That usually take 2-4 hours, so waiting on it now!

Let you know if it can or cannot find the package after that!

Cheers!

TBNK
Debian?

they renamed it as distos do. Just to try and own it?
Code:
wpasupplicant
https://packages.debian.org/search?k...=wpasupplicant
 
Old 08-21-2017, 06:00 PM   #19
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Kubuntu 14.04 LTS
 
Old 08-21-2017, 07:42 PM   #20
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by TBotNik View Post
Kubuntu 14.04 LTS
Code:
sudo aptitude install knetworkmanager network-manager wpasupplicant
might want to give this a look

https://help.ubuntu.com/community/Wi...AHowTo/Kubuntu

Last edited by BW-userx; 08-21-2017 at 07:44 PM.
 
Old 08-22-2017, 07:52 AM   #21
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Crap had to leave before the upgrades finished. Hope I can restart without isues today. Usually can!
 
Old 08-22-2017, 08:52 AM   #22
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Good download section of the update/dist-upgrade had finished so unpacking installing went fine.

Ran the:

Code:
apt-get install wpasupplicant
And message said latest version already installed.

Only errors from the update/dist-upgrade are from:

Code:
wireshark wireshark-common
still cannot get a ping!

Cheers!

TBNK
 
Old 08-22-2017, 10:49 AM   #23
justmy2cents
Member
 
Registered: May 2017
Location: U.S.
Distribution: Un*x
Posts: 237
Blog Entries: 2

Rep: Reputation: Disabled
Im kinda surprised it wasn't already installed... If you want to connect via wpa_supplicant (which is like the most barebones way to do it) follow these steps:

1)
Code:
wpa_passphrase "YOURSSID" > wpa.conf (then after enter the wifi password)
# This creates a PSK password file...

2)
Code:
wpa_supplicant -d nl80211 -i wlan0 -c /root/wpa.conf
# The -d says to use the nl80211 driver (the newest one), the -i specifies what interface to use, and the -c says where the password file is located

3)
Code:
dhclient -r ; dhclient wlan0
# release any existing addresses then it gets a new one from the DHCP server, and after that you should be connected..

If it still doesn't connect then you should try ps -aux|grep wpa_supplicant or ps -ef|grep wpa_supplicant and kill that process. That was actually a problem I had a hard time figuring out.. Be sure to replace wlan0 with whatever your interface is (it may be wlan0 though; mines however is not). Note this does not work for open or hidden networks. Wpa_supplicant can still be used but the configuration must be altered accordingly..

Last edited by justmy2cents; 08-22-2017 at 02:19 PM.
 
Old 08-22-2017, 01:50 PM   #24
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
kept getting errors running:

Quote:
wpa_passphrase essid wifikey > /home/$user/wpa.conf
till I realize I needed the quotes:

Quote:
wpa_passphrase essid 'wifikey' > /home/$user/wpa.conf
because of the special characters I was using.

Then it work fine creating the file. Now see if it connects and yields an IP address.

TBNK
 
Old 08-22-2017, 02:05 PM   #25
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
did you check rfkill by any chance?
 
Old 08-22-2017, 02:16 PM   #26
justmy2cents
Member
 
Registered: May 2017
Location: U.S.
Distribution: Un*x
Posts: 237
Blog Entries: 2

Rep: Reputation: Disabled
If the ssid contains whitespaces it needs to be quoted too.
 
Old 08-22-2017, 04:30 PM   #27
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Still no ip nor ping
 
Old 08-22-2017, 04:32 PM   #28
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
No whitespace in essid!

RFKill definitely off or would not "Connect"

Problem seems to be coming from the cmds:
Quote:
dhclient -r
dhclient wlan0
The command:

Code:
wpa_supplicant -d nl80211 -i wlan0 -c /home/$user/wpa.conf
Sends out endless garbage like trying to connect but not succeeding

Cheers!

TBNK

Last edited by TBotNik; 08-22-2017 at 04:35 PM.
 
Old 08-22-2017, 04:59 PM   #29
justmy2cents
Member
 
Registered: May 2017
Location: U.S.
Distribution: Un*x
Posts: 237
Blog Entries: 2

Rep: Reputation: Disabled
Did you try ps -aux|grep wpa_supplicant or ps -ef|grep wpa_supplicant to see if the wpa_supplicant process is already running and if so killing it via kill pid#? That was exactly the problem I had where it would continuously try to connect, but as soon as I did that it worked for me.. Besides that you may need to specify a different driver.. See man wpa_supplicant for available drivers...

Last edited by justmy2cents; 08-22-2017 at 05:03 PM.
 
Old 08-29-2017, 09:03 AM   #30
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

What do you think? As part of following suggestions to fix this I have installed:
  1. Network Manager
  2. Wicd
  3. wpa supplicant
thinking some of these may conflict, but do not know how to tell.

Also I went back to /etc/network/interfaces and entered seperate lines for:
Code:
auto wlan0
iface wlan0 inet dhcp
To autostart the wifi. Had disabled this earlier and the searching for wifi networks causes boot-up to stall for over 10 minutes. Goes immediately without.

Help please!

TBNK

Last edited by TBotNik; 08-29-2017 at 09:08 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wifi Disabled After Suspend State Jacob16682 Linux - Newbie 19 08-20-2016 08:28 AM
Wifi disabled on the Lenovo Yoga 2 13" akamikeym Linux - Hardware 5 08-28-2014 11:52 PM
I received an unusual SMS from Metropcs phil555 General 1 01-01-2012 04:55 PM
wifi connection disabled, how to get it on again? stuartjohn Linux - Newbie 23 08-31-2011 03:42 PM
Wifi gets disabled according to X suspend (possible ACPI prob?) Su-Shee Linux - Laptop and Netbook 1 05-14-2008 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:11 AM.

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