accesses

How to reboot / halt system via CLI

Here are brief alternative and not too bloated ways on doing reboot and shutdown with your linux system. Make sure you save all your opened documents before executing any of these. It is also suggested to close any opened browsers and ssh connections you might have before doing these command. 1. via Reboot . Reboots [...]

50 quick linux command tips part 3

1. How to know which ports are listening from your IP address? # nmap -sT -O your-ip-address 2. How to grep an exact match? # grep -w textfile.txt 3. How to reverse grep matches? # grep -v textfile.txt # 4. How to know which service name is what port? Assuming port 443 # cat testfile.txt [...]

How to schedule and run script on specified time and date – Crontab

Linux systems are capable of running scheduled jobs. Server administrative task are done on regular basis even while sysads are away or during sleeping hours. This keeps a fully working production server do unattended jobs on periodical basis. cron is a linux utility that schedules and automates jobs. This blog entry covers how to do [...]

How to restrict su command to superuser only

Restricting su command to root superuser only is really simple. Here are the quick steps. First, determining the path location of the binary is required. # which su returns ~~~~~~~~~~~~~~~ /bin/su ~~~~~~~~~~~~~~~ Remember the current file mode bits and restrictions for su binary # ls -la /bin/su ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -rwxr-xr-x 1 root root 24284 Sep 28 [...]

How to block yahoo chat messenger

A very old tip and trick on blocking yahoo chat messenger from connecting to internet, as per request. Considering an approved management policies, there are several ways to block yahoo chat messenger from connecting to internet coming from inside your network, depending on what equipment and boxes you have on ground. If you happen to [...]

How to take Linux backups powered by Tar

This document entry however covers a foundation approach and mostly used tar arguments on backing up data using the linux command tar. ============================================= Data backup samples using Tar Linux command ============================================= A very simple usage of tar # tar cvf backup.tar * Legend: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -c create a new tar file -v verbose mode -f select [...]

How to take Linux backups powered by Rsync

RSync backups data and does it very clean and well. Rsync only transfers those data that have been modified and changed so that the destination host has an exact replica from the source host. Rysnc is a command line backup tool that handles data transfers in an effective and secure manner like any other known [...]

How to Install and Configure MRTG

The Multi Router Traffic Grapher (MRTG) is a tool to monitor the traffic load on network-links. MRTG generates HTML pages containing PNG images which provide a LIVE visual representation of this traffic. MRTG is basically used for generating graphs to a device, network host, IP-based appliances for monitoring usage, live data and statistics usage. This [...]

How to do MAC address packet filtering using IPTables

Media Access Control address (MAC address) or Ethernet Hardware Address (EHA) or hardware address or adapter address is a quasi-unique identifier attached to most network adapters (NICs). It is a number that acts like a name for a particular network adapter, so, for example, the network cards (or built-in network adapters) in two different computers [...]

How to Install and Configure a Caching DNS server

BIND DNS are nameservers responsible basically for resolving domain names or hostnames into their equivalent IP addresses. Websites or domain names have their own equivalent IP addresses that are usually managed and provided by the same website firms. If somebody is browsing a website from his browser, this website is being resolved, looked up and [...]

How to use Nmap for Port Scanning in Linux

How to know which port is open from unmanaged remote host? How to determine running application and services from remote host? How to do basic port scanning against a host? How to confirm ports opened from remote host? Here are a several ways to do port scanning and know which port/services are currently opened from [...]

How to setup and install TFTP server

The Trivial File Transfer Protocol (TFTP) is normally used only for booting diskless workstations. The tftp-server package provides the server for TFTP, which allows users to transfer files to and from a remote machine. TFTP provides very little security, and should not be enabled unless it is expressly needed. The TFTP server is run from [...]

Nagios Monitoring – How to install and generic setup

A lot of powerful monitoring tools are freely available from linux world. One of them is Nagios. Nagios is a fairly complex linux monitoring tool that determines current status of target host or equipment. Two good things about Nagios is that Nagios supports web-enabled administration page and user view-only mode account. The other one is [...]

10 Tips for Wireless Home Network Security

1. Change Default Administrator Passwords (and Usernames) At the core of most Wi-Fi home networks is an access point or router. To set up these pieces of equipment, manufacturers provide Web pages that allow owners to enter their network address and account information. These Web tools are protected with a login screen (username and password) [...]

How To Install PHPMyAdmin on Fedora 9

phpMyAdmin is an opensource tool written in PHP intended to handle the administration of MySQL database and table over the web. Currently, phpmyadmin can create and drop databases, create/drop/alter tables, delete/edit/add fields, execute any SQL statement, manage keys on fields, manage privileges, export data into various formats and is being distributed in more than 50 [...]