To open a new gvim window from an existing gvim window use
:silent !gvim
If there are any errors in the original window, the screen can be refreshed by
:redraw!
or by simply pressing ctrl-l.
For more help, see :!cmd, :silent in the vim help pages.
This tip was tested in vim 7.0 on a machine running Debian Etch.
Malayamarutham is a mellifluous raaga in carnatic music which will make one soft at heart. In telugu, malaya maarutham is a cool evening breeze which invigorates mind, body & heart.
Feedback, suggestions, criticisms, typos, mistakes, errors etc., (no matter how small you think they are) on the articles of this blog are very welcome. They can be directed to kamaraju at gmail dot com.
Search This Blog
Saturday, October 25, 2008
Saturday, March 22, 2008
accessing wpa wireless networks
This article explains accessing a wireless connection with WPA TKIP encryption using a Dell Inspiron E1505 laptop running Debian Etch. The final network connection is going to look like
ISP <---> wrt54g router <---> Dell Inspiron E1505 laptop
where ISP is the Internet Service Provider such as roadrunner, comcast etc., (and in my case "clarity connect").
The main steps involved are
The information about the wireless card can be found by using
The SSID stands for "Service Set Identifier". It is basically the name of the wireless network. In this example, it is set to "Raju_and_Satish". Change the SSID according to your network.
A list of available networks and their SSIDs can be obtained by using
As can be seen from snapshot 2, the router is configured to use TKIP as its WPA encryption algorithm.
The "WPA Shared Key" (snapshot 2) is the place holder for setting a password to the network. Since the password is usually a bunch of ASCII characters, it is also referred as a "passphrase". In this example, the password for the network is "strongpassword". Change it according to your network.
Install the necessary software by using the apt-get command. I have installed
The next step is to generate an encrypted string known as the pre-shared key (PSK) from the ASCII password and the SSID. This can be achieved using the wpa_passphrase command.
After this, add the following stanza to the /etc/network/interfaces.
Replace the wpa-ssid, wpa-psk with the values corresponding to your network configuration.
Then restart the network connections by doing
Now the network should be up and running. Its status can be tested by using host, ping commands.
ISP <---> wrt54g router <---> Dell Inspiron E1505 laptop
where ISP is the Internet Service Provider such as roadrunner, comcast etc., (and in my case "clarity connect").
The main steps involved are
- configure the router
- Install the necessary software packages on the Debian machine
- encrypt the password (if necessary)
- add a network stanza in /etc/network/interfaces
- restart the network
The information about the wireless card can be found by using
sudo lspci --vvIn this case, we have
0b:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02)The router is configured as shown below.
The SSID stands for "Service Set Identifier". It is basically the name of the wireless network. In this example, it is set to "Raju_and_Satish". Change the SSID according to your network.
A list of available networks and their SSIDs can be obtained by using
iwlist scan
As can be seen from snapshot 2, the router is configured to use TKIP as its WPA encryption algorithm.
The "WPA Shared Key" (snapshot 2) is the place holder for setting a password to the network. Since the password is usually a bunch of ASCII characters, it is also referred as a "passphrase". In this example, the password for the network is "strongpassword". Change it according to your network.
Install the necessary software by using the apt-get command. I have installed
- firmware-ipw3945
- ipw3945-modules-2.6-686
- ipw3945-modules-2.6.18-6-686
- ipw3945d
- wpasupplicant
The next step is to generate an encrypted string known as the pre-shared key (PSK) from the ASCII password and the SSID. This can be achieved using the wpa_passphrase command.
$wpa_passphrase Raju_and_Satish strongpassword
network={
ssid="Raju_and_Satish"
#psk="strongpassword"
psk=604d8887badd597a8647f65b98c3c504ad29ba352211033adfed01cd8c3034a0
}
After this, add the following stanza to the /etc/network/interfaces.
# wireless setup
auto eth2
iface eth2 inet dhcp
wpa-conf managed
wpa-ssid Raju_and_Satish
wpa-key-mgmt WPA-PSK
wpa-psk 604d8887badd597a8647f65b98c3c504ad29ba352211033adfed01cd8c3034a0
Replace the wpa-ssid, wpa-psk with the values corresponding to your network configuration.
Then restart the network connections by doing
$sudo /etc/init.d/networking restart
Now the network should be up and running. Its status can be tested by using host, ping commands.
$host www.google.com
www.google.com CNAME www.l.google.com
www.l.google.com A 216.239.51.104
www.l.google.com A 216.239.51.99
$ping -c3 www.google.com
PING www.l.google.com (216.239.51.99) 56(84) bytes of data.
64 bytes from 216.239.51.99: icmp_seq=1 ttl=242 time=40.7 ms
64 bytes from 216.239.51.99: icmp_seq=2 ttl=242 time=40.9 ms
64 bytes from 216.239.51.99: icmp_seq=3 ttl=242 time=39.6 ms
--- www.l.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 10124ms
rtt min/avg/max/mdev = 39.616/40.437/40.985/0.635 ms
Labels:
debian,
debian howtos,
interfaces,
wireless,
wpa
Tuesday, February 26, 2008
weather in ithaca
To find the weather in Ithaca using a Linux box, add the following lines to the ~/.weatherrc . Use /etc/weatherrc for site-wide configuration.
Tested on Debian Etch using
$cat /home/rajulocal/.weatherrcAfter that you can get the current weather conditions and forecast by using the weather command.
[default]
City = ITHACA
Forecast = True
ID = KITH
St = NY
$weatherWeather uses METAR data that it fetches from the the National Oceanic and Atmospheric Administration and forecasts from the National Weather Service. The list of weather stations and their codes can be obtained from http://www.rap.ucar.edu/weather/surface/stations.txt .
Current conditions at Ithaca Tompkins Regional Airport (KITH)
Last updated Feb 26, 2008 - 05:56 PM EST / 2008.02.26 2256 UTC
Wind: from the WNW (300 degrees) at 3 MPH (3 KT)
Sky conditions: obscured
Weather: light snow; mist
Precipitation last hour: A trace
Temperature: 31.1 F (-0.5 C)
Relative Humidity: 95%
City Forecast for Ithaca, NY
Issued Tuesday afternoon - Feb 26, 2008
Tuesday night... Low 21, 100% chance of precipitation.
Wednesday... Snow showers, high 22, 80% chance of precipitation.
Wednesday night... Low 9, 40% chance of precipitation.
Thursday... Very cold, high 19.
Thursday night... Low 9.
Tested on Debian Etch using
$weather --versionRelated links :-
weather 1.2
- http://debaday.debian.net/2007/10/04/weather-check-weather-conditions-and-forecasts-on-the-command-line/
- http://www.rap.ucar.edu/weather/surface/stations.txt
- http://en.wikipedia.org/wiki/METAR
Labels:
debian tidbits,
ithaca,
weather
Subscribe to:
Posts (Atom)