Thursday, December 13, 2012

Create AVD in Eclipse JUNO

go to Run -> Run Configuration

it will open Run Configuration Window

In Left side of Window there is option of

Android Application, Double click on that.

Now in Right Side Click on Target

Now got down side, and click on Manager

Create Your AVD and its done. create avd,create avd in eclipse juno,eclipse juno,juno

Tuesday, December 11, 2012

Configure Android SDK on Eclipse JUNO in Ubuntu

Download Eclipse Juno from http://www.eclipse.org/downloads/

After Downloading extract file.

make one Directory with any name mine is EclipseAndroid

Copy and Paste Extracted eclipse directory to it.

Open Eclipse

go to Help -> Install New Software

Click on Add
in Name give any Name
in site paste this url : "http://dl-ssl.google.com/android/eclipse" and click ok

it will download the ADT Plug-ins and install it.
it will ask for restarting Eclipse press No and exit Eclipse.

Now download Android SDK from

http://developer.android.com/sdk/index.html

extract the file and paste it to EclipseAndroid Directory.

Start Eclipse and go to Windows -> Prefrences and set the path of Android Sdk

it will start downloading and installing all the required plug-ins and tools for android development.

After doing all these need to set the PATH in .profile

PATH="$PATH:/path/android-sdk-linux/tools/:/path/android-sdk-linux/platform-tools" configure android sdk,android sdk eclipse,android sdk eclipse juno,eclipse juno,configure sdk in juno in ubuntu,eclipse juno ubuntu

Tuesday, November 27, 2012

Generate Google Map API for ANDROID in Ubuntu



get the android default debug keystore

eclipse->windows->preferences->->Android ->Build

copy the default debug keystore value

Now go to the terminal

-- cd /
-- cd /usr/lib/jvm/java-6-openjdk/bin
-- keytool -list -alias androiddebugkey \-keystore /paste debug keystore which has been copied

after doing this you will get result like below :

androiddebugkey, 11 Jun, 2012, PrivateKeyEntry,
Certificate fingerprint (MD5): 65:13:5E:81:B6:F4:99:12:8C:0C:4A:DF:60:3B:48:B8

 
generate google map api,google map api,map api,google map api for android,google map api for android in ubuntu,generate google map api for android

Wednesday, November 21, 2012

Install GIT on CentOS/RedHat



first need to login as root and need to install dependencies

yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel

now

 cd /usr/local/src

download the source of git using :
wget http://git-core.googlecode.com/files/git-1.7.9.tar.gz

extact file :
tar xvzf git-1.7.9.tar.gz

now into source direcotry

cd git-1.7.9

now configure a makefile using below command
./configure

compile the code using below command
make

now start installation using below
make install

after completion of installation make one directory which you want to make a git repository

for eg.
mkdir /opt/test
cd /opt/test
git init

if all will be done properly and git has been installed properly you will get message like below

Initialized empty Git repository in /opt/test/.test/
install git,git on cent os,git on redhat,redhat,cent os,install git on redhat

Monday, November 19, 2012

Install Subversion on CentOS/RedHat

Installation

yum install mod_dav_svn subversion

service httpd start/restart

chkconfig httpd on


Configure

Open Terminal

cd /etc/httpd/conf.d/

vi subversion.conf

uncomment the following if they are commented out

LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so


# Add the following to allow a basic authentication and point Apache to where the actual repository resides.


    DAV svn
    SVNPath /var/www/svn/repos
    AuthType Basic
    AuthName "Subversion repos"
    AuthUserFile /etc/svn-auth-conf
    Require valid-user





Create/Configure repository

path which you have configured in subversion.conf file.
cd /var/www/svn/
svnadmin create repos
chown -R apache.apache repos
/etc/init.d/httpd restart

For Import

svn import /test/temp file:///var/www/svn/repos/temp -m "description"


For Delete

svn delete -m --F http://192.168.1.1/svn/repos/temp/

Creat User
htpasswd -cm /etc/svn-auth-conf username


Adding password for user yourusername

htpasswd -m /etc/svn-auth-conf anotherusername
subversion,svn,svn server,svn server on cent os,svn server on redhat,subversion on centos,subversion on redhat,install subversion on redhat,install subversion on centos

Friday, November 9, 2012

samba access log

first configure samba server and create samba share directory and samba users.

Now open the file /etc/samba/smb.conf

find the [global] and add below lines

# Audit settings
full_audit:prefix = %u|%I|%S
full_audit:failure = connect
full_audit:success = connect disconnect opendir mkdir rmdir closedir open close read pread write pwrite sendfile rename unlink chmod
fchmod chown fchown chdir ftruncate lock symlink readlink link mknod realpath
full_audit:facility = local7
full_audit:priority = notice

after adding lines, i have created samba user 'test',find [test] in smb.conf and add below lines:


    vfs objects = full_audit
    full_audit:prefix = %u|%I|%m|%s   
    full_audit:success = mkdir rename unlink rmdir open pwrite   
    full_audit:failure = none


now save the file smb.conf and open file /etc/syslog.conf and add below lines at the end of the file

filter f_local5 {facility(local7);};
destination m_samba_audit { file("/var/log/samba/audit.log"); };
log { source(src); filter(f_local7);destination(m_samba_audit); flags(final); };

and save it.

now restart the services:

/etc/init.d/smb restart
/etc/init.d/syslog restart

Now access samba directory from client machine and make some changes in that directory like creating new directory,change the name of directory etc.

after doing this open the file /var/log/samba/log.audit
it will contain all the activity logs done by the user with username, ip address of client machine and what activities user has done.



