Fedora install nmap



Linux classes, Linux Training, Computer Configuration GNU Linux Fedora using Linux Command

Fedora install nmap... Need to scan your network port using Fedora linux? Install nmap, the best free network scanner... the command example below show how to install nmap on Fedora Linux step by step...

 

Download nmap. Use wget to download the nmap package to your Fedora system, but you may need to go to the nmap official web site to check the latest version nmap vailable...

 

1.  Check nmap version, find the latest rpm version available... http://nmap.org/dist/ 2.  Execute wget command as show below to download nmap to your Fedora Linux

[root@fedora ~]# wget http://nmap.org/dist/nmap-5.00-1.i386.rpm

Install nmap Network Scanner

Install nmap

 

1.  Locate the download file, on this example nmap-5.00-1.i386.rpm, and double click on the nmap-5.00-1.i386.rpm to install.

 

open with nautilus, and double click

 

2.  and then click on the install button to start install nmap

 

install nmap

 

3.  Key in root password when ask...

 

root password

 

4.  If the installation successful, you can start running nmap scanner now, happy scanning...

 




check Fedora Linux version release version



Linux classes, Linux Training, Computer Configuration GNU Linux Fedora using Linux Command  To day we decide to upgrade one of our proxy server that use Fedora Linux.  To start this upgrade process we execute this simple command to check Fedora Linux version, or Fedora release version and then to upgrade to letters version available.

check version release

[fedora10@fedora ~]$ cat /etc/fedora-release
Fedora release 12 (Constantine)
[fedora10@fedora ~]$

from the command above, our Fedora Linux version, or Fedora release version are Fedora release 12 (Constantine) and now we are ready to upgrade the server.



fedora Install rootkit checker chkrootkit



Linux classes, Linux Training, Computer Configuration GNU Linux Fedora using Linux Command  The command example below how how to install rootkit checker chkrootkit on Fedora.  The example below tested on Fedora 12 system.  To install chkrootkit on Fedora you may need to have root permission, or use su command to execute command as show on example below.

Fedora Install rootkit checker chkrootkit:

1.  Open shell terminal.
2.  Su to root user using su - root command, and key in root password.
3.  Execute yum install chkrootkit as show on command example below.
Install rootkit checker
 [root@fedora log]# yum install chkrootkit
Loaded plugins: dellsysidplugin2, refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package chkrootkit.i686 0:0.49-2.fc12 set to be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch          Version               Repository        Size
================================================================================
Installing:
 chkrootkit          i686          0.49-2.fc12           updates          291 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 291 k
Installed size: 692 k
Is this ok [y/N]: y
Downloading Packages:
chkrootkit-0.49-2.fc12.i686.rpm                          | 291 kB     00:24   
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : chkrootkit-0.49-2.fc12.i686                              1/1

Installed:
  chkrootkit.i686 0:0.49-2.fc12                                               

Complete!
[root@fedora log]#


4.  If no error, now you sucessfuly install rootkit checker chkrootkit.  If you got yum error... you may need to clean yum cache by executing yum clean all command... good luck.



You need to be root to perform this command



Linux Training, Computer Configuration GNU Linux Fedora using Linux CommandHave you encounter this "You need to be root to perform this command." output when you try to execute Linux command.  Yes the output say it all, you need to be root... some command only can be execute by root user only... so you need to be root...
be root
[fedora10@fedora ~]$ yum update squid
Loaded plugins: dellsysidplugin2, refresh-packagekit
You need to be root to perform this command.
[fedora10@fedora ~]$


how to be root on Linux shell?
1. you just login as root user and... walaaaa you are root... or
2. use su command to change surrent user to root user as on example below
root

[fedora10@fedora ~]$ su -
Password:  <--key in root user password here
[root@fedora ~]#   <--indication that you are root and ready to execute command



Windows XP Linux dual boot configuration grub.conf



Computer Configuration GNU Linux Fedora using Linux Command

 

   The grub.conf configuration file below came from Windows XP and Linux dual boot configuration menu.  The grub.conf configuration file is where you can add or remove entry from GRUB boot manager, the grub.conf below show the grub menu to boot Windows XP and Linux Fedora 11.  The grub.conf, the configuration file for grub is locate under /boot/grub/ directory and the grub.conf configuration file can only be view and edit by root user only.  The example below show the Windows XP and Linux dual boot configuration grub.conf configuration file on Linux Fedora 11.

 

Windows XP and Linux dual boot configuration grub.conf.

[linux@fedora11 ~]$ su -c "cat /boot/grub/grub.conf"

Password:                <-- Type in root user password here and hit 'Enter' key...

# grub.conf generated by anaconda

#

# Note that you do not have to rerun grub after making changes to this file

# NOTICE:  You have a /boot partition.  This means that

#          all kernel and initrd paths are relative to /boot/, eg.

#          root (hd0,1)

#          kernel /vmlinuz-version ro root=/dev/mapper/vg_zebra-lv_root

#          initrd /initrd-version.img

#boot=/dev/sda

default=0                <-- GRUB menu default boot option

timeout=5                <-- GRUB menu display time in second

splashimage=(hd0,1)/grub/splash.xpm.gz

hiddenmenu

title Fedora (2.6.30.10-105.2.4.fc11.i686.PAE)

            root (hd0,1)

            kernel /vmlinuz-2.6.30.10-105.2.4.fc11.i686.PAE ro root=/dev/mapper/vg_zebra-lv_root rhgb quiet

            initrd /initrd-2.6.30.10-105.2.4.fc11.i686.PAE.img

title Fedora (2.6.29.4-167.fc11.i686.PAE)

            root (hd0,1)

            kernel /vmlinuz-2.6.29.4-167.fc11.i686.PAE ro root=/dev/mapper/vg_zebra-lv_root rhgb quiet

            initrd /initrd-2.6.29.4-167.fc11.i686.PAE.img

title Other                <-- Windows XP boot menu

            rootnoverify (hd0,0)

            chainloader +1

[linux@fedora11 ~]$

 




modprobe WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.



Computer Configuration GNU Linux Fedora using Linux Command

 

   Today try to execute modprobe ip_nat_ftp command on terminal to configure our new install Fedora 12, but the error message from the modprobe command say that "WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/."... stuck there for a while.. do some search on the net and come out to the solutions that the modprobe.conf no logger need on Fedora 12, so we need to rename the modprobe.conf configuration file in order to make modprobe error message "WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/." disappear.  The step by step below show how to rename the modprobe.conf as the solution for the error above.

 

Error message from modprobe command

[root@fedora12 ~]# modprobe ip_nat_ftp

WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.

[root@fedora12 ~]#

 

Solution for WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/. by rename the modprobe.conf file

[root@fedora12 ~]# mv /etc/modprobe.conf /etc/modprobe.conf.OLD

[root@fedora12 ~]#

 

Then execute the modeprobe command again

[root@fedora12 ~]# modprobe ip_nat_ftp

[root@fedora12 ~]#

 

You may require to reboot your fedora 12 system to apply the changes

 




Install lshw command on Linux Fedora 12



Computer Configuration GNU Linux Fedora using Linux Command

   When you try to execute lshw command, the output say something like " -bash: lshw: command not found "... This is because there is no lshw command on your Linux machine or you don't have the permission to execute the command... try su to root user, and try execute the command again... id it still give you " -bash: lshw: command not found " just install the lshw command as show on the example below... and please note that you may need root permission to install the lshw cammand or any other command on the system

 

Example of Linux lshw command error messages.

[root@jmtiproxy ~]# lshw
-bash: lshw: command not found
[root@jmtiproxy ~]#

 

Execute yum -y install lshw* command to start install lshw command.

Install lshw command on Fedora 12

[root@jmtiproxy ~]# yum -y install lshw*

Loaded plugins: presto, refresh-packagekit

fedora/metalink                                          |  11 kB     00:00

updates/metalink                                         | 6.4 kB     00:00

updates                                                  | 4.4 kB     00:04

updates/primary_db                                       | 3.7 MB     03:25

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package lshw.x86_64 0:B.02.14-3.fc12 set to be updated

---> Package lshw-gui.x86_64 0:B.02.14-3.fc12 set to be updated

--> Finished Dependency Resolution

 

Dependencies Resolved

 

================================================================================

 Package          Arch           Version                   Repository      Size

================================================================================

Installing:

 lshw             x86_64         B.02.14-3.fc12            fedora         208 k

 lshw-gui         x86_64         B.02.14-3.fc12            fedora         284 k

 

Transaction Summary

================================================================================

Install       2 Package(s)

Upgrade       0 Package(s)

 

Total download size: 492 k

Downloading Packages:

Setting up and reading Presto delta metadata

Processing delta metadata

Package(s) data still to download: 492 k

(1/2): lshw-B.02.14-3.fc12.x86_64.rpm                    | 208 kB     00:24

(2/2): lshw-gui-B.02.14-3.fc12.x86_64.rpm                | 284 kB     01:13

--------------------------------------------------------------------------------

Total                                           4.7 kB/s | 492 kB     01:44

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

Warning: RPMDB has been altered since the last yum transaction.

  Installing     : lshw-B.02.14-3.fc12.x86_64                               1/2

  Installing     : lshw-gui-B.02.14-3.fc12.x86_64                           2/2

 

Installed:

  lshw.x86_64 0:B.02.14-3.fc12         lshw-gui.x86_64 0:B.02.14-3.fc12

 

Complete!

[root@jmtiproxy ~]#