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

Thursday, September 20, 2012

How to run C program in ubuntu

sudo apt-get install build-essential

now open gedit or any other text editor
type your program and save with .c extension.

if your program name is sample.c, type below command

gcc -o sample sample.c

it will create executable file with the name sample.

now, to run the program just type

./sample

it will run your program.
c program ubuntu,ubuntu c program,run c program in ubuntu,run c program

Tuesday, September 18, 2012

Share Ubuntu Printer with Windows

Install Samba and smbfs
          sudo apt-get install samba smbfs

after installation of samba and smbfs open smb.conf
          sudo gedit /etc/samba/smb.conf

find the section
########## Printing ##########


find below lines and do changes as below

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
    printing = cups
    printcap name = cups

    security = share

after doing above changes now make changes in [printers] section with

          browsable = yes
          guest ok = yes

Save the file and restart the service of samba. Now, go to windows and find the printer.


share printer in ubuntu,share ubuntu printer with windows,share printer with windows,share printer in linux,linux printer sharing,ubuntu printer sharing