Category Archives: Server configuration

this category in include Linux server configuration

How to Configure samba Server in redhat Linux

hello guys today we will learn how to configure samba server in RedHat Linux Server. samba server is a very important in Linux server. we cam share any data one machine to another machine through samba Server. before samba server configuration we need to install some important package. if we want that our Linux machine in each  Package install  very easy so we need YUM Server Configuration i have already write tutorial on yum Server. If you want to know that how to configure yum Server so click on my link and look

samba server

so here i agree your system in have yum server then we will continue

Step 1 = we will install samba Server package through this Commands 

[root@localhost ~]# yum install samba* -y 

Step 2 then we will Create directory for samba server 

[root@localhost ~]# mkdir ishu 

Step 3 now we will Create New User For Samba Interface 

[root@localhost ~]# useradd ishu
[root@localhost ~]# passwd ishu
Changing password for user ishu.
New UNIX password:ishu
BAD PASSWORD: it is too short
Retype new UNIX password:ishu 
passwd: all authentication tokens updated successfully.

Step 5 now we will provide full Permission for user through below Commands

[root@localhost ~]# chmod 7 ishu

Step 5 then we will gave samba user password through this commands

[root@localhost ~]# smbpasswd -a ishu
New SMB password:ishu
Retype new SMB password:ishu 
Added user ishu.

Step 6 Then we will on samba Serves

[root@localhost ~]# service smb restart
Shutting down SMB services:                                [FAILED]
Shutting down NMB services:                                [FAILED]
Starting SMB services:                                     [  OK  ]
Starting NMB services:

Step 7 now we will  off our fire wall and selinux  below Commands

