Live Chat!

setting wpa supplicant for wifi access

* * * ½   3 votos

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.
So [...]

Posted in Network, dhclient, wpa_supplicant | Hits: 13078 | 7 Comments »

Curl multiple URLs

          0 votos

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 http://linuxbyexample.co.nr http://lne.blogdns.com/lbe
When there is a long URL list in a file, use xargs instead:
xargs curl [...]

Posted in Network, curl, xargs | Hits: 9328 | No Comments »

get to know what web server a site used

          0 votos

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 www.google.com
Hehe, google uses GWS/2.1. What web server is that? Google Web Server, [...]

Posted in Network, curl | Hits: 6548 | 3 Comments »

configure multiple IP for a same network interface

          0 votos

October 15th, 2006 mysurface

To configure an IP for network interface eth0, do this
ifconfig eth0 192.168.1.88 netmask 255.255.255.0 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 IP for eth0, [...]

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

connect to internet if a gateway is known

* * * * * 3 votos

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 to connect. [...]

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

Reading and Sending Mail

* * * * ½ 2 votos

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 sample mail” | mail -s “Sample” [...]

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

wget files based on the links in a file.

* * * * * 1 votos

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 post is more [...]

Posted in Network, wget | Hits: 5265 | No Comments »

xargs use stardard output as parameter for another command

          0 votos

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 to [...]

Posted in Text Manipulation, cat, pipeline, wget, xargs | Hits: 13776 | 9 Comments »

I am watching you

* * * * * 1 votos

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 change the refresh rate [...]

Posted in Network, tail, watch | Hits: 6166 | 1 Comment »

Network traffic show - trafshow

          0 votos

August 10th, 2006 mysurface

I discover this tools when I play around in a Freebsd vmware image. You may not find it at your yum repo and also apt-get repo. But installation is easy, dependencies are less too. What you need are ncursors and libpcap, use yum search or apt-cache search to query and download the dependencies and download [...]

Posted in Network, trafshow | Hits: 6191 | 6 Comments »