Tag Archives: Linux
How To: Set Host, IP & Domain – Linux Redhat
In Linux redhat server configuration IP address, hostname and domain name play an important role to connect with other client / server. If we made any mistakes in IP address, Hostname and domainname , two systems will not communicate each other.
Hostname, Domainname should be same and IP address shouls be in same network.
Eg:
Hostname: Server1.example.com
Doamin name: example.com
IP Address: 192.168.1.110
How To view IP address, Hostname & Domain name
For ip address: #ifconfig
For hostname: #hostname
For doaminname: #domainname
How To Set
How To: Redhat Package Manager Tutorial
RPM stands for Redhat Package Manager, it was introduced in 1997 especially for LINUX Redhat. RPM ends with file extension .rpm
#rpm -
Options
-i -->install
-v -->verboss
-h -->hash
-u -->upgrade
-e -->remove
INSTALL
To install netconfig rpm file
#rpm -ivh netconfig* --aid
#rpm -ivh netconfig* --aid --force
UPGRADE
#rpm -uvh
To upgrade netconfig rpm package
#rpm -uvh netconfig*
Querying
#rpm -qa
Here
q-query
a-all
How To Configure NFS(Network File System) Server in LINUX Redhat
Network File System Server is used to share the files on network. One of the major advantage in NFS server is ,it is centralized. It will reduce the work load to server. When compared to other file sharing methods NFS Server is insecure.
Service Name: nfs
Open the terminal and install nfs package
#yum install nfs*
Go to #vim /etc/exports
Type the following line. Here /var/ftp/pub is the directory to be shared on network.
/var/ftp/pub *(rw,sync)
To share the directory for particular IP address.
/var/ftp/pub 192.168.1
Block/Restrict SSH Login with TCP Wrapper
Generally all users in LINUX can able to login to server through SSH. Here we are going to see how to block/restrict SSH login with TCP Wrapper. TCP Wrapper is used to block FTP, SSH, TELNET.
To deny/restrict/block the IP address 192.168.1.10 for SSH remote login.
#vim /etc/hosts.deny
sshd: 192.168.1.10
To deny/restrict/block the IP address Except 192.168.1.10 for SSH remote login.
#vim /etc/hosts.deny
sshd: ALL EXCEPT 192.168.1.10
To deny/restrict/block the IP address on network 192.168.1 for SSH remote login.
Here 24 & 255
SSH(Secure SHell) in REDHAT
Secure Shell is used to remotely login into other system with secure by means of username and password
Service :sshd
#ssh IP ADDRESS
Eg:
#ssh 192.168.1.10
password:******
Service to be restarted for secure shell is
#service sshd restart
Configuration file
#chkconfig sshd on
Configuring Server to allow particular user only to remote login
#vim /etc/ssh/ss-config
Edit in line 36
Authentication->Allowusers user1
How To view files copying rate in terminal mode(Linux REDHAT)
In REDHAT, WATCH command is used to view the file transferring rate.
#watch -n 1 du -sh $destination directory$
If files are copying from /mnt to /var/ftp/pub, then command to watch the file copying rate is
#watch -n 1 du -sh /var/ftp/pub
watch -- To watch file transfer
du --disk usage
Other search terms:
How to watch file transfer rate in LINUX/REDHAT
Linux file transfer rate command
Command to watch Linux file transfer/copying rate.








