LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-13-2021, 05:11 AM   #1
nyloc
Member
 
Registered: Aug 2007
Location: Melbourne
Posts: 111

Rep: Reputation: 17
new to wi fi


I have just bought a new box which has a wi-fi card.
Amd with Slackware current.
can anyone point me to clear and precise instructions on how to start wi-fi before X starts or at least before browsers and email programs start.
thanks.
 
Old 07-13-2021, 07:49 AM   #2
translator1111
Member
 
Registered: Jun 2010
Location: Slovakia
Distribution: Debian 8, Ubuntu 10.04 and 12.04; SLAX 6.0; ConnochaetOS 0.9.; LFS; Natty chip: VT1708S
Posts: 108
Blog Entries: 2

Rep: Reputation: 7
Dear nyloc,
I am on a debian, hopefully you can use something below
clear and precise intructions.

you need 4 steps
  • a driver in your kernel
  • your wifi card up
  • your wifi card managed
  • an ip assigned to your wifi

PREREQUISITES
you wrote before starting X, that means that you are in CLI, you are not in graphic mode. Runlevel = 3;
user has sudo or you are running the next points as "root"

1. make your box to recognize the wifi card, that is find the driver.
if it is already in the kernel these commands will tell us
what does it say?
Code:
ip a
, before it was used
Code:
ifconfig
and
Code:
iwconfig
, but in some distributions they are deprecated.
what does it say?
Code:
lsusb
what does it say?
Code:
lsmod
2.1 If "ip a" says "UP"

3. make your wifi "managed"
use wpa_supplicant for this

2.2 if "ip a" says "DOWN"
try
Code:
ip link set yourdevicename up

4. assign an ip to your device with dhcpd or similar client program, the goal of this is that you are requesting to your route a dinamic Ip address

you can read my blog here specially the last part where it says slax.org and 4 pieces of code.

HINT
ip will help you if you do it like so
first typè
Code:
ip
then click tabulator, it will suggest what is available
then the next command + tabulator
Code:
link
, next
Code:
set
+ tabulator
ip should suggest what devices are available

Come back to me if you have further questions or search for words in the net like "wpa_supplicant"
 
Old 07-13-2021, 09:19 AM   #3
nyloc
Member
 
Registered: Aug 2007
Location: Melbourne
Posts: 111

Original Poster
Rep: Reputation: 17
The wi-fi works with Slackware.
My issue is after X is started I then have to click the net applet icon, click the wi-fi I want, enter a password then wait for the wi-fi to connect. Then I can run programs that access the net.
With ethernet the connection is ready before starting X, so why cant I do that with wi-fi?
 
Old 07-14-2021, 06:38 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,573

Rep: Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499Reputation: 2499
Did you read the Slackware wifi documentation?

https://docs.slackware.com/slackbook:wifi

When you open the Network Manager applet, click on the General tab and there is an option to allow all users access, or something similar.
 
Old 07-14-2021, 07:06 AM   #5
translator1111
Member
 
Registered: Jun 2010
Location: Slovakia
Distribution: Debian 8, Ubuntu 10.04 and 12.04; SLAX 6.0; ConnochaetOS 0.9.; LFS; Natty chip: VT1708S
Posts: 108
Blog Entries: 2

Rep: Reputation: 7
Dear nyloc,
not sure the technical reason, but it is exactly as you write.
Ethernet will find your router without you doing nothing, maybe because the cable finish in the router and is only one way how to get to it.
However wifi waves will search for ESSID (=routers like available = devices able to transmit internet) and in order to avoid other not wanted to connect to your router are used passwords.
In order to connect to your router you need a program to send your password to the device and this program is your net applet icon.
please let me know if your question is answered.
Regars,
T.
 
Old 07-14-2021, 01:00 PM   #6
SW64
Member
 
Registered: May 2014
Distribution: Slackware
Posts: 262

Rep: Reputation: 123Reputation: 123
Quote:
Originally Posted by nyloc View Post
The wi-fi works with Slackware.
My issue is after X is started I then have to click the net applet icon, click the wi-fi I want, enter a password then wait for the wi-fi to connect. Then I can run programs that access the net.
With ethernet the connection is ready before starting X, so why cant I do that with wi-fi?
Since your computer is already set up for Network Manager, try nmcli or nmtui.
 
Old 07-15-2021, 08:24 PM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Most systems will automatically reconnect to an AP if the connections has been made and is remembered. On mine I have to explicitly tell it to "forget" a connection or it remains available forever.

There is also an option to tell it to automatically reconnect, and I always have that set for any location I plan to have access to in the future (especially home and work).
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2021-07-15 20-21-36.png
Views:	6
Size:	65.3 KB
ID:	36791  
 
Old 07-19-2021, 09:03 PM   #8
nyloc
Member
 
Registered: Aug 2007
Location: Melbourne
Posts: 111

Original Poster
Rep: Reputation: 17
Lots to look at there. Thanks to all.
 
  


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
passwd.new, shadow.new, group.new and gshadow.new after upgrade to slackware 12.1 rhermsen Slackware 6 11-08-2008 04:59 PM
LXer: Is the 'New New Internet' really new? LXer Syndicated Linux News 0 10-10-2006 01:24 AM
New linux distro with new Windowing system and new Desktop abimanyu007 Programming 13 08-12-2004 01:28 PM
Help For A New New New Newbe blu_la Linux - Newbie 4 02-15-2004 12:15 AM
A new kernel is out! A new kernel is out! A new kernel is out! Aussie Linux - General 9 11-29-2002 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:35 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