LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2014, 07:00 PM   #1
ochi12
LQ Newbie
 
Registered: Sep 2014
Posts: 7

Rep: Reputation: Disabled
Question How can I connect to a wireless network without GUI app?


I just installed i3wm(http://i3wm.org/) a minimalist window manager. I am getting used to it, but i still can't figure out how to connect to a wireless network.
I used to do it with the gnome environment, but i3 doesn't provide a way to do it automatically.

Is there an easy way to connect to a network(eg, a third party app) or should i do it from the terminal?(how do i do it from the terminal anyway)
 
Old 09-11-2014, 09:34 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,342
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
What distro/version and what network manager are you using?

I know the wicd has a ncurses interface. I think it's called wicd-curses.

This article explains how to do it with wpa_supplicant: http://substack.net/wireless_from_th..._line_in_linux

There are probably other ways.
 
Old 09-11-2014, 11:41 PM   #3
ochi12
LQ Newbie
 
Registered: Sep 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
I'm running on debian.How can i know my network manager? everything came installed by default on my laptop so i don't know my network manager.
 
Old 09-12-2014, 12:29 AM   #4
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian, CentOS
Posts: 578

Rep: Reputation: 158Reputation: 158
nvm

Last edited by erik2282; 09-12-2014 at 12:30 AM.
 
Old 09-12-2014, 11:40 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,542
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Member Response

Hi,

Welcome to LQ.

Quote:
Originally Posted by ochi12 View Post
I just installed i3wm(http://i3wm.org/) a minimalist window manager. I am getting used to it, but i still can't figure out how to connect to a wireless network.
I used to do it with the gnome environment, but i3 doesn't provide a way to do it automatically.

Is there an easy way to connect to a network(eg, a third party app) or should i do it from the terminal?(how do i do it from the terminal anyway)
You could use the following from console as root;
Quote:
You should have your '/etc/resolv.conf' setup with your 'ISP DNS' nameservers.

sample '/etc/resolv.conf';
Code:
 search 192.168.0.1 #if this happens to be your DNS 
 nameserver xxx.xxx.xxx.xxx   #ISP DSN 'replace xxx.xxx.xxx.xxx
                              #with IP from your ISP
 nameserver 4.2.2.1           #Verizon third level DNS
 nameserver 4.2.2.2           #if needed
 nameserver 4.2.2.3
 nameserver 4.2.2.4
You could setup a static IP first, do as root from cli.
Code:
 ~#ifconfig wlan0 192.168.0.18    #<<< available IP
 ~#route add default gw 192.168.0.1 #<<your gateway
 ~#iwlist wlan0 scan #<< use information to fill in for essid & ap information
 ~#iwconfig wlan0 essid "Your Wireless"
 ~#iwconfig wlan0 key your_key_here
 ~#iwconfig wlan0 ap xx:xx:xx:xx:xx:xx #<<Your _ap_from iwlist
Test it;
Code:
 ~#route -n                         #show the route table
  ~#ifconfig wlan0 up                #should be up already
  ~#ping 192.168.0.1                 #ping your gateway
  ~#ping 208.69.32.130               #google.com IP
  ~#ping google.com                  #test DNS, if fail then
                                     #check /etc/resolv.conf
I use the script below to setup my wireless while experimenting.
Code:
   wlan.sh;
  #start here
#----------------------- cut-------------------
 #!/bin/bash
 #
 #10-26-09 13:30 gws
 #setup the wlan0 device
 #
 /sbin/ifconfig wlan0 192.168.0.18  #available IP
 /sbin/route add default gw 192.168.0.1
 /sbin/iwconfig wlan0 essid "Your_Wireless_Access"
 /sbin/iwconfig wlan0 key Place Your_key
 /sbin/iwconfig wlan0 ap 00:00:00:00:00:00 << your AP HW address from above iwlist scan
#-----------------------Cut------------------
 #end here
Be sure to include essid, key and AP for the above sample.
Hope this helps.
Have fun & enjoy!
 
Old 09-12-2014, 01:43 PM   #6
ochi12
LQ Newbie
 
Registered: Sep 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
I just installe wcid to make it easier. It's a nice app that allows you to connect to wireless and wired networks. Thanks
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
connect to two network interfaces, wireless and wired in order to share wireless pbutts Linux - Networking 13 03-05-2014 09:23 AM
Unable to connect my wireless eth1(Intel PRO/Wireless 2200 Network connetion) antonio fernandez Linux - Wireless Networking 7 01-05-2011 04:24 PM
Wire network is ok but unable to connect to wireless and wireless card is not detect vitalstrike82 SUSE / openSUSE 4 11-01-2007 07:56 AM


All times are GMT -5. The time now is 09:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration