LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Password
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.

Notices


Reply
  Search this Thread
Old 12-17-2010, 01:20 PM   #1
LXer
LXer NewsBot
 
Registered: Dec 2005
Posts: 112,209

Rep: Reputation: 118Reputation: 118
LXer: Wi-Fi on the Command Line


Published at LXer:

More people than ever are using wireless networks as their primary networking medium. Great programs are available under X11 that give users a graphical interface to their wireless cards. Both GNOME and KDE include network management utilities, and a desktop-environment-agnostic utility called wicd also offers great functionality. But, what if you aren't running X11 and want to manage your wireless card?

Read More...
 
Old 12-17-2010, 01:41 PM   #2
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware14.2 64-Bit Desktop, Devuan 2.0 ASCII Toshiba Satellite Notebook
Posts: 2,963

Rep: Reputation: 882Reputation: 882Reputation: 882Reputation: 882Reputation: 882Reputation: 882Reputation: 882
What? And here Kenny told everyone that configuring wifi in the CLI was impossible!
 
Old 12-17-2010, 01:50 PM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
Funny how the author mentioned wicd, but completely missed that wicd-curses runs from the cli.
 
Old 12-17-2010, 04:58 PM   #4
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Quote:
Originally Posted by Jeebizz View Post
What? And here Kenny told everyone that configuring wifi in the CLI was impossible!
Yes, you're right. I just have to do some more configuring.

But why would I go through all that trouble to configure the wireless card? It is much easier to just use Network Manager.
 
Old 12-17-2010, 08:14 PM   #5
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Rep: Reputation: 62
Quote:
Originally Posted by Kenny_Strawn View Post
Yes, you're right. I just have to do some more configuring.

But why would I go through all that trouble to configure the wireless card? It is much easier to just use Network Manager.
As Hangdog42 pointed out, if you're using the CLI then just run wicd-curses and you won't have to do "some more configuring".
 
Old 12-17-2010, 10:13 PM   #6
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Well, turns out I was easily able to connect from the CLI -- by writing a shell script with all the commands in this article in it. Finally!
 
Old 12-18-2010, 03:23 AM   #7
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Quote:
Well, turns out I was easily able to connect from the CLI -- by writing a shell script with all the commands in this article in it. Finally!
This is almost *exactly* what I do on my lappy:

Connect:
Code:
#!/bin/bash

if [ $UID -gt 0 ]; then
	echo "You must be root to run this script."
else
	ifconfig wlan0 up
	wpa_supplicant -B -d -i wlan0 -c /etc/wpa_auth/wpaconf-XXXXXXXXXXXX.conf
	sleep 0.5
	dhcpcd wlan0
	ping -c 1 xkcd.com
fi
(ESSID name censored)

Disconnect (much simpler):
Code:
#!/bin/bash

if [ $UID -gt 0 ]; then
	echo "You must be root to run this script."
else
	killall wpa_supplicant dhcpcd
	ifconfig wlan0 down
fi

Last edited by MrCode; 12-18-2010 at 10:41 AM. Reason: Updated to check for root
 
Old 12-18-2010, 07:41 AM   #8
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
And here is mine:

Code:
#!/bin/bash

iwconfig wlan0 txpower on
iwconfig wlan0 channel 9
iwconfig wlan0 essid #censored
iwconfig wlan0 key #censored
iwconfig wlan0 frag 512
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Taking command why none should fear the command line LXer Syndicated Linux News 1 09-20-2010 03:53 PM
LXer: The Command Line Is Not Always Better LXer Syndicated Linux News 0 09-08-2009 07:21 PM
LXer: The command-line phrasebook LXer Syndicated Linux News 0 03-05-2009 06:01 PM
LXer: What is so bad about the command line? LXer Syndicated Linux News 0 01-24-2009 09:30 PM
LXer: The Linux Command Shell For Beginners: Fear Not The Command Line! LXer Syndicated Linux News 0 12-22-2008 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - News > Syndicated Linux News

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