Let's say we have a TP-Link USB Wifi adapter (TL-WN321G 54Mbps) and we want to configure it to work in FreeBSD 9.x.
After attaching to one our USB port we will get:
dmesg
...
run0: <1 .0=".0"> on usbus4
run0: MAC/BBP RT3070 (rev 0x0201), RF RT2020 (MIMO 1T1R), address 54:e6:fc:94:6e:0f
run0: firmware RT2870 loaded
wlan0: Ethernet address: 54:e6:fc:94:6e:0f1>
So we notice is detected as run0 device.
To configure we wil first create a wlan interface:
ifconfig wlan0 create wlandev run0
Then we can scan for Access Points:
ifconfig wlan0 up scan
If is already up we can just scan for an Access Point:
ifconfig wlan0 scan
Now, we will use WPA-PSK which is configured for our Access Point. In order to do that create a file called /etc/wpa_supplicant.conf with the following content:
network={
ssid="ourwifi_ssid"
psk="our_password"
}
Next we will add the following lines to /etc/rc.conf:
wlans_run0="wlan0"
ifconfig_wlan0="WPA DHCP"
Note: our password should be at least 8 characters long.
Now we will try to connect to the A.P.:
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
If you do not want to run wpa_supplicant command you could restart your network:
/etc/rc.d/netif
Still if you have a second network connection and you do not want to
lose that when restarting then use wpa_supplicant command instead of running netif script.
If the connection is succesfully, then you should see associated status for your wlan0 when you run ifconfig.
Refer to:
http://www.freebsdonline.com/content/view/936/506/
Wednesday, 31 October 2012
Friday, 27 January 2012
How to split a APE or FLAC lossless audio file into several wave files using CUE
When we download a lossless audio file from the Internet, what we really want to do is definitely not to listen the whole long file from the beginning to the end of dozen songs. Usually, we need to split the whole file into several pieces with each song into one piece. And then listen them in some kinds of Media player such as iTune and so on.
Actually, I have done the same operation several times, but I need to search for the whole Internet for the method each time. (Seems that my memory is bad enough). I decide to record the most common method here for my next usage. Maybe it also works for you, if you are interested in this simple instructions. I don't mean to make an complete survey of the methods that can be used to complete this conversion task. At least, the method I presented here works smoothly for me on my computer (Windows 7/Windows series).
Software should be available on your system:
1. foobar2000: http://www.foobar2000.org/
2. a foobar2000 extra component: http://www.foobar2000.org/components/view/foo_input_monkey
foobar2000 is the basic working platform and the monkey component is used to add the APE file format into the foobar2000 because the base installation of foobar2000 cannot recognize APE format. Without monkey component would cause the Unknown Format error messages pop out during the process of the conversion. If you are converting a FLAC file, you don't need to border with this component's installation.
Here is the steps:
1. drag the CUE file into the main view of the foobar2000 (the big blank space at the centre of the foobar2000 main view)
2. select all of the entries in the main view (it should be automatically chosen after import the CUE file), choose the convert option from the right click's menu.
3. choose the directory to place the converted files.
4. Here we go, conversion would be running soon.
Subscribe to:
Posts (Atom)