gnome network manager savior for wireless user

November 13th, 2006 mysurface

To connect to wifi Acess Point which uses WPA encryption, you can uses wpa_supplicant. But what if you have difficulty to make it right? getting panic? You need some GUI to help out? Don’t worry, gnome network manager gives you a good help. Check with your distro, It should be very easy installation. For Debian, [...]

Posted in Network, nm-applet, wpa_supplicant | Hits: 32977 | 6 Comments »

setting wpa supplicant for wifi access

November 11th, 2006 mysurface

Most of the people nowadays don’t use WEP for wifi encryption, most of the wireless router support wpa tkip algorithm for encryption. I read a page which people can actually uses 10 minutes to crack WEP encrytion, which amazing and in the sense that you do not want to use WEP for your WLAN too. [...]

Posted in dhclient, Network, wpa_supplicant | Hits: 46410 | 8 Comments »

Curl multiple URLs

October 23rd, 2006 toydi

A previous post talked about the usage of curl to request a single URL and display its response header fields. It’s good to know that curl also accepts multiple URLs as arguments. To display response header information of several URLs: curl -I When there is a long URL list in a file, use [...]

Posted in curl, Network, xargs | Hits: 43180 | 1 Comment »

get to know what web server a site used

October 20th, 2006 mysurface

You can get the information of what web server a site used by refers to HTTP Header of a site, usually it is invisible from user. To look at the header of google web server, simply do this at your command line. curl -I Hehe, google uses GWS/2.1. What web server is that? Google [...]

Posted in curl, Network | Hits: 27032 | 6 Comments »

configure multiple IP for a same network interface

October 15th, 2006 mysurface

To configure an IP for network interface eth0, do this ifconfig eth0 netmask up How about I need another one? For linux, you can do IP alias by given an additional name for network interface by adding : and a number start from 1, such as eth0:1 eth0:2 eth0:3 Therefore configure a second [...]

Posted in ifconfig, Network, ping | Hits: 31206 | No Comments »

connect to internet if a gateway is known

October 15th, 2006 mysurface

To check for your IP, you can type ifconfig It gives very detail information regarding your network interfaces. For linux, network interface is always eth0, eth1 etc, but for BSD, network interface can be any name. If in the case you doesn’t have any IP for your network interface, and you are given a gateway [...]

Posted in ifconfig, Network, route | Hits: 25855 | No Comments »

Reading and Sending Mail

October 7th, 2006 liewsheng

In UNIX-like system, mail is the common tool use to sending mail and reading mail. It is simple and easy to use. To read mail for your account just type: mail or if you want read in mail in specific dir mail -f /var/mail/user to send a mail: mail user < /tmp/file.log echo “This is [...]

Posted in mail, mutt, uuencode | Hits: 34355 | 1 Comment »

wget files based on the links in a file.

October 3rd, 2006 mysurface

Let say I store all my links into a file call url2dl.txt and separate each link by newline. I can do this wget -i url2dl.txt This is a short example, actually I think of put it in as comment of post xargs use stardard output as parameter for another command But i think a new [...]

Posted in Network, wget | Hits: 35347 | 1 Comment »

xargs use stardard output as parameter for another command

October 2nd, 2006 mysurface

xargs is a command line of findutils package. It is not so common for new user, but it is a very useful tools, let me pick an example to show the usage. Bare in mind, xargs is a kind of combo command use together with other command through pipeline. I have a list of links [...]

Posted in cat, pipeline, Text Manipulation, wget, xargs | Hits: 57734 | 10 Comments »

I am watching you

August 15th, 2006 mysurface

To repeatly watching a certain file, such as log files, you can do that: watch tail /var/log/messages By default, this will be refresh every 2 seconds, and tail with list last 10 entries by default too. If you want to have specific refresh rate, you can do so: watch -n 5 tail /var/log/messages This will [...]

Posted in Network, tail, watch | Hits: 36437 | 2 Comments »