Posts

Showing posts from July, 2012

lynx Webmaster Tips

Hi Friends, Today we are going to play with lynx (Command line browser) in Linux.  Fun in the Terminal With Lynx Browser Get the text from a Web page as well as a list of links lynx -dump "http://www.example.com/" Get the source code from a Web page with Lynx lynx -source "http://www.example.com/" Get the response headers with Lynx lynx -dump -head "http://www.example.com/" The GNU/Linux command line gives you a lot of small tools that can be connected with each other by piping the output of one tool into another tool. For example, you might see a page with a lot of links on it that you want to examine more closely. You could open up a terminal and type something like the following: $ lynx -dump "http://www.example.com" | grep -o "http: . *" >f i le . txt That will give you a list of outgoing links on the web page at http://www.example.com, nicely printed to a file called f i le...

configure a system to use two different networks

Question:   How we can configure a system to use two different networks. Requirements: Red Hat Enterprise Linux or *nix OS A system with two Network Interface Cards (NICs) Two different networks Solution: Edit the file   /etc/sysconfig/network  and fill in the values of the variables: NETWORKING=yes HOSTNAME=myhost.example.com Note: If necessary, remove or comment out the variable  GATEWAY . Each NIC will have  it's  own gateway. Edit the file  /etc/sysconfig/network-scripts/ifcfg-eth0  and add the following variables with their corresponding values: DEVICE=eth0 BOOTPROTO=none ONBOOT=yes NM_CONTROLLED=no USERCTL=no IPADDR= NETMASK= GATEWAY= PEERDNS=yes DNS1= DNS2= Do the same for the file  /etc/sysconfig/network-scripts/ifcfg-eth1 : DEVICE=eth1 BOOTPROTO=none ONBOOT=yes NM_CONTROLLED=no USERCTL=no IPADDR= NETMASK= GATEWAY= PEERDNS=yes DNS1= DNS2= The values between '<' and '>' ...