[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0

Step 8 now we will look our linux machine ip address through this commands

[root@localhost ~]# ifconfig
eth2      Link encap:Ethernet  HWaddr 08:00:27:35:57:7A
          inet addr:192.168.56.103  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe35:577a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:392911 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30439 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:552717032 (527.1 MiB)  TX bytes:3537248 (3.3 MiB)
          Base address:0xd248 Memory:f0840000-f0860000

Step 9 then we will go in windows system  and open Run windows and type jut linux machine ip address ip address

Step 10 Then we will enter samba user name and password 

if you have any problem in this process so comments here i will solve your problem

Thank you

my Vishnu Sharma

Advertisements

how to create virtual IP Address through real IP address and host multiple Website

hello guys today we will learn how to create virtual IP Address through real IP address and host multiple website on singles system. It’s a very simple process in RedHat Linux Server. Before we will install some necessary package for hosting Virtual IP address. if we want that   all type package install easily in your linux machine  so we have to need YUM server we can configure YUM Server very easily you just lick on my link and look  how to configure YUM server. After YUM server configure you just follow my simple Step

Step 1  here i agree that you have YUM server in our Linux machine then we will continue

[root@localhost ~]# ifconfig
eth2      Link encap:Ethernet  HWaddr 08:00:27:35:57:7A
          inet addr:192.168.56.103  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe35:577a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1933 errors:0 dropped:0 overruns:0 frame:0
          TX packets:632 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:183768 (179.4 KiB)  TX bytes:107123 (104.6 KiB)
          Base address:0xd248 Memory:f0840000-f0860000

 Step2  then we will virtual IP address Here kind this

[root@localhost ~]# ifconfig eth1:0 192.168.56.108

Step3  then we will install php package through yum server

[root@localhost ~]# yum install php* -y

Step4 then we will going following directory /var/www/html/ and here create any folder for our website hosting for example here i create two folder for my two web pages one is php folder two is html folder. And both folder in we will create html file 

[root@localhost ~]# cd /var/www/html/
[root@localhost html]# mk dir php
[root@localhost html]# mkdir html

Step5 here php and html folder in we will create any html files or our past our website content

[root@localhost php]# vim php.php
<?echo
echo "hello this is php demo ";
echo "hello this is php website host demo";
?>
~
~
~
:wq
[root@localhost ~]# cd /var/www/html/html
[root@localhost html]# vim html.html
<html>
<head>this is demo</head>
<title>Demo</title>
<body>
<h1> this is dual webhosting deno in linux machine </h1>
<h2>this dual  webhosting Demo with Virtual IP Address</h2>
</body>
</html>
~
~
~
:wq

Step5 then we will go Apache Configuration File and do something  below configuration

#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
<VirtualHost 192.168.56.103:80>
DocumentRoot /var/www/html/php/
DirectoryIndex php.php
</VirtualHost>
<VirtualHost 192.168.56.108:80>
DocumentRoot /var/www/html/html/
DirectoryIndex html.html
</virtualHost>
"/etc/httpd/conf/httpd.conf" 1000L, 33934C

here we will configure document root  Directory index with real and virtual ip Address

Step 6 then we will restart serves below commands 

[root@localhost ~]# service httpd restart

Step 7 now we will off our Linux machine firewall and selinux through below commands  

[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0

Step 8 then we will going to any browser in put our IP address and Virtual ip address. now we will look that our website is looking here

how to create virtual ip address

if you have any problem in this process so please comment here i will solve your problem

Thank you

by Vishnu sharma

 

how to configure FTP server in Redhat Linux Server part 1

hello guys today we will discuss how can we configure FTP(File Transfer protocol) Server in Redhat Linux Server .FTP server through we can download and upload any file or content.Its a very simple process if you follow my artical steps .so before we will install YUM server in our Linux machine because YUM is a very helpful service in package installation.if you want to know how to configure YUM in our linux machine so click on link and look   ftp serverso guys here i agree you configure YUM server in our ReadHat Linux Machine then we will contunue

step1= we will install Ftp package below commands 

[root@localhost ~]# yum install vsftpd* -y

Step2= then we will verify and start FTP service

[root@localhost ~]# service vsftpd restart
Shutting down vsftpd:                                      [  OK  ]
Starting vsftpd for vsftpd:                                [  OK  ]
[root@localhost ~]# service vsftpd status
vsftpd (pid 5668) is running...
[root@localhost ~]# chkconfig vsftpd on

Step3= Then we will off our machine firewall and selinux below commands 

[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0

Ftp server is share /var/ftp directory if we have any data in  in this directory so client can download data through ftp server

Step4= then we will go Windows machine in and open any browser and put our linux IP Address

Ftp derver

then your Browser in open /var/ftp/ folder here you can download to here .we can also open FTP server in command prompt

if you have any problem in this process so comments here i will solve your problem

thank you

writer- Vishnu Sharma

How to configure Stelnet in redhat linux server

hello guys today we will discuss about secure telnet Server. basically secure telnet is a custom telnet its same copy of telnet server but here we will configure with our customize port.If you  want to know how to configure simple telnet server so click on link. before we telnet package in our linux machine. if we want we can install every type package easily  so  we need  to Yum server configuration you just click on link and look how to configure yum. Stelnet Server

Here I agree that you have configured YUM server in your machine

For any Tutorial visit linuxtiwary.com

Continue reading

How to configure NFS (Network File System )server in linux redhat

hello guys today we will configure NFS server in Linux redhat.if we configure  NFS Server in our Linux machine we can share easily  data each other easily. actually NFS server in share folder take real  space on server but all connected system in show visually. Linux server in NFS server is a very batter source of data sharing. so if you want to configure NFS server in your system so before configure YUM server in your system. yum Server is a very important in Linux we can install any package easily through YUM server. if you want to know how to configure yum server in our linux machine so click link and look

NFS server   here i agree you install yum server in your linux machine .then we start next Continue reading

How to configure Apache Web Server in RedHat Linux

hello guys today we will learn how to configure Apache web Server  in Linux redhat and also host web page with Apache  web server. We will also understand concept of web server that how to host any website in Redhat Linux server. So before you need to  Configure YUM server in our  Linux machine. if you don’t know how to configure yum in linux so click on  link and look . After YUM server configuration we can install any package in Linux very easily

Step 1 here i accept you configure Yum in your Linux machine so fist we will install Http package

 

[root@localhost ~]# yum install http*

Step 2 then we off our Linux machine IP Address and also Disable Firewall and seLinux through below Commands 

[root@localhost ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:93:6D:E8
          inet addr:192.168.56.101  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe93:6de8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:227 errors:0 dropped:0 overruns:0 frame:0
          TX packets:197 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:20134 (19.6 KiB)  TX bytes:25158 (24.5 KiB)

Here my ip address is 192.168.56.101

[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0

Step 3 then we will Start httpd Service and go to any browser Url bar and put our Linux machine ip Address 

[root@localhost ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

then we will look Apache web server description and instruction here    

Apache web server in linux Apache web server in linux

Step 2 now we will go our Linux terminal  and put below commands 

[root@localhost ~]# cd /var/www/html
[root@localhost html]#

Step3 here this directory in we will create simple Html page 

for example here i create index.html file

[root@localhost html]# vim index.html
<html>
<head> demo</head>
<title> Demo index File</title>
<body>
<h1> This is  Apache web Server Demo </h1>
<h2> you can found linux server all configureation in visworlditsolution.com</h2>
<marqoee><h2> visworlditsolution.com is a very help full website in it fields</h2></marqoee>\
</body>
</html>
~
~
~
:wq

Step4 then we will go  to Apache man configuration file and do something configure like this

[root@localhost html]# vim /etc/httpd/conf/httpd.conf
979 #
980 # VirtualHost example:
981 # Almost any Apache directive may go into a VirtualHost container.
982 # The first VirtualHost section is used for requests without a known
983 # server name.
984 #
985 #<VirtualHost *:80>
986 #    ServerAdmin webmaster@dummy-host.example.com
987 #    DocumentRoot /www/docs/dummy-host.example.com
988 #    ServerName dummy-host.example.com
989 #    ErrorLog logs/dummy-host.example.com-error_log
990 #    CustomLog logs/dummy-host.example.com-access_log common
991 #</VirtualHost>
992 <virtualHost 192.168.56.101:80>
993 DocumentRoot /var/www/html/
994 Directoryindex index.html
995 </VirtualHost>
:wq

Step5- we will restart httpd servies

[root@localhost html]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Thu Jan 19 05:05:47 2017] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.56.101 (check DNS) -- or specify an explicit ServerName
                                                           [  OK  ]
[root@localhost html]#

also check httpd below commands

[root@localhost html]# httpd -t

then we will on httpd  server below commands

chkconfig httpd on

 Step 6 now go to internet browser and type your linux machine ip address

web server Apache

Its a very simple process .if you have any problem in this process so please comments here i will solve your problem if you like my tutorial so follow my website like ,share,

Thank you

by Vishnu Sharma

 

How to configure chat Server in Linux redhat

Hello guys today we will learn how to configure chat server in Linux.its a very simple method if we configure chat server we be able to conversation with our system to other system .if you have real Ip address you can connected any where to our partner.and if you dont’t have real ip address then you can also connected in local wi-fi network. Chat server is very beneficial for our conversation.here i configure chat server  and communicate with windows machine

chat server

so let we start how can we configure in our Linux machine .Before we will configure YUM server in our machine.  if you want to know how to configure yum Server in our Linux machine so click my link and visit.After yum configure we will install telnet package in Linux machine

we will install telnet package through this commands   

[root@localhost ~]# yum install telnet*

Then we will off our machine firewall through this commands 

[root@localhost ~]# iptables -F
[root@localhost ~]# setenforce 0

Actually Chat server is work on our system port 8888 . so we will on our system port 8888

[root@localhost ~]# nc -l 8888

now our Linux machine in chat server is configuration is complete .now we will go our windows machine or our chat partner machine .

if your chat partner have also linux machine so not any issue. But if he have windows system or you have windows System so before you need to on our windows telnet client features on  if you want to know how to on telnet Clint service so click here and look

then go our Clint machine and open command prompt and type just  Linux ip address and his port number like this

(Note- you can look our Linux machine ip address through this commands #ifconfig )

telnet 192.168.0.101 8888

then you can chat with our partner

if you have any problem in this methods so please comments here i will solve your problem and query

Thank you

By Vishnu Sharma