[NOTE]

if you don'f find /var/log/samba/log.audit file than once create a log.audit file manually.


samba logs,samba,samba access,samba access logs

Thursday, November 8, 2012

Install Ruby and Rails on CentOS

Download Ruby from http://www.ruby-lang.org/en/downloads/

extract it :

tar xzvf ruby-1.9.2-p0.tar.gz

install dependacies using :

yum install zlib zlib-devel


Now Install Ruby:

    cd ruby-1.9.2-p0

    ./configure
    make install

Install Rails : 
gem install rails
install ror,install ror centos,install ror redhat,ror,ruby on rails,install ruby on rails,install ruby on rails centos,install ruby on rails redhat,configure ruby on rails,configure ruby on rails centos,configure ruby on rails redhat

Tuesday, November 6, 2012

How to upgrade MySQL 5.* to 5.5 in CentOS & RedHat


For RedHat/CentOS 5


## Remi Dependency on CentOS 5 and Red Hat (RHEL) 5 ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

## CentOS 5 and Red Hat (RHEL) 5 ##
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm


For RedHat/CentOS 6

## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm

## CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm


Enable Repository
yum --enablerepo=remi,remi-test list mysql mysql-server

Install/Update
yum --enablerepo=remi,remi-test install mysql mysql-server
upgrade mysql centos,upgrade mysql redhat,upgrade mysql 5.* to 5.5,mysql 5.0 to 5.5 cent os,mysql 5.1 to 5.5 cent os,mysql 5.2 to 5.5 cent os,mysql 5.3 to 5.5 cent os,mysql 5.4 to 5.5 cent os,mysql 5.0 to 5.5 redhat,mysql 5.1 to 5.5 redhat,mysql 5.2 to 5.5 redhat,mysql 5.3 to 5.5 redhat,mysql 5.4 to 5.5 redhat,upgrade mysql in centos,upgrade mysql in redhat

Wednesday, October 31, 2012

Run Script at startup in Linux

Create a script which you want to run at your linux box start up

after creating a script open terminal and type

crontab -e

@reboot /path to /your /script

and save it.


run script at startup,start up scrip in linux,start up script in cent os,start up script in redhat,run script at startup in linux,run script at start up in redhat,run script at start up in cent os

Wednesday, October 24, 2012

use yum over proxy

open yum.conf file in any text editor or in terminal using

vi /etc/yum.conf

Add below line to the file

proxy = http://proxy server ip or hostname:port/

if connecting using login and password use

proxy = http://username:password@proxy server ip or hostname:port/

save and close the file.
yum over proxy,proxy for yum,yum with proxy,yum on proxy,configure yum to use with proxy,configure yum with proxy

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

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

Friday, July 13, 2012

Scheduled Backup of Mails in Linux

Majority Linux Users are using Thunderbird Mail Client. now if they need to take auto scheduled back up of mails just need to write the below script and set a cron job for that.

#!/bin/sh
## Script to backup Thunderbird email
## Backup needs a date (stamp)

set -x
x=`date +%d%m%y.%H%M`

## Save space by making sure backup is archived
tar zcf thunderb-mail-${x}.tgz /home/user directory/.thunderbird

## Save the compressed backup to mybackup folder
cp thunderb-mail-${x}.tgz /path to store your backup

## Clean up after, we don't need two copies of the backup
sudo rm ~/thunderb-mail-${x}.tgz



schedule mail backup,mail backup in linux,schedule mail backup in linux,scheduled backup for thunderbird,scheduled backup thunderbird linux,linux scheduled backup in thunderbird

Auto Screenshot in Linux

copy and paste below code and save the file as any name you would like with the extension .sh

#!/bin/sh

import -window root -display :0 -crop 1024x768+25+25 \
   "/path to store screenshot/$(date +%m.%d.%y_at_%H.%M.%S).png"

now move this file in /bin directory and set the scheduled task using cron. if you are using ubuntu you can use scheduled task application also.


auto screenshot,linux auto screenshot,linux screenshot,screenshot script linux,screenshot script

Tuesday, July 3, 2012

Android device not detected in Eclipse in Ubuntu

Are you seeing ?????????? on eclipse when you plug your android device to eclipse on your Ubuntu machine.

Serial No : ???????????
AVD Name : N/A
Target : Unknown
State : ??

Follow this for Solution :

(1) sudo vi /etc/udev/rules.d/51-android.rules       
(2) SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
idVendor is company of your phone, choose the vendor id and paste it inplace of 0bb4

Company
Vendor ID
Acer
0502
Asus
0b05
Dell
413c
Foxconn
0489
Fujitsu
04c5
Fujitsu Toshiba
04c5
Garmin-Asus
091e
Google
18d1
Hisense
109b
HTC
0bb4
Huawei
12d1
K-Touch
24e3
KT Tech
2116
Kyocera
0482
Lenovo
17ef
LG
1004
Motorola
22b8
Nec
0409
Nook
2080
Nvidia
0955
OTGV
2257
Pantech
10a9
Pegatron
1d9d
Philips
0471
PMC-Sierra
04da
Qualcomm
05c6
SK Telesys
1f53
Samsung
04e8
Sharp
04dd
Sony
054c
Sony Ericsson
0fce
Teleepoch
2340
Toshiba
0930
ZTE
19d2


(3) sudo chmod a+r /etc/udev/rules.d/51-android.rules
(4) sudo service udev reload

and you're done.
device not detectd,andorid not detected,android not detected in linux,andorid not detected in eclipse,android device not detected in eclilpse,android not detected in eclipse in ubuntu,android device not detected in ubuntu