Tuesday, November 21, 2006
Linux.com | Easy video creation using only FOSS software
Creating videos on Linux is easy and free!
Linux.com | Easy video creation using only FOSS software
Friday, November 03, 2006
Network Configuration Using the Command Line
Introduction Each Linux distribution has its own tool or utility for configuring an ethernet card and network settings. However, learning how to do this using only an xterm session will allow you to configure the network on almost any Linux box.
Network Configuration for a Static IP Address Using the Command Line
Load the proper module(driver) for your ethernet card:
The list of compiled ethernet card drivers that come with your system are usually located under/lib/modules/2.2.14-5.0/net
where2.2.14-5.0
is your kernel version. The source code for these drivers are usually located at/usr/src/linux-2.2.14/drivers/net
again where 2.2.14 is the kernel version you are running. Sometimes the comments at the beginning of the source code file will tell you which ethernet cards the driver is for. Some distributions will find it during installation and automatically load the driver for you. To see if this is the case, view the file/etc/modules.conf
or/etc/conf.modules
depending on your distribution. If you see a line that looks similar toalias eth0 ne2k-pci
, then the third item on the line is the module being used for your ethernet card. In this example, ne2k-pci, the NE2000 driver is being used. To verify the module has been loaded successfully, issue the command/sbin/lsmod
. This will display all modules successfully loaded in the system. Once your module is loaded, you are ready to move to the next step.
If the module is not loaded, but you know what module your network card uses, issue the following steps as root:Make sure the network is stopped by issuing
/etc/rc.d/init.d/network stop
.Manually load the module by issuing
/sbin/insmod ne2k-pci
replacing ne2k-pci with whatever your module is. This module must be present in the/lib/modules/2.2.14-5.0/net
directory forlsmod
to find it.Verify it loaded successfully by issuing
/sbin/lsmod
.Activate the eth0 device by issuing
/etc/rc.d/init.d/network start
Configure your network settings with steps 2-6. You must still be root to perform these steps.
Set the IP address and network mask:
/sbin/ifconfig -a eth0 192.168.1.5 netmask 255.255.255.0
This example gives the machine the IP address 192.168.1.5, but you can use any combination of IP/netmask that will work with your network.Verify the settings with
/sbin/ifconfig eth0
.Add the default gatway:
/sbin/route add default gw 192.168.1.254
replacing 192.168.1.254 with your gateway.Verify the gateway setting:
/sbin/route
. The line beginning withdefault
should have your gateway under thegateway
column.Alternately, you can edit the file
/etc/sysconfig/network-scripts/ifcfg-eth0
to look like (replace with your network numbers)DEVICE=eth0 USERCTL=no ONBOOT=yes BOOTPROTO=none BROADCAST=192.168.1.255 NETWORK=192.168.1.0 NETMASK=255.255.255.0 IPADDR=192.168.1.5
and the file
/etc/sysconfig/network
to look like (replace with your network numbers and hostname)NETWORKING=yes HOSTNAME=name.host.net FORWARD_IPV4=yes GATEWAYDEV= GATEWAY=192.168.1.254
Ping the gateway and a few other computers on the network to verify your settings are correct.
Network Configuration for DHCP Using the Command Line
Load the proper module(driver) for your ethernet card:
The list of compiled ethernet card drivers that come with your system are usually located under/lib/modules/2.2.14-5.0/net
where2.2.14-5.0
is your kernel version. The source code for these drivers are usually located at/usr/src/linux-2.2.14/drivers/net
again where 2.2.14 is the kernel version you are running. Sometimes the comments at the beginning of the source code file will tell you which ethernet cards the driver is for. Some distributions will find it during installation and automatically load the driver for you. To see if this is the case, view the file/etc/modules.conf
or/etc/conf.modules
depending on your distribution. If you see a line that looks similar toalias eth0 ne2k-pci
, then the third item on the line is the module being used for your ethernet card. In this example, ne2k-pci, the NE2000 driver is being used. To verify the module has been loaded successfully, issue the command/sbin/lsmod
. This will display all modules successfully loaded in the system. Once your module is loaded, you are ready to move to the next step.
If the module is not loaded, but you know what module your network card uses, issue the following steps as root:Make sure the network is stopped by issuing
/etc/rc.d/init.d/network stop
.Manually load the module by issuing
/sbin/insmod ne2k-pci
replacing ne2k-pci with whatever your module is. This module must be present in the/lib/modules/2.2.14-5.0/net
directory forlsmod
to find it.Verify it loaded successfully by issuing
/sbin/lsmod
.Activate the eth0 device by issuing
/etc/rc.d/init.d/network start
Configure your network settings with steps 2-4. You must still be root to perform these steps.
Edit/create the file
/etc/sysconfig/network-scripts/ifcfg-eth0
to use DHCP.
Sampleifcfg-eth0
file:DEVICE=eth0 USERCTL=no ONBOOT=yes BOOTPROTO=dhcp BROADCAST= NETWORK= NETMASK= IPADDR=
Replace
eth0
above witheth1
if it is the second network card in your system.Edit/create the file
/etc/sysconfig/network
to use DHCP.NETWORKING=yes HOSTNAME= FORWARD_IPV4=yes GATEWAYDEV= GATEWAY=
Restart the network to probe the DHCP server for your network settings with the command
/etc/rc.d/init.d/network restart
.Verify your network settings with the command
/sbin/ifconfig
to make sure you have received an IP address from the DHCP server.Ping the gateway and a few other computers on the network to verify your connection.
Sunday, October 22, 2006
Linuxtopia - On-line Linux and Open Source Technology Books and How To Guides
Linuxtopia is an extensive online resource for anyone learning or deploying enterprise level open source technology. Whether you are a C, C++, Java or Web developer, a system or database administrator, hardware engineer or a security specialist you will find Linuxtopia to be an indepensable source of technical information.
Read more at www.linuxtopia.org/inde...
Tuesday, October 17, 2006
LSB Developer Network: An MSDN for Linux
I really think that the Linux Standards Base is key to mainstream Linux. I'm glad it's evolving and growing. Watch out Bill Gates! Your honey moon will be over soon.
Read more at www.eweek.com/article2/...
Wednesday, October 11, 2006
What's the best Linux for beginners?
Read what he has to say here ......
What's the best Linux for beginners?
Monday, October 09, 2006
Linux.com | Point, click, root: System exploitation with open tools
IT managers face a problem determining what products and policies are best to properly secure their network. The problem with many security products is that it is hard to validate their claims. Penetration testing is a process for testing the security of networks by imitating an attacker. This process typically involves gathering information through Internet searches and other open sources, scanning and mapping the targeted network with tools like Nmap, determining vulnerabilities on targeted computers, and exploiting those computers. Conducting a successful penetration test involves a great deal of knowledge and a wide variety of software, including some of the following open source tools.
Read more at www.linux.com/article.p...
Saturday, October 07, 2006
Why Linux will dominate the future of servers
George Weiss, Gartner's open-source analyst, recently said that Microsoft Windows will not suffer irreparable damage on the server side at the hands of Linux over the next five years. He's right. Microsoft will fall flat on its face all by itself, and Linux will pick up afterwards.
Read more at www.linux-watch.com/new...