Re: [dwm] OT: Wireless in dwm
Preben Randhol dixit (2009-04-20, 15:52): This is somewhat off-topic. I'm totally new to using wireless network. At home everything is wired, but i have sometimes the need to use wireless when traveling. Now I have an Asus Eee so I can connect. Only problem is that the gui tool of xfce4 (or gnome) runs like applets and there are no version that is not an applet it seems. So I was wondering if any knows any good software/resources to be used with dwm to choose and bring up a wireless network. I guess one can make some scripts using the iw tools? I have heard one can install a program called trayer to get up the applets, but I would prefer not to. I have a static wpa_supplicant.conf for the wireless networks I frequently visit so I connect to them automatically whenever they are in range and I try to use wpa_cli manually to connect to other networks when roaming (which doesn't happen often). I kinda vaguely remember someone writing a set of scripts (using dmenu perhaps) to list and connect to available networks. If they don't exist then you could go about writing them yourself using above tools. Best, -- [a] pgpIbDCncxaFM.pgp Description: PGP signature
Re: [dwm] OT: Wireless in dwm
[2009-04-20 16:29] Antoni Grzymala ant...@chopin.edu.pl Lorenzo Bolla dixit (2009-04-20, 15:07): ifconfig and dhclient? Those two don't really deal with the wireless layer of 802.11 (though ifconfig does in some OS'es to an extent). He probably meant: iwconfig and dhclient ^ ... as do I use. meillo signature.asc Description: Digital signature
Re: [dwm] OT: Wireless in dwm
I used to use stalonetray to be able to access nm-applet for wireless. But I've recently gotten a pretty good config going for wpa_supplicant that auto-connects to my secure wireless, but also uses any unsecured networks automatically when I'm on the road. It's pretty straightforward to setup, and it connects faster than network manager in most cases. Jeremy On Mon 20 Apr 2009 - 03:52PM, Preben Randhol wrote: Hi This is somewhat off-topic. I'm totally new to using wireless network. At home everything is wired, but i have sometimes the need to use wireless when traveling. Now I have an Asus Eee so I can connect. Only problem is that the gui tool of xfce4 (or gnome) runs like applets and there are no version that is not an applet it seems. So I was wondering if any knows any good software/resources to be used with dwm to choose and bring up a wireless network. I guess one can make some scripts using the iw tools? I have heard one can install a program called trayer to get up the applets, but I would prefer not to. At the moment I have to use xfce4 to get up the wireless. I'm asking here as I guess you have more experience with this than me and can point me in the right direction. Thanks in advance Preben
Re: [dwm] OT: Wireless in dwm
2009/4/20 Preben Randhol rand...@pvv.org: Hi This is somewhat off-topic. I'm totally new to using wireless network. At home everything is wired, but i have sometimes the need to use wireless when traveling. Now I have an Asus Eee so I can connect. Only problem is that the gui tool of xfce4 (or gnome) runs like applets and there are no version that is not an applet it seems. So I was wondering if any knows any good software/resources to be used with dwm to choose and bring up a wireless network. I guess one can make some scripts using the iw tools? I have heard one can install a program called trayer to get up the applets, but I would prefer not to. At the moment I have to use xfce4 to get up the wireless. I'm asking here as I guess you have more experience with this than me and can point me in the right direction. Thanks in advance Preben I use wicd with wicd-client --no-tray, works pretty good. -- Daniel
Re: [dwm] OT: Wireless in dwm
On Mon Apr 20, 2009 at 03:07:57PM +0100, Lorenzo Bolla wrote: ifconfig and dhclient? indeed wicd has a client/server architecture, suppose one could roll ncurses client http://bazaar.launchpad.net/~wicd-devel/wicd/trunk/annotate/head%3A/wicd/wicd-daemon.py personally i dont have dbus daemon or python so...
Re: [dwm] OT: Wireless in dwm
I use two naïve scripts, two files and an alias: #wep connect to a wep wifi #! /bin/sh key=`grep $1 /home/pmarin/wep | cut -d' ' -f2` sudo ifconfig wlan0 up sudo iwconfig wlan0 essid $1 sudo iwconfig wlan0 key s:$key sudo dhclient wlan0 #end The wep is a plain file with to columms essid key #wpa connect to a wpa wifi #! /bin/sh sudo ifconfig wlan0 up sudo iwconfig wlan0 essid $1 sudo wpa_supplicant -iwlan0 -c/home/pmarin/wpa -B sudo dhclient wlan0 #end the wpa file is similar than /etc/wpa_supplicant.conf #wscan It is an csh alias: alias wscan 'sudo iwlist wlan0 scan' On Mon, Apr 20, 2009 at 3:52 PM, Preben Randhol rand...@pvv.org wrote: Hi This is somewhat off-topic. I'm totally new to using wireless network. At home everything is wired, but i have sometimes the need to use wireless when traveling. Now I have an Asus Eee so I can connect. Only problem is that the gui tool of xfce4 (or gnome) runs like applets and there are no version that is not an applet it seems. So I was wondering if any knows any good software/resources to be used with dwm to choose and bring up a wireless network. I guess one can make some scripts using the iw tools? I have heard one can install a program called trayer to get up the applets, but I would prefer not to. At the moment I have to use xfce4 to get up the wireless. I'm asking here as I guess you have more experience with this than me and can point me in the right direction. Thanks in advance Preben
Re: [dwm] OT: Wireless in dwm
I wrote a script[1] that uses dmenu to present local wifi networks, and ask for a wep key. Shouldn't be too hard to extend to wpa etc. 1 - http://madleet.net/wifiselect.sh.html # Kurt H Maier On Mon, Apr 20, 2009 at 10:14 AM, pmarin pacog...@gmail.com wrote: I use two naïve scripts, two files and an alias: #wep connect to a wep wifi #! /bin/sh key=`grep $1 /home/pmarin/wep | cut -d' ' -f2` sudo ifconfig wlan0 up sudo iwconfig wlan0 essid $1 sudo iwconfig wlan0 key s:$key sudo dhclient wlan0 #end The wep is a plain file with to columms essid key #wpa connect to a wpa wifi #! /bin/sh sudo ifconfig wlan0 up sudo iwconfig wlan0 essid $1 sudo wpa_supplicant -iwlan0 -c/home/pmarin/wpa -B sudo dhclient wlan0 #end the wpa file is similar than /etc/wpa_supplicant.conf #wscan It is an csh alias: alias wscan 'sudo iwlist wlan0 scan' On Mon, Apr 20, 2009 at 3:52 PM, Preben Randhol rand...@pvv.org wrote: Hi This is somewhat off-topic. I'm totally new to using wireless network. At home everything is wired, but i have sometimes the need to use wireless when traveling. Now I have an Asus Eee so I can connect. Only problem is that the gui tool of xfce4 (or gnome) runs like applets and there are no version that is not an applet it seems. So I was wondering if any knows any good software/resources to be used with dwm to choose and bring up a wireless network. I guess one can make some scripts using the iw tools? I have heard one can install a program called trayer to get up the applets, but I would prefer not to. At the moment I have to use xfce4 to get up the wireless. I'm asking here as I guess you have more experience with this than me and can point me in the right direction. Thanks in advance Preben
Re: [dwm] OT: Wireless in dwm
Hi, I use a homemade extension I made of the Ian Daniher wifi script: http://lists.suckless.org/dwm/0901/7282.html This wifi script parses a csv file containing the configurations of frequent networks. (example csv file attached) It uses iwlist, iwconfig, ifconfig, dhclient and wpa_supplicant commands to manage the connections. It can be called passing to it a profile name as parameter. If called without parameter a list of the profiles on the file.csv will be presented for choosing. In this list those profiles whose networks are in range will be marked with a *. The last option of the list will be always OPEN_NETWORKS, which will present another list with the Open Networks in range ordered by signal quality and allowing to connect to them in dhclient mode. Although the original Ian script used dmenu as interface for the selection of profiles this one uses only stdout in order to not have such dependency. Before using it the constants of the beginning (WIFILE,WIFACE,DNS1,DNS2) must be set. I apologize for the bad state of the code. I just wrote it for myself without the intention to publish it until I have seen this thread. It could be, for sure, arranged and refactorized (just see the perl -e command embedded xD). If someone interested on the script is not able to understand or to modify it don't hesitate to contact me for help. Kind Regards, Delta On 2009-04-20, 10:47 Kurt H Maier (karmaf...@gmail.com) wrote: I wrote a script[1] that uses dmenu to present local wifi networks, and ask for a wep key. Shouldn't be too hard to extend to wpa etc. 1 - http://madleet.net/wifiselect.sh.html # Kurt H Maier On Mon, Apr 20, 2009 at 10:14 AM, pmarin pacog...@gmail.com wrote: I use two naïve scripts, two files and an alias: #wep connect to a wep wifi #! /bin/sh key=`grep $1 /home/pmarin/wep | cut -d' ' -f2` sudo ifconfig wlan0 up sudo iwconfig wlan0 essid $1 sudo iwconfig wlan0 key s:$key sudo dhclient wlan0 #end The wep is a plain file with to columms essid key #wpa connect to a wpa wifi #! /bin/sh sudo ifconfig wlan0 up sudo iwconfig wlan0 essid $1 sudo wpa_supplicant -iwlan0 -c/home/pmarin/wpa -B sudo dhclient wlan0 #end the wpa file is similar than /etc/wpa_supplicant.conf #wscan It is an csh alias: alias wscan 'sudo iwlist wlan0 scan' On Mon, Apr 20, 2009 at 3:52 PM, Preben Randhol rand...@pvv.org wrote: Hi This is somewhat off-topic. I'm totally new to using wireless network. At home everything is wired, but i have sometimes the need to use wireless when traveling. Now I have an Asus Eee so I can connect. Only problem is that the gui tool of xfce4 (or gnome) runs like applets and there are no version that is not an applet it seems. So I was wondering if any knows any good software/resources to be used with dwm to choose and bring up a wireless network. I guess one can make some scripts using the iw tools? I have heard one can install a program called trayer to get up the applets, but I would prefer not to. At the moment I have to use xfce4 to get up the wireless. I'm asking here as I guess you have more experience with this than me and can point me in the right direction. Thanks in advance Preben #ProfileName,ESSID,[WEPKey],[WPAConfLocation],[BSSID],Channel,[IP],[Gateway],[Netmask] Home,Livebox-XX,12:34:56:AB:CD,,00:11:22:33:44:55,10,dhcp Work,SecondFloorNet,off,,,10,dhcp Holidays,Dlink_1234,,/etc/wpa_supplicant/wpa_supplicant.conf,,9,192.168.1.13,192.168.1.1,255.255.255.0 wifi Description: Binary data
Re: [dwm] OT: Wireless in dwm
On Mon, Apr 20, 2009 at 10:05 AM, Jeremy Jay dinkuma...@gmail.com wrote: I used to use stalonetray to be able to access nm-applet for wireless. But I've recently gotten a pretty good config going for wpa_supplicant that auto-connects to my secure wireless, but also uses any unsecured networks automatically when I'm on the road. It's pretty straightforward to setup, and it connects faster than network manager in most cases. Could you point to a decent tutorial for configuring wpa_supplicant? The man page is like reading an architectural spec for a nuclear power plant when all you wanted to do was find a light switch. -lee
Re: [dwm] OT: Wireless in dwm
I can send you my wpa_supplicant.conf plus some scripts I wrote if you want. I don't have them at work but I can get them to you in a couple of hours. They could probably use some work, but you should get the basic idea. On Mon, Apr 20, 2009 at 2:04 PM, Lee Azzarello l...@dropio.com wrote: On Mon, Apr 20, 2009 at 10:05 AM, Jeremy Jay dinkuma...@gmail.com wrote: I used to use stalonetray to be able to access nm-applet for wireless. But I've recently gotten a pretty good config going for wpa_supplicant that auto-connects to my secure wireless, but also uses any unsecured networks automatically when I'm on the road. It's pretty straightforward to setup, and it connects faster than network manager in most cases. Could you point to a decent tutorial for configuring wpa_supplicant? The man page is like reading an architectural spec for a nuclear power plant when all you wanted to do was find a light switch. -lee
Re: [dwm] OT: Wireless in dwm
The wpa_supplicant.conf that comes with the package is really descriptive. I just edited it to suit and added the wpa_supplicant init script provided with my distro to the default runlevel. Here's my my wpa_supplicant.conf: --- # this lets me run wpa_cli ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel # scan for networks (my wifi doesnt scan # well itself, this forces wpa_supp to do it) ap_scan=1 # networks # wpa connection network={ ssid=snickers key_mgmt=WPA-PSK psk=mypassphrase } # my school's wireless # (unencrypted, ssid not broadcasted) network={ ssid=nomad scan_ssid=1 key_mgmt=NONE priority=1 } # default linksys network={ ssid=linksys key_mgmt=NONE priority=10 } # straight from the example file... # This is a network block that connects to any unsecured access point. # We give it a low priority so any defined blocks are preferred. network={ key_mgmt=NONE priority=-999 } --- Jeremy On Mon 20 Apr 2009 - 02:04PM, Lee Azzarello wrote: On Mon, Apr 20, 2009 at 10:05 AM, Jeremy Jay dinkuma...@gmail.com wrote: I used to use stalonetray to be able to access nm-applet for wireless. But I've recently gotten a pretty good config going for wpa_supplicant that auto-connects to my secure wireless, but also uses any unsecured networks automatically when I'm on the road. It's pretty straightforward to setup, and it connects faster than network manager in most cases. Could you point to a decent tutorial for configuring wpa_supplicant? The man page is like reading an architectural spec for a nuclear power plant when all you wanted to do was find a light switch. -lee
Re: [dwm] OT: Wireless in dwm
I actually meant exactly ifconfig and dhclient (and wpa_supplicant). On FreeBSD, this is what I'm using (no iwconfig available...) in /etc/rc.conf add: ifconfig_ndis0=ssid your_ssid bssid your_bssid WPA DHCP in /etc/wpa_supplicant.conf add: network={ ssid=your_ssid psk=your_password } L. On Mon, Apr 20, 2009 at 3:29 PM, Antoni Grzymala ant...@chopin.edu.plwrote: Lorenzo Bolla dixit (2009-04-20, 15:07): ifconfig and dhclient? Those two don't really deal with the wireless layer of 802.11 (though ifconfig does in some OS'es to an extent). -- [a]
Re: [dwm] [RFC] dwm-win32
Hi all, So a month passed since my last posting and there was absolutely no feedback so I assume the reasons are: (a) you guys are in the comfortable situation of not having to touch windows boxes (b) alpha1 was unusable and you didn't even bother to write a comment Anyway I have since fixed a few bugs and probably also introduced some new ones. But since I most likely wont have time to look into this in the near future I post my current codebase just in case someone is interested in it. http://www.brain-dump.org/projects/dwm-win32/dwm-win32-alpha2.zip http://www.brain-dump.org/projects/dwm-win32/dwm-win32-alpha2.tar.gz http://www.brain-dump.org/projects/dwm-win32/dwm-win32-alpha2.exe Checkout the README.txt for key bindings, a sort of technical documentation and an incomplete TODO list. As always comments and patches welcome. Thanks, Marc -- Marc Andre Tanner http://www.brain-dump.org/ GPG key: CF7D56C0