Monday, October 22, 2012

Configure Samba Server

opent terminal & create simple linux user using,

adduser username


smbpasswd -a username

after creating the password for that user type below command to enable that samba user,

smbpasswd -e username

now, create the directory which you want to share

now open samba configuration file from /etc/samba/smb.conf

and add the lines as below :

[directory name]

             path = /path /to /directory
             writeable = yes
;            browseable = yes
             valid users = username
             create mask = 0755 or 755

save file and exit

after doing this change the owner of that directory and restart the service of samba.


configure samba server,samba server cent os,samba server redhat,configure samba server of cent os,configure samba server for redhat,samba for redhat,samba for cent os

Friday, October 12, 2012

Install LAMP Server on CentOS

First check httpd service is running or not

           /etc/init.d/httpd status


if its running, its ok else need to start

          /etc/init.d/httpd start


after starting httpd(apache) need to install mysql server

          yum install mysql-server

Now you need to start mysql daemon
         
          /etc/init.d/mysqld start

Now, log in to the mysql using
         
          mysql -u root -p
by default mysql root user doesn't have any password, when it asks for password just press enter and you will be logged in to the database.

if you want to create a password for root user,

UPDATE mysql.user SET Password = PASSWORD('password') WHERE     User = 'username';

FLUSH PRIVILEGES;

after installing mysql-server you need to install php,
for installing php need to download some RPM files which contains additional YUM repository definitions.

 

 (1) wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
 (2) wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release- 5-4.noarch.rpm

Now, open the file remi.repo
      vi /etc/yum.repos.d/remi.repo

find the enabled option and set it to 1 and save it.

Now run command

yum install php php-cli php-gd php-mysql php-mbstring  php-mysql

now you're  done.

restart the daemon of httpd and check the version of php.

/etc/init.d/httpd restart
php -v or php --version





 



lamp server,lamp on linux,lamp server configuration,configure lamp server,lamp server on cent os,lamp server on redhat,lamp configuration on centos,lamp configuration on redhat

Tuesday, October 9, 2012

Enable Root User for FTP

To access FTP using root user just need to follow three simple steps and its done.

(1) go to /etc/vsftpd directory
(2) remove root from user_list file
(3) remove root from ftpuser file

now restart the service of ftp and its done.
Enable root for ftp,ftp with root,enable root user for ftp in linux,enable root user for ftp in cent os,enable root user for ftp in redhat

Friday, September 28, 2012

Configure Chat Server on Linux

First you need to install MySQL & Apache

yum install mysql-server
yum install httpd

check the status of the services of MySQL & httpd if its not started,

/etc/init.d/mysqld start
/etc/init.d/httpd start

after installing MySQL & Apache you need to download Chat server application, which you can download from here : Download Chat Server Software

after downloading install this application.

rpm -uvh packagename.rpm

this will install the application on your machine.
Now you need to open two ports which are 9090 & 9091.

Now you need to configure your chat server using your browser with the url : "localhost:9090".

Follow the instructions and go ahead with the configuration.

configure chat server,chat server on linux,chat server on redhat,chat server on centos,configure chat server on cent os,configure chat server on redhat,configure openfire in linux,configure openfire,openfire in redhat,openfire in cent os

Thursday, September 27, 2012

Create Own Command in Linux

write

#!/bin/bash

after writing above line write your script and save it and give any name,
give the permission of execute.

now copy your script in /bin directory or /usr/bin directory.

now your are done. open the terminal and type command, name you have given to your script.
own linux command,own command,create own command,create command,create command in linux

Wednesday, September 26, 2012

Remote ROOT access to MySQL

login to mysql

mysql -u username -p password

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'passwd';

now exit from mysql and restart the service of mysql.

remote root for mysql,remote root access to mysql,mysql remote root

Saturday, September 22, 2012

Mysql Database Import/Export Command Line

Export mysql database

          mysql -u username -p database name > filename.sql


Import mysql database

          mysql -u username -p database name < filename.sql


Export all databases from remote server to local machine

          mysqldump -u username -p -h hostname --all-databases > filename.sql
import command for mysql,export command for mysql,import mysql,export mysql,mysql import,mysql export,command line import mysql database,command line export mysql database,mysql database export,mysql database import