Centos Static IP

Thanks to https://gist.github.com/fernandoaleman/2172388 ## Configure eth0 # # vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=”eth0″ NM_CONTROLLED=”yes” ONBOOT=yes HWADDR=A4:BA:DB:37:F1:04 TYPE=Ethernet BOOTPROTO=static NAME=”System eth0″ UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 IPADDR= NETMASK= ## Configure Default Gateway # # vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=centos6 GATEWAY= ## Restart Network Interface # /etc/init.d/network restart ## Configure DNS Server # # vi /etc/resolv.conf nameserver # Replace with your nameserver ip nameserver […]

Debian / Ubuntu Linux: Install nmap Software For Scanning Network

Thanks to http://www.cyberciti.biz/faq/install-nmap-debian-ubuntu-server-desktop-system/ How do I install nmap command under Debian or Ubuntu Linux based system for testing security of my own network? Nmap is a command line tool for network exploration or security auditing. Tutorial details Difficulty Easy (rss) Root privileges Yes Requirements None Estimated completion time N/A It supports ping scanning (determine which hosts are […]

Logging Whole Batch File Execution

Thanks to http://makemsi-manual.dennisbareis.com/logging_whole_batch_file_execution.htm This is a simple approach which can can log the complete execution of a batch file. The batch file can use the “echo” command (I’d recommend outputting a prefix of “[%date% %time%]”) to display progress information. Some care and testing is required if long running programs are spawned (to ensure you can access […]

Move or migrate user accounts from old Linux server to a new Linux server

Thanks to http://www.cyberciti.biz/faq/howto-move-migrate-user-accounts-old-to-new-server/ Q. How do I Move or migrate user accounts to from old Linux server a new Cent OS Linux server including mails? This new system a fresh installation. A. You can migrate users from old Linux server to new Linux sever with standard commands such as tar, awk, scp and others. This is also […]