Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-07-2014, 02:54 PM
|
#1
|
Member
Registered: Dec 2010
Location: Nevada
Distribution: Slackware
Posts: 258
Rep:
|
Preferred program for using wifi on laptop.
It has been a while since I got on the internet with my laptop which has built in wifi hardware. Last time I did it, I think maybe I used wicd. That was back a couple years and I was probably running about slackware 13 something then.
Now I have an internet provider, Century Link, which has a wifi router installed in the house. My laptop can get on the internet, using windows 7, by going through the control panel, network stuff, but I need to set it up so I can do the same thing on Linux.
What is the present preferred linux program for getting my laptop to communicating with the wifi router that Century Link installed?
I believe I am running version 14 of slackware linux, maybe 14.1 or 14.2. I suppose the program is somewhere on the distribution disk, but I am not sure what to look for.
Last edited by EldonCool; 07-07-2014 at 02:58 PM.
|
|
|
07-07-2014, 03:18 PM
|
#2
|
Senior Member
Registered: Apr 2005
Posts: 2,727
|
wicd is a good option if you want a gui style wireless configuration.
But if you're only connecting to one access point in your home, you may as well just configure wpa_supplicant.conf and the rc script rc.inet1.conf
The slackbook covers both methods
http://docs.slackware.com/slackbook:wifi
|
|
2 members found this post helpful.
|
07-07-2014, 03:19 PM
|
#3
|
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
|
WICD is in the extra directory on your Slackware media. Use installpkg to install it (as root). It works just fine.
There is also networkmanager. It's a little more complex to set up and get it going.
Use one or use the other but do not enable both (they interfere with one another).
I lean toward WICD, YMMV.
Hope this helps some.
|
|
2 members found this post helpful.
|
07-07-2014, 03:33 PM
|
#4
|
Member
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288
Rep:
|
wpa_supplicant already has a gui... wpa_gui... somehow tho, everyone seems to miss it.
|
|
1 members found this post helpful.
|
07-07-2014, 04:05 PM
|
#5
|
Senior Member
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639
Rep:
|
NetworkManager comes with the standard installation, as does wpa_supplicant, so in that sense either could be called the "preferred" method. wicd is in /extra so it is a "blessed" alternative. If you are roaming, both wicd and NM are really convenient and both are IMHO dead easy to set up and work well. They have historically had their little quirks, so at times I have gone back and forth. I'm currently using NM only because it seems to automatically connect to a new network faster than wicd.
Brian
|
|
1 members found this post helpful.
|
07-07-2014, 04:13 PM
|
#6
|
Member
Registered: Dec 2010
Location: Nevada
Distribution: Slackware
Posts: 258
Original Poster
Rep:
|
Thanks guys, this should be enough to get me going.
|
|
|
07-08-2014, 01:48 PM
|
#7
|
Member
Registered: Dec 2010
Location: Nevada
Distribution: Slackware
Posts: 258
Original Poster
Rep:
|
The problems just never end. After some fumbling around I
installed wicd using installpkg as root.
The program is now apparently installed as the installer said
it was, and I now have these extra files in things like /usr/bin
/usr/share /usr/sbin/wicd that are part of the package.
I changed the permissions on /usr/sbin/wicd to executable by all.
My problem is, I apparently have no idea how to use the
program. It seems to me that I had to run the program
a couple years ago to use it. I had to run then put in
a password for the wifi hardware, and choose a wifi
from a list.
I have no idea how to do this now. I ran an xterm and
entered "wicd", as root. It told me the program was
already running.
So where am I wrong? What am I missing?
|
|
|
07-08-2014, 01:59 PM
|
#8
|
Member
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288
Rep:
|
Going to give you a quick option:
1. removepkg wicd
2. add these lines to /etc/wpa_supplicant.conf
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=netdev
update_config=1
3. uncomment these lines to /etc/rc.d/rc.inet1.conf (kinda toward the middle of the file)
Code:
## Example config information for wlan0. Uncomment the lines you need and fill
## in your info. (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
WLAN_WPA[4]="wpa_supplicant"
4. reboot
5. in your x of choice, run wpa_gui, scan and select network, and save the file.
The only caveat to this is, if you start up your laptop and no wireless networks are in range, you'll need to run as root:
when you do connect to a network the first time after booting. After this is set up you will see the wireless connecting as part of your boot sequence.
Hope it helps.
|
|
|
07-08-2014, 02:04 PM
|
#9
|
Member
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814
|
Running just "wicd" as root just starts the daemon. To actually connect, use "wicd-curses" for an curses-based CLI interface, "wicd-gtk" for an actual GUI, and "wicd-cli" for just using it in a traditional cli format.
Hope this helps!
|
|
1 members found this post helpful.
|
07-08-2014, 02:44 PM
|
#10
|
Senior Member
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639
Rep:
|
Quote:
Originally Posted by EldonCool
The problems just never end. After some fumbling around I
installed wicd using installpkg as root.
|
Fumbling is good for a while. However the quick way to do such a thing, as root, is:
slackpkg update
slackpkg install wicd
or
installpkg /path-to-dvd/extra/wicd/wicd-1.7.2.4-x86_64-4.txz
Quote:
The program is now apparently installed as the installer said
it was, and I now have these extra files in things like /usr/bin
/usr/share /usr/sbin/wicd that are part of the package.
I changed the permissions on /usr/sbin/wicd to executable by all.
|
You should not need to change any permissions.
Quote:
My problem is, I apparently have no idea how to use the
program.
|
wicd daemon should be launched by making rc.wicd executable with
Code:
chmod +x /etc/rc.d/rc.wicd
If you've used it, make sure networkmanager is stopped/not running with:
Code:
/etc/rc.d/rc.networkmanager stop
and make this file NOT executable. (These modifications may happen automatically when wicd is installed, I'm not sure. If this has happened the last command will fail unless you put an "sh" infront.)
Then launch wicd daemon with
Code:
/etc/rc.d/rc.wicd start
(You may also need to remove modifications you may have made to rc.inet1.)
At which point, as a regular user, you can run one of the programs mentioned above like wicd-gtk.
Last edited by BCarey; 07-08-2014 at 02:48 PM.
|
|
1 members found this post helpful.
|
07-08-2014, 03:03 PM
|
#11
|
Member
Registered: Dec 2010
Location: Nevada
Distribution: Slackware
Posts: 258
Original Poster
Rep:
|
whitewolf,
I removed the package wicd with removepkg
Then I added the 2 lines
Quote:
ctrl_interface_group=netdev
update_config=1
|
to wpa_supplicant.conf
The first line you recommended was already in the file as the first line.
Next I uncommented the 3 lines in /etc/rc.d/rc.inet1.conf
I rebooted.
Upon bootup I got the repeated error message:
wpa_supplicant failed.
I executed x windows
and in an xterminal ran: wpa_gui
got the screen which says something like:
Quote:
Adapter: drop_down_box_choices
Network: drop_down_box_choices
current
status Could not get status from wpa_supplicant.
|
the drop down boxes Adapter and Network have no
choices to choose from. This interface really
lets me do nothing.
Last edited by EldonCool; 07-08-2014 at 06:48 PM.
|
|
|
07-08-2014, 03:06 PM
|
#12
|
Member
Registered: Dec 2010
Location: Nevada
Distribution: Slackware
Posts: 258
Original Poster
Rep:
|
BCarey,
Thanks for the tips, looks like some good info there.
Right now I have the package uninstalled, but I can
now better install it with less fumbling if need be.
I have to put this on hold for a few hours, as I have
to run some errands. Appreciate all the help, and I
will get back to this soon.
|
|
|
07-08-2014, 05:18 PM
|
#13
|
Member
Registered: Oct 2010
Location: Bowling Green, KY
Distribution: Slackware
Posts: 288
Rep:
|
ok, I'm going to guess you have something weird in your wireless setup.. can you run
and post the output? Guessing right now your wireless card didn't show up as wlan0... or it's not enabled.
assuming you see a wlan0, run
and post that output as well.
|
|
|
07-08-2014, 07:32 PM
|
#14
|
Member
Registered: Dec 2010
Location: Nevada
Distribution: Slackware
Posts: 258
Original Poster
Rep:
|
output of ifconfig -a
Quote:
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 70:5a:b6:ee:8b:2a 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
device interrupt 16
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 4 bytes 260 (260.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4 bytes 260 (260.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:17:c4:f4:ee:92 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
|
output of rfkill list
Quote:
0: acer-wireless: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
|
|
|
|
07-09-2014, 01:25 AM
|
#15
|
Member
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 309
Rep:
|
Go to /etc/rc.d and "chmod +x rc.networkmanager" minus the quotes. Reboot then go to the icon on the panel and click.
Pick your connection give it the password and surf. Of course you need to be root!
|
|
|
All times are GMT -5. The time now is 01:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|