Archive for the ‘NAD710A’ Category

Linux Machines as Routers – Network Scenario

November 20, 2008

The scenario has 3 desktops and 2 routers, remember that all of then are Linux computers.

  • Topology


  • Configurations

Desktop A
route add -net gw
route add -net netmask gw

Desktop B

route add -net netmask gw
route add -net netmas, gw

Desktop C

route add -net netmask gw
route add -net gw

Router ABC

echo “1” > /proc/sys/net/ipv4/ip_forward
route add -net gw


echo “1” > /proc/sys/net/ipv4/ip_forward
route add -net netmask gw

Samba How To, Using “system-config-samba” – Fedora 9

November 9, 2008

Required packages:

  • samba-3.2.4-0.21.fc9.i386
  • system-config-samba-1.2.63-1.fc9.noarch
  • samba-common-3.2.4-0.21.fc9.i386
  • samba-client-3.2.4-0.21.fc9.i386

Installing the required packages using yum:

#yum -y install samba system-config-samba samba-common samba-clients

Then execute system-config-samba to set the configurations for the samba server. The samba configuration file is /etc/samba/smb.conf






Your samba configuration file (/etc/samba/smb.conf) is going to be something like this:

workgroup = milton
server string = Milton’s Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
cups options = raw
username map = /etc/samba/smbusers

comment = Home Directories
browseable = no
writable = yes

comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes

path = /tmp
writeable = yes
valid users = milton

After a user login using a windows machine, It will have access to two folders, their home directory and the tmp folder.

If you have some problems in the server, just go to the folder /var/log/samba and check the log files:

  • log.nmbd
  • log.smbd

Actually I don’t like to use graphical tools to set up my servers, but this tools can really save you some time.


Func RPM Verification Module – Release 0.1

November 3, 2008

Official Project Page:

Proposal of project:

Create a Func module that allows the system administrator to audit the integrity of all the rpms installed in all systems.

Verifying the Integrity of the Current System

The integrity of the rpms of the local system can be verified by the command:
# rpm –verify -a

–verify – verify the package
-a – option for all packages

A presentation of the purposed project is available:



Email to Func Mail List:

I sent a email to the Func Project mail list to telling about my intention of making the verification module

Hi my name is Milton Paiva, I am student of the Post-Graduate (Graduate
Certificate) Course - Linux and Unix System Administration from the
Seneca College and I just beginning to work in module for Func.

I intend to make a module able to execute the command "rpm --verify -a"
 to verify the integrity of all the packages on a given system.

I saw the module rpm inventory and I am thinking in make this module to
work in the same way as inventory, but instead of get all the rpms
installed in the system, I will verify the integrity of all the rpms
already installed in the system.

Func-list mailing list





NAD710 – LAB 1

September 6, 2008


Based on the information collected, answer the following questions:

1) What is the kernel version of Linux on matrix?

2) What is the IP address and MAC address of the Linux machine on matrix?


MAC: 00:0E:0C:7F:84:79

3) What is the network mask on matrix?

4) What are the network addresses of the Linux machine? (there should be three networks)

device “eth0” – host – broadcast
device “lo” – loopback

5) What is the IP address of the gateway for the Linux machine on matrix?

6) What is the command to display all the currently loaded kernel modules?

$ lsmod

7) Where is the file for the kernel module called “e100”?


8 ) What is the MAC address for the network device that has the IP address


9) How do you display all the physically network addresses known by a Linux machine?

$ arp -a

10) What is the MAC address of the network device on the Linux machine on matrix